From 526ffc6bfef7f55790527cf8eb591e77745b2efc Mon Sep 17 00:00:00 2001 From: 0xGingi <0xgingi@0xgingi.com> Date: Fri, 15 Nov 2024 14:25:58 +0000 Subject: [PATCH] mobile: start work --- android/app/capacitor.build.gradle | 23 + android/app/src/main/AndroidManifest.xml | 28 + .../app/src/main/assets/capacitor.config.json | 23 + .../src/main/assets/capacitor.plugins.json | 22 + .../assets/public/android-chrome-192x192.png | Bin 0 -> 9096 bytes .../assets/public/android-chrome-512x512.png | Bin 0 -> 41350 bytes .../main/assets/public/apple-touch-icon.png | Bin 0 -> 7843 bytes .../assets/public/assets/buffer-Cq5fL-tY.js | 6 + .../assets/public/assets/index-BHNR0Rya.css | 10 + .../assets/public/assets/index-DhE_q3AR.js | 369 ++++++ .../public/assets/mobileInit-BjDn5VWt.js | 2 + .../main/assets/public/assets/web-BBNafJl7.js | 1 + .../main/assets/public/assets/web-KEPh1bJr.js | 1 + android/app/src/main/assets/public/cordova.js | 0 .../src/main/assets/public/cordova_plugins.js | 0 .../src/main/assets/public/favicon-16x16.png | Bin 0 -> 318 bytes .../src/main/assets/public/favicon-32x32.png | Bin 0 -> 677 bytes .../app/src/main/assets/public/favicon.ico | Bin 0 -> 15406 bytes android/app/src/main/assets/public/index.html | 19 + .../src/main/assets/public/site.webmanifest | 1 + android/app/src/main/assets/public/tauri.svg | 6 + android/app/src/main/assets/public/trusty.jpg | Bin 0 -> 36951 bytes android/app/src/main/assets/public/vite.svg | 1 + android/app/src/main/res/xml/config.xml | 6 + .../build.gradle | 59 + .../cordova.variables.gradle | 7 + .../src/main/AndroidManifest.xml | 8 + .../src/main/java/.gitkeep | 0 .../src/main/res/.gitkeep | 1 + android/capacitor.settings.gradle | 18 + capacitor.config.ts | 27 + ios/App/App/capacitor.config.json | 30 + ios/App/App/config.xml | 6 + ios/App/App/public/android-chrome-192x192.png | Bin 0 -> 9096 bytes ios/App/App/public/android-chrome-512x512.png | Bin 0 -> 41350 bytes ios/App/App/public/apple-touch-icon.png | Bin 0 -> 7843 bytes ios/App/App/public/assets/buffer-Cq5fL-tY.js | 6 + ios/App/App/public/assets/index-BHNR0Rya.css | 10 + ios/App/App/public/assets/index-DhE_q3AR.js | 369 ++++++ .../App/public/assets/mobileInit-BjDn5VWt.js | 2 + ios/App/App/public/assets/web-BBNafJl7.js | 1 + ios/App/App/public/assets/web-KEPh1bJr.js | 1 + ios/App/App/public/cordova.js | 0 ios/App/App/public/cordova_plugins.js | 0 ios/App/App/public/favicon-16x16.png | Bin 0 -> 318 bytes ios/App/App/public/favicon-32x32.png | Bin 0 -> 677 bytes ios/App/App/public/favicon.ico | Bin 0 -> 15406 bytes ios/App/App/public/index.html | 19 + ios/App/App/public/site.webmanifest | 1 + ios/App/App/public/tauri.svg | 6 + ios/App/App/public/trusty.jpg | Bin 0 -> 36951 bytes ios/App/App/public/vite.svg | 1 + .../CordovaPlugins.podspec | 16 + .../CordovaPluginsResources.podspec | 11 + .../CordovaPluginsStatic.podspec | 16 + .../resources/.gitkeep | 1 + .../sources/.gitkeep | 1 + package-lock.json | 1127 ++++++++++++++++- package.json | 28 +- src/App.tsx | 11 + src/services/mobileInit.ts | 30 + src/services/webStorage.ts | 1 - src/styles/mobile.css | 21 + 63 files changed, 2331 insertions(+), 22 deletions(-) create mode 100644 android/app/capacitor.build.gradle create mode 100644 android/app/src/main/AndroidManifest.xml create mode 100644 android/app/src/main/assets/capacitor.config.json create mode 100644 android/app/src/main/assets/capacitor.plugins.json create mode 100644 android/app/src/main/assets/public/android-chrome-192x192.png create mode 100644 android/app/src/main/assets/public/android-chrome-512x512.png create mode 100644 android/app/src/main/assets/public/apple-touch-icon.png create mode 100644 android/app/src/main/assets/public/assets/buffer-Cq5fL-tY.js create mode 100644 android/app/src/main/assets/public/assets/index-BHNR0Rya.css create mode 100644 android/app/src/main/assets/public/assets/index-DhE_q3AR.js create mode 100644 android/app/src/main/assets/public/assets/mobileInit-BjDn5VWt.js create mode 100644 android/app/src/main/assets/public/assets/web-BBNafJl7.js create mode 100644 android/app/src/main/assets/public/assets/web-KEPh1bJr.js create mode 100644 android/app/src/main/assets/public/cordova.js create mode 100644 android/app/src/main/assets/public/cordova_plugins.js create mode 100644 android/app/src/main/assets/public/favicon-16x16.png create mode 100644 android/app/src/main/assets/public/favicon-32x32.png create mode 100644 android/app/src/main/assets/public/favicon.ico create mode 100644 android/app/src/main/assets/public/index.html create mode 100644 android/app/src/main/assets/public/site.webmanifest create mode 100644 android/app/src/main/assets/public/tauri.svg create mode 100644 android/app/src/main/assets/public/trusty.jpg create mode 100644 android/app/src/main/assets/public/vite.svg create mode 100644 android/app/src/main/res/xml/config.xml create mode 100644 android/capacitor-cordova-android-plugins/build.gradle create mode 100644 android/capacitor-cordova-android-plugins/cordova.variables.gradle create mode 100644 android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml create mode 100644 android/capacitor-cordova-android-plugins/src/main/java/.gitkeep create mode 100644 android/capacitor-cordova-android-plugins/src/main/res/.gitkeep create mode 100644 android/capacitor.settings.gradle create mode 100644 capacitor.config.ts create mode 100644 ios/App/App/capacitor.config.json create mode 100644 ios/App/App/config.xml create mode 100644 ios/App/App/public/android-chrome-192x192.png create mode 100644 ios/App/App/public/android-chrome-512x512.png create mode 100644 ios/App/App/public/apple-touch-icon.png create mode 100644 ios/App/App/public/assets/buffer-Cq5fL-tY.js create mode 100644 ios/App/App/public/assets/index-BHNR0Rya.css create mode 100644 ios/App/App/public/assets/index-DhE_q3AR.js create mode 100644 ios/App/App/public/assets/mobileInit-BjDn5VWt.js create mode 100644 ios/App/App/public/assets/web-BBNafJl7.js create mode 100644 ios/App/App/public/assets/web-KEPh1bJr.js create mode 100644 ios/App/App/public/cordova.js create mode 100644 ios/App/App/public/cordova_plugins.js create mode 100644 ios/App/App/public/favicon-16x16.png create mode 100644 ios/App/App/public/favicon-32x32.png create mode 100644 ios/App/App/public/favicon.ico create mode 100644 ios/App/App/public/index.html create mode 100644 ios/App/App/public/site.webmanifest create mode 100644 ios/App/App/public/tauri.svg create mode 100644 ios/App/App/public/trusty.jpg create mode 100644 ios/App/App/public/vite.svg create mode 100644 ios/capacitor-cordova-ios-plugins/CordovaPlugins.podspec create mode 100644 ios/capacitor-cordova-ios-plugins/CordovaPluginsResources.podspec create mode 100644 ios/capacitor-cordova-ios-plugins/CordovaPluginsStatic.podspec create mode 100644 ios/capacitor-cordova-ios-plugins/resources/.gitkeep create mode 100644 ios/capacitor-cordova-ios-plugins/sources/.gitkeep create mode 100644 src/services/mobileInit.ts create mode 100644 src/styles/mobile.css diff --git a/android/app/capacitor.build.gradle b/android/app/capacitor.build.gradle new file mode 100644 index 0000000..f4f70e4 --- /dev/null +++ b/android/app/capacitor.build.gradle @@ -0,0 +1,23 @@ +// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN + +android { + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } +} + +apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle" +dependencies { + implementation project(':capacitor-preferences') + implementation project(':capacitor-keyboard') + implementation project(':capacitor-status-bar') + implementation project(':capacitor-splash-screen') + implementation project(':capacitor-app') + +} + + +if (hasProperty('postBuildExtras')) { + postBuildExtras() +} diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..d7107b1 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/app/src/main/assets/capacitor.config.json b/android/app/src/main/assets/capacitor.config.json new file mode 100644 index 0000000..2da0182 --- /dev/null +++ b/android/app/src/main/assets/capacitor.config.json @@ -0,0 +1,23 @@ +{ + "appId": "dev.toolworks.trustynotes", + "appName": "Trusty Notes", + "webDir": "dist", + "server": { + "androidScheme": "https", + "hostname": "notes.toolworks.dev", + "iosScheme": "https" + }, + "plugins": { + "LocalNotifications": { + "smallIcon": "ic_stat_icon_config_sample", + "iconColor": "#488AFF" + } + }, + "ios": { + "contentInset": "automatic", + "preferredContentMode": "mobile" + }, + "android": { + "backgroundColor": "#ffffff" + } +} diff --git a/android/app/src/main/assets/capacitor.plugins.json b/android/app/src/main/assets/capacitor.plugins.json new file mode 100644 index 0000000..6d03828 --- /dev/null +++ b/android/app/src/main/assets/capacitor.plugins.json @@ -0,0 +1,22 @@ +[ + { + "pkg": "@capacitor/preferences", + "classpath": "com.capacitorjs.plugins.preferences.PreferencesPlugin" + }, + { + "pkg": "@capacitor/keyboard", + "classpath": "com.capacitorjs.plugins.keyboard.KeyboardPlugin" + }, + { + "pkg": "@capacitor/status-bar", + "classpath": "com.capacitorjs.plugins.statusbar.StatusBarPlugin" + }, + { + "pkg": "@capacitor/splash-screen", + "classpath": "com.capacitorjs.plugins.splashscreen.SplashScreenPlugin" + }, + { + "pkg": "@capacitor/app", + "classpath": "com.capacitorjs.plugins.app.AppPlugin" + } +] diff --git a/android/app/src/main/assets/public/android-chrome-192x192.png b/android/app/src/main/assets/public/android-chrome-192x192.png new file mode 100644 index 0000000000000000000000000000000000000000..4968e3f27afd45cf7466b79c750c500e5af80286 GIT binary patch literal 9096 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 AVgLXD literal 0 HcmV?d00001 diff --git a/android/app/src/main/assets/public/android-chrome-512x512.png b/android/app/src/main/assets/public/android-chrome-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..06dd839a5a2755e9a7c8bbecd8a7e191b92eb452 GIT binary patch literal 41350 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 WsaY&9JpasRfRen5T$PMj=>Guit|}`4 literal 0 HcmV?d00001 diff --git a/android/app/src/main/assets/public/assets/buffer-Cq5fL-tY.js b/android/app/src/main/assets/public/assets/buffer-Cq5fL-tY.js new file mode 100644 index 0000000..a99332c --- /dev/null +++ b/android/app/src/main/assets/public/assets/buffer-Cq5fL-tY.js @@ -0,0 +1,6 @@ +var ur={},$r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof ur<"u"?ur:typeof self<"u"?self:{};function Or(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var _r={},G={};G.byteLength=br;G.toByteArray=Nr;G.fromByteArray=Pr;var _=[],T=[],Sr=typeof Uint8Array<"u"?Uint8Array:Array,H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var k=0,Lr=H.length;k0)throw new Error("Invalid string. Length must be a multiple of 4");var s=f.indexOf("=");s===-1&&(s=c);var x=s===c?0:4-s%4;return[s,x]}function br(f){var c=hr(f),s=c[0],x=c[1];return(s+x)*3/4-x}function Mr(f,c,s){return(c+s)*3/4-s}function Nr(f){var c,s=hr(f),x=s[0],y=s[1],a=new Sr(Mr(f,x,y)),p=0,o=y>0?x-4:x,B;for(B=0;B>16&255,a[p++]=c>>8&255,a[p++]=c&255;return y===2&&(c=T[f.charCodeAt(B)]<<2|T[f.charCodeAt(B+1)]>>4,a[p++]=c&255),y===1&&(c=T[f.charCodeAt(B)]<<10|T[f.charCodeAt(B+1)]<<4|T[f.charCodeAt(B+2)]>>2,a[p++]=c>>8&255,a[p++]=c&255),a}function kr(f){return _[f>>18&63]+_[f>>12&63]+_[f>>6&63]+_[f&63]}function Dr(f,c,s){for(var x,y=[],a=c;ao?o:p+a));return x===1?(c=f[s-1],y.push(_[c>>2]+_[c<<4&63]+"==")):x===2&&(c=(f[s-2]<<8)+f[s-1],y.push(_[c>>10]+_[c>>4&63]+_[c<<2&63]+"=")),y.join("")}var V={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */V.read=function(f,c,s,x,y){var a,p,o=y*8-x-1,B=(1<>1,I=-7,F=s?y-1:0,S=s?-1:1,A=f[c+F];for(F+=S,a=A&(1<<-I)-1,A>>=-I,I+=o;I>0;a=a*256+f[c+F],F+=S,I-=8);for(p=a&(1<<-I)-1,a>>=-I,I+=x;I>0;p=p*256+f[c+F],F+=S,I-=8);if(a===0)a=1-R;else{if(a===B)return p?NaN:(A?-1:1)*(1/0);p=p+Math.pow(2,x),a=a-R}return(A?-1:1)*p*Math.pow(2,a-x)};V.write=function(f,c,s,x,y,a){var p,o,B,R=a*8-y-1,I=(1<>1,S=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=x?0:a-1,D=x?1:-1,P=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(o=isNaN(c)?1:0,p=I):(p=Math.floor(Math.log(c)/Math.LN2),c*(B=Math.pow(2,-p))<1&&(p--,B*=2),p+F>=1?c+=S/B:c+=S*Math.pow(2,1-F),c*B>=2&&(p++,B/=2),p+F>=I?(o=0,p=I):p+F>=1?(o=(c*B-1)*Math.pow(2,y),p=p+F):(o=c*Math.pow(2,F-1)*Math.pow(2,y),p=0));y>=8;f[s+A]=o&255,A+=D,o/=256,y-=8);for(p=p<0;f[s+A]=p&255,A+=D,p/=256,R-=8);f[s+A-D]|=P*128};/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */(function(f){const c=G,s=V,x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;f.Buffer=o,f.SlowBuffer=cr,f.INSPECT_MAX_BYTES=50;const y=2147483647;f.kMaxLength=y,o.TYPED_ARRAY_SUPPORT=a(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const i=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(i,r),i.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function p(i){if(i>y)throw new RangeError('The value "'+i+'" is invalid for option "size"');const r=new Uint8Array(i);return Object.setPrototypeOf(r,o.prototype),r}function o(i,r,t){if(typeof i=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return F(i)}return B(i,r,t)}o.poolSize=8192;function B(i,r,t){if(typeof i=="string")return S(i,r);if(ArrayBuffer.isView(i))return D(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(C(i,ArrayBuffer)||i&&C(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(C(i,SharedArrayBuffer)||i&&C(i.buffer,SharedArrayBuffer)))return P(i,r,t);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const n=i.valueOf&&i.valueOf();if(n!=null&&n!==i)return o.from(n,r,t);const e=fr(i);if(e)return e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return o.from(i[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}o.from=function(i,r,t){return B(i,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function R(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function I(i,r,t){return R(i),i<=0?p(i):r!==void 0?typeof t=="string"?p(i).fill(r,t):p(i).fill(r):p(i)}o.alloc=function(i,r,t){return I(i,r,t)};function F(i){return R(i),p(i<0?0:j(i)|0)}o.allocUnsafe=function(i){return F(i)},o.allocUnsafeSlow=function(i){return F(i)};function S(i,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const t=X(i,r)|0;let n=p(t);const e=n.write(i,r);return e!==t&&(n=n.slice(0,e)),n}function A(i){const r=i.length<0?0:j(i.length)|0,t=p(r);for(let n=0;n=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return i|0}function cr(i){return+i!=i&&(i=0),o.alloc(+i)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(C(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),C(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,e=t.length;for(let u=0,h=Math.min(n,e);ue.length?(o.isBuffer(h)||(h=o.from(h)),h.copy(e,u)):Uint8Array.prototype.set.call(e,h,u);else if(o.isBuffer(h))h.copy(e,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=h.length}return e};function X(i,r){if(o.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||C(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const t=i.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let e=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return W(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return or(i).length;default:if(e)return n?-1:W(i).length;r=(""+r).toLowerCase(),e=!0}}o.byteLength=X;function pr(i,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(i||(i="utf8");;)switch(i){case"hex":return gr(this,r,t);case"utf8":case"utf-8":return K(this,r,t);case"ascii":return Er(this,r,t);case"latin1":case"binary":return dr(this,r,t);case"base64":return xr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mr(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),n=!0}}o.prototype._isBuffer=!0;function b(i,r,t){const n=i[r];i[r]=i[t],i[t]=n}o.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""},x&&(o.prototype[x]=o.prototype.inspect),o.prototype.compare=function(r,t,n,e,u){if(C(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),e===void 0&&(e=0),u===void 0&&(u=this.length),t<0||n>r.length||e<0||u>this.length)throw new RangeError("out of range index");if(e>=u&&t>=n)return 0;if(e>=u)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,e>>>=0,u>>>=0,this===r)return 0;let h=u-e,l=n-t;const d=Math.min(h,l),E=this.slice(e,u),g=r.slice(t,n);for(let w=0;w2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,q(t)&&(t=e?0:i.length-1),t<0&&(t=i.length+t),t>=i.length){if(e)return-1;t=i.length-1}else if(t<0)if(e)t=0;else return-1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:z(i,r,t,n,e);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?e?Uint8Array.prototype.indexOf.call(i,r,t):Uint8Array.prototype.lastIndexOf.call(i,r,t):z(i,[r],t,n,e);throw new TypeError("val must be string, number or Buffer")}function z(i,r,t,n,e){let u=1,h=i.length,l=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(i.length<2||r.length<2)return-1;u=2,h/=2,l/=2,t/=2}function d(g,w){return u===1?g[w]:g.readUInt16BE(w*u)}let E;if(e){let g=-1;for(E=t;Eh&&(t=h-l),E=t;E>=0;E--){let g=!0;for(let w=0;we&&(n=e)):n=e;const u=r.length;n>u/2&&(n=u/2);let h;for(h=0;h>>0,isFinite(n)?(n=n>>>0,e===void 0&&(e="utf8")):(e=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const u=this.length-t;if((n===void 0||n>u)&&(n=u),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");let h=!1;for(;;)switch(e){case"hex":return lr(this,r,t,n);case"utf8":case"utf-8":return sr(this,r,t,n);case"ascii":case"latin1":case"binary":return ar(this,r,t,n);case"base64":return yr(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wr(this,r,t,n);default:if(h)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),h=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xr(i,r,t){return r===0&&t===i.length?c.fromByteArray(i):c.fromByteArray(i.slice(r,t))}function K(i,r,t){t=Math.min(i.length,t);const n=[];let e=r;for(;e239?4:u>223?3:u>191?2:1;if(e+l<=t){let d,E,g,w;switch(l){case 1:u<128&&(h=u);break;case 2:d=i[e+1],(d&192)===128&&(w=(u&31)<<6|d&63,w>127&&(h=w));break;case 3:d=i[e+1],E=i[e+2],(d&192)===128&&(E&192)===128&&(w=(u&15)<<12|(d&63)<<6|E&63,w>2047&&(w<55296||w>57343)&&(h=w));break;case 4:d=i[e+1],E=i[e+2],g=i[e+3],(d&192)===128&&(E&192)===128&&(g&192)===128&&(w=(u&15)<<18|(d&63)<<12|(E&63)<<6|g&63,w>65535&&w<1114112&&(h=w))}}h===null?(h=65533,l=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|h&1023),n.push(h),e+=l}return Br(n)}const Z=4096;function Br(i){const r=i.length;if(r<=Z)return String.fromCharCode.apply(String,i);let t="",n=0;for(;nn)&&(t=n);let e="";for(let u=r;un&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);let e=this[r],u=1,h=0;for(;++h>>0,t=t>>>0,n||m(r,t,this.length);let e=this[r+--t],u=1;for(;t>0&&(u*=256);)e+=this[r+--t]*u;return e},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=L(function(r){r=r>>>0,N(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&$(r,this.length-8);const e=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,u=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(e)+(BigInt(u)<>>0,N(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&$(r,this.length-8);const e=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],u=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(e)<>>0,t=t>>>0,n||m(r,t,this.length);let e=this[r],u=1,h=0;for(;++h=u&&(e-=Math.pow(2,8*t)),e},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);let e=t,u=1,h=this[r+--e];for(;e>0&&(u*=256);)h+=this[r+--e]*u;return u*=128,h>=u&&(h-=Math.pow(2,8*t)),h},o.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);const n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);const n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=L(function(r){r=r>>>0,N(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&$(r,this.length-8);const e=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(e)<>>0,N(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&$(r,this.length-8);const e=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(e)<>>0,t||m(r,4,this.length),s.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),s.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),s.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),s.read(this,r,!1,52,8)};function U(i,r,t,n,e,u){if(!o.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>e||ri.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,e){if(r=+r,t=t>>>0,n=n>>>0,!e){const l=Math.pow(2,8*n)-1;U(this,r,t,n,l,0)}let u=1,h=0;for(this[t]=r&255;++h>>0,n=n>>>0,!e){const l=Math.pow(2,8*n)-1;U(this,r,t,n,l,0)}let u=n-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function Q(i,r,t,n,e){er(r,n,e,i,t,7);let u=Number(r&BigInt(4294967295));i[t++]=u,u=u>>8,i[t++]=u,u=u>>8,i[t++]=u,u=u>>8,i[t++]=u;let h=Number(r>>BigInt(32)&BigInt(4294967295));return i[t++]=h,h=h>>8,i[t++]=h,h=h>>8,i[t++]=h,h=h>>8,i[t++]=h,t}function v(i,r,t,n,e){er(r,n,e,i,t,7);let u=Number(r&BigInt(4294967295));i[t+7]=u,u=u>>8,i[t+6]=u,u=u>>8,i[t+5]=u,u=u>>8,i[t+4]=u;let h=Number(r>>BigInt(32)&BigInt(4294967295));return i[t+3]=h,h=h>>8,i[t+2]=h,h=h>>8,i[t+1]=h,h=h>>8,i[t]=h,t+8}o.prototype.writeBigUInt64LE=L(function(r,t=0){return Q(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=L(function(r,t=0){return v(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,e){if(r=+r,t=t>>>0,!e){const d=Math.pow(2,8*n-1);U(this,r,t,n,d-1,-d)}let u=0,h=1,l=0;for(this[t]=r&255;++u>0)-l&255;return t+n},o.prototype.writeIntBE=function(r,t,n,e){if(r=+r,t=t>>>0,!e){const d=Math.pow(2,8*n-1);U(this,r,t,n,d-1,-d)}let u=n-1,h=1,l=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&l===0&&this[t+u+1]!==0&&(l=1),this[t+u]=(r/h>>0)-l&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=L(function(r,t=0){return Q(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=L(function(r,t=0){return v(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function rr(i,r,t,n,e,u){if(t+n>i.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function tr(i,r,t,n,e){return r=+r,t=t>>>0,e||rr(i,r,t,4),s.write(i,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return tr(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return tr(this,r,t,!1,n)};function ir(i,r,t,n,e){return r=+r,t=t>>>0,e||rr(i,r,t,8),s.write(i,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return ir(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return ir(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,e){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!e&&e!==0&&(e=this.length),t>=r.length&&(t=r.length),t||(t=0),e>0&&e=this.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),r.length-t>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let u;if(typeof r=="number")for(u=t;u2**32?e=nr(String(t)):typeof t=="bigint"&&(e=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(e=nr(e)),e+="n"),n+=` It must be ${r}. Received ${e}`,n},RangeError);function nr(i){let r="",t=i.length;const n=i[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${i.slice(t-3,t)}${r}`;return`${i.slice(0,t)}${r}`}function Ir(i,r,t){N(r,"offset"),(i[r]===void 0||i[r+t]===void 0)&&$(r,i.length-(t+1))}function er(i,r,t,n,e,u){if(i>t||i= 0${h} and < 2${h} ** ${(u+1)*8}${h}`:l=`>= -(2${h} ** ${(u+1)*8-1}${h}) and < 2 ** ${(u+1)*8-1}${h}`,new M.ERR_OUT_OF_RANGE("value",l,i)}Ir(n,e,u)}function N(i,r){if(typeof i!="number")throw new M.ERR_INVALID_ARG_TYPE(r,"number",i)}function $(i,r,t){throw Math.floor(i)!==i?(N(i,t),new M.ERR_OUT_OF_RANGE("offset","an integer",i)):r<0?new M.ERR_BUFFER_OUT_OF_BOUNDS:new M.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${r}`,i)}const Fr=/[^+/0-9A-Za-z-_]/g;function Ar(i){if(i=i.split("=")[0],i=i.trim().replace(Fr,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function W(i,r){r=r||1/0;let t;const n=i.length;let e=null;const u=[];for(let h=0;h55295&&t<57344){if(!e){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(h+1===n){(r-=3)>-1&&u.push(239,191,189);continue}e=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),e=t;continue}t=(e-55296<<10|t-56320)+65536}else e&&(r-=3)>-1&&u.push(239,191,189);if(e=null,t<128){if((r-=1)<0)break;u.push(t)}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function Ur(i){const r=[];for(let t=0;t>8,e=t%256,u.push(e),u.push(n);return u}function or(i){return c.toByteArray(Ar(i))}function O(i,r,t,n){let e;for(e=0;e=r.length||e>=i.length);++e)r[e+t]=i[e];return e}function C(i,r){return i instanceof r||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===r.name}function q(i){return i!==i}const Rr=function(){const i="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){const n=t*16;for(let e=0;e<16;++e)r[n+e]=i[t]+i[e]}return r}();function L(i){return typeof BigInt>"u"?Cr:i}function Cr(){throw new Error("BigInt not supported")}})(_r);export{_r as b,$r as c,Or as g}; diff --git a/android/app/src/main/assets/public/assets/index-BHNR0Rya.css b/android/app/src/main/assets/public/assets/index-BHNR0Rya.css new file mode 100644 index 0000000..e7daa9f --- /dev/null +++ b/android/app/src/main/assets/public/assets/index-BHNR0Rya.css @@ -0,0 +1,10 @@ +*,*:before,*:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body{margin:0;font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing)}@media screen and (max-device-width: 31.25em){body{-webkit-text-size-adjust:100%}}@media (prefers-reduced-motion: reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root{color-scheme:var(--mantine-color-scheme);--mantine-z-index-app: 100;--mantine-z-index-modal: 200;--mantine-z-index-popover: 300;--mantine-z-index-overlay: 400;--mantine-z-index-max: 9999;--mantine-scale: 1;--mantine-cursor-type: default;--mantine-webkit-font-smoothing: antialiased;--mantine-color-scheme: light dark;--mantine-moz-font-smoothing: grayscale;--mantine-color-white: #fff;--mantine-color-black: #000;--mantine-line-height: 1.55;--mantine-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight: 700;--mantine-radius-default: calc(.25rem * var(--mantine-scale));--mantine-primary-color-0: var(--mantine-color-blue-0);--mantine-primary-color-1: var(--mantine-color-blue-1);--mantine-primary-color-2: var(--mantine-color-blue-2);--mantine-primary-color-3: var(--mantine-color-blue-3);--mantine-primary-color-4: var(--mantine-color-blue-4);--mantine-primary-color-5: var(--mantine-color-blue-5);--mantine-primary-color-6: var(--mantine-color-blue-6);--mantine-primary-color-7: var(--mantine-color-blue-7);--mantine-primary-color-8: var(--mantine-color-blue-8);--mantine-primary-color-9: var(--mantine-color-blue-9);--mantine-primary-color-filled: var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover: var(--mantine-color-blue-filled-hover);--mantine-primary-color-light: var(--mantine-color-blue-light);--mantine-primary-color-light-hover: var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color: var(--mantine-color-blue-light-color);--mantine-breakpoint-xs: 36em;--mantine-breakpoint-sm: 48em;--mantine-breakpoint-md: 62em;--mantine-breakpoint-lg: 75em;--mantine-breakpoint-xl: 88em;--mantine-spacing-xs: calc(.625rem * var(--mantine-scale));--mantine-spacing-sm: calc(.75rem * var(--mantine-scale));--mantine-spacing-md: calc(1rem * var(--mantine-scale));--mantine-spacing-lg: calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl: calc(2rem * var(--mantine-scale));--mantine-font-size-xs: calc(.75rem * var(--mantine-scale));--mantine-font-size-sm: calc(.875rem * var(--mantine-scale));--mantine-font-size-md: calc(1rem * var(--mantine-scale));--mantine-font-size-lg: calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl: calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs: 1.4;--mantine-line-height-sm: 1.45;--mantine-line-height-md: 1.55;--mantine-line-height-lg: 1.6;--mantine-line-height-xl: 1.65;--mantine-shadow-xs: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) rgba(0, 0, 0, .1);--mantine-shadow-sm: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs: calc(.125rem * var(--mantine-scale));--mantine-radius-sm: calc(.25rem * var(--mantine-scale));--mantine-radius-md: calc(.5rem * var(--mantine-scale));--mantine-radius-lg: calc(1rem * var(--mantine-scale));--mantine-radius-xl: calc(2rem * var(--mantine-scale));--mantine-color-dark-0: #c9c9c9;--mantine-color-dark-1: #b8b8b8;--mantine-color-dark-2: #828282;--mantine-color-dark-3: #696969;--mantine-color-dark-4: #424242;--mantine-color-dark-5: #3b3b3b;--mantine-color-dark-6: #2e2e2e;--mantine-color-dark-7: #242424;--mantine-color-dark-8: #1f1f1f;--mantine-color-dark-9: #141414;--mantine-color-gray-0: #f8f9fa;--mantine-color-gray-1: #f1f3f5;--mantine-color-gray-2: #e9ecef;--mantine-color-gray-3: #dee2e6;--mantine-color-gray-4: #ced4da;--mantine-color-gray-5: #adb5bd;--mantine-color-gray-6: #868e96;--mantine-color-gray-7: #495057;--mantine-color-gray-8: #343a40;--mantine-color-gray-9: #212529;--mantine-color-red-0: #fff5f5;--mantine-color-red-1: #ffe3e3;--mantine-color-red-2: #ffc9c9;--mantine-color-red-3: #ffa8a8;--mantine-color-red-4: #ff8787;--mantine-color-red-5: #ff6b6b;--mantine-color-red-6: #fa5252;--mantine-color-red-7: #f03e3e;--mantine-color-red-8: #e03131;--mantine-color-red-9: #c92a2a;--mantine-color-pink-0: #fff0f6;--mantine-color-pink-1: #ffdeeb;--mantine-color-pink-2: #fcc2d7;--mantine-color-pink-3: #faa2c1;--mantine-color-pink-4: #f783ac;--mantine-color-pink-5: #f06595;--mantine-color-pink-6: #e64980;--mantine-color-pink-7: #d6336c;--mantine-color-pink-8: #c2255c;--mantine-color-pink-9: #a61e4d;--mantine-color-grape-0: #f8f0fc;--mantine-color-grape-1: #f3d9fa;--mantine-color-grape-2: #eebefa;--mantine-color-grape-3: #e599f7;--mantine-color-grape-4: #da77f2;--mantine-color-grape-5: #cc5de8;--mantine-color-grape-6: #be4bdb;--mantine-color-grape-7: #ae3ec9;--mantine-color-grape-8: #9c36b5;--mantine-color-grape-9: #862e9c;--mantine-color-violet-0: #f3f0ff;--mantine-color-violet-1: #e5dbff;--mantine-color-violet-2: #d0bfff;--mantine-color-violet-3: #b197fc;--mantine-color-violet-4: #9775fa;--mantine-color-violet-5: #845ef7;--mantine-color-violet-6: #7950f2;--mantine-color-violet-7: #7048e8;--mantine-color-violet-8: #6741d9;--mantine-color-violet-9: #5f3dc4;--mantine-color-indigo-0: #edf2ff;--mantine-color-indigo-1: #dbe4ff;--mantine-color-indigo-2: #bac8ff;--mantine-color-indigo-3: #91a7ff;--mantine-color-indigo-4: #748ffc;--mantine-color-indigo-5: #5c7cfa;--mantine-color-indigo-6: #4c6ef5;--mantine-color-indigo-7: #4263eb;--mantine-color-indigo-8: #3b5bdb;--mantine-color-indigo-9: #364fc7;--mantine-color-blue-0: #e7f5ff;--mantine-color-blue-1: #d0ebff;--mantine-color-blue-2: #a5d8ff;--mantine-color-blue-3: #74c0fc;--mantine-color-blue-4: #4dabf7;--mantine-color-blue-5: #339af0;--mantine-color-blue-6: #228be6;--mantine-color-blue-7: #1c7ed6;--mantine-color-blue-8: #1971c2;--mantine-color-blue-9: #1864ab;--mantine-color-cyan-0: #e3fafc;--mantine-color-cyan-1: #c5f6fa;--mantine-color-cyan-2: #99e9f2;--mantine-color-cyan-3: #66d9e8;--mantine-color-cyan-4: #3bc9db;--mantine-color-cyan-5: #22b8cf;--mantine-color-cyan-6: #15aabf;--mantine-color-cyan-7: #1098ad;--mantine-color-cyan-8: #0c8599;--mantine-color-cyan-9: #0b7285;--mantine-color-teal-0: #e6fcf5;--mantine-color-teal-1: #c3fae8;--mantine-color-teal-2: #96f2d7;--mantine-color-teal-3: #63e6be;--mantine-color-teal-4: #38d9a9;--mantine-color-teal-5: #20c997;--mantine-color-teal-6: #12b886;--mantine-color-teal-7: #0ca678;--mantine-color-teal-8: #099268;--mantine-color-teal-9: #087f5b;--mantine-color-green-0: #ebfbee;--mantine-color-green-1: #d3f9d8;--mantine-color-green-2: #b2f2bb;--mantine-color-green-3: #8ce99a;--mantine-color-green-4: #69db7c;--mantine-color-green-5: #51cf66;--mantine-color-green-6: #40c057;--mantine-color-green-7: #37b24d;--mantine-color-green-8: #2f9e44;--mantine-color-green-9: #2b8a3e;--mantine-color-lime-0: #f4fce3;--mantine-color-lime-1: #e9fac8;--mantine-color-lime-2: #d8f5a2;--mantine-color-lime-3: #c0eb75;--mantine-color-lime-4: #a9e34b;--mantine-color-lime-5: #94d82d;--mantine-color-lime-6: #82c91e;--mantine-color-lime-7: #74b816;--mantine-color-lime-8: #66a80f;--mantine-color-lime-9: #5c940d;--mantine-color-yellow-0: #fff9db;--mantine-color-yellow-1: #fff3bf;--mantine-color-yellow-2: #ffec99;--mantine-color-yellow-3: #ffe066;--mantine-color-yellow-4: #ffd43b;--mantine-color-yellow-5: #fcc419;--mantine-color-yellow-6: #fab005;--mantine-color-yellow-7: #f59f00;--mantine-color-yellow-8: #f08c00;--mantine-color-yellow-9: #e67700;--mantine-color-orange-0: #fff4e6;--mantine-color-orange-1: #ffe8cc;--mantine-color-orange-2: #ffd8a8;--mantine-color-orange-3: #ffc078;--mantine-color-orange-4: #ffa94d;--mantine-color-orange-5: #ff922b;--mantine-color-orange-6: #fd7e14;--mantine-color-orange-7: #f76707;--mantine-color-orange-8: #e8590c;--mantine-color-orange-9: #d9480f;--mantine-h1-font-size: calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height: 1.3;--mantine-h1-font-weight: 700;--mantine-h2-font-size: calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height: 1.35;--mantine-h2-font-weight: 700;--mantine-h3-font-size: calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height: 1.4;--mantine-h3-font-weight: 700;--mantine-h4-font-size: calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height: 1.45;--mantine-h4-font-weight: 700;--mantine-h5-font-size: calc(1rem * var(--mantine-scale));--mantine-h5-line-height: 1.5;--mantine-h5-font-weight: 700;--mantine-h6-font-size: calc(.875rem * var(--mantine-scale));--mantine-h6-line-height: 1.5;--mantine-h6-font-weight: 700}:root[data-mantine-color-scheme=dark]{--mantine-color-scheme: dark;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-white);--mantine-color-text: var(--mantine-color-dark-0);--mantine-color-body: var(--mantine-color-dark-7);--mantine-color-error: var(--mantine-color-red-8);--mantine-color-placeholder: var(--mantine-color-dark-3);--mantine-color-anchor: var(--mantine-color-blue-4);--mantine-color-default: var(--mantine-color-dark-6);--mantine-color-default-hover: var(--mantine-color-dark-5);--mantine-color-default-color: var(--mantine-color-white);--mantine-color-default-border: var(--mantine-color-dark-4);--mantine-color-dimmed: var(--mantine-color-dark-2);--mantine-color-dark-text: var(--mantine-color-dark-4);--mantine-color-dark-filled: var(--mantine-color-dark-8);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(36, 36, 36, .15);--mantine-color-dark-light-hover: rgba(36, 36, 36, .2);--mantine-color-dark-light-color: var(--mantine-color-dark-3);--mantine-color-dark-outline: var(--mantine-color-dark-4);--mantine-color-dark-outline-hover: rgba(36, 36, 36, .05);--mantine-color-gray-text: var(--mantine-color-gray-4);--mantine-color-gray-filled: var(--mantine-color-gray-8);--mantine-color-gray-filled-hover: var(--mantine-color-gray-9);--mantine-color-gray-light: rgba(134, 142, 150, .15);--mantine-color-gray-light-hover: rgba(134, 142, 150, .2);--mantine-color-gray-light-color: var(--mantine-color-gray-3);--mantine-color-gray-outline: var(--mantine-color-gray-4);--mantine-color-gray-outline-hover: rgba(206, 212, 218, .05);--mantine-color-red-text: var(--mantine-color-red-4);--mantine-color-red-filled: var(--mantine-color-red-8);--mantine-color-red-filled-hover: var(--mantine-color-red-9);--mantine-color-red-light: rgba(250, 82, 82, .15);--mantine-color-red-light-hover: rgba(250, 82, 82, .2);--mantine-color-red-light-color: var(--mantine-color-red-3);--mantine-color-red-outline: var(--mantine-color-red-4);--mantine-color-red-outline-hover: rgba(255, 135, 135, .05);--mantine-color-pink-text: var(--mantine-color-pink-4);--mantine-color-pink-filled: var(--mantine-color-pink-8);--mantine-color-pink-filled-hover: var(--mantine-color-pink-9);--mantine-color-pink-light: rgba(230, 73, 128, .15);--mantine-color-pink-light-hover: rgba(230, 73, 128, .2);--mantine-color-pink-light-color: var(--mantine-color-pink-3);--mantine-color-pink-outline: var(--mantine-color-pink-4);--mantine-color-pink-outline-hover: rgba(247, 131, 172, .05);--mantine-color-grape-text: var(--mantine-color-grape-4);--mantine-color-grape-filled: var(--mantine-color-grape-8);--mantine-color-grape-filled-hover: var(--mantine-color-grape-9);--mantine-color-grape-light: rgba(190, 75, 219, .15);--mantine-color-grape-light-hover: rgba(190, 75, 219, .2);--mantine-color-grape-light-color: var(--mantine-color-grape-3);--mantine-color-grape-outline: var(--mantine-color-grape-4);--mantine-color-grape-outline-hover: rgba(218, 119, 242, .05);--mantine-color-violet-text: var(--mantine-color-violet-4);--mantine-color-violet-filled: var(--mantine-color-violet-8);--mantine-color-violet-filled-hover: var(--mantine-color-violet-9);--mantine-color-violet-light: rgba(121, 80, 242, .15);--mantine-color-violet-light-hover: rgba(121, 80, 242, .2);--mantine-color-violet-light-color: var(--mantine-color-violet-3);--mantine-color-violet-outline: var(--mantine-color-violet-4);--mantine-color-violet-outline-hover: rgba(151, 117, 250, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-4);--mantine-color-indigo-filled: var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-9);--mantine-color-indigo-light: rgba(76, 110, 245, .15);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .2);--mantine-color-indigo-light-color: var(--mantine-color-indigo-3);--mantine-color-indigo-outline: var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover: rgba(116, 143, 252, .05);--mantine-color-blue-text: var(--mantine-color-blue-4);--mantine-color-blue-filled: var(--mantine-color-blue-8);--mantine-color-blue-filled-hover: var(--mantine-color-blue-9);--mantine-color-blue-light: rgba(34, 139, 230, .15);--mantine-color-blue-light-hover: rgba(34, 139, 230, .2);--mantine-color-blue-light-color: var(--mantine-color-blue-3);--mantine-color-blue-outline: var(--mantine-color-blue-4);--mantine-color-blue-outline-hover: rgba(77, 171, 247, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-4);--mantine-color-cyan-filled: var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-9);--mantine-color-cyan-light: rgba(21, 170, 191, .15);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .2);--mantine-color-cyan-light-color: var(--mantine-color-cyan-3);--mantine-color-cyan-outline: var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover: rgba(59, 201, 219, .05);--mantine-color-teal-text: var(--mantine-color-teal-4);--mantine-color-teal-filled: var(--mantine-color-teal-8);--mantine-color-teal-filled-hover: var(--mantine-color-teal-9);--mantine-color-teal-light: rgba(18, 184, 134, .15);--mantine-color-teal-light-hover: rgba(18, 184, 134, .2);--mantine-color-teal-light-color: var(--mantine-color-teal-3);--mantine-color-teal-outline: var(--mantine-color-teal-4);--mantine-color-teal-outline-hover: rgba(56, 217, 169, .05);--mantine-color-green-text: var(--mantine-color-green-4);--mantine-color-green-filled: var(--mantine-color-green-8);--mantine-color-green-filled-hover: var(--mantine-color-green-9);--mantine-color-green-light: rgba(64, 192, 87, .15);--mantine-color-green-light-hover: rgba(64, 192, 87, .2);--mantine-color-green-light-color: var(--mantine-color-green-3);--mantine-color-green-outline: var(--mantine-color-green-4);--mantine-color-green-outline-hover: rgba(105, 219, 124, .05);--mantine-color-lime-text: var(--mantine-color-lime-4);--mantine-color-lime-filled: var(--mantine-color-lime-8);--mantine-color-lime-filled-hover: var(--mantine-color-lime-9);--mantine-color-lime-light: rgba(130, 201, 30, .15);--mantine-color-lime-light-hover: rgba(130, 201, 30, .2);--mantine-color-lime-light-color: var(--mantine-color-lime-3);--mantine-color-lime-outline: var(--mantine-color-lime-4);--mantine-color-lime-outline-hover: rgba(169, 227, 75, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-4);--mantine-color-yellow-filled: var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-9);--mantine-color-yellow-light: rgba(250, 176, 5, .15);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .2);--mantine-color-yellow-light-color: var(--mantine-color-yellow-3);--mantine-color-yellow-outline: var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover: rgba(255, 212, 59, .05);--mantine-color-orange-text: var(--mantine-color-orange-4);--mantine-color-orange-filled: var(--mantine-color-orange-8);--mantine-color-orange-filled-hover: var(--mantine-color-orange-9);--mantine-color-orange-light: rgba(253, 126, 20, .15);--mantine-color-orange-light-hover: rgba(253, 126, 20, .2);--mantine-color-orange-light-color: var(--mantine-color-orange-3);--mantine-color-orange-outline: var(--mantine-color-orange-4);--mantine-color-orange-outline-hover: rgba(255, 169, 77, .05)}:root[data-mantine-color-scheme=light]{--mantine-color-scheme: light;--mantine-color-bright: var(--mantine-color-black);--mantine-color-text: var(--mantine-color-black);--mantine-color-body: var(--mantine-color-white);--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-error: var(--mantine-color-red-6);--mantine-color-placeholder: var(--mantine-color-gray-5);--mantine-color-anchor: var(--mantine-primary-color-filled);--mantine-color-default: var(--mantine-color-white);--mantine-color-default-hover: var(--mantine-color-gray-0);--mantine-color-default-color: var(--mantine-color-gray-9);--mantine-color-default-border: var(--mantine-color-gray-4);--mantine-color-dimmed: var(--mantine-color-gray-6);--mantine-color-dark-text: var(--mantine-color-dark-filled);--mantine-color-dark-filled: var(--mantine-color-dark-6);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(56, 56, 56, .1);--mantine-color-dark-light-hover: rgba(56, 56, 56, .12);--mantine-color-dark-light-color: var(--mantine-color-dark-6);--mantine-color-dark-outline: var(--mantine-color-dark-6);--mantine-color-dark-outline-hover: rgba(56, 56, 56, .05);--mantine-color-gray-text: var(--mantine-color-gray-filled);--mantine-color-gray-filled: var(--mantine-color-gray-6);--mantine-color-gray-filled-hover: var(--mantine-color-gray-7);--mantine-color-gray-light: rgba(134, 142, 150, .1);--mantine-color-gray-light-hover: rgba(134, 142, 150, .12);--mantine-color-gray-light-color: var(--mantine-color-gray-6);--mantine-color-gray-outline: var(--mantine-color-gray-6);--mantine-color-gray-outline-hover: rgba(134, 142, 150, .05);--mantine-color-red-text: var(--mantine-color-red-filled);--mantine-color-red-filled: var(--mantine-color-red-6);--mantine-color-red-filled-hover: var(--mantine-color-red-7);--mantine-color-red-light: rgba(250, 82, 82, .1);--mantine-color-red-light-hover: rgba(250, 82, 82, .12);--mantine-color-red-light-color: var(--mantine-color-red-6);--mantine-color-red-outline: var(--mantine-color-red-6);--mantine-color-red-outline-hover: rgba(250, 82, 82, .05);--mantine-color-pink-text: var(--mantine-color-pink-filled);--mantine-color-pink-filled: var(--mantine-color-pink-6);--mantine-color-pink-filled-hover: var(--mantine-color-pink-7);--mantine-color-pink-light: rgba(230, 73, 128, .1);--mantine-color-pink-light-hover: rgba(230, 73, 128, .12);--mantine-color-pink-light-color: var(--mantine-color-pink-6);--mantine-color-pink-outline: var(--mantine-color-pink-6);--mantine-color-pink-outline-hover: rgba(230, 73, 128, .05);--mantine-color-grape-text: var(--mantine-color-grape-filled);--mantine-color-grape-filled: var(--mantine-color-grape-6);--mantine-color-grape-filled-hover: var(--mantine-color-grape-7);--mantine-color-grape-light: rgba(190, 75, 219, .1);--mantine-color-grape-light-hover: rgba(190, 75, 219, .12);--mantine-color-grape-light-color: var(--mantine-color-grape-6);--mantine-color-grape-outline: var(--mantine-color-grape-6);--mantine-color-grape-outline-hover: rgba(190, 75, 219, .05);--mantine-color-violet-text: var(--mantine-color-violet-filled);--mantine-color-violet-filled: var(--mantine-color-violet-6);--mantine-color-violet-filled-hover: var(--mantine-color-violet-7);--mantine-color-violet-light: rgba(121, 80, 242, .1);--mantine-color-violet-light-hover: rgba(121, 80, 242, .12);--mantine-color-violet-light-color: var(--mantine-color-violet-6);--mantine-color-violet-outline: var(--mantine-color-violet-6);--mantine-color-violet-outline-hover: rgba(121, 80, 242, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-filled);--mantine-color-indigo-filled: var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-7);--mantine-color-indigo-light: rgba(76, 110, 245, .1);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .12);--mantine-color-indigo-light-color: var(--mantine-color-indigo-6);--mantine-color-indigo-outline: var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover: rgba(76, 110, 245, .05);--mantine-color-blue-text: var(--mantine-color-blue-filled);--mantine-color-blue-filled: var(--mantine-color-blue-6);--mantine-color-blue-filled-hover: var(--mantine-color-blue-7);--mantine-color-blue-light: rgba(34, 139, 230, .1);--mantine-color-blue-light-hover: rgba(34, 139, 230, .12);--mantine-color-blue-light-color: var(--mantine-color-blue-6);--mantine-color-blue-outline: var(--mantine-color-blue-6);--mantine-color-blue-outline-hover: rgba(34, 139, 230, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-filled);--mantine-color-cyan-filled: var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-7);--mantine-color-cyan-light: rgba(21, 170, 191, .1);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .12);--mantine-color-cyan-light-color: var(--mantine-color-cyan-6);--mantine-color-cyan-outline: var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover: rgba(21, 170, 191, .05);--mantine-color-teal-text: var(--mantine-color-teal-filled);--mantine-color-teal-filled: var(--mantine-color-teal-6);--mantine-color-teal-filled-hover: var(--mantine-color-teal-7);--mantine-color-teal-light: rgba(18, 184, 134, .1);--mantine-color-teal-light-hover: rgba(18, 184, 134, .12);--mantine-color-teal-light-color: var(--mantine-color-teal-6);--mantine-color-teal-outline: var(--mantine-color-teal-6);--mantine-color-teal-outline-hover: rgba(18, 184, 134, .05);--mantine-color-green-text: var(--mantine-color-green-filled);--mantine-color-green-filled: var(--mantine-color-green-6);--mantine-color-green-filled-hover: var(--mantine-color-green-7);--mantine-color-green-light: rgba(64, 192, 87, .1);--mantine-color-green-light-hover: rgba(64, 192, 87, .12);--mantine-color-green-light-color: var(--mantine-color-green-6);--mantine-color-green-outline: var(--mantine-color-green-6);--mantine-color-green-outline-hover: rgba(64, 192, 87, .05);--mantine-color-lime-text: var(--mantine-color-lime-filled);--mantine-color-lime-filled: var(--mantine-color-lime-6);--mantine-color-lime-filled-hover: var(--mantine-color-lime-7);--mantine-color-lime-light: rgba(130, 201, 30, .1);--mantine-color-lime-light-hover: rgba(130, 201, 30, .12);--mantine-color-lime-light-color: var(--mantine-color-lime-6);--mantine-color-lime-outline: var(--mantine-color-lime-6);--mantine-color-lime-outline-hover: rgba(130, 201, 30, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-filled);--mantine-color-yellow-filled: var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-7);--mantine-color-yellow-light: rgba(250, 176, 5, .1);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .12);--mantine-color-yellow-light-color: var(--mantine-color-yellow-6);--mantine-color-yellow-outline: var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover: rgba(250, 176, 5, .05);--mantine-color-orange-text: var(--mantine-color-orange-filled);--mantine-color-orange-filled: var(--mantine-color-orange-6);--mantine-color-orange-filled-hover: var(--mantine-color-orange-7);--mantine-color-orange-light: rgba(253, 126, 20, .1);--mantine-color-orange-light-hover: rgba(253, 126, 20, .12);--mantine-color-orange-light-color: var(--mantine-color-orange-6);--mantine-color-orange-outline: var(--mantine-color-orange-6);--mantine-color-orange-outline-hover: rgba(253, 126, 20, .05)}.m_d57069b5{--scrollarea-scrollbar-size: calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_c0783ff9{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y]){padding-inline-end:var(--scrollarea-scrollbar-size);padding-inline-start:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{-webkit-user-select:none;user-select:none;touch-action:none;box-sizing:border-box;transition:background-color .15s ease,opacity .15s ease;padding:calc(var(--scrollarea-scrollbar-size) / 5);display:flex;background-color:transparent;flex-direction:row}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);flex-direction:column;bottom:0;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_d8b5e363{flex:1;border-radius:var(--scrollarea-scrollbar-size);position:relative;transition:background-color .15s ease;overflow:hidden}.m_d8b5e363:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{position:absolute;opacity:0;transition:opacity .15s ease;display:block;inset-inline-end:0;bottom:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_515a97f8{border:0;clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));overflow:hidden;padding:0;position:absolute;white-space:nowrap}.m_1b7284a3{--paper-radius: var(--mantine-radius-default);outline:0;-webkit-tap-highlight-color:transparent;display:block;touch-action:manipulation;text-decoration:none;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body)}:where([data-mantine-color-scheme=light]) .m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--mantine-color-dark-4)}.m_38a85659{position:absolute;border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow, none);border-radius:var(--popover-radius, var(--mantine-radius-default))}.m_38a85659:where([data-fixed]){position:fixed}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color: var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color: var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_5ae2e3c{--loader-size-xs: calc(1.125rem * var(--mantine-scale));--loader-size-sm: calc(1.375rem * var(--mantine-scale));--loader-size-md: calc(2.25rem * var(--mantine-scale));--loader-size-lg: calc(2.75rem * var(--mantine-scale));--loader-size-xl: calc(3.625rem * var(--mantine-scale));--loader-size: var(--loader-size-md);--loader-color: var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{transform:scale(.6);opacity:0}50%,to{transform:scale(1)}}.m_7a2bd4cd{position:relative;width:var(--loader-size);height:var(--loader-size);display:flex;gap:calc(var(--loader-size) / 5)}.m_870bb79{flex:1;background:var(--loader-color);animation:m_5d2b3b9d 1.2s cubic-bezier(0,.5,.5,1) infinite;border-radius:calc(.125rem * var(--mantine-scale))}.m_870bb79:nth-of-type(1){animation-delay:-.24s}.m_870bb79:nth-of-type(2){animation-delay:-.12s}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.5}}.m_4e3f22d7{display:flex;justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);position:relative;width:var(--loader-size);height:var(--loader-size)}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);border-radius:50%;background:var(--loader-color);animation:m_aac34a1 .8s infinite linear}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{display:inline-block;width:var(--loader-size);height:var(--loader-size)}.m_b34414df:after{content:"";display:block;width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:m_f8e89c4b 1.2s linear infinite}.m_8d3f4000{--ai-size-xs: calc(1.125rem * var(--mantine-scale));--ai-size-sm: calc(1.375rem * var(--mantine-scale));--ai-size-md: calc(1.75rem * var(--mantine-scale));--ai-size-lg: calc(2.125rem * var(--mantine-scale));--ai-size-xl: calc(2.75rem * var(--mantine-scale));--ai-size-input-xs: calc(1.875rem * var(--mantine-scale));--ai-size-input-sm: calc(2.25rem * var(--mantine-scale));--ai-size-input-md: calc(2.625rem * var(--mantine-scale));--ai-size-input-lg: calc(3.125rem * var(--mantine-scale));--ai-size-input-xl: calc(3.75rem * var(--mantine-scale));--ai-size: var(--ai-size-md);--ai-color: var(--mantine-color-white);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;overflow:hidden;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius, var(--mantine-radius-default));background:var(--ai-bg, var(--mantine-primary-color-filled));color:var(--ai-color, var(--mantine-color-white));border:var(--ai-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer}@media (hover: hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}@media (hover: none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){background-color:var(--mantine-color-gray-1);color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) .m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){background-color:var(--mantine-color-dark-6);color:var(--mantine-color-dark-3)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));position:absolute;border-radius:var(--ai-radius, var(--mantine-radius-default));display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{position:relative;z-index:1}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2)}.m_8d3afb97{display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .1s ease;width:100%;height:100%}.m_86a44da5{--cb-size-xs: calc(1.125rem * var(--mantine-scale));--cb-size-sm: calc(1.375rem * var(--mantine-scale));--cb-size-md: calc(1.75rem * var(--mantine-scale));--cb-size-lg: calc(2.125rem * var(--mantine-scale));--cb-size-xl: calc(2.75rem * var(--mantine-scale));--cb-size: var(--cb-size-md);--cb-icon-size: 70%;--cb-radius: var(--mantine-radius-default);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius)}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{display:flex;flex-direction:row;flex-wrap:var(--group-wrap, wrap);justify-content:var(--group-justify, flex-start);align-items:var(--group-align, center);gap:var(--group-gap, var(--mantine-spacing-md))}.m_4081bf90:where([data-grow])>*{flex-grow:1;max-width:var(--group-child-width)}.m_9814e45f{top:0;right:0;bottom:0;left:0;position:absolute;background:var(--overlay-bg, rgba(0, 0, 0, .6));backdrop-filter:var(--overlay-filter);-webkit-backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius, 0);z-index:var(--overlay-z-index)}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){display:flex;align-items:center;justify-content:center}.m_615af6c9{line-height:1;padding:0;margin:0;font-weight:400;font-size:var(--mantine-font-size-md)}.m_b5489c3c{display:flex;justify-content:space-between;align-items:center;padding:var(--mb-padding, var(--mantine-spacing-md));padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));position:sticky;top:0;background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale));transition:padding-inline-end .1s}.m_60c222c7{position:fixed;width:100%;top:0;bottom:0;z-index:var(--mb-z-index);pointer-events:none}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow, var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}.m_fd1ab0aa:has([data-mantine-scrollbar][data-state=visible]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(.3125rem * var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding, var(--mantine-spacing-md));padding-top:var(--mb-padding, var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{position:relative;margin-top:var(--input-margin-top, 0rem);margin-bottom:var(--input-margin-bottom, 0rem);--input-height-xs: calc(1.875rem * var(--mantine-scale));--input-height-sm: calc(2.25rem * var(--mantine-scale));--input-height-md: calc(2.625rem * var(--mantine-scale));--input-height-lg: calc(3.125rem * var(--mantine-scale));--input-height-xl: calc(3.75rem * var(--mantine-scale));--input-padding-y-xs: calc(.3125rem * var(--mantine-scale));--input-padding-y-sm: calc(.375rem * var(--mantine-scale));--input-padding-y-md: calc(.5rem * var(--mantine-scale));--input-padding-y-lg: calc(.625rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-height: var(--input-height-sm);--input-radius: var(--mantine-radius-default);--input-cursor: text;--input-text-align: left;--input-line-height: calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding: calc(var(--input-height) / 3);--input-padding-inline-start: var(--input-padding);--input-padding-inline-end: var(--input-padding);--input-placeholder-color: var(--mantine-color-placeholder);--input-color: var(--mantine-color-text);--input-left-section-size: var(--input-left-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size: var( --input-right-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))) );--input-size: var(--input-height);--section-y: calc(.0625rem * var(--mantine-scale));--left-section-start: calc(.0625rem * var(--mantine-scale));--left-section-border-radius: var(--input-radius) 0 0 var(--input-radius);--right-section-end: calc(.0625rem * var(--mantine-scale));--right-section-border-radius: 0 var(--input-radius) var(--input-radius) 0}.m_6c018570[data-variant=unstyled]{--input-padding: 0;--input-padding-y: 0;--input-padding-inline-start: 0;--input-padding-inline-end: 0}.m_6c018570[data-pointer]{--input-cursor: pointer}.m_6c018570[data-multiline]{--input-padding-y-xs: calc(.28125rem * var(--mantine-scale));--input-padding-y-sm: calc(.34375rem * var(--mantine-scale));--input-padding-y-md: calc(.4375rem * var(--mantine-scale));--input-padding-y-lg: calc(.59375rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-size: auto;--input-line-height: var(--mantine-line-height);--input-padding-y: var(--input-padding-y-sm)}.m_6c018570[data-with-left-section]{--input-padding-inline-start: var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end: var(--input-right-section-size)}[data-mantine-color-scheme=light] .m_6c018570{--input-disabled-bg: var(--mantine-color-gray-1);--input-disabled-color: var(--mantine-color-gray-6)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-gray-4);--input-bg: var(--mantine-color-white);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-gray-1);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme=dark] .m_6c018570{--input-disabled-bg: var(--mantine-color-dark-6);--input-disabled-color: var(--mantine-color-dark-2)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-dark-4);--input-bg: var(--mantine-color-dark-6);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-dark-5);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd: var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color: var(--mantine-color-error);--input-placeholder-color: var(--mantine-color-error);--input-section-color: var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align: right;--left-section-border-radius: 0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius: var(--input-radius) 0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;resize:var(--input-resize, none);display:block;width:100%;transition:border-color .1s ease;text-align:var(--input-text-align);color:var(--input-color);border:calc(.0625rem * var(--mantine-scale)) solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family, var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--input-fz, var(--input-fz, var(--mantine-font-size-sm)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y, 0rem);padding-bottom:var(--input-padding-y, 0rem);cursor:var(--input-cursor);overflow:var(--input-overflow)}.m_8fb7ebe7[data-no-overflow]{--input-overflow: hidden}.m_8fb7ebe7[data-monospace]{--input-font-family: var(--mantine-font-family-monospace);--input-fz: calc(var(--input-fz, var(--mantine-font-size-sm)) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{outline:none;--input-bd: var(--input-bd-focus)}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd: var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_82577fc2{pointer-events:var(--section-pointer-events);position:absolute;z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);display:flex;align-items:center;justify-content:center;width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color, var(--mantine-color-dimmed))}.m_82577fc2[data-position=right]{--section-pointer-events: var(--input-right-section-pointer-events);--section-end: var(--right-section-end);--section-size: var(--input-right-section-size);--section-border-radius: var(--right-section-border-radius)}.m_82577fc2[data-position=left]{--section-pointer-events: var(--input-left-section-pointer-events);--section-start: var(--left-section-start);--section-size: var(--input-left-section-size);--section-border-radius: var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color, var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color: var(--input-color, var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{display:inline-block;font-weight:500;word-break:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size, var(--mantine-font-size-sm))}.m_78a94662{color:var(--input-asterisk-color, var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;line-height:1.2;display:block;margin:0;padding:0}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration: .15s;top:0;left:0;position:absolute;z-index:0;transition-property:transform,width,height;transition-timing-function:ease;transition-duration:0ms}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){background-color:red;display:none}.m_9bdbb667{--accordion-radius: var(--mantine-radius-default)}.m_df78851f{word-break:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{margin:0;padding:0}.m_4ba585b8{width:100%;display:flex;align-items:center;flex-direction:row-reverse;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;background-color:transparent}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}:where([data-mantine-color-scheme=light]) .m_4ba585b8{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_4ba585b8{color:var(--mantine-color-dark-0)}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm)}.m_3f35ae96{display:flex;align-items:center;justify-content:flex-start;transition:transform var(--accordion-transition-duration, .2s) ease;width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-end:var(--mantine-spacing-md);margin-inline-start:var(--mantine-spacing-md)}.m_9bd771fe{display:flex;align-items:center;justify-content:center;margin-inline-end:var(--mantine-spacing-sm)}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-end:0;margin-inline-start:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color: var(--mantine-color-gray-3);--item-filled-color: var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color: var(--mantine-color-dark-4);--item-filled-color: var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s ease}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s ease}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{position:fixed;z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom)}.m_66836ed3{--alert-radius: var(--mantine-radius-default);--alert-bg: var(--mantine-primary-color-light);--alert-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color: var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);position:relative;overflow:hidden;background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color)}.m_a5d60502{display:flex}.m_667c2793{flex:1;display:flex;flex-direction:column;gap:var(--mantine-spacing-xs)}.m_6a03f287{display:flex;align-items:center;justify-content:space-between;font-size:var(--mantine-font-size-sm);font-weight:700}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{display:block;overflow:hidden;text-overflow:ellipsis}.m_667f2a6a{line-height:1;width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));display:flex;align-items:center;justify-content:flex-start;margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale))}.m_7fa78076{text-overflow:ellipsis;overflow:hidden;font-size:var(--mantine-font-size-sm)}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;text-decoration:none;font-size:var(--text-fz, var(--mantine-font-size-md));line-height:var(--text-lh, var(--mantine-line-height-md));font-weight:400;margin:0;padding:0;color:var(--text-color)}.m_b6d8b162:where([data-truncate]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m_b6d8b162:where([data-truncate=start]){direction:rtl;text-align:right}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){direction:ltr;text-align:left}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.m_b6d8b162:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;display:inline;padding:0;margin:0;background-color:transparent;cursor:pointer}@media (hover: hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media (hover: none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}.m_48204f9b{width:var(--slider-size);height:var(--slider-size);position:relative;border-radius:100%;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}.m_48204f9b:focus-within{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_48204f9b{--slider-size: calc(3.75rem * var(--mantine-scale));--thumb-size: calc(var(--slider-size) / 5)}:where([data-mantine-color-scheme=light]) .m_48204f9b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_48204f9b{background-color:var(--mantine-color-dark-5)}.m_bb9cdbad{position:absolute;inset:calc(.0625rem * var(--mantine-scale));border-radius:var(--slider-size);pointer-events:none}.m_481dd586{width:calc(.125rem * var(--mantine-scale));position:absolute;top:0;bottom:0;left:calc(50% - 1px);transform:rotate(var(--angle))}.m_481dd586:before{content:"";position:absolute;top:calc(var(--thumb-size) / 3);left:calc(.03125rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));height:calc(var(--thumb-size) / 1.5);transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_481dd586:before{background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_481dd586:before{background-color:var(--mantine-color-dark-3)}.m_481dd586[data-label]:after{min-width:calc(1.125rem * var(--mantine-scale));text-align:center;content:attr(data-label);position:absolute;top:calc(-1.5rem * var(--mantine-scale));left:calc(-.4375rem * var(--mantine-scale));transform:rotate(calc(360deg - var(--angle)));font-size:var(--mantine-font-size-xs)}.m_bc02ba3d{position:absolute;top:0;right:0;bottom:0;left:calc(50% - 1.5px);height:100%;width:calc(.1875rem * var(--mantine-scale));outline:none;pointer-events:none}.m_bc02ba3d:before{content:"";position:absolute;right:0;top:0;height:min(var(--thumb-size),calc(var(--slider-size) / 2));width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_bc02ba3d:before{background-color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_bc02ba3d:before{background-color:var(--mantine-color-dark-1)}.m_bb8e875b{font-size:var(--mantine-font-size-xs)}.m_89ab340[data-resizing]{--app-shell-transition-duration: 0ms !important}.m_89ab340[data-disabled]{--app-shell-header-offset: 0rem !important;--app-shell-navbar-offset: 0rem !important}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color: var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{position:fixed;display:flex;flex-direction:column;top:var(--app-shell-header-offset, 0rem);height:calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));background-color:var(--mantine-color-body);transition-property:transform,top,height}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{top:0rem;height:100dvh}.m_45252eee{inset-inline-start:0;width:var(--app-shell-navbar-width);transition-property:transform,top,height;transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{inset-inline-end:0;width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}.m_3b16f56b,.m_3840c879{position:fixed;inset-inline:0;transition-property:transform,left,right;background-color:var(--mantine-color-body)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{inset-inline-start:var(--app-shell-navbar-offset, 0rem);inset-inline-end:var(--app-shell-aside-offset, 0rem)}.m_3b16f56b{top:0;height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{bottom:0;height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio: 1;max-width:100%}.m_71ac47fc>:where(*:not(style)){aspect-ratio:var(--ar-ratio);width:100%}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding: calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41:has([data-mantine-scrollbar]){padding-inline-end:0}.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8{max-width:calc(100% + var(--combobox-padding))}.m_88b62a41[data-hidden]{display:none}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs: calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm: calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md: calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg: calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl: calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding: var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);background-color:transparent;color:inherit;cursor:pointer;word-break:break-word}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;border-inline-width:0;border-end-start-radius:0;border-end-end-radius:0;margin-bottom:var(--combobox-padding);position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border:0 solid transparent;margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding)}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:500;position:relative;display:flex;align-items:center}.m_2bb2e9e5:after{content:"";flex:1;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));margin-inline-start:var(--mantine-spacing-xs)}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs: calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));--combobox-chevron-size: var(--combobox-chevron-size-sm);width:var(--combobox-chevron-size);height:var(--combobox-chevron-size)}:where([data-mantine-color-scheme=light]) .m_2943220b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_2943220b{color:var(--mantine-color-dark-3)}.m_2943220b:where([data-error]){color:var(--mantine-color-error)}.m_390b5f4{display:flex;align-items:center;gap:calc(.5rem * var(--mantine-scale))}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_5f75b09e{--label-lh-xs: calc(1rem * var(--mantine-scale));--label-lh-sm: calc(1.25rem * var(--mantine-scale));--label-lh-md: calc(1.5rem * var(--mantine-scale));--label-lh-lg: calc(1.875rem * var(--mantine-scale));--label-lh-xl: calc(2.25rem * var(--mantine-scale));--label-lh: var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order: 1;--label-offset-end: var(--mantine-spacing-sm);--label-offset-start: 0}.m_5f75b09e[data-label-position=right]{--label-order: 2;--label-offset-end: 0;--label-offset-start: var(--mantine-spacing-sm)}.m_5f6e695e{display:flex}.m_d3ea56bb{--label-cursor: var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:inline-flex;flex-direction:column;font-size:var(--label-fz, var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);order:var(--label-order)}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor: not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_8ee546b8,:where([data-mantine-color-scheme=light]) .m_8ee546b8:where([data-disabled]){color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_8ee546b8,:where([data-mantine-color-scheme=dark]) .m_8ee546b8:where([data-disabled]){color:var(--mantine-color-dark-3)}.m_328f68c0,.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_26775b0a{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_26775b0a :where(*){cursor:inherit}.m_26775b0a:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_5e5256ee{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled);--checkbox-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);min-width:var(--checkbox-size);height:var(--checkbox-size);min-height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_5e5256ee{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_5e5256ee[data-indeterminate],.m_5e5256ee[data-checked]{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_5e5256ee[data-indeterminate]>.m_1b1c543a,.m_5e5256ee[data-checked]>.m_1b1c543a{opacity:1;transform:none;color:var(--checkbox-icon-color)}.m_5e5256ee[data-disabled]{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_5e5256ee[data-disabled]{background-color:var(--mantine-color-gray-2);border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee[data-disabled]{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-6)}[data-mantine-color-scheme=light] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-dark-3)}.m_76e20374[data-indeterminate]:not([data-disabled]),.m_76e20374[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--checkbox-color)}.m_76e20374[data-indeterminate]:not([data-disabled])>.m_1b1c543a,.m_76e20374[data-checked]:not([data-disabled])>.m_1b1c543a{color:var(--checkbox-color);opacity:1;transform:none}.m_1b1c543a{display:block;width:60%;color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_bf2d988c{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled);--checkbox-icon-color: var(--mantine-color-white)}.m_26062bec{position:relative;width:var(--checkbox-size);height:var(--checkbox-size);order:1}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));padding:0;display:block;margin:0;transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_26063560:disabled{background-color:var(--mantine-color-gray-2);border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26063560:disabled{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-6)}[data-mantine-color-scheme=light] .m_26063560:disabled+.m_bf295423{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_26063560:disabled+.m_bf295423{color:var(--mantine-color-dark-3)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){background-color:transparent;border-color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-color);opacity:1;transform:none}.m_bf295423{position:absolute;top:0;right:0;bottom:0;left:0;width:60%;margin:auto;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;transition:transform .1s ease,opacity .1s ease}.m_11def92b{--ag-spacing: var(--mantine-spacing-sm);--ag-offset: calc(var(--ag-spacing) * -1);display:flex;padding-inline-start:var(--ag-spacing)}.m_f85678b6{--avatar-size-xs: calc(1rem * var(--mantine-scale));--avatar-size-sm: calc(1.625rem * var(--mantine-scale));--avatar-size-md: calc(2.375rem * var(--mantine-scale));--avatar-size-lg: calc(3.5rem * var(--mantine-scale));--avatar-size-xl: calc(5.25rem * var(--mantine-scale));--avatar-size: var(--avatar-size-md);--avatar-radius: calc(62.5rem * var(--mantine-scale));--avatar-bg: var(--mantine-color-gray-light);--avatar-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color: var(--mantine-color-gray-light-color);--avatar-placeholder-fz: calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;position:relative;display:block;-webkit-user-select:none;user-select:none;overflow:hidden;border-radius:var(--avatar-radius);text-decoration:none;padding:0;width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size)}.m_f85678b6:where([data-within-group]){margin-inline-start:var(--ag-offset);border:2px solid var(--mantine-color-body);background:var(--mantine-color-body)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:700;display:flex;align-items:center;justify-content:center;width:100%;height:100%;-webkit-user-select:none;user-select:none;border-radius:var(--avatar-radius);font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color)}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{background-size:cover;background-position:center;display:block;width:100%;border:0;text-decoration:none;border-radius:var(--bi-radius, 0)}.m_347db0ec{--badge-height-xs: calc(1rem * var(--mantine-scale));--badge-height-sm: calc(1.125rem * var(--mantine-scale));--badge-height-md: calc(1.25rem * var(--mantine-scale));--badge-height-lg: calc(1.625rem * var(--mantine-scale));--badge-height-xl: calc(2rem * var(--mantine-scale));--badge-fz-xs: calc(.5625rem * var(--mantine-scale));--badge-fz-sm: calc(.625rem * var(--mantine-scale));--badge-fz-md: calc(.6875rem * var(--mantine-scale));--badge-fz-lg: calc(.8125rem * var(--mantine-scale));--badge-fz-xl: calc(1rem * var(--mantine-scale));--badge-padding-x-xs: calc(.375rem * var(--mantine-scale));--badge-padding-x-sm: calc(.5rem * var(--mantine-scale));--badge-padding-x-md: calc(.625rem * var(--mantine-scale));--badge-padding-x-lg: calc(.75rem * var(--mantine-scale));--badge-padding-x-xl: calc(1rem * var(--mantine-scale));--badge-height: var(--badge-height-md);--badge-fz: var(--badge-fz-md);--badge-padding-x: var(--badge-padding-x-md);--badge-radius: calc(62.5rem * var(--mantine-scale));--badge-lh: calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color: var(--mantine-color-white);--badge-bg: var(--mantine-primary-color-filled);--badge-border-width: calc(.0625rem * var(--mantine-scale));--badge-bd: var(--badge-border-width) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);text-decoration:none;padding:0 var(--badge-padding-x);display:inline-grid;align-items:center;justify-content:center;width:fit-content;text-transform:uppercase;font-weight:700;letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:default;text-overflow:ellipsis;overflow:hidden;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd)}.m_347db0ec:where([data-with-left-section],[data-variant=dot]){grid-template-columns:auto 1fr}.m_347db0ec:where([data-with-right-section]){grid-template-columns:1fr auto}.m_347db0ec:where([data-with-left-section][data-with-right-section],[data-variant=dot][data-with-right-section]){grid-template-columns:auto 1fr auto}.m_347db0ec:where([data-block]){display:flex;width:100%}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));display:flex;width:var(--badge-height)}.m_fbd81e3d{--badge-dot-size: calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";display:block;width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size)}.m_5add502a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;cursor:inherit}.m_91fdda9b{--badge-section-margin: calc(var(--mantine-spacing-xs) / 2);display:inline-flex;justify-content:center;align-items:center;max-height:calc(var(--badge-height) - var(--badge-border-width) * 2)}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border: 3px solid var(--bq-bd);position:relative;margin:0;border-inline-start:var(--blockquote-border);border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);position:absolute;color:var(--bq-bd);background-color:var(--mantine-color-body);display:flex;align-items:center;justify-content:center;top:var(--blockquote-icon-offset);inset-inline-start:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size)}.m_dde51a35{display:block;margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%}.m_8b3717df{display:flex;align-items:center;flex-wrap:wrap}.m_f678d540{line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent}.m_3b8f2208{margin-inline:var(--bc-separator-margin, var(--mantine-spacing-xs));line-height:1;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs: calc(.75rem * var(--mantine-scale));--burger-size-sm: calc(1.125rem * var(--mantine-scale));--burger-size-md: calc(1.5rem * var(--mantine-scale));--burger-size-lg: calc(2.125rem * var(--mantine-scale));--burger-size-xl: calc(2.625rem * var(--mantine-scale));--burger-size: var(--burger-size-md);--burger-line-size: calc(var(--burger-size) / 12);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color: var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color: var(--mantine-color-white)}.m_d4fb9cad{position:relative;-webkit-user-select:none;user-select:none}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{display:block;width:var(--burger-size);height:var(--burger-line-size);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration, .3s);transition-timing-function:var(--burger-transition-timing-function, ease)}.m_d4fb9cad:before,.m_d4fb9cad:after{position:absolute;content:"";inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:transparent}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs: calc(1.875rem * var(--mantine-scale));--button-height-sm: calc(2.25rem * var(--mantine-scale));--button-height-md: calc(2.625rem * var(--mantine-scale));--button-height-lg: calc(3.125rem * var(--mantine-scale));--button-height-xl: calc(3.75rem * var(--mantine-scale));--button-height-compact-xs: calc(1.375rem * var(--mantine-scale));--button-height-compact-sm: calc(1.625rem * var(--mantine-scale));--button-height-compact-md: calc(1.875rem * var(--mantine-scale));--button-height-compact-lg: calc(2.125rem * var(--mantine-scale));--button-height-compact-xl: calc(2.5rem * var(--mantine-scale));--button-padding-x-xs: calc(.875rem * var(--mantine-scale));--button-padding-x-sm: calc(1.125rem * var(--mantine-scale));--button-padding-x-md: calc(1.375rem * var(--mantine-scale));--button-padding-x-lg: calc(1.625rem * var(--mantine-scale));--button-padding-x-xl: calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);-webkit-user-select:none;user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;transform:none}:where([data-mantine-color-scheme=light]) .m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){color:var(--mantine-color-gray-5);background:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){color:var(--mantine-color-dark-3);background:var(--mantine-color-dark-6)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media (hover: hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media (hover: none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_e615b15f{--card-padding: var(--mantine-spacing-md);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:var(--card-padding);color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{display:block;margin-inline:calc(var(--card-padding) * -1)}.m_599a2148:where(:first-child){margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where(:last-child){margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-inherit-padding]){padding-inline:var(--card-padding)}.m_599a2148:where([data-with-border]){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-bottom:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_599a2148{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{border-color:var(--mantine-color-dark-4)}.m_599a2148+.m_599a2148{border-top:none!important}.m_4451eb3a{display:flex;align-items:center;justify-content:center}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs: calc(1.4375rem * var(--mantine-scale));--chip-size-sm: calc(1.75rem * var(--mantine-scale));--chip-size-md: calc(2rem * var(--mantine-scale));--chip-size-lg: calc(2.25rem * var(--mantine-scale));--chip-size-xl: calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs: calc(.625rem * var(--mantine-scale));--chip-icon-size-sm: calc(.75rem * var(--mantine-scale));--chip-icon-size-md: calc(.875rem * var(--mantine-scale));--chip-icon-size-lg: calc(1rem * var(--mantine-scale));--chip-icon-size-xl: calc(1.125rem * var(--mantine-scale));--chip-padding-xs: calc(1rem * var(--mantine-scale));--chip-padding-sm: calc(1.25rem * var(--mantine-scale));--chip-padding-md: calc(1.5rem * var(--mantine-scale));--chip-padding-lg: calc(1.75rem * var(--mantine-scale));--chip-padding-xl: calc(2rem * var(--mantine-scale));--chip-checked-padding-xs: calc(.46875rem * var(--mantine-scale));--chip-checked-padding-sm: calc(.625rem * var(--mantine-scale));--chip-checked-padding-md: calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg: calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl: calc(.98125rem * var(--mantine-scale));--chip-spacing-xs: calc(.625rem * var(--mantine-scale));--chip-spacing-sm: calc(.75rem * var(--mantine-scale));--chip-spacing-md: calc(1rem * var(--mantine-scale));--chip-spacing-lg: calc(1.25rem * var(--mantine-scale));--chip-spacing-xl: calc(1.375rem * var(--mantine-scale));--chip-size: var(--chip-size-sm);--chip-icon-size: var(--chip-icon-size-sm);--chip-padding: var(--chip-padding-sm);--chip-spacing: var(--chip-spacing-sm);--chip-checked-padding: var(--chip-checked-padding-sm);--chip-bg: var(--mantine-primary-color-filled);--chip-hover: var(--mantine-primary-color-filled-hover);--chip-color: var(--mantine-color-white);--chip-bd: calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{display:inline-flex;align-items:center;-webkit-user-select:none;user-select:none;border-radius:var(--chip-radius, 1000rem);height:var(--chip-size);font-size:var(--chip-fz, var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}.m_be049a53:where([data-checked]){padding:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_be049a53:where([data-disabled]){background-color:var(--mantine-color-gray-2);color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) .m_be049a53:where([data-disabled]){background-color:var(--mantine-color-dark-6);color:var(--mantine-color-dark-3)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);border:var(--chip-bd)}@media (hover: hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media (hover: hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);display:flex;align-items:center;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);display:block;color:var(--chip-icon-color, inherit)}.m_bde07329{width:0;height:0;padding:0;opacity:0;margin:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-gray-1));color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-dark-5));color:var(--mantine-color-white)}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size: calc(1.75rem * var(--mantine-scale));--cs-radius: calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;line-height:1;position:relative;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;text-decoration:none}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-gray-3);--alpha-overlay-bg: var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-dark-4);--alpha-overlay-bg: var(--mantine-color-dark-7)}.m_862f3d1b{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius)}.m_98ae7f22{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset,#00000026 0 0 calc(.25rem * var(--mantine-scale)) inset}.m_95709ac0{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0,0 calc(.25rem * var(--mantine-scale)),calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)),calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(-45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--alpha-overlay-color) 75%),linear-gradient(-45deg,var(--alpha-overlay-bg) 75%,var(--alpha-overlay-color) 75%)}.m_93e74e3{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);z-index:2;display:flex;align-items:center;justify-content:center}.m_fee9c77{--cp-width-xs: calc(11.25rem * var(--mantine-scale));--cp-width-sm: calc(12.5rem * var(--mantine-scale));--cp-width-md: calc(15rem * var(--mantine-scale));--cp-width-lg: calc(17.5rem * var(--mantine-scale));--cp-width-xl: calc(20rem * var(--mantine-scale));--cp-preview-size-xs: calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm: calc(2.125rem * var(--mantine-scale));--cp-preview-size-md: calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg: calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl: calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs: calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm: calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md: calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg: calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl: calc(10rem * var(--mantine-scale));--cp-preview-size: var(--cp-preview-size-sm);--cp-thumb-size: var(--cp-thumb-size-sm);--cp-saturation-height: var(--cp-saturation-height-sm);--cp-width: var(--cp-width-sm);--cp-body-spacing: var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{display:flex;padding-top:calc(var(--cp-body-spacing) / 2)}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{overflow:hidden;position:absolute;box-shadow:0 0 1px #0009;border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2)}.m_d8ee6fd8{height:unset!important;width:unset!important;min-width:0!important;min-height:0!important;margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)))}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));display:flex;flex-wrap:wrap}.m_202a296e{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;position:relative;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2)}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{position:absolute;border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)))}.m_d856d47d{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-thumb-size: var(--cp-thumb-size, calc(.75rem * var(--mantine-scale)));position:relative;height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers: var(--mantine-color-dark-4)}.m_8f327113{position:absolute;top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem}.m_b077c2bc{--ci-eye-dropper-icon-size-xs: calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm: calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md: calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg: calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl: calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm)}.m_c5ccdcab{--ci-preview-size-xs: calc(1rem * var(--mantine-scale));--ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));--ci-preview-size-md: calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg: calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl: calc(2.25rem * var(--mantine-scale));--ci-preview-size: var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs: calc(33.75rem * var(--mantine-scale));--container-size-sm: calc(45rem * var(--mantine-scale));--container-size-md: calc(60rem * var(--mantine-scale));--container-size-lg: calc(71.25rem * var(--mantine-scale));--container-size-xl: calc(82.5rem * var(--mantine-scale));--container-size: var(--container-size-md);max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-fluid]){max-width:100%}.m_e2125a27{--dialog-size-xs: calc(10rem * var(--mantine-scale));--dialog-size-sm: calc(12.5rem * var(--mantine-scale));--dialog-size-md: calc(21.25rem * var(--mantine-scale));--dialog-size-lg: calc(25rem * var(--mantine-scale));--dialog-size-xl: calc(31.25rem * var(--mantine-scale));--dialog-size: var(--dialog-size-md);position:relative;width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale))}.m_5abab665{position:absolute;top:calc(var(--mantine-spacing-md) / 2);inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs: calc(.0625rem * var(--mantine-scale));--divider-size-sm: calc(.125rem * var(--mantine-scale));--divider-size-md: calc(.1875rem * var(--mantine-scale));--divider-size-lg: calc(.25rem * var(--mantine-scale));--divider-size-xl: calc(.3125rem * var(--mantine-scale));--divider-size: var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color: var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);height:auto;align-self:stretch}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{display:flex;align-items:center;font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap}.m_9e365f20:where([data-position=left]):before{display:none}.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs: calc(20rem * var(--mantine-scale));--drawer-size-sm: calc(23.75rem * var(--mantine-scale));--drawer-size-md: calc(27.5rem * var(--mantine-scale));--drawer-size-lg: calc(38.75rem * var(--mantine-scale));--drawer-size-xl: calc(48.75rem * var(--mantine-scale));--drawer-size: var(--drawer-size-md);--drawer-offset: 0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex, 0 0 var(--drawer-size));height:var(--drawer-height, calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:calc(100% - var(--drawer-offset) * 2);max-height:calc(100% - var(--drawer-offset) * 2);overflow-y:auto}.m_b8a05bbd[data-hidden]{opacity:0!important;pointer-events:none}.m_31cd769a{display:flex;justify-content:var(--drawer-justify, flex-start);align-items:var(--drawer-align, flex-start)}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius, var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{padding:0;border:0;border-radius:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{padding:0;margin-bottom:var(--mantine-spacing-sm)}.m_8478a6da{container:mantine-grid / inline-size}.m_410352e9{--grid-overflow: visible;--grid-margin: calc(var(--grid-gutter) / -2);--grid-col-padding: calc(var(--grid-gutter) / 2);overflow:var(--grid-overflow)}.m_dee7bd2f{width:calc(100% + var(--grid-gutter));display:flex;flex-wrap:wrap;justify-content:var(--grid-justify);align-items:var(--grid-align);margin:var(--grid-margin)}.m_96bdd299{--col-flex-grow: 0;--col-offset: 0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);margin-inline-start:var(--col-offset);padding:var(--grid-col-padding)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{display:block;flex:0;object-fit:var(--image-object-fit, cover);width:100%;border-radius:var(--image-radius, 0)}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size: calc(.625rem * var(--mantine-scale));--indicator-color: var(--mantine-primary-color-filled);position:relative;display:block}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{position:absolute;top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x),var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius, 1000rem);z-index:var(--indicator-z-index, 200);display:flex;align-items:center;justify-content:center;font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color, var(--mantine-color-white));white-space:nowrap}.m_760d1fb1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--indicator-color);border-radius:var(--indicator-radius, 1000rem);z-index:-1}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:m_885901b1 1s linear infinite}.m_dc6f14e2{--kbd-fz-xs: calc(.625rem * var(--mantine-scale));--kbd-fz-sm: calc(.75rem * var(--mantine-scale));--kbd-fz-md: calc(.875rem * var(--mantine-scale));--kbd-fz-lg: calc(1rem * var(--mantine-scale));--kbd-fz-xl: calc(1.25rem * var(--mantine-scale));--kbd-fz: var(--kbd-fz-sm);--kbd-padding-xs: calc(.125rem * var(--mantine-scale)) calc(.25rem * var(--mantine-scale));--kbd-padding-sm: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));--kbd-padding-md: calc(.25rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale));--kbd-padding-lg: calc(.3125rem * var(--mantine-scale)) calc(.5625rem * var(--mantine-scale));--kbd-padding-xl: calc(.5rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--kbd-padding: var(--kbd-padding-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));unicode-bidi:embed}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz: var(--mantine-font-size-md);--list-lh: var(--mantine-line-height-md);list-style-position:inside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0}.m_abbac491:where([data-with-padding]){padding-inline-start:var(--mantine-spacing-md)}.m_abb6bec2{white-space:nowrap;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction: row;--li-align: center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing, 0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{display:inline-flex;flex-direction:var(--li-direction, column);align-items:var(--li-align, flex-start);white-space:normal}.m_60f83e5b{display:inline-block;vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm)}.m_6e45937b{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:var(--lo-z-index)}.m_e8eb006c{position:relative;z-index:calc(var(--lo-z-index) + 1)}.m_df587f17{z-index:var(--lo-z-index)}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:500;font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius, var(--mantine-radius-default));color:var(--menu-item-color, var(--mantine-color-text));display:flex;align-items:center;-webkit-user-select:none;user-select:none}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-dimmed);opacity:.6;pointer-events:none}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where([data-hovered]){background-color:var(--menu-item-hover, var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where([data-hovered]){background-color:var(--menu-item-hover, var(--mantine-color-dark-4))}.m_5476e0d3{flex:1}.m_8b75e504{display:flex;justify-content:center;align-items:center}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_9df02822{--modal-size-xs: calc(20rem * var(--mantine-scale));--modal-size-sm: calc(23.75rem * var(--mantine-scale));--modal-size-md: calc(27.5rem * var(--mantine-scale));--modal-size-lg: calc(38.75rem * var(--mantine-scale));--modal-size-xl: calc(48.75rem * var(--mantine-scale));--modal-size: var(--modal-size-md);--modal-y-offset: 5dvh;--modal-x-offset: 5vw}.m_9df02822[data-full-screen]{--modal-border-radius: 0 !important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex: 0 0 100%;--modal-content-max-height: auto;--modal-content-height: 100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset: 0;--modal-inner-x-offset: 0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align: center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius, var(--mantine-radius-default));border-start-end-radius:var(--modal-radius, var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex, 0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height, calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height, auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{opacity:0!important;pointer-events:none}.m_1f958f16{display:flex;justify-content:center;align-items:var(--modal-inner-align, flex-start);padding-top:var(--modal-inner-y-offset, var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset, var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset, var(--modal-x-offset))}.m_7cda1cd6{--pill-fz-xs: calc(.625rem * var(--mantine-scale));--pill-fz-sm: calc(.75rem * var(--mantine-scale));--pill-fz-md: calc(.875rem * var(--mantine-scale));--pill-fz-lg: calc(1rem * var(--mantine-scale));--pill-fz-xl: calc(1.125rem * var(--mantine-scale));--pill-height-xs: calc(1.125rem * var(--mantine-scale));--pill-height-sm: calc(1.375rem * var(--mantine-scale));--pill-height-md: calc(1.5625rem * var(--mantine-scale));--pill-height-lg: calc(1.75rem * var(--mantine-scale));--pill-height-xl: calc(2rem * var(--mantine-scale));--pill-fz: var(--pill-fz-sm);--pill-height: var(--pill-height-sm);font-size:var(--pill-fz);flex:0;height:var(--pill-height);padding-inline:.8em;display:inline-flex;align-items:center;border-radius:var(--pill-radius, 1000rem);line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;max-width:100%}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-gray-3)}.m_1e0e6180{cursor:inherit;overflow:hidden;height:100%;line-height:var(--pill-height);text-overflow:ellipsis}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;padding-inline-start:.1em;padding-inline-end:.3em;flex:0;border-end-end-radius:var(--pill-radius, 50%);border-start-end-radius:var(--pill-radius, 50%)}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{display:none;background-color:transparent;width:.8em;min-width:.8em;padding:0;cursor:not-allowed}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs: calc(.375rem * var(--mantine-scale));--pg-gap-sm: calc(.5rem * var(--mantine-scale));--pg-gap-md: calc(.625rem * var(--mantine-scale));--pg-gap-lg: calc(.75rem * var(--mantine-scale));--pg-gap-xl: calc(.75rem * var(--mantine-scale));--pg-gap: var(--pg-gap-sm);display:flex;align-items:center;gap:var(--pg-gap);flex-wrap:wrap}.m_45c4369d{background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:calc(6.25rem * var(--mantine-scale));flex:1;border:0;font-size:inherit;height:1.6em;color:inherit;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));top:0;left:0;pointer-events:none;position:absolute;opacity:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){height:1.6em;visibility:visible;opacity:1;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg: var(--mantine-primary-color-light);--nl-hover: var(--mantine-primary-color-light-hover);--nl-color: var(--mantine-primary-color-light-color);display:flex;align-items:center;width:100%;padding:8px var(--mantine-spacing-sm);-webkit-user-select:none;user-select:none}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active],[aria-current=page]){background-color:var(--nl-bg);color:var(--nl-color)}@media (hover: hover){.m_f0824112:where([data-active],[aria-current=page]):hover{background-color:var(--nl-hover)}}@media (hover: none){.m_f0824112:where([data-active],[aria-current=page]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active],[aria-current=page]) .m_57492dcc{--description-opacity: .9;--description-color: var(--nl-color)}.m_690090b5{display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{flex:1;overflow:hidden;text-overflow:ellipsis}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{display:block;font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity, 1);color:var(--description-color, var(--mantine-color-dimmed));overflow:hidden;text-overflow:ellipsis}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset, var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius: var(--mantine-radius-default);--notification-color: var(--mantine-primary-color-filled);overflow:hidden;box-sizing:border-box;position:relative;display:flex;align-items:center;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg)}.m_a513464:before{content:"";display:block;position:absolute;width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);inset-inline-start:calc(.25rem * var(--mantine-scale));border-radius:var(--notification-radius);background-color:var(--notification-color)}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]){padding-inline-start:var(--mantine-spacing-xs)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;margin-inline-end:var(--mantine-spacing-md);width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));display:flex;align-items:center;justify-content:center;background-color:var(--notification-color);color:var(--mantine-color-white)}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;overflow:hidden;margin-inline-end:var(--mantine-spacing-xs)}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));overflow:hidden;text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:500}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);overflow:hidden;text-overflow:ellipsis}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs: calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm: calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md: calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg: calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl: calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs: calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm: calc(.875rem * var(--mantine-scale));--ni-chevron-size-md: calc(1rem * var(--mantine-scale));--ni-chevron-size-lg: calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl: calc(1.25rem * var(--mantine-scale));--ni-chevron-size: var(--ni-chevron-size-sm);display:flex;flex-direction:column;width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);margin-inline-start:auto}.m_80b4b171{--control-border: 1px solid var(--input-bd);--control-radius: calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));flex:0 0 50%;width:100%;padding:0;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text);background-color:transparent;cursor:pointer}.m_80b4b171:where(:disabled){background-color:transparent;cursor:not-allowed;opacity:.6}:where([data-mantine-color-scheme=light]) .m_80b4b171:where(:disabled){color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:where(:disabled){color:var(--mantine-color-dark-3)}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-radius:0;border-end-end-radius:var(--control-radius)}.m_4addd315{--pagination-control-size-xs: calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm: calc(1.625rem * var(--mantine-scale));--pagination-control-size-md: calc(2rem * var(--mantine-scale));--pagination-control-size-lg: calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl: calc(2.75rem * var(--mantine-scale));--pagination-control-size: var(--pagination-control-size-md);--pagination-control-fz: var(--mantine-font-size-md);--pagination-active-bg: var(--mantine-primary-color-filled)}.m_326d024a{display:flex;align-items:center;justify-content:center;border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);line-height:1;border-radius:var(--pagination-control-radius, var(--mantine-radius-default))}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media (hover: hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color, var(--mantine-color-white))}@media (hover: hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media (hover: none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);display:flex;align-items:center;justify-content:center;pointer-events:none}.m_f61ca620{--psi-button-size-xs: calc(1.375rem * var(--mantine-scale));--psi-button-size-sm: calc(1.625rem * var(--mantine-scale));--psi-button-size-md: calc(1.75rem * var(--mantine-scale));--psi-button-size-lg: calc(2rem * var(--mantine-scale));--psi-button-size-xl: calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs: calc(.75rem * var(--mantine-scale));--psi-icon-size-sm: calc(.9375rem * var(--mantine-scale));--psi-icon-size-md: calc(1.0625rem * var(--mantine-scale));--psi-icon-size-lg: calc(1.1875rem * var(--mantine-scale));--psi-icon-size-xl: calc(1.3125rem * var(--mantine-scale));--psi-button-size: var(--psi-button-size-sm);--psi-icon-size: var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);background-color:transparent;border:0;padding-inline-end:var(--input-padding-inline-end);padding-inline-start:var(--input-padding-inline-start);position:absolute;top:0;right:0;bottom:0;left:0;outline:0;font-size:inherit;line-height:var(--mantine-line-height);height:100%;width:100%;color:inherit}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_f2d85dd2::-ms-reveal{display:none}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs: calc(1.875rem * var(--mantine-scale));--pin-input-size-sm: calc(2.25rem * var(--mantine-scale));--pin-input-size-md: calc(2.625rem * var(--mantine-scale));--pin-input-size-lg: calc(3.125rem * var(--mantine-scale));--pin-input-size-xl: calc(3.75rem * var(--mantine-scale));--pin-input-size: var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}.m_db6d6462{--progress-radius: var(--mantine-radius-default);--progress-size: var(--progress-size-md);--progress-size-xs: calc(.1875rem * var(--mantine-scale));--progress-size-sm: calc(.3125rem * var(--mantine-scale));--progress-size-md: calc(.5rem * var(--mantine-scale));--progress-size-lg: calc(.75rem * var(--mantine-scale));--progress-size-xl: calc(1rem * var(--mantine-scale));position:relative;height:var(--progress-size);border-radius:var(--progress-radius);overflow:hidden;display:flex}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-width);display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration, .1s) ease}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_2242eb65:where([data-animated]){animation:m_81a374bd 1s linear infinite}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color, var(--mantine-color-white));font-weight:700;-webkit-user-select:none;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:min(calc(var(--progress-size) * .65),calc(1.125rem * var(--mantine-scale)));line-height:1;padding-inline:calc(.25rem * var(--mantine-scale))}.m_9dc8ae12{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_9dc8ae12 :where(*){cursor:inherit}.m_9dc8ae12:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_717d7ff6{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-size: var(--radio-size-sm);--radio-color: var(--mantine-primary-color-filled);--radio-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--radio-size);min-width:var(--radio-size);height:var(--radio-size);min-height:var(--radio-size);border-radius:var(--radio-radius, 10000px);transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_717d7ff6{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_717d7ff6[data-indeterminate],.m_717d7ff6[data-checked]{background-color:var(--radio-color);border-color:var(--radio-color)}.m_717d7ff6[data-indeterminate]>.m_3e4da632,.m_717d7ff6[data-checked]>.m_3e4da632{opacity:1;transform:none;color:var(--radio-icon-color)}.m_717d7ff6[data-disabled]{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_717d7ff6[data-disabled]{background-color:var(--mantine-color-gray-2);border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6[data-disabled]{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-6)}[data-mantine-color-scheme=light] .m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-dark-3)}.m_2980836c[data-indeterminate]:not([data-disabled]),.m_2980836c[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--radio-color)}.m_2980836c[data-indeterminate]:not([data-disabled])>.m_3e4da632,.m_2980836c[data-checked]:not([data-disabled])>.m_3e4da632{color:var(--radio-color);opacity:1;transform:none}.m_3e4da632{display:block;width:var(--radio-icon-size);height:var(--radio-icon-size);color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_f3f1af94{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-size: var(--radio-size-sm);--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-icon-color: var(--mantine-color-white)}.m_89c4f5e4{position:relative;width:var(--radio-size);height:var(--radio-size);order:1}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity, 0);transform:var(--radio-icon-transform, scale(.2) translateY(calc(.625rem * var(--mantine-scale))));transition:opacity .1s ease,transform .2s ease;pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);position:absolute;top:calc(50% - var(--radio-icon-size) / 2);left:calc(50% - var(--radio-icon-size) / 2)}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius, var(--radio-size));margin:0;display:flex;align-items:center;justify-content:center;transition-property:background-color,border-color;transition-timing-function:ease;transition-duration:.1s;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color, var(--mantine-primary-color-filled));border-color:var(--radio-color, var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity: 1;--radio-icon-transform: scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_8a3dbb89:disabled{background-color:var(--mantine-color-gray-1);border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=light]) .m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89:disabled{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-dark-7)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color: var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){background-color:transparent;border-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color: var(--radio-color);--radio-icon-opacity: 1;--radio-icon-transform: none}.m_f8d312f2{--rating-size-xs: calc(.875rem * var(--mantine-scale));--rating-size-sm: calc(1.125rem * var(--mantine-scale));--rating-size-md: calc(1.25rem * var(--mantine-scale));--rating-size-lg: calc(1.75rem * var(--mantine-scale));--rating-size-xl: calc(2rem * var(--mantine-scale));display:flex;width:max-content}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{position:relative;transition:transform .1s ease}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{display:block;cursor:pointer;position:absolute;top:0;left:0;z-index:var(--rating-item-z-index, 0);-webkit-tap-highlight-color:transparent}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_1b3c8819{--tooltip-radius: var(--mantine-radius-default);position:absolute;padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius)}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-9));color:var(--tooltip-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-2));color:var(--tooltip-color, var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_1b3c8819:where([data-fixed]){position:fixed}.m_f898399f{background-color:inherit;border:0;z-index:1}.m_b32e4812{position:relative;width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size)}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(-90deg)}.m_b1ca1fbf{stroke:var(--curve-color, var(--rp-curve-root-color))}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-dark-4)}.m_b23f9dc4{position:absolute;top:50%;transform:translateY(-50%);inset-inline:var(--rp-label-offset)}.m_cf365364{--sc-padding-xs: calc(.1875rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm: calc(.3125rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md: calc(.4375rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg: calc(.5625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl: calc(.75rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration: .2s;--sc-padding: var(--sc-padding-sm);--sc-transition-timing-function: ease;--sc-font-size: var(--mantine-font-size-sm);position:relative;display:inline-flex;flex-direction:row;width:auto;border-radius:var(--sc-radius, var(--mantine-radius-default));overflow:hidden;padding:calc(.25rem * var(--mantine-scale))}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){display:flex;flex-direction:column;width:max-content}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{position:absolute;display:block;z-index:1;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:500;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;border-radius:var(--sc-radius, var(--mantine-radius-default));font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline, none)}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2,:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-disabled]){color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2,:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-disabled]){color:var(--mantine-color-dark-3)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";top:0;right:0;bottom:0;left:0;z-index:0;position:absolute;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media (hover: hover){:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-gray-5)!important}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-dark-3)!important}}@media (hover: none){:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-gray-5)!important}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-dark-3)!important}}.m_1714d588{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_69686b9b{position:relative;flex:1;z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;bottom:auto;height:calc(.0625rem * var(--mantine-scale));width:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color: var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before{--separator-color: transparent}[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color: transparent}.m_78882f40{position:relative;z-index:2}.m_fa528724{--scp-filled-segment-color: var(--mantine-primary-color-filled);--scp-transition-duration: 0ms;--scp-thickness: calc(.625rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-dark-4)}.m_fa528724{position:relative;width:fit-content}.m_62e9e7e2{display:block;transform:var(--scp-rotation);overflow:hidden}.m_c573fb6f{transition:stroke-dashoffset var(--scp-transition-duration) ease,stroke-dasharray var(--scp-transition-duration) ease,stroke var(--scp-transition-duration)}.m_4fa340f2{position:absolute;margin:0;padding:0;inset-inline:0;text-align:center;z-index:1}.m_4fa340f2:where([data-position=bottom]){bottom:0;padding-inline:calc(var(--scp-thickness) * 2)}.m_4fa340f2:where([data-position=bottom]):where([data-orientation=down]){bottom:auto;top:0}.m_4fa340f2:where([data-position=center]){top:50%;padding-inline:calc(var(--scp-thickness) * 3)}.m_925c2d2c{container:simple-grid / inline-size}.m_2415a157{display:grid;grid-template-columns:repeat(var(--sg-cols),minmax(0,1fr));gap:var(--sg-spacing-y) var(--sg-spacing-x)}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height, auto);width:var(--skeleton-width, 100%);border-radius:var(--skeleton-radius, var(--mantine-radius-default));position:relative;transform:translateZ(0);-webkit-transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:m_299c329c 1.5s linear infinite}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{position:absolute;content:"";top:0;right:0;bottom:0;left:0;z-index:10;background-color:var(--mantine-color-body)}.m_18320242:where([data-visible]):after{position:absolute;content:"";top:0;right:0;bottom:0;left:0;z-index:11}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs: calc(.25rem * var(--mantine-scale));--slider-size-sm: calc(.375rem * var(--mantine-scale));--slider-size-md: calc(.5rem * var(--mantine-scale));--slider-size-lg: calc(.625rem * var(--mantine-scale));--slider-size-xl: calc(.75rem * var(--mantine-scale));--slider-size: var(--slider-size-md);--slider-radius: calc(62.5rem * var(--mantine-scale));--slider-color: var(--mantine-primary-color-filled);-webkit-tap-highlight-color:transparent;outline:none;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);display:flex;flex-direction:column;align-items:center;touch-action:none;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg: var(--mantine-color-gray-2);--slider-track-disabled-bg: var(--mantine-color-gray-4)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg: var(--mantine-color-dark-4);--slider-track-disabled-bg: var(--mantine-color-dark-3)}.m_c9357328{position:absolute;top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;touch-action:none}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}.m_c9a9a60a{position:absolute;display:flex;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;transform:translate(-50%,-50%);color:var(--slider-color);top:50%;cursor:pointer;border-radius:var(--slider-radius);align-items:center;justify-content:center;transition:box-shadow .1s ease,transform .1s ease;z-index:3;-webkit-user-select:none;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));left:var(--slider-thumb-offset)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){transform:translate(-50%,-50%) scale(1.05);box-shadow:var(--mantine-shadow-sm)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{border-color:var(--mantine-color-white);background-color:var(--slider-color)}.m_a8645c2{display:flex;align-items:center;width:100%;height:calc(var(--slider-size) * 2);cursor:pointer}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}.m_c9ade57f{position:relative;width:100%;height:var(--slider-size)}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg: var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg: var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";position:absolute;top:0;bottom:0;border-radius:var(--slider-radius);inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg, var(--slider-track-bg));z-index:0}.m_38aeed47{position:absolute;z-index:1;top:0;bottom:0;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_38aeed47:where(:not([data-inverted])),:where([data-mantine-color-scheme=light]) .m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_38aeed47:where(:not([data-inverted])),:where([data-mantine-color-scheme=dark]) .m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-dark-3)}.m_b7b0423a{position:absolute;inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);top:0;z-index:2;height:0;pointer-events:none}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}:where([data-mantine-color-scheme=light]) .m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-dark-3)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2),calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{display:flex;flex-direction:column;overflow:hidden;transition:max-height var(--spoiler-transition-duration, .2s) ease}.m_b9131032{position:absolute;inset-inline-start:0;top:100%;height:calc(1.5rem * var(--mantine-scale))}.m_6d731127{display:flex;flex-direction:column;align-items:var(--stack-align, stretch);justify-content:var(--stack-justify, flex-start);gap:var(--stack-gap, var(--mantine-spacing-md))}.m_cbb4ea7e{--stepper-icon-size-xs: calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm: calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md: calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg: calc(3rem * var(--mantine-scale));--stepper-icon-size-xl: calc(3.25rem * var(--mantine-scale));--stepper-icon-size: var(--stepper-icon-size-md);--stepper-color: var(--mantine-primary-color-filled);--stepper-content-padding: var(--mantine-spacing-md);--stepper-spacing: var(--mantine-spacing-md);--stepper-radius: calc(62.5rem * var(--mantine-scale));--stepper-fz: var(--mantine-font-size-md)}.m_aaf89d0b{display:flex;flex-wrap:nowrap;align-items:center}.m_aaf89d0b:where([data-wrap]){flex-wrap:wrap;gap:var(--mantine-spacing-md) 0}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{--separator-offset: calc(var(--stepper-icon-size) / 2 - calc(.0625rem * var(--mantine-scale)));transition:background-color .15s ease;flex:1}:where([data-mantine-color-scheme=light]) .m_2a371ac9{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2a371ac9{background-color:var(--mantine-color-dark-2)}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_2a371ac9:where([data-orientation=horizontal]){height:calc(.125rem * var(--mantine-scale));margin-inline:var(--mantine-spacing-md)}.m_2a371ac9:where([data-orientation=vertical]){width:calc(.125rem * var(--mantine-scale));margin-top:calc(var(--mantine-spacing-xs) / 2);margin-bottom:calc(var(--mantine-spacing-xs) - calc(.125rem * var(--mantine-scale)))}.m_2a371ac9:where([data-orientation=vertical]):where([data-icon-position=left]){margin-inline-start:var(--separator-offset)}.m_2a371ac9:where([data-orientation=vertical]):where([data-icon-position=right]){margin-inline-end:var(--separator-offset)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color: var(--stepper-color);display:flex;cursor:default}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing: calc(var(--mantine-spacing-xs) / 2);justify-content:flex-start;min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));inset-inline-start:calc(var(--stepper-icon-size) / 2);height:100vh;position:absolute;border-inline-start:calc(.125rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_6496b3f3{border-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_6496b3f3{border-color:var(--mantine-color-dark-5)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;transition:background-color .15s ease,border-color .15s ease;border:calc(.125rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_1959ad01{background-color:var(--mantine-color-gray-1);border-color:var(--mantine-color-gray-1);color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color, var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_a79331dc{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--stepper-icon-color, var(--mantine-color-white))}.m_1956aa2a{display:flex;flex-direction:column}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:right;margin-inline-end:var(--mantine-spacing-sm)}:where([dir=rtl]) .m_1956aa2a:where([data-icon-position=right]){text-align:left}.m_12051f6c{font-weight:500;font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));line-height:1;color:var(--mantine-color-dimmed)}.m_5f93f3bb{--switch-height-xs: calc(1rem * var(--mantine-scale));--switch-height-sm: calc(1.25rem * var(--mantine-scale));--switch-height-md: calc(1.5rem * var(--mantine-scale));--switch-height-lg: calc(1.875rem * var(--mantine-scale));--switch-height-xl: calc(2.25rem * var(--mantine-scale));--switch-width-xs: calc(2rem * var(--mantine-scale));--switch-width-sm: calc(2.375rem * var(--mantine-scale));--switch-width-md: calc(2.875rem * var(--mantine-scale));--switch-width-lg: calc(3.5rem * var(--mantine-scale));--switch-width-xl: calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs: calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm: calc(.875rem * var(--mantine-scale));--switch-thumb-size-md: calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg: calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl: calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs: calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm: calc(.375rem * var(--mantine-scale));--switch-label-font-size-md: calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg: calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl: calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs: calc(.0625rem * var(--mantine-scale));--switch-track-label-padding-sm: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-md: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-lg: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl: calc(.1875rem * var(--mantine-scale));--switch-height: var(--switch-height-sm);--switch-width: var(--switch-width-sm);--switch-thumb-size: var(--switch-thumb-size-sm);--switch-label-font-size: var(--switch-label-font-size-sm);--switch-track-label-padding: var(--switch-track-label-padding-sm);--switch-radius: calc(62.5rem * var(--mantine-scale));--switch-color: var(--mantine-primary-color-filled);position:relative}.m_926b4011{height:0;width:0;opacity:0;margin:0;padding:0;position:absolute;overflow:hidden;white-space:nowrap}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor, var(--mantine-cursor-type));overflow:hidden;position:relative;border-radius:var(--switch-radius);background-color:var(--switch-bg);border:1px solid var(--switch-bd);height:var(--switch-height);min-width:var(--switch-width);margin:0;transition:background-color .15s ease,border-color .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;font-size:var(--switch-label-font-size);font-weight:600;order:var(--switch-order, 1);-webkit-user-select:none;user-select:none;z-index:0;line-height:0;color:var(--switch-text-color)}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg: var(--switch-color);--switch-bd: var(--switch-color);--switch-text-color: var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg: var(--switch-disabled-color);--switch-bd: var(--switch-disabled-color);--switch-cursor: not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg: var(--mantine-color-gray-2);--switch-bd: var(--mantine-color-gray-3);--switch-text-color: var(--mantine-color-gray-6);--switch-disabled-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg: var(--mantine-color-dark-6);--switch-bd: var(--mantine-color-dark-4);--switch-text-color: var(--mantine-color-dark-1);--switch-disabled-color: var(--mantine-color-dark-4)}.m_9307d992[data-error]{--switch-bd: var(--mantine-color-error)}.m_9307d992[data-label-position=left]{--switch-order: 2}.m_93039a1d{position:absolute;z-index:1;border-radius:var(--switch-radius);display:flex;background-color:var(--switch-thumb-bg, var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);border:1px solid var(--switch-thumb-bd);inset-inline-start:var(--switch-thumb-start, var(--switch-track-label-padding));transition:inset-inline-start .15s ease}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start: calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding));--switch-thumb-bd: var(--mantine-color-white)}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bd: var(--switch-thumb-bg-disabled);--switch-thumb-bg: var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bd: var(--mantine-color-gray-3);--switch-thumb-bg-disabled: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bd: var(--mantine-color-white);--switch-thumb-bg-disabled: var(--mantine-color-dark-3)}.m_8277e082{height:100%;display:grid;place-content:center;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s ease}.m_926b4011:checked+*>.m_8277e082{margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));margin-inline-start:0}.m_b23fa0ef{width:100%;border-collapse:collapse;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout, auto);caption-side:var(--table-caption-side, bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-gray-1);--table-striped-color: var(--mantine-color-gray-0);--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-dark-5);--table-striped-color: var(--mantine-color-dark-6);--table-border-color: var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4f3{text-align:left}:where([dir=rtl]) .m_4e7aa4f3{text-align:right}.m_4e7aa4fd{border-bottom:none;background-color:transparent}@media (hover: hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media (hover: none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing, var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b2404537 :where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537 :where(tr):where([data-striped=odd]:nth-of-type(odd)){background-color:var(--table-striped-color)}.m_b2404537 :where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537 :where(tr)[data-hover]{--tr-hover-bg: var(--table-highlight-on-hover-color, var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset, 0);z-index:3}.m_b242d975:where([data-sticky]){position:sticky;background-color:var(--mantine-color-body)}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tab-justify: flex-start;--tabs-list-direction: row;--tabs-panel-grow: unset;--tabs-display: block;--tabs-flex-direction: row;--tabs-list-border-width: 0;--tabs-list-border-size: 0 0 var(--tabs-list-border-width) 0;--tabs-list-gap: unset;--tabs-list-line-bottom: 0;--tabs-list-line-top: unset;--tabs-list-line-start: 0;--tabs-list-line-end: 0;--tab-radius: var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width: 0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom: unset;--tabs-list-line-top: 0;--tab-radius: 0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width: var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start: unset;--tabs-list-line-end: 0;--tabs-list-line-top: 0;--tabs-list-line-bottom: 0;--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction: column;--tabs-panel-grow: 1;--tabs-display: flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction: row-reverse;--tabs-list-line-start: 0;--tabs-list-line-end: unset;--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color: var(--mantine-color-dark-4)}.m_89d60db1[data-orientation=horizontal]{--tab-justify: center}.m_89d60db1[data-variant=default]{--tabs-list-border-width: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width: calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap: calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d33d6d{display:flex;flex-wrap:wrap;justify-content:var(--tabs-justify, flex-start);flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap);--tab-grow: unset}.m_89d33d6d[data-grow]{--tab-grow: 1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{position:relative;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;display:flex;align-items:center;line-height:1;-webkit-user-select:none;user-select:none;flex-grow:var(--tab-grow);justify-content:var(--tab-justify)}.m_4ec4dce6:disabled,.m_4ec4dce6[data-disabled]{opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{display:flex;align-items:center;justify-content:center;margin-left:var(--tab-section-margin-left, 0);margin-right:var(--tab-section-margin-right, 0)}.m_fc420b1f[data-position=left]:not(:only-child){--tab-section-margin-right: var(--mantine-spacing-xs)}[dir=rtl] .m_fc420b1f[data-position=left]:not(:only-child){--tab-section-margin-right: 0rem;--tab-section-margin-left: var(--mantine-spacing-xs)}.m_fc420b1f[data-position=right]:not(:only-child){--tab-section-margin-left: var(--mantine-spacing-xs)}[dir=rtl] .m_fc420b1f[data-position=right]:not(:only-child){--tab-section-margin-left: 0rem;--tab-section-margin-right: var(--mantine-spacing-xs)}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);border-style:solid;border-color:transparent;background-color:var(--tab-bg);--tab-bg: transparent}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media (hover: hover){.m_539e827b:hover{--tab-bg: var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: none){.m_539e827b:active{--tab-bg: var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{--tab-bg: transparent}}@media (hover: none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{--tab-bg: transparent}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-right:calc(.0625rem * var(--mantine-scale)) solid transparent;border-left:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);position:relative;--tab-border-bottom-color: transparent;--tab-border-top-color: transparent;--tab-border-inline-end-color: transparent;--tab-border-inline-start-color: transparent}.m_b59ab47c:where([data-active]):before{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-before-bottom, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-before-left, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-before-right, auto);top:var(--tab-before-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]):after{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-after-bottom, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-after-right, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-after-left, auto);top:var(--tab-after-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color: var(--tab-border-color);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color: var(--tab-border-color);--tab-border-top-color: var(--mantine-color-body);--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-bottom: auto;--tab-after-top: calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color: var(--mantine-color-body);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-before-left: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto;--tab-after-right: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-before-right: auto;--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-after-left: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color: var(--mantine-color-body);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-before-right: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto;--tab-after-left: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-before-left: auto;--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-after-right: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg: transparent;--tab-color: inherit}@media (hover: hover){.m_c3381914:not([data-disabled]):hover{--tab-bg: var(--tab-hover-color)}}@media (hover: none){.m_c3381914:not([data-disabled]):active{--tab-bg: var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg: var(--tabs-color);--tab-color: var(--tabs-text-color, var(--mantine-color-white))}@media (hover: hover){.m_c3381914[data-active][data-active]:hover{--tab-bg: var(--tabs-color)}}@media (hover: none){.m_c3381914[data-active][data-active]:active{--tab-bg: var(--tabs-color)}}.m_7341320d{--ti-size-xs: calc(1.125rem * var(--mantine-scale));--ti-size-sm: calc(1.375rem * var(--mantine-scale));--ti-size-md: calc(1.75rem * var(--mantine-scale));--ti-size-lg: calc(2.125rem * var(--mantine-scale));--ti-size-xl: calc(2.75rem * var(--mantine-scale));--ti-size: var(--ti-size-md);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius, var(--mantine-radius-default));background:var(--ti-bg, var(--mantine-primary-color-filled));color:var(--ti-color, var(--mantine-color-white));border:var(--ti-bd, 1px solid transparent)}.m_43657ece{--offset: calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size: calc(1.25rem * var(--mantine-scale));--tl-line-width: calc(.25rem * var(--mantine-scale));--tl-radius: calc(62.5rem * var(--mantine-scale));--tl-color: var(--mantine-primary-color-filled)}.m_43657ece:where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:500;line-height:1;margin-bottom:calc(var(--mantine-spacing-xs) / 2)}.m_436178ff{--item-border: var(--tl-line-width) var(--tli-border-style, solid) var(--item-border-color);position:relative;color:var(--mantine-color-text)}.m_436178ff:before{content:"";pointer-events:none;position:absolute;top:0;left:var(--timeline-line-left, 0);right:var(--timeline-line-right, 0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display, none)}.m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}[dir=rtl] .m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}.m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}[dir=rtl] .m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}.m_43657ece:where([data-align=left]) .m_436178ff{padding-inline-start:var(--offset);text-align:left}.m_43657ece:where([data-align=right]) .m_436178ff{padding-inline-end:var(--offset);text-align:right}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color: var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color, var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display: block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius, var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);position:absolute;top:0;display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where([data-align=left]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-align=right]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color, var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color, var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color, var(--tl-color));color:var(--tl-icon-color, var(--mantine-color-white))}.m_43657ece:where([data-align=left]) .m_540e8f41{padding-inline-start:var(--offset);text-align:left}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_540e8f41{text-align:right}.m_43657ece:where([data-align=right]) .m_540e8f41{padding-inline-end:var(--offset);text-align:right}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_540e8f41{text-align:left}.m_8a5d1357{margin:0;font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap, var(--mantine-heading-text-wrap))}.m_8a5d1357:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical}.m_f698e191{--level-offset: var(--mantine-spacing-lg);margin:0;padding:0;-webkit-user-select:none;user-select:none}.m_75f3ecf{margin:0;padding:0}.m_f6970eb1{cursor:pointer;list-style:none;margin:0;padding:0;outline:0}.m_f6970eb1:focus-visible>.m_dc283425{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_dc283425{padding-inline-start:var(--label-offset)}:where([data-mantine-color-scheme=light]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-dark-5)}.m_d6493fad :first-child{margin-top:0}.m_d6493fad :last-child{margin-bottom:0}.m_d6493fad :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap)}.m_d6493fad :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d6493fad :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d6493fad :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d6493fad :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d6493fad :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d6493fad :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d6493fad :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d6493fad :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d6493fad :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media (hover: hover){.m_d6493fad :where(a):hover{text-decoration:underline}}@media (hover: none){.m_d6493fad :where(a):active{text-decoration:underline}}.m_d6493fad :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(hr){border-color:var(--mantine-color-dark-3)}.m_d6493fad :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);overflow-x:auto;font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(pre){background-color:var(--mantine-color-dark-8)}.m_d6493fad :where(pre) :where(code){background-color:transparent;padding:0;border-radius:0;color:inherit;border:0}.m_d6493fad :where(kbd){--kbd-fz: calc(.75rem * var(--mantine-scale));--kbd-padding: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d6493fad :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d6493fad :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:calc(2.375rem * var(--mantine-scale))}.m_d6493fad :where(ul,ol):not([data-type=taskList]) :where(li){margin-bottom:var(--mantine-spacing-xs)}.m_d6493fad :where(table){width:100%;border-collapse:collapse;caption-side:bottom;margin-bottom:var(--mantine-spacing-md)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(table){--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(table){--table-border-color: var(--mantine-color-dark-4)}.m_d6493fad :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dimmed)}.m_d6493fad :where(table) :where(th){text-align:left;font-weight:700;font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d6493fad :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d6493fad :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d6493fad :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color);font-size:var(--mantine-font-size-sm)}.m_d6493fad :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d6493fad :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(blockquote){background-color:var(--mantine-color-dark-8)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! + Theme: GitHub + Description: Light theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + + Outdated base version: https://github.com/primer/github-syntax-light + Current colors taken from GitHub's CSS +*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.ProseMirror{flex:1 1 auto;min-height:0;outline:none;overflow-y:auto}.ProseMirror p{margin:1em 0}.ProseMirror h1{font-size:2em;margin:.67em 0}.ProseMirror h2{font-size:1.5em;margin:.75em 0}.ProseMirror h3{font-size:1.17em;margin:.83em 0}.ProseMirror blockquote{border-left:3px solid var(--mantine-color-gray-4);margin:1em 0;padding-left:1em;color:var(--mantine-color-gray-6)}.ProseMirror pre{background:var(--mantine-color-gray-1);border-radius:var(--mantine-radius-md);padding:.75em 1em;margin:1em 0}.ProseMirror code{background:var(--mantine-color-gray-1);border-radius:var(--mantine-radius-sm);padding:.2em .4em} diff --git a/android/app/src/main/assets/public/assets/index-DhE_q3AR.js b/android/app/src/main/assets/public/assets/index-DhE_q3AR.js new file mode 100644 index 0000000..f74b732 --- /dev/null +++ b/android/app/src/main/assets/public/assets/index-DhE_q3AR.js @@ -0,0 +1,369 @@ +var cM=Object.defineProperty;var dM=(e,t,n)=>t in e?cM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jo=(e,t,n)=>dM(e,typeof t!="symbol"?t+"":t,n);import{g as Gp,c as Av,b as Qi}from"./buffer-Cq5fL-tY.js";function fM(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Vw={exports:{}},Qp={},qw={exports:{}},Ae={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mc=Symbol.for("react.element"),pM=Symbol.for("react.portal"),hM=Symbol.for("react.fragment"),mM=Symbol.for("react.strict_mode"),gM=Symbol.for("react.profiler"),bM=Symbol.for("react.provider"),yM=Symbol.for("react.context"),EM=Symbol.for("react.forward_ref"),vM=Symbol.for("react.suspense"),TM=Symbol.for("react.memo"),kM=Symbol.for("react.lazy"),Ov=Symbol.iterator;function xM(e){return e===null||typeof e!="object"?null:(e=Ov&&e[Ov]||e["@@iterator"],typeof e=="function"?e:null)}var Yw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kw=Object.assign,Gw={};function hl(e,t,n){this.props=e,this.context=t,this.refs=Gw,this.updater=n||Yw}hl.prototype.isReactComponent={};hl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qw(){}Qw.prototype=hl.prototype;function by(e,t,n){this.props=e,this.context=t,this.refs=Gw,this.updater=n||Yw}var yy=by.prototype=new Qw;yy.constructor=by;Kw(yy,hl.prototype);yy.isPureReactComponent=!0;var Iv=Array.isArray,Xw=Object.prototype.hasOwnProperty,Ey={current:null},Jw={key:!0,ref:!0,__self:!0,__source:!0};function Zw(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Xw.call(t,r)&&!Jw.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,X=N[q];if(0>>1;qi(ge,w))lei(Ce,ge)?(N[q]=Ce,N[le]=w,q=le):(N[q]=ge,N[be]=w,q=be);else if(lei(Ce,w))N[q]=Ce,N[le]=w,q=le;else break e}}return F}function i(N,F){var w=N.sortIndex-F.sortIndex;return w!==0?w:N.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(N){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=N)r(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function k(N){if(m=!1,v(N),!h)if(n(l)!==null)h=!0,B(_);else{var F=n(u);F!==null&&M(k,F.startTime-N)}}function _(N,F){h=!1,m&&(m=!1,b(R),R=-1),p=!0;var w=f;try{for(v(F),d=n(l);d!==null&&(!(d.expirationTime>F)||N&&!j());){var q=d.callback;if(typeof q=="function"){d.callback=null,f=d.priorityLevel;var X=q(d.expirationTime<=F);F=e.unstable_now(),typeof X=="function"?d.callback=X:d===n(l)&&r(l),v(F)}else r(l);d=n(l)}if(d!==null)var D=!0;else{var be=n(u);be!==null&&M(k,be.startTime-F),D=!1}return D}finally{d=null,f=w,p=!1}}var x=!1,I=null,R=-1,z=5,A=-1;function j(){return!(e.unstable_now()-AN||125q?(N.sortIndex=w,t(u,N),n(l)===null&&N===n(u)&&(m?(b(R),R=-1):m=!0,M(k,w-q))):(N.sortIndex=X,t(l,N),h||p||(h=!0,B(_))),N},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(N){var F=f;return function(){var w=f;f=F;try{return N.apply(this,arguments)}finally{f=w}}}})(i_);r_.exports=i_;var LM=r_.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var PM=S,Vn=LM;function te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c0=Object.prototype.hasOwnProperty,BM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Mv={},Dv={};function zM(e){return c0.call(Dv,e)?!0:c0.call(Mv,e)?!1:BM.test(e)?Dv[e]=!0:(Mv[e]=!0,!1)}function FM(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function HM(e,t,n,r){if(t===null||typeof t>"u"||FM(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function En(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Gt[e]=new En(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Gt[t]=new En(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Gt[e]=new En(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Gt[e]=new En(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Gt[e]=new En(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Gt[e]=new En(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Gt[e]=new En(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Gt[e]=new En(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Gt[e]=new En(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ty=/[\-:]([a-z])/g;function ky(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ty,ky);Gt[t]=new En(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ty,ky);Gt[t]=new En(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ty,ky);Gt[t]=new En(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Gt[e]=new En(e,1,!1,e.toLowerCase(),null,!1,!1)});Gt.xlinkHref=new En("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Gt[e]=new En(e,1,!1,e.toLowerCase(),null,!0,!0)});function xy(e,t,n,r){var i=Gt.hasOwnProperty(t)?Gt[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` +`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Sm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xl(e):""}function UM(e){switch(e.tag){case 5:return Xl(e.type);case 16:return Xl("Lazy");case 13:return Xl("Suspense");case 19:return Xl("SuspenseList");case 0:case 2:case 15:return e=wm(e.type,!1),e;case 11:return e=wm(e.type.render,!1),e;case 1:return e=wm(e.type,!0),e;default:return""}}function h0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ts:return"Fragment";case vs:return"Portal";case d0:return"Profiler";case Sy:return"StrictMode";case f0:return"Suspense";case p0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case s_:return(e.displayName||"Context")+".Consumer";case a_:return(e._context.displayName||"Context")+".Provider";case wy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _y:return t=e.displayName||null,t!==null?t:h0(e.type)||"Memo";case eo:t=e._payload,e=e._init;try{return h0(e(t))}catch{}}return null}function jM(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return h0(t);case 8:return t===Sy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Io(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function u_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $M(e){var t=u_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gc(e){e._valueTracker||(e._valueTracker=$M(e))}function c_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=u_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function m0(e,t){var n=t.checked;return dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Io(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function d_(e,t){t=t.checked,t!=null&&xy(e,"checked",t,!1)}function g0(e,t){d_(e,t);var n=Io(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?b0(e,t.type,n):t.hasOwnProperty("defaultValue")&&b0(e,t.type,Io(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function b0(e,t,n){(t!=="number"||hf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jl=Array.isArray;function Ls(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Qc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ou(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ou={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},WM=["Webkit","ms","Moz","O"];Object.keys(ou).forEach(function(e){WM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ou[t]=ou[e]})});function m_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ou.hasOwnProperty(e)&&ou[e]?(""+t).trim():t+"px"}function g_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=m_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var VM=dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function v0(e,t){if(t){if(VM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(te(62))}}function T0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var k0=null;function Cy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var x0=null,Ps=null,Bs=null;function Hv(e){if(e=yc(e)){if(typeof x0!="function")throw Error(te(280));var t=e.stateNode;t&&(t=th(t),x0(e.stateNode,e.type,t))}}function b_(e){Ps?Bs?Bs.push(e):Bs=[e]:Ps=e}function y_(){if(Ps){var e=Ps,t=Bs;if(Bs=Ps=null,Hv(e),t)for(e=0;e>>=0,e===0?32:31-(nD(e)/rD|0)|0}var Xc=64,Jc=4194304;function Zl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function yf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Zl(s):(o&=a,o!==0&&(r=Zl(o)))}else a=n&~i,a!==0?r=Zl(a):o!==0&&(r=Zl(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ir(t),e[t]=n}function sD(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=su),Gv=" ",Qv=!1;function z_(e,t){switch(e){case"keyup":return LD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function F_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ks=!1;function BD(e,t){switch(e){case"compositionend":return F_(t);case"keypress":return t.which!==32?null:(Qv=!0,Gv);case"textInput":return e=t.data,e===Gv&&Qv?null:e;default:return null}}function zD(e,t){if(ks)return e==="compositionend"||!Ly&&z_(e,t)?(e=P_(),Wd=Ry=co=null,ks=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=eT(n)}}function $_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function W_(){for(var e=window,t=hf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hf(e.document)}return t}function Py(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function YD(e){var t=W_(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$_(n.ownerDocument.documentElement,n)){if(r!==null&&Py(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=tT(n,o);var a=tT(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,xs=null,A0=null,uu=null,O0=!1;function nT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;O0||xs==null||xs!==hf(r)||(r=xs,"selectionStart"in r&&Py(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),uu&&Pu(uu,r)||(uu=r,r=Tf(A0,"onSelect"),0_s||(e.current=P0[_s],P0[_s]=null,_s--)}function Xe(e,t){_s++,P0[_s]=e.current,e.current=t}var Ro={},an=Fo(Ro),Cn=Fo(!1),Aa=Ro;function Qs(e,t){var n=e.type.contextTypes;if(!n)return Ro;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Nn(e){return e=e.childContextTypes,e!=null}function xf(){nt(Cn),nt(an)}function uT(e,t,n){if(an.current!==Ro)throw Error(te(168));Xe(an,t),Xe(Cn,n)}function Z_(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(te(108,jM(e)||"Unknown",i));return dt({},n,r)}function Sf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ro,Aa=an.current,Xe(an,e),Xe(Cn,Cn.current),!0}function cT(e,t,n){var r=e.stateNode;if(!r)throw Error(te(169));n?(e=Z_(e,t,Aa),r.__reactInternalMemoizedMergedChildContext=e,nt(Cn),nt(an),Xe(an,e)):nt(Cn),Xe(Cn,n)}var vi=null,nh=!1,Fm=!1;function eC(e){vi===null?vi=[e]:vi.push(e)}function oL(e){nh=!0,eC(e)}function Ho(){if(!Fm&&vi!==null){Fm=!0;var e=0,t=je;try{var n=vi;for(je=1;e>=a,i-=a,ki=1<<32-Ir(t)+i|n<R?(z=I,I=null):z=I.sibling;var A=f(b,I,v[R],k);if(A===null){I===null&&(I=z);break}e&&I&&A.alternate===null&&t(b,I),E=o(A,E,R),x===null?_=A:x.sibling=A,x=A,I=z}if(R===v.length)return n(b,I),ot&&ea(b,R),_;if(I===null){for(;RR?(z=I,I=null):z=I.sibling;var j=f(b,I,A.value,k);if(j===null){I===null&&(I=z);break}e&&I&&j.alternate===null&&t(b,I),E=o(j,E,R),x===null?_=j:x.sibling=j,x=j,I=z}if(A.done)return n(b,I),ot&&ea(b,R),_;if(I===null){for(;!A.done;R++,A=v.next())A=d(b,A.value,k),A!==null&&(E=o(A,E,R),x===null?_=A:x.sibling=A,x=A);return ot&&ea(b,R),_}for(I=r(b,I);!A.done;R++,A=v.next())A=p(I,b,R,A.value,k),A!==null&&(e&&A.alternate!==null&&I.delete(A.key===null?R:A.key),E=o(A,E,R),x===null?_=A:x.sibling=A,x=A);return e&&I.forEach(function(L){return t(b,L)}),ot&&ea(b,R),_}function y(b,E,v,k){if(typeof v=="object"&&v!==null&&v.type===Ts&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Kc:e:{for(var _=v.key,x=E;x!==null;){if(x.key===_){if(_=v.type,_===Ts){if(x.tag===7){n(b,x.sibling),E=i(x,v.props.children),E.return=b,b=E;break e}}else if(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===eo&&pT(_)===x.type){n(b,x.sibling),E=i(x,v.props),E.ref=Bl(b,x,v),E.return=b,b=E;break e}n(b,x);break}else t(b,x);x=x.sibling}v.type===Ts?(E=ba(v.props.children,b.mode,k,v.key),E.return=b,b=E):(k=Jd(v.type,v.key,v.props,null,b.mode,k),k.ref=Bl(b,E,v),k.return=b,b=k)}return a(b);case vs:e:{for(x=v.key;E!==null;){if(E.key===x)if(E.tag===4&&E.stateNode.containerInfo===v.containerInfo&&E.stateNode.implementation===v.implementation){n(b,E.sibling),E=i(E,v.children||[]),E.return=b,b=E;break e}else{n(b,E);break}else t(b,E);E=E.sibling}E=Ym(v,b.mode,k),E.return=b,b=E}return a(b);case eo:return x=v._init,y(b,E,x(v._payload),k)}if(Jl(v))return h(b,E,v,k);if(Rl(v))return m(b,E,v,k);od(b,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,E!==null&&E.tag===6?(n(b,E.sibling),E=i(E,v),E.return=b,b=E):(n(b,E),E=qm(v,b.mode,k),E.return=b,b=E),a(b)):n(b,E)}return y}var Js=iC(!0),oC=iC(!1),Cf=Fo(null),Nf=null,As=null,Hy=null;function Uy(){Hy=As=Nf=null}function jy(e){var t=Cf.current;nt(Cf),e._currentValue=t}function F0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fs(e,t){Nf=e,Hy=As=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_n=!0),e.firstContext=null)}function pr(e){var t=e._currentValue;if(Hy!==e)if(e={context:e,memoizedValue:t,next:null},As===null){if(Nf===null)throw Error(te(308));As=e,Nf.dependencies={lanes:0,firstContext:e}}else As=As.next=e;return t}var la=null;function $y(e){la===null?la=[e]:la.push(e)}function aC(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,$y(t)):(n.next=i.next,i.next=n),t.interleaved=n,Oi(e,r)}function Oi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var to=!1;function Wy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Si(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ko(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Oi(e,n)}return i=r.interleaved,i===null?(t.next=t,$y(r)):(t.next=i.next,i.next=t),r.interleaved=t,Oi(e,n)}function qd(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ay(e,n)}}function hT(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Af(e,t,n,r){var i=e.updateQueue;to=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,c=u=l=null,s=o;do{var f=s.lane,p=s.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if(h=m.payload,typeof h=="function"){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,f=typeof h=="function"?h.call(p,d,f):h,f==null)break e;d=dt({},d,f);break e;case 2:to=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ra|=a,e.lanes=a,e.memoizedState=d}}function mT(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Um.transition;Um.transition={};try{e(!1),t()}finally{je=n,Um.transition=r}}function SC(){return hr().memoizedState}function uL(e,t,n){var r=So(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wC(e))_C(t,n);else if(n=aC(e,t,n,r),n!==null){var i=pn();Rr(n,e,r,i),CC(n,t,r)}}function cL(e,t,n){var r=So(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wC(e))_C(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Lr(s,a)){var l=t.interleaved;l===null?(i.next=i,$y(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=aC(e,t,i,r),n!==null&&(i=pn(),Rr(n,e,r,i),CC(n,t,r))}}function wC(e){var t=e.alternate;return e===ut||t!==null&&t===ut}function _C(e,t){cu=If=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function CC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ay(e,n)}}var Rf={readContext:pr,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useInsertionEffect:Jt,useLayoutEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useMutableSource:Jt,useSyncExternalStore:Jt,useId:Jt,unstable_isNewReconciler:!1},dL={readContext:pr,useCallback:function(e,t){return $r().memoizedState=[e,t===void 0?null:t],e},useContext:pr,useEffect:bT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kd(4194308,4,EC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kd(4,2,e,t)},useMemo:function(e,t){var n=$r();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$r();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uL.bind(null,ut,e),[r.memoizedState,e]},useRef:function(e){var t=$r();return e={current:e},t.memoizedState=e},useState:gT,useDebugValue:Jy,useDeferredValue:function(e){return $r().memoizedState=e},useTransition:function(){var e=gT(!1),t=e[0];return e=lL.bind(null,e[1]),$r().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ut,i=$r();if(ot){if(n===void 0)throw Error(te(407));n=n()}else{if(n=t(),Lt===null)throw Error(te(349));Ia&30||dC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,bT(pC.bind(null,r,o,e),[e]),r.flags|=2048,Wu(9,fC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$r(),t=Lt.identifierPrefix;if(ot){var n=xi,r=ki;n=(r&~(1<<32-Ir(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ju++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Jr]=t,e[Fu]=r,BC(e,t,!1,!1),t.stateNode=e;e:{switch(a=T0(n,r),n){case"dialog":et("cancel",e),et("close",e),i=r;break;case"iframe":case"object":case"embed":et("load",e),i=r;break;case"video":case"audio":for(i=0;itl&&(t.flags|=128,r=!0,zl(o,!1),t.lanes=4194304)}else{if(!r)if(e=Of(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ot)return Zt(t),null}else 2*gt()-o.renderingStartTime>tl&&n!==1073741824&&(t.flags|=128,r=!0,zl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=gt(),t.sibling=null,n=lt.current,Xe(lt,r?n&1|2:n&1),t):(Zt(t),null);case 22:case 23:return i1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zn&1073741824&&(Zt(t),t.subtreeFlags&6&&(t.flags|=8192)):Zt(t),null;case 24:return null;case 25:return null}throw Error(te(156,t.tag))}function EL(e,t){switch(zy(t),t.tag){case 1:return Nn(t.type)&&xf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zs(),nt(Cn),nt(an),Yy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qy(t),null;case 13:if(nt(lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(te(340));Xs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(lt),null;case 4:return Zs(),null;case 10:return jy(t.type._context),null;case 22:case 23:return i1(),null;case 24:return null;default:return null}}var sd=!1,tn=!1,vL=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Os(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ft(e,t,r)}else n.current=null}function K0(e,t,n){try{n()}catch(r){ft(e,t,r)}}var NT=!1;function TL(e,t){if(I0=Ef,e=W_(),Py(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=a),f===o&&++c===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(R0={focusedElem:e,selectionRange:n},Ef=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,y=h.memoizedState,b=t.stateNode,E=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:wr(t.type,m),y);b.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(te(163))}}catch(k){ft(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return h=NT,NT=!1,h}function du(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&K0(t,n,o)}i=i.next}while(i!==r)}}function oh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function G0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function HC(e){var t=e.alternate;t!==null&&(e.alternate=null,HC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jr],delete t[Fu],delete t[L0],delete t[rL],delete t[iL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function UC(e){return e.tag===5||e.tag===3||e.tag===4}function AT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||UC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Q0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=kf));else if(r!==4&&(e=e.child,e!==null))for(Q0(e,t,n),e=e.sibling;e!==null;)Q0(e,t,n),e=e.sibling}function X0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(X0(e,t,n),e=e.sibling;e!==null;)X0(e,t,n),e=e.sibling}var Ut=null,_r=!1;function ji(e,t,n){for(n=n.child;n!==null;)jC(e,t,n),n=n.sibling}function jC(e,t,n){if(ti&&typeof ti.onCommitFiberUnmount=="function")try{ti.onCommitFiberUnmount(Xp,n)}catch{}switch(n.tag){case 5:tn||Os(n,t);case 6:var r=Ut,i=_r;Ut=null,ji(e,t,n),Ut=r,_r=i,Ut!==null&&(_r?(e=Ut,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ut.removeChild(n.stateNode));break;case 18:Ut!==null&&(_r?(e=Ut,n=n.stateNode,e.nodeType===8?zm(e.parentNode,n):e.nodeType===1&&zm(e,n),Du(e)):zm(Ut,n.stateNode));break;case 4:r=Ut,i=_r,Ut=n.stateNode.containerInfo,_r=!0,ji(e,t,n),Ut=r,_r=i;break;case 0:case 11:case 14:case 15:if(!tn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&K0(n,t,a),i=i.next}while(i!==r)}ji(e,t,n);break;case 1:if(!tn&&(Os(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ft(n,t,s)}ji(e,t,n);break;case 21:ji(e,t,n);break;case 22:n.mode&1?(tn=(r=tn)||n.memoizedState!==null,ji(e,t,n),tn=r):ji(e,t,n);break;default:ji(e,t,n)}}function OT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vL),t.forEach(function(r){var i=OL.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Sr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=gt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xL(r/1960))-r,10e?16:e,fo===null)var r=!1;else{if(e=fo,fo=null,Lf=0,Le&6)throw Error(te(331));var i=Le;for(Le|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lgt()-n1?ga(e,0):t1|=n),An(e,t)}function QC(e,t){t===0&&(e.mode&1?(t=Jc,Jc<<=1,!(Jc&130023424)&&(Jc=4194304)):t=1);var n=pn();e=Oi(e,t),e!==null&&(gc(e,t,n),An(e,n))}function AL(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),QC(e,n)}function OL(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(te(314))}r!==null&&r.delete(t),QC(e,n)}var XC;XC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Cn.current)_n=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _n=!1,bL(e,t,n);_n=!!(e.flags&131072)}else _n=!1,ot&&t.flags&1048576&&tC(t,_f,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gd(e,t),e=t.pendingProps;var i=Qs(t,an.current);Fs(t,n),i=Gy(null,t,r,e,i,n);var o=Qy();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nn(r)?(o=!0,Sf(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Wy(t),i.updater=ih,t.stateNode=i,i._reactInternals=t,U0(t,r,e,n),t=W0(null,t,r,!0,o,n)):(t.tag=0,ot&&o&&By(t),dn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=RL(r),e=wr(r,e),i){case 0:t=$0(null,t,r,e,n);break e;case 1:t=wT(null,t,r,e,n);break e;case 11:t=xT(null,t,r,e,n);break e;case 14:t=ST(null,t,r,wr(r.type,e),n);break e}throw Error(te(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wr(r,i),$0(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wr(r,i),wT(e,t,r,i,n);case 3:e:{if(DC(t),e===null)throw Error(te(387));r=t.pendingProps,o=t.memoizedState,i=o.element,sC(e,t),Af(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=el(Error(te(423)),t),t=_T(e,t,r,n,i);break e}else if(r!==i){i=el(Error(te(424)),t),t=_T(e,t,r,n,i);break e}else for(Hn=To(t.stateNode.containerInfo.firstChild),jn=t,ot=!0,Cr=null,n=oC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xs(),r===i){t=Ii(e,t,n);break e}dn(e,t,r,n)}t=t.child}return t;case 5:return lC(t),e===null&&z0(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,M0(r,i)?a=null:o!==null&&M0(r,o)&&(t.flags|=32),MC(e,t),dn(e,t,a,n),t.child;case 6:return e===null&&z0(t),null;case 13:return LC(e,t,n);case 4:return Vy(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Js(t,null,r,n):dn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wr(r,i),xT(e,t,r,i,n);case 7:return dn(e,t,t.pendingProps,n),t.child;case 8:return dn(e,t,t.pendingProps.children,n),t.child;case 12:return dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Xe(Cf,r._currentValue),r._currentValue=a,o!==null)if(Lr(o.value,a)){if(o.children===i.children&&!Cn.current){t=Ii(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Si(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),F0(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(te(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),F0(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}dn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Fs(t,n),i=pr(i),r=r(i),t.flags|=1,dn(e,t,r,n),t.child;case 14:return r=t.type,i=wr(r,t.pendingProps),i=wr(r.type,i),ST(e,t,r,i,n);case 15:return IC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wr(r,i),Gd(e,t),t.tag=1,Nn(r)?(e=!0,Sf(t)):e=!1,Fs(t,n),NC(t,r,i),U0(t,r,i,n),W0(null,t,r,!0,e,n);case 19:return PC(e,t,n);case 22:return RC(e,t,n)}throw Error(te(156,t.tag))};function JC(e,t){return w_(e,t)}function IL(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lr(e,t,n,r){return new IL(e,t,n,r)}function a1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function RL(e){if(typeof e=="function")return a1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wy)return 11;if(e===_y)return 14}return 2}function wo(e,t){var n=e.alternate;return n===null?(n=lr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Jd(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")a1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ts:return ba(n.children,i,o,t);case Sy:a=8,i|=8;break;case d0:return e=lr(12,n,t,i|2),e.elementType=d0,e.lanes=o,e;case f0:return e=lr(13,n,t,i),e.elementType=f0,e.lanes=o,e;case p0:return e=lr(19,n,t,i),e.elementType=p0,e.lanes=o,e;case l_:return sh(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case a_:a=10;break e;case s_:a=9;break e;case wy:a=11;break e;case _y:a=14;break e;case eo:a=16,r=null;break e}throw Error(te(130,e==null?e:typeof e,""))}return t=lr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ba(e,t,n,r){return e=lr(7,e,r,t),e.lanes=n,e}function sh(e,t,n,r){return e=lr(22,e,r,t),e.elementType=l_,e.lanes=n,e.stateNode={isHidden:!1},e}function qm(e,t,n){return e=lr(6,e,null,t),e.lanes=n,e}function Ym(e,t,n){return t=lr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ML(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cm(0),this.expirationTimes=Cm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cm(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function s1(e,t,n,r,i,o,a,s,l){return e=new ML(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=lr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wy(o),e}function DL(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nN)}catch(e){console.error(e)}}nN(),n_.exports=Gn;var fh=n_.exports;const rN=Gp(fh);var zT=fh;u0.createRoot=zT.createRoot,u0.hydrateRoot=zT.hydrateRoot;var Zr=function(){return Zr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u")return tP;var t=nP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},iP=sN(),Us="data-scroll-locked",oP=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(HL,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(s,"px ").concat(r,`; + } + body[`).concat(Us,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(i,`px; + padding-top: `).concat(o,`px; + padding-right: `).concat(a,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Zd,` { + right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(ef,` { + margin-right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Zd," .").concat(Zd,` { + right: 0 `).concat(r,`; + } + + .`).concat(ef," .").concat(ef,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(Us,`] { + `).concat(UL,": ").concat(s,`px; + } +`)},HT=function(){var e=parseInt(document.body.getAttribute(Us)||"0",10);return isFinite(e)?e:0},aP=function(){S.useEffect(function(){return document.body.setAttribute(Us,(HT()+1).toString()),function(){var e=HT()-1;e<=0?document.body.removeAttribute(Us):document.body.setAttribute(Us,e.toString())}},[])},sP=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;aP();var o=S.useMemo(function(){return rP(i)},[i]);return S.createElement(iP,{styles:oP(o,!t,i,n?"":"!important")})},nb=!1;if(typeof window<"u")try{var cd=Object.defineProperty({},"passive",{get:function(){return nb=!0,!0}});window.addEventListener("test",cd,cd),window.removeEventListener("test",cd,cd)}catch{nb=!1}var ts=nb?{passive:!1}:!1,lP=function(e){return e.tagName==="TEXTAREA"},lN=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lP(e)&&n[t]==="visible")},uP=function(e){return lN(e,"overflowY")},cP=function(e){return lN(e,"overflowX")},UT=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=uN(e,r);if(i){var o=cN(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},uN=function(e,t){return e==="v"?uP(t):cP(t)},cN=function(e,t){return e==="v"?dP(t):fP(t)},pP=function(e,t){return e==="h"&&t==="rtl"?-1:1},hP=function(e,t,n,r,i){var o=pP(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=cN(e,s),h=p[0],m=p[1],y=p[2],b=m-y-o*h;(h||b)&&uN(e,s)&&(d+=b,f+=h),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(Math.abs(d)<1||!i)||!c&&(Math.abs(f)<1||!i))&&(u=!0),u},dd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jT=function(e){return[e.deltaX,e.deltaY]},$T=function(e){return e&&"current"in e?e.current:e},mP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gP=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},bP=0,ns=[];function yP(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),i=S.useState(bP++)[0],o=S.useState(sN)[0],a=S.useRef(e);S.useEffect(function(){a.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=FL([e.lockRef.current],(e.shards||[]).map($T),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var b=dd(m),E=n.current,v="deltaX"in m?m.deltaX:E[0]-b[0],k="deltaY"in m?m.deltaY:E[1]-b[1],_,x=m.target,I=Math.abs(v)>Math.abs(k)?"h":"v";if("touches"in m&&I==="h"&&x.type==="range")return!1;var R=UT(I,x);if(!R)return!0;if(R?_=I:(_=I==="v"?"h":"v",R=UT(I,x)),!R)return!1;if(!r.current&&"changedTouches"in m&&(v||k)&&(r.current=_),!_)return!0;var z=r.current||_;return hP(z,y,m,z==="h"?v:k,!0)},[]),l=S.useCallback(function(m){var y=m;if(!(!ns.length||ns[ns.length-1]!==o)){var b="deltaY"in y?jT(y):dd(y),E=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&mP(_.delta,b)})[0];if(E&&E.should){y.cancelable&&y.preventDefault();return}if(!E){var v=(a.current.shards||[]).map($T).filter(Boolean).filter(function(_){return _.contains(y.target)}),k=v.length>0?s(y,v[0]):!a.current.noIsolation;k&&y.cancelable&&y.preventDefault()}}},[]),u=S.useCallback(function(m,y,b,E){var v={name:m,delta:y,target:b,should:E,shadowParent:EP(b)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(k){return k!==v})},1)},[]),c=S.useCallback(function(m){n.current=dd(m),r.current=void 0},[]),d=S.useCallback(function(m){u(m.type,jT(m),m.target,s(m,e.lockRef.current))},[]),f=S.useCallback(function(m){u(m.type,dd(m),m.target,s(m,e.lockRef.current))},[]);S.useEffect(function(){return ns.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ts),document.addEventListener("touchmove",l,ts),document.addEventListener("touchstart",c,ts),function(){ns=ns.filter(function(m){return m!==o}),document.removeEventListener("wheel",l,ts),document.removeEventListener("touchmove",l,ts),document.removeEventListener("touchstart",c,ts)}},[]);var p=e.removeScrollBar,h=e.inert;return S.createElement(S.Fragment,null,h?S.createElement(o,{styles:gP(i)}):null,p?S.createElement(sP,{gapMode:e.gapMode}):null)}function EP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vP=KL(aN,yP);var hh=S.forwardRef(function(e,t){return S.createElement(ph,Zr({},e,{ref:t,sideCar:vP}))});hh.classNames=ph.classNames;function Kt(e){return Object.keys(e)}function Xm(e){return e&&typeof e=="object"&&!Array.isArray(e)}function d1(e,t){const n={...e},r=t;return Xm(e)&&Xm(t)&&Object.keys(t).forEach(i=>{Xm(r[i])&&i in e?n[i]=d1(n[i],r[i]):n[i]=r[i]}),n}function TP(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function kP(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function rb(e){const t=kP(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function Jm(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function dN(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r==="0")return`0${e}`;if(typeof r=="number"){const i=`${r/16}${e}`;return t?Jm(i):i}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(o=>n(o)).join(",");if(r.includes(" "))return r.split(" ").map(o=>n(o)).join(" ");if(r.includes(e))return t?Jm(r):r;const i=r.replace("px","");if(!Number.isNaN(Number(i))){const o=`${Number(i)/16}${e}`;return t?Jm(o):o}}return r}return n}const Y=dN("rem",{shouldScale:!0}),zf=dN("em");function f1(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function fN(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(r=>t.test(r))}return!1}function Va(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==S.Fragment:!1}function Uo(e){const t=S.createContext(null);return[({children:i,value:o})=>T.jsx(t.Provider,{value:o,children:i}),()=>{const i=S.useContext(t);if(i===null)throw new Error(e);return i}]}function p1(e=null){const t=S.createContext(e);return[({children:i,value:o})=>T.jsx(t.Provider,{value:o,children:i}),()=>S.useContext(t)]}const xP={app:100,modal:200,popover:300,overlay:400,max:9999};function Mn(e){return xP[e]}const SP=()=>{};function wP(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||SP:n=>{var r;n.key==="Escape"&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function Je(e,t="size",n=!0){if(e!==void 0)return fN(e)?n?Y(e):e:`var(--${t}-${e})`}function vc(e){return Je(e,"mantine-spacing")}function gr(e){return e===void 0?"var(--mantine-radius-default)":Je(e,"mantine-radius")}function $n(e){return Je(e,"mantine-font-size")}function _P(e){return Je(e,"mantine-line-height",!1)}function h1(e){if(e)return Je(e,"mantine-shadow",!1)}function m1(e,t){return e in t?rb(t[e]):rb(e)}function WT(e,t){const n=e.map(r=>({value:r,px:m1(r,t)}));return n.sort((r,i)=>r.px-i.px),n}function g1(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function ra(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Tc(e,t){const n=ra(e),r=S.useRef(0);return S.useEffect(()=>()=>window.clearTimeout(r.current),[]),S.useCallback((...i)=>{window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(...i),t)},[n,t])}const VT=["mousedown","touchstart"];function CP(e,t,n){const r=S.useRef();return S.useEffect(()=>{const i=o=>{const{target:a}=o??{};if(Array.isArray(n)){const s=(a==null?void 0:a.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(a)&&a.tagName!=="HTML";n.every(u=>!!u&&!o.composedPath().includes(u))&&!s&&e()}else r.current&&!r.current.contains(a)&&e()};return(t||VT).forEach(o=>document.addEventListener(o,i)),()=>{(t||VT).forEach(o=>document.removeEventListener(o,i))}},[r,e,n]),r}function NP({timeout:e=2e3}={}){const[t,n]=S.useState(null),[r,i]=S.useState(!1),[o,a]=S.useState(null),s=c=>{window.clearTimeout(o),a(window.setTimeout(()=>i(!1),e)),i(c)};return{copy:c=>{"clipboard"in navigator?navigator.clipboard.writeText(c).then(()=>s(!0)).catch(d=>n(d)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{i(!1),n(null),window.clearTimeout(o)},error:t,copied:r}}function AP(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function OP(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function b1(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,i]=S.useState(n?t:OP(e)),o=S.useRef();return S.useEffect(()=>{if("matchMedia"in window)return o.current=window.matchMedia(e),i(o.current.matches),AP(o.current,a=>i(a.matches))},[e]),r}function IP(e,t){return b1("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}const bl=typeof document<"u"?S.useLayoutEffect:S.useEffect;function Da(e,t){const n=S.useRef(!1);S.useEffect(()=>()=>{n.current=!1},[]),S.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function pN({opened:e,shouldReturnFocus:t=!0}){const n=S.useRef(),r=()=>{var i;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((i=n.current)==null||i.focus({preventScroll:!0}))};return Da(()=>{let i=-1;const o=a=>{a.key==="Tab"&&window.clearTimeout(i)};return document.addEventListener("keydown",o),e?n.current=document.activeElement:t&&(i=window.setTimeout(r,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",o)}},[e,t]),r}function RP(e,t="body > :not(script)"){const n=g1(),r=Array.from(document.querySelectorAll(t)).map(i=>{var l;if((l=i==null?void 0:i.shadowRoot)!=null&&l.contains(e)||i.contains(e))return;const o=i.getAttribute("aria-hidden"),a=i.getAttribute("data-hidden"),s=i.getAttribute("data-focus-id");return i.setAttribute("data-focus-id",n),o===null||o==="false"?i.setAttribute("aria-hidden","true"):!a&&!s&&i.setAttribute("data-hidden",o),{node:i,ariaHidden:a||null}});return()=>{r.forEach(i=>{!i||n!==i.node.getAttribute("data-focus-id")||(i.ariaHidden===null?i.node.removeAttribute("aria-hidden"):i.node.setAttribute("aria-hidden",i.ariaHidden),i.node.removeAttribute("data-focus-id"),i.node.removeAttribute("data-hidden"))})}}const MP=/input|select|textarea|button|object/,hN="a, input, select, textarea, button, object, [tabindex]";function DP(e){return e.style.display==="none"}function LP(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(DP(n))return!1;n=n.parentNode}return!0}function mN(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function ib(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(mN(e));return(MP.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&LP(e)}function gN(e){const t=mN(e);return(Number.isNaN(t)||t>=0)&&ib(e)}function PP(e){return Array.from(e.querySelectorAll(hN)).filter(gN)}function BP(e,t){const n=PP(e);if(!n.length){t.preventDefault();return}const r=n[t.shiftKey?0:n.length-1],i=e.getRootNode();let o=r===i.activeElement||e===i.activeElement;const a=i.activeElement;if(a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(o=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===a.getAttribute("name")).includes(r)),!o)return;t.preventDefault();const l=n[t.shiftKey?n.length-1:0];l&&l.focus()}function zP(e=!0){const t=S.useRef(),n=S.useRef(null),r=o=>{let a=o.querySelector("[data-autofocus]");if(!a){const s=Array.from(o.querySelectorAll(hN));a=s.find(gN)||s.find(ib)||null,!a&&ib(o)&&(a=o)}a&&a.focus({preventScroll:!0})},i=S.useCallback(o=>{if(e){if(o===null){n.current&&(n.current(),n.current=null);return}n.current=RP(o),t.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&r(o)}),t.current=o):t.current=null)}},[e]);return S.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));const o=a=>{a.key==="Tab"&&t.current&&BP(t.current,a)};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o),n.current&&n.current()}},[e]),i}const FP=Et.useId||(()=>{});function HP(){const e=FP();return e?`mantine-${e.replace(/:/g,"")}`:""}function jo(e){const t=HP(),[n,r]=S.useState(t);return bl(()=>{r(g1())},[]),typeof e=="string"?e:typeof window>"u"?t:n}function bN(e,t,n){S.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function yN(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function UP(...e){return t=>{e.forEach(n=>yN(n,t))}}function Dn(...e){return S.useCallback(UP(...e),e)}function La({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[i,o]=S.useState(t!==void 0?t:n),a=(s,...l)=>{o(s),r==null||r(s,...l)};return e!==void 0?[e,r,!0]:[i,a,!1]}function EN(e,t){return b1("(prefers-reduced-motion: reduce)",e,t)}function jP(e){const t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var $P={};function WP(){return typeof process<"u"&&$P?"production":"development"}function mh(e){var n;const t=Et.version;return typeof Et.version!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function vN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{Object.entries(n).forEach(([r,i])=>{t[r]?t[r]=kt(t[r],i):t[r]=i})}),t}function gh({theme:e,classNames:t,props:n,stylesCtx:r}){const o=(Array.isArray(t)?t:[t]).map(a=>typeof a=="function"?a(e,n,r):a||VP);return qP(o)}function Ff({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce((o,a)=>typeof a=="function"?{...o,...a(e,n,r)}:{...o,...a},{})}const y1=S.createContext(null);function $o(){const e=S.useContext(y1);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function YP(){return $o().cssVariablesResolver}function KP(){return $o().classNamesPrefix}function bh(){return $o().getStyleNonce}function GP(){return $o().withStaticClasses}function QP(){return $o().headless}function XP(){var e;return(e=$o().stylesTransform)==null?void 0:e.sx}function JP(){var e;return(e=$o().stylesTransform)==null?void 0:e.styles}function ZP(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function e6(e){let t=e.replace("#","");if(t.length===3){const a=t.split("");t=[a[0],a[0],a[1],a[1],a[2],a[2]].join("")}if(t.length===8){const a=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a}}const n=parseInt(t,16),r=n>>16&255,i=n>>8&255,o=n&255;return{r,g:i,b:o,a:1}}function t6(e){const[t,n,r,i]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i||1}}function n6(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(t);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),i=parseInt(n[2],10)/100,o=parseInt(n[3],10)/100,a=n[5]?parseFloat(n[5]):void 0,s=(1-Math.abs(2*o-1))*i,l=r/60,u=s*(1-Math.abs(l%2-1)),c=o-s/2;let d,f,p;return l>=0&&l<1?(d=s,f=u,p=0):l>=1&&l<2?(d=u,f=s,p=0):l>=2&&l<3?(d=0,f=s,p=u):l>=3&&l<4?(d=0,f=u,p=s):l>=4&&l<5?(d=u,f=0,p=s):(d=s,f=0,p=u),{r:Math.round((d+c)*255),g:Math.round((f+c)*255),b:Math.round((p+c)*255),a:a||1}}function E1(e){return ZP(e)?e6(e):e.startsWith("rgb")?t6(e):e.startsWith("hsl")?n6(e):{r:0,g:0,b:0,a:1}}function fd(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:r,b:i,a:o}=E1(e),a=1-t,s=l=>Math.round(l*a);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${o})`}function qu(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function Zm(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function r6(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function i6(e){if(e.startsWith("oklch("))return(r6(e)||0)/100;const{r:t,g:n,b:r}=E1(e),i=t/255,o=n/255,a=r/255,s=Zm(i),l=Zm(o),u=Zm(a);return .2126*s+.7152*l+.0722*u}function Hl(e,t=.179){return e.startsWith("var(")?!1:i6(e)>t}function kc({color:e,theme:t,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Hl(n==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Hl(n==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Hl(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,i]=e.split("."),o=i?Number(i):void 0,a=r in t.colors;if(a){const s=o!==void 0?t.colors[r][o]:t.colors[r][qu(t,n||"light")];return{color:r,value:s,shade:o,isThemeColor:a,isLight:Hl(s,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${o}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:a,isLight:Hl(e,t.luminanceThreshold),shade:o,variable:void 0}}function Mo(e,t){const n=kc({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function ob(e,t){const n={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)||t.defaultGradient.deg||0},r=Mo(n.from,t),i=Mo(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Wr(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const o=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${o}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:r,b:i}=E1(e);return`rgba(${n}, ${r}, ${i}, ${t})`}const rs=Wr,o6=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{const o=kc({color:e,theme:t}),a=typeof i=="boolean"?i:t.autoContrast;if(n==="filled"){const s=a&&o.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return o.isThemeColor?o.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:s,border:`${Y(1)} solid transparent`}:{background:`var(--mantine-color-${o.color}-${o.shade})`,hover:`var(--mantine-color-${o.color}-${o.shade===9?8:o.shade+1})`,color:s,border:`${Y(1)} solid transparent`}:{background:e,hover:fd(e,.1),color:s,border:`${Y(1)} solid transparent`}}if(n==="light"){if(o.isThemeColor){if(o.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Y(1)} solid transparent`};const s=t.colors[o.color][o.shade];return{background:Wr(s,.1),hover:Wr(s,.12),color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${Y(1)} solid transparent`}}return{background:Wr(e,.1),hover:Wr(e,.12),color:e,border:`${Y(1)} solid transparent`}}if(n==="outline")return o.isThemeColor?o.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${Y(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:Wr(t.colors[o.color][o.shade],.05),color:`var(--mantine-color-${o.color}-${o.shade})`,border:`${Y(1)} solid var(--mantine-color-${o.color}-${o.shade})`}:{background:"transparent",hover:Wr(e,.05),color:e,border:`${Y(1)} solid ${e}`};if(n==="subtle"){if(o.isThemeColor){if(o.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Y(1)} solid transparent`};const s=t.colors[o.color][o.shade];return{background:"transparent",hover:Wr(s,.12),color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${Y(1)} solid transparent`}}return{background:"transparent",hover:Wr(e,.12),color:e,border:`${Y(1)} solid transparent`}}return n==="transparent"?o.isThemeColor?o.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${Y(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${Y(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${Y(1)} solid transparent`}:n==="white"?o.isThemeColor?o.shade===void 0?{background:"var(--mantine-color-white)",hover:fd(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${Y(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:fd(t.white,.01),color:`var(--mantine-color-${o.color}-${o.shade})`,border:`${Y(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:fd(t.white,.01),color:e,border:`${Y(1)} solid transparent`}:n==="gradient"?{background:ob(r,t),hover:ob(r,t),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${Y(1)} solid var(--mantine-color-default-border)`}:{}},a6={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},qT="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",v1={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:a6,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:o6,autoContrast:!1,luminanceThreshold:.3,fontFamily:qT,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:qT,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:Y(34),lineHeight:"1.3"},h2:{fontSize:Y(26),lineHeight:"1.35"},h3:{fontSize:Y(22),lineHeight:"1.4"},h4:{fontSize:Y(18),lineHeight:"1.45"},h5:{fontSize:Y(16),lineHeight:"1.5"},h6:{fontSize:Y(14),lineHeight:"1.5"}}},fontSizes:{xs:Y(12),sm:Y(14),md:Y(16),lg:Y(18),xl:Y(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:Y(2),sm:Y(4),md:Y(8),lg:Y(16),xl:Y(32)},spacing:{xs:Y(10),sm:Y(12),md:Y(16),lg:Y(20),xl:Y(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${Y(1)} ${Y(3)} rgba(0, 0, 0, 0.05), 0 ${Y(1)} ${Y(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${Y(1)} ${Y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Y(10)} ${Y(15)} ${Y(-5)}, rgba(0, 0, 0, 0.04) 0 ${Y(7)} ${Y(7)} ${Y(-5)}`,md:`0 ${Y(1)} ${Y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Y(20)} ${Y(25)} ${Y(-5)}, rgba(0, 0, 0, 0.04) 0 ${Y(10)} ${Y(10)} ${Y(-5)}`,lg:`0 ${Y(1)} ${Y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Y(28)} ${Y(23)} ${Y(-7)}, rgba(0, 0, 0, 0.04) 0 ${Y(12)} ${Y(12)} ${Y(-7)}`,xl:`0 ${Y(1)} ${Y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Y(36)} ${Y(28)} ${Y(-7)}, rgba(0, 0, 0, 0.04) 0 ${Y(17)} ${Y(17)} ${Y(-7)}`},other:{},components:{}};function YT(e){return e==="auto"||e==="dark"||e==="light"}function s6({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(e);return YT(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{t=r=>{r.storageArea===window.localStorage&&r.key===e&&YT(r.newValue)&&n(r.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const l6="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",KT="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function eg(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function GT(e){if(!(e.primaryColor in e.colors))throw new Error(l6);if(typeof e.primaryShade=="object"&&(!eg(e.primaryShade.dark)||!eg(e.primaryShade.light)))throw new Error(KT);if(typeof e.primaryShade=="number"&&!eg(e.primaryShade))throw new Error(KT)}function u6(e,t){var r;if(!t)return GT(e),e;const n=d1(e,t);return t.fontFamily&&!((r=t.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),GT(n),n}const T1=S.createContext(null),c6=()=>S.useContext(T1)||v1;function li(){const e=S.useContext(T1);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function TN({theme:e,children:t,inherit:n=!0}){const r=c6(),i=S.useMemo(()=>u6(n?r:v1,e),[e,r,n]);return T.jsx(T1.Provider,{value:i,children:t})}TN.displayName="@mantine/core/MantineThemeProvider";function d6(){const e=li(),t=bh(),n=Kt(e.breakpoints).reduce((r,i)=>{const o=e.breakpoints[i].includes("px"),a=rb(e.breakpoints[i]),s=o?`${a-.1}px`:zf(a-.1),l=o?`${a}px`:zf(a);return`${r}@media (max-width: ${s}) {.mantine-visible-from-${i} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${i} {display: none !important;}}`},"");return T.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function tg(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function Ul(e,t){return(Array.isArray(e)?e:[e]).reduce((r,i)=>`${i}{${r}}`,t)}function f6(e,t){const n=tg(e.variables),r=n?Ul(t,n):"",i=tg(e.dark),o=tg(e.light),a=i?Ul(t===":host"?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,i):"",s=o?Ul(t===":host"?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,o):"";return`${r}${a}${s}`}function p6({color:e,theme:t,autoContrast:n}){return(typeof n=="boolean"?n:t.autoContrast)&&kc({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function QT(e,t){return p6({color:e.colors[e.primaryColor][qu(e,t)],theme:e,autoContrast:null})}function pd({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n==="light"){const s=qu(e,"light"),l={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${s===9?8:s+1})`,[`--mantine-color-${r}-light`]:rs(e.colors[t][s],.1),[`--mantine-color-${r}-light-hover`]:rs(e.colors[t][s],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-outline-hover`]:rs(e.colors[t][s],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...l}:l}const o=qu(e,"dark"),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${o===9?8:o+1})`,[`--mantine-color-${r}-light`]:rs(e.colors[t][Math.max(0,o-2)],.15),[`--mantine-color-${r}-light-hover`]:rs(e.colors[t][Math.max(0,o-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(o-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(o-4,0)})`,[`--mantine-color-${r}-outline-hover`]:rs(e.colors[t][Math.max(o-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}function h6(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function is(e,t,n){Kt(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}const kN=e=>{const t=qu(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:Y(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":QT(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":QT(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};is(r.variables,e.breakpoints,"breakpoint"),is(r.variables,e.spacing,"spacing"),is(r.variables,e.fontSizes,"font-size"),is(r.variables,e.lineHeights,"line-height"),is(r.variables,e.shadows,"shadow"),is(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((o,a)=>{r.variables[`--mantine-primary-color-${a}`]=`var(--mantine-color-${e.primaryColor}-${a})`}),Kt(e.colors).forEach(o=>{const a=e.colors[o];if(h6(a)){Object.assign(r.light,pd({theme:e,name:a.name,color:a.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,pd({theme:e,name:a.name,color:a.dark,colorScheme:"dark",withColorValues:!0}));return}a.forEach((s,l)=>{r.variables[`--mantine-color-${o}-${l}`]=s}),Object.assign(r.light,pd({theme:e,color:o,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,pd({theme:e,color:o,colorScheme:"dark",withColorValues:!1}))});const i=e.headings.sizes;return Kt(i).forEach(o=>{r.variables[`--mantine-${o}-font-size`]=i[o].fontSize,r.variables[`--mantine-${o}-line-height`]=i[o].lineHeight,r.variables[`--mantine-${o}-font-weight`]=i[o].fontWeight||e.headings.fontWeight}),r};function m6({theme:e,generator:t}){const n=kN(e),r=t==null?void 0:t(e);return r?d1(n,r):n}const ng=kN(v1);function g6(e){const t={variables:{},light:{},dark:{}};return Kt(e.variables).forEach(n=>{ng.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),Kt(e.light).forEach(n=>{ng.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),Kt(e.dark).forEach(n=>{ng.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function b6(e){return` + ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; } + ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; } +`}function xN({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=li(),r=bh(),i=YP(),o=m6({theme:n,generator:i}),a=e===":root"&&t,s=a?g6(o):o,l=f6(s,e);return l?T.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${l}${a?"":b6(e)}`}}):null}xN.displayName="@mantine/CssVariables";function y6(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function as(e,t){var r;const n=e!=="auto"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(r=t())==null||r.setAttribute("data-mantine-color-scheme",n)}function E6({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const i=S.useRef(),[o,a]=S.useState(()=>e.get(t)),s=r||o,l=S.useCallback(c=>{r||(as(c,n),a(c),e.set(c))},[e.set,s,r]),u=S.useCallback(()=>{a(t),as(t,n),e.clear()},[e.clear,t]);return S.useEffect(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),bl(()=>{as(e.get(t),n)},[]),S.useEffect(()=>{var d;if(r)return as(r,n),()=>{};r===void 0&&as(o,n),i.current=window.matchMedia("(prefers-color-scheme: dark)");const c=f=>{o==="auto"&&as(f.matches?"dark":"light",n)};return(d=i.current)==null||d.addEventListener("change",c),()=>{var f;return(f=i.current)==null?void 0:f.removeEventListener("change",c)}},[o,r]),{colorScheme:s,setColorScheme:l,clearColorScheme:u}}function v6({respectReducedMotion:e,getRootElement:t}){bl(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}y6();function SN({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:o=!0,withCssVariables:a=!0,cssVariablesSelector:s=":root",classNamesPrefix:l="mantine",colorSchemeManager:u=s6(),defaultColorScheme:c="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:h}){const{colorScheme:m,setColorScheme:y,clearColorScheme:b}=E6({defaultColorScheme:c,forceColorScheme:p,manager:u,getRootElement:d});return v6({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),T.jsx(y1.Provider,{value:{colorScheme:m,setColorScheme:y,clearColorScheme:b,getRootElement:d,classNamesPrefix:l,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s,withStaticClasses:r,stylesTransform:h},children:T.jsxs(TN,{theme:e,children:[a&&T.jsx(xN,{cssVariablesSelector:s,deduplicateCssVariables:o}),i&&T.jsx(d6,{}),t]})})}SN.displayName="@mantine/core/MantineProvider";function wN({classNames:e,styles:t,props:n,stylesCtx:r}){const i=li();return{resolvedClassNames:gh({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:Ff({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}const T6={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function k6({theme:e,options:t,unstyled:n}){return kt((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||T6[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function x6({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return gh({theme:i,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:t})[e]}function XT({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return gh({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function S6({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function w6({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function _6({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(i=>`${t}-${i}-${n}`)}function C6({themeName:e,theme:t,selector:n,props:r,stylesCtx:i}){return e.map(o=>{var a,s;return(s=gh({theme:t,classNames:(a=t.components[o])==null?void 0:a.classNames,props:r,stylesCtx:i}))==null?void 0:s[n]})}function N6({options:e,classes:t,selector:n,unstyled:r}){return e!=null&&e.variant&&!r?t[`${n}--${e.variant}`]:void 0}function A6({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,classNames:o,classes:a,unstyled:s,className:l,rootSelector:u,props:c,stylesCtx:d,withStaticClasses:f,headless:p,transformedStyles:h}){return kt(k6({theme:e,options:t,unstyled:s||p}),C6({theme:e,themeName:n,selector:r,props:c,stylesCtx:d}),N6({options:t,classes:a,selector:r,unstyled:s}),XT({selector:r,stylesCtx:d,theme:e,classNames:o,props:c}),XT({selector:r,stylesCtx:d,theme:e,classNames:h,props:c}),x6({selector:r,stylesCtx:d,options:t,props:c,theme:e}),S6({rootSelector:u,selector:r,className:l}),w6({selector:r,classes:a,unstyled:s||p}),f&&!p&&_6({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function O6({theme:e,themeName:t,props:n,stylesCtx:r,selector:i}){return t.map(o=>{var a;return Ff({theme:e,styles:(a=e.components[o])==null?void 0:a.styles,props:n,stylesCtx:r})[i]}).reduce((o,a)=>({...o,...a}),{})}function ab({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...ab({style:r,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function I6(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{t[r]={...t[r],...f1(n[r])}}),t),{})}function R6({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:i,selector:o,themeName:a,headless:s}){var l;return(l=I6([s?{}:t==null?void 0:t(n,r,i),...a.map(u=>{var c,d,f;return(f=(d=(c=n.components)==null?void 0:c[u])==null?void 0:d.vars)==null?void 0:f.call(d,n,r,i)}),e==null?void 0:e(n,r,i)]))==null?void 0:l[o]}function M6({theme:e,themeName:t,selector:n,options:r,props:i,stylesCtx:o,rootSelector:a,styles:s,style:l,vars:u,varsResolver:c,headless:d,withStylesTransform:f}){return{...!f&&O6({theme:e,themeName:t,props:i,stylesCtx:o,selector:n}),...!f&&Ff({theme:e,styles:s,props:i,stylesCtx:o})[n],...!f&&Ff({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||i,stylesCtx:o})[n],...R6({theme:e,props:i,stylesCtx:o,vars:u,varsResolver:c,selector:n,themeName:t,headless:d}),...a===n?ab({style:l,theme:e}):null,...ab({style:r==null?void 0:r.style,theme:e})}}function D6({props:e,stylesCtx:t,themeName:n}){var a;const r=li(),i=(a=JP())==null?void 0:a();return{getTransformedStyles:s=>i?[...s.map(u=>i(u,{props:e,theme:r,ctx:t})),...n.map(u=>{var c;return i((c=r.components[u])==null?void 0:c.styles,{props:e,theme:r,ctx:t})})].filter(Boolean):[],withStylesTransform:!!i}}function Pe({name:e,classes:t,props:n,stylesCtx:r,className:i,style:o,rootSelector:a="root",unstyled:s,classNames:l,styles:u,vars:c,varsResolver:d}){const f=li(),p=KP(),h=GP(),m=QP(),y=(Array.isArray(e)?e:[e]).filter(v=>v),{withStylesTransform:b,getTransformedStyles:E}=D6({props:n,stylesCtx:r,themeName:y});return(v,k)=>({className:A6({theme:f,options:k,themeName:y,selector:v,classNamesPrefix:p,classNames:l,classes:t,unstyled:s,className:i,rootSelector:a,props:n,stylesCtx:r,withStaticClasses:h,headless:m,transformedStyles:E([k==null?void 0:k.styles,u])}),style:M6({theme:f,themeName:y,selector:v,options:k,props:n,stylesCtx:r,rootSelector:a,styles:u,style:o,vars:c,varsResolver:d,headless:m,withStylesTransform:b})})}function JT(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(r=>r.remove())}function L6({keepTransitions:e}={}){const t=S.useRef(),n=S.useRef(),r=S.useContext(y1),i=bh(),o=S.useRef(i==null?void 0:i());if(!r)throw new Error("[@mantine/core] MantineProvider was not found in tree");const a=d=>{r.setColorScheme(d),t.current=e?()=>{}:JT(o.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var f;(f=t.current)==null||f.call(t)},10)},s=()=>{r.clearColorScheme(),t.current=e?()=>{}:JT(o.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var d;(d=t.current)==null||d.call(t)},10)},l=IP("light",{getInitialValueInEffect:!1}),u=r.colorScheme==="auto"?l:r.colorScheme,c=S.useCallback(()=>a(u==="light"?"dark":"light"),[a,u]);return S.useEffect(()=>()=>{var d;(d=t.current)==null||d.call(t),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:a,clearColorScheme:s,toggleColorScheme:c}}function ie(e,t,n){var a;const r=li(),i=(a=r.components[e])==null?void 0:a.defaultProps,o=typeof i=="function"?i(r):i;return{...t,...o,...f1(n)}}function rg(e){return Kt(e).reduce((t,n)=>e[n]!==void 0?`${t}${TP(n)}:${e[n]};`:t,"").trim()}function P6({selector:e,styles:t,media:n,container:r}){const i=t?rg(t):"",o=Array.isArray(n)?n.map(s=>`@media${s.query}{${e}{${rg(s.styles)}}}`):[],a=Array.isArray(r)?r.map(s=>`@container ${s.query}{${e}{${rg(s.styles)}}}`):[];return`${i?`${e}{${i}}`:""}${o.join("")}${a.join("")}`.trim()}function _N(e){const t=bh();return T.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:P6(e)}})}function xc(e){const{m:t,mx:n,my:r,mt:i,mb:o,ml:a,mr:s,me:l,ms:u,p:c,px:d,py:f,pt:p,pb:h,pl:m,pr:y,pe:b,ps:E,bd:v,bg:k,c:_,opacity:x,ff:I,fz:R,fw:z,lts:A,ta:j,lh:L,fs:U,tt:V,td:H,w:B,miw:M,maw:N,h:F,mih:w,mah:q,bgsz:X,bgp:D,bgr:be,bga:ge,pos:le,top:Ce,left:Ie,bottom:Oe,right:Ke,inset:xt,display:Xt,flex:ye,hiddenFrom:Re,visibleFrom:at,lightHidden:Be,darkHidden:Fe,sx:Ln,...pe}=e;return{styleProps:f1({m:t,mx:n,my:r,mt:i,mb:o,ml:a,mr:s,me:l,ms:u,p:c,px:d,py:f,pt:p,pb:h,pl:m,pr:y,pe:b,ps:E,bd:v,bg:k,c:_,opacity:x,ff:I,fz:R,fw:z,lts:A,ta:j,lh:L,fs:U,tt:V,td:H,w:B,miw:M,maw:N,h:F,mih:w,mah:q,bgsz:X,bgp:D,bgr:be,bga:ge,pos:le,top:Ce,left:Ie,bottom:Oe,right:Ke,inset:xt,display:Xt,flex:ye,hiddenFrom:Re,visibleFrom:at,lightHidden:Be,darkHidden:Fe,sx:Ln}),rest:pe}}const B6={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function k1(e,t){const n=kc({color:e,theme:t});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function z6(e,t){const n=kc({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:k1(e,t)}function F6(e,t){if(typeof e=="number")return Y(e);if(typeof e=="string"){const[n,r,...i]=e.split(" ").filter(a=>a.trim()!=="");let o=`${Y(n)}`;return r&&(o+=` ${r}`),i.length>0&&(o+=` ${k1(i.join(" "),t)}`),o.trim()}return e}const ZT={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function H6(e){return typeof e=="string"&&e in ZT?ZT[e]:e}const U6=["h1","h2","h3","h4","h5","h6"];function j6(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&U6.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?Y(e):e}function $6(e){return e}const W6=["h1","h2","h3","h4","h5","h6"];function V6(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&W6.includes(e)?`var(--mantine-${e}-line-height)`:e}function q6(e){return typeof e=="number"?Y(e):e}function Y6(e,t){if(typeof e=="number")return Y(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return Y(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e}const ig={color:k1,textColor:z6,fontSize:j6,spacing:Y6,identity:$6,size:q6,lineHeight:V6,fontFamily:H6,border:F6};function ek(e){return e.replace("(min-width: ","").replace("em)","")}function K6({media:e,...t}){const r=Object.keys(e).sort((i,o)=>Number(ek(i))-Number(ek(o))).map(i=>({query:i,styles:e[i]}));return{...t,media:r}}function G6(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function Q6(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function X6(e){return typeof e=="object"&&e!==null?Kt(e).filter(t=>t!=="base"):[]}function J6(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function Z6({styleProps:e,data:t,theme:n}){return K6(Kt(e).reduce((r,i)=>{if(i==="hiddenFrom"||i==="visibleFrom"||i==="sx")return r;const o=t[i],a=Array.isArray(o.property)?o.property:[o.property],s=Q6(e[i]);if(!G6(e[i]))return a.forEach(u=>{r.inlineStyles[u]=ig[o.type](s,n)}),r;r.hasResponsiveStyles=!0;const l=X6(e[i]);return a.forEach(u=>{s&&(r.styles[u]=ig[o.type](s,n)),l.forEach(c=>{const d=`(min-width: ${n.breakpoints[c]})`;r.media[d]={...r.media[d],[u]:ig[o.type](J6(e[i],c),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function e4(){return`__m__-${S.useId().replace(/:/g,"")}`}function CN(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...CN(r,t)}),{}):typeof e=="function"?e(t):e??{}}function NN(e){return e.startsWith("data-")?e:`data-${e}`}function t4(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r===void 0||r===""||r===!1||r===null||(t[NN(n)]=e[n]),t},{})}function AN(e){return e?typeof e=="string"?{[NN(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...AN(n)}),{}):t4(e):null}function sb(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...sb(r,t)}),{}):typeof e=="function"?e(t):e??{}}function n4({theme:e,style:t,vars:n,styleProps:r}){const i=sb(t,e),o=sb(n,e);return{...i,...o,...r}}const ON=S.forwardRef(({component:e,style:t,__vars:n,className:r,variant:i,mod:o,size:a,hiddenFrom:s,visibleFrom:l,lightHidden:u,darkHidden:c,renderRoot:d,__size:f,...p},h)=>{var R;const m=li(),y=e||"div",{styleProps:b,rest:E}=xc(p),v=XP(),k=(R=v==null?void 0:v())==null?void 0:R(b.sx),_=e4(),x=Z6({styleProps:b,theme:m,data:B6}),I={ref:h,style:n4({theme:m,style:t,vars:n,styleProps:x.inlineStyles}),className:kt(r,k,{[_]:x.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":c,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${l}`]:l}),"data-variant":i,"data-size":fN(a)?void 0:a||void 0,size:f,...AN(o),...E};return T.jsxs(T.Fragment,{children:[x.hasResponsiveStyles&&T.jsx(_N,{selector:`.${_}`,styles:x.styles,media:x.media}),typeof d=="function"?d(I):T.jsx(y,{...I})]})});ON.displayName="@mantine/core/Box";const se=ON;function IN(e){return e}function fe(e){const t=S.forwardRef(e);return t.extend=IN,t.withProps=n=>{const r=S.forwardRef((i,o)=>T.jsx(t,{...n,...i,ref:o}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t}function br(e){const t=S.forwardRef(e);return t.withProps=n=>{const r=S.forwardRef((i,o)=>T.jsx(t,{...n,...i,ref:o}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t.extend=IN,t}const r4=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Sc(){return S.useContext(r4)}const[i4,yr]=Uo("ScrollArea.Root component was not found in tree");function nl(e,t){const n=ra(t);bl(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}const o4=S.forwardRef((e,t)=>{const{style:n,...r}=e,i=yr(),[o,a]=S.useState(0),[s,l]=S.useState(0),u=!!(o&&s);return nl(i.scrollbarX,()=>{var d;const c=((d=i.scrollbarX)==null?void 0:d.offsetHeight)||0;i.onCornerHeightChange(c),l(c)}),nl(i.scrollbarY,()=>{var d;const c=((d=i.scrollbarY)==null?void 0:d.offsetWidth)||0;i.onCornerWidthChange(c),a(c)}),u?T.jsx("div",{...r,ref:t,style:{...n,width:o,height:s}}):null}),a4=S.forwardRef((e,t)=>{const n=yr(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?T.jsx(o4,{...e,ref:t}):null}),s4={scrollHideDelay:1e3,type:"hover"},RN=S.forwardRef((e,t)=>{const n=ie("ScrollAreaRoot",s4,e),{type:r,scrollHideDelay:i,scrollbars:o,...a}=n,[s,l]=S.useState(null),[u,c]=S.useState(null),[d,f]=S.useState(null),[p,h]=S.useState(null),[m,y]=S.useState(null),[b,E]=S.useState(0),[v,k]=S.useState(0),[_,x]=S.useState(!1),[I,R]=S.useState(!1),z=Dn(t,A=>l(A));return T.jsx(i4,{value:{type:r,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:_,onScrollbarXEnabledChange:x,scrollbarY:m,onScrollbarYChange:y,scrollbarYEnabled:I,onScrollbarYEnabledChange:R,onCornerWidthChange:E,onCornerHeightChange:k},children:T.jsx(se,{...a,ref:z,__vars:{"--sa-corner-width":o!=="xy"?"0px":`${b}px`,"--sa-corner-height":o!=="xy"?"0px":`${v}px`}})})});RN.displayName="@mantine/core/ScrollAreaRoot";function MN(e,t){const n=e/t;return Number.isNaN(n)?0:n}function yh(e){const t=MN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function DN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function l4(e,[t,n]){return Math.min(n,Math.max(t,e))}function tk(e,t,n="ltr"){const r=yh(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=o-r,l=n==="ltr"?[0,a]:[a*-1,0],u=l4(e,l);return DN([0,a],[0,s])(u)}function u4(e,t,n,r="ltr"){const i=yh(n),o=i/2,a=t||o,s=i-a,l=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,d=r==="ltr"?[0,c]:[c*-1,0];return DN([l,u],d)(e)}function LN(e,t){return e>0&&e{e==null||e(r),(n===!1||!r.defaultPrevented)&&(t==null||t(r))}}const[c4,PN]=Uo("ScrollAreaScrollbar was not found in tree"),BN=S.forwardRef((e,t)=>{const{sizes:n,hasThumb:r,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:l,onWheelScroll:u,onResize:c,...d}=e,f=yr(),[p,h]=S.useState(null),m=Dn(t,R=>h(R)),y=S.useRef(null),b=S.useRef(""),{viewport:E}=f,v=n.content-n.viewport,k=ra(u),_=ra(s),x=Tc(c,10),I=R=>{if(y.current){const z=R.clientX-y.current.left,A=R.clientY-y.current.top;l({x:z,y:A})}};return S.useEffect(()=>{const R=z=>{const A=z.target;(p==null?void 0:p.contains(A))&&k(z,v)};return document.addEventListener("wheel",R,{passive:!1}),()=>document.removeEventListener("wheel",R,{passive:!1})},[E,p,v,k]),S.useEffect(_,[n,_]),nl(p,x),nl(f.content,x),T.jsx(c4,{value:{scrollbar:p,hasThumb:r,onThumbChange:ra(i),onThumbPointerUp:ra(o),onThumbPositionChange:_,onThumbPointerDown:ra(a)},children:T.jsx("div",{...d,ref:m,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:ya(e.onPointerDown,R=>{R.preventDefault(),R.button===0&&(R.target.setPointerCapture(R.pointerId),y.current=p.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",I(R))}),onPointerMove:ya(e.onPointerMove,I),onPointerUp:ya(e.onPointerUp,R=>{R.preventDefault();const z=R.target;z.hasPointerCapture(R.pointerId)&&z.releasePointerCapture(R.pointerId),document.body.style.webkitUserSelect=b.current,y.current=null})})})}),zN=S.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:i,...o}=e,a=yr(),[s,l]=S.useState(),u=S.useRef(null),c=Dn(t,u,a.onScrollbarXChange);return S.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),T.jsx(BN,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{...i,"--sa-thumb-width":`${yh(n)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(a.viewport){const p=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),LN(p,f)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Hf(s.paddingLeft),paddingEnd:Hf(s.paddingRight)}})}})});zN.displayName="@mantine/core/ScrollAreaScrollbarX";const FN=S.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:i,...o}=e,a=yr(),[s,l]=S.useState(),u=S.useRef(null),c=Dn(t,u,a.onScrollbarYChange);return S.useEffect(()=>{u.current&&l(window.getComputedStyle(u.current))},[]),T.jsx(BN,{...o,"data-orientation":"vertical",ref:c,sizes:n,style:{"--sa-thumb-height":`${yh(n)}px`,...i},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(a.viewport){const p=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),LN(p,f)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Hf(s.paddingTop),paddingEnd:Hf(s.paddingBottom)}})}})});FN.displayName="@mantine/core/ScrollAreaScrollbarY";const Eh=S.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,{dir:i}=Sc(),o=yr(),a=S.useRef(null),s=S.useRef(0),[l,u]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=MN(l.viewport,l.content),d={...r,sizes:l,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:p=>{a.current=p},onThumbPointerUp:()=>{s.current=0},onThumbPointerDown:p=>{s.current=p}},f=(p,h)=>u4(p,s.current,l,h);return n==="horizontal"?T.jsx(zN,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollLeft,h=tk(p,l,i);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=f(p,i))}}):n==="vertical"?T.jsx(FN,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollTop,h=tk(p,l);l.scrollbar.size===0?a.current.style.opacity="0":a.current.style.opacity="1",a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=f(p))}}):null});Eh.displayName="@mantine/core/ScrollAreaScrollbarVisible";const x1=S.forwardRef((e,t)=>{const n=yr(),{forceMount:r,...i}=e,[o,a]=S.useState(!1),s=e.orientation==="horizontal",l=Tc(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{forceMount:n,...r}=e,i=yr(),[o,a]=S.useState(!1);return S.useEffect(()=>{const{scrollArea:s}=i;let l=0;if(s){const u=()=>{window.clearTimeout(l),a(!0)},c=()=>{l=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",c)}}},[i.scrollArea,i.scrollHideDelay]),n||o?T.jsx(x1,{"data-state":o?"visible":"hidden",...r,ref:t}):null});HN.displayName="@mantine/core/ScrollAreaScrollbarHover";const d4=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=yr(),o=e.orientation==="horizontal",[a,s]=S.useState("hidden"),l=Tc(()=>s("idle"),100);return S.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,i.scrollHideDelay]),S.useEffect(()=>{const{viewport:u}=i,c=o?"scrollLeft":"scrollTop";if(u){let d=u[c];const f=()=>{const p=u[c];d!==p&&(s("scrolling"),l()),d=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[i.viewport,o,l]),n||a!=="hidden"?T.jsx(Eh,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ya(e.onPointerEnter,()=>s("interacting")),onPointerLeave:ya(e.onPointerLeave,()=>s("idle"))}):null}),lb=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=yr(),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s=e.orientation==="horizontal";return S.useEffect(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),i.type==="hover"?T.jsx(HN,{...r,ref:t,forceMount:n}):i.type==="scroll"?T.jsx(d4,{...r,ref:t,forceMount:n}):i.type==="auto"?T.jsx(x1,{...r,ref:t,forceMount:n}):i.type==="always"?T.jsx(Eh,{...r,ref:t}):null});lb.displayName="@mantine/core/ScrollAreaScrollbar";function f4(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)}const UN=S.forwardRef((e,t)=>{const{style:n,...r}=e,i=yr(),o=PN(),{onThumbPositionChange:a}=o,s=Dn(t,c=>o.onThumbChange(c)),l=S.useRef(),u=Tc(()=>{l.current&&(l.current(),l.current=void 0)},100);return S.useEffect(()=>{const{viewport:c}=i;if(c){const d=()=>{if(u(),!l.current){const f=f4(c,a);l.current=f,a()}};return a(),c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[i.viewport,u,a]),T.jsx("div",{"data-state":o.hasThumb?"visible":"hidden",...r,ref:s,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:ya(e.onPointerDownCapture,c=>{const f=c.target.getBoundingClientRect(),p=c.clientX-f.left,h=c.clientY-f.top;o.onThumbPointerDown({x:p,y:h})}),onPointerUp:ya(e.onPointerUp,o.onThumbPointerUp)})});UN.displayName="@mantine/core/ScrollAreaThumb";const ub=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=PN();return n||i.hasThumb?T.jsx(UN,{ref:t,...r}):null});ub.displayName="@mantine/core/ScrollAreaThumb";const jN=S.forwardRef(({children:e,style:t,...n},r)=>{const i=yr(),o=Dn(r,i.onViewportChange);return T.jsx(se,{...n,ref:o,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...t},children:T.jsx("div",{style:{minWidth:"100%",display:"table"},ref:i.onContentChange,children:e})})});jN.displayName="@mantine/core/ScrollAreaViewport";var S1={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const $N={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},p4=(e,{scrollbarSize:t})=>({root:{"--scrollarea-scrollbar-size":Y(t)}}),wc=fe((e,t)=>{const n=ie("ScrollArea",$N,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,scrollbarSize:l,vars:u,type:c,scrollHideDelay:d,viewportProps:f,viewportRef:p,onScrollPositionChange:h,children:m,offsetScrollbars:y,scrollbars:b,onBottomReached:E,onTopReached:v,...k}=n,[_,x]=S.useState(!1),I=Pe({name:"ScrollArea",props:n,classes:S1,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:u,varsResolver:p4});return T.jsxs(RN,{type:c==="never"?"always":c,scrollHideDelay:d,ref:t,scrollbars:b,...I("root"),...k,children:[T.jsx(jN,{...f,...I("viewport",{style:f==null?void 0:f.style}),ref:p,"data-offset-scrollbars":y===!0?"xy":y||void 0,"data-scrollbars":b||void 0,onScroll:R=>{var L;(L=f==null?void 0:f.onScroll)==null||L.call(f,R),h==null||h({x:R.currentTarget.scrollLeft,y:R.currentTarget.scrollTop});const{scrollTop:z,scrollHeight:A,clientHeight:j}=R.currentTarget;z-(A-j)>=0&&(E==null||E()),z===0&&(v==null||v())},children:m}),(b==="xy"||b==="x")&&T.jsx(lb,{...I("scrollbar"),orientation:"horizontal","data-hidden":c==="never"||void 0,forceMount:!0,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:T.jsx(ub,{...I("thumb")})}),(b==="xy"||b==="y")&&T.jsx(lb,{...I("scrollbar"),orientation:"vertical","data-hidden":c==="never"||void 0,forceMount:!0,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:T.jsx(ub,{...I("thumb")})}),T.jsx(a4,{...I("corner"),"data-hovered":_||void 0,"data-hidden":c==="never"||void 0})]})});wc.displayName="@mantine/core/ScrollArea";const w1=fe((e,t)=>{const{children:n,classNames:r,styles:i,scrollbarSize:o,scrollHideDelay:a,type:s,dir:l,offsetScrollbars:u,viewportRef:c,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,scrollbars:m,style:y,vars:b,onBottomReached:E,onTopReached:v,...k}=ie("ScrollAreaAutosize",$N,e);return T.jsx(se,{...k,ref:t,style:[{display:"flex",overflow:"auto"},y],children:T.jsx(se,{style:{display:"flex",flexDirection:"column",flex:1},children:T.jsx(wc,{classNames:r,styles:i,scrollHideDelay:a,scrollbarSize:o,type:s,dir:l,offsetScrollbars:u,viewportRef:c,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,vars:b,scrollbars:m,onBottomReached:E,onTopReached:v,children:n})})})});wc.classes=S1;w1.displayName="@mantine/core/ScrollAreaAutosize";w1.classes=S1;wc.Autosize=w1;var WN={root:"m_87cf2631"};const h4={__staticSelector:"UnstyledButton"},yl=br((e,t)=>{const n=ie("UnstyledButton",h4,e),{className:r,component:i="button",__staticSelector:o,unstyled:a,classNames:s,styles:l,style:u,...c}=n,d=Pe({name:o,props:n,classes:WN,className:r,style:u,classNames:s,styles:l,unstyled:a});return T.jsx(se,{...d("root",{focusable:!0}),component:i,ref:t,type:i==="button"?"button":void 0,...c})});yl.classes=WN;yl.displayName="@mantine/core/UnstyledButton";var VN={root:"m_515a97f8"};const m4={},_1=fe((e,t)=>{const n=ie("VisuallyHidden",m4,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,...u}=n,c=Pe({name:"VisuallyHidden",classes:VN,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s});return T.jsx(se,{component:"span",ref:t,...c("root"),...u})});_1.classes=VN;_1.displayName="@mantine/core/VisuallyHidden";var qN={root:"m_1b7284a3"};const g4={},b4=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:gr(t),"--paper-shadow":h1(n)}}),Pa=br((e,t)=>{const n=ie("Paper",g4,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,withBorder:l,vars:u,radius:c,shadow:d,variant:f,mod:p,...h}=n,m=Pe({name:"Paper",props:n,classes:qN,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:u,varsResolver:b4});return T.jsx(se,{ref:t,mod:[{"data-with-border":l},p],...m("root"),variant:f,...h})});Pa.classes=qN;Pa.displayName="@mantine/core/Paper";function vh(){return typeof window<"u"}function El(e){return YN(e)?(e.nodeName||"").toLowerCase():"#document"}function On(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ui(e){var t;return(t=(YN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function YN(e){return vh()?e instanceof Node||e instanceof On(e).Node:!1}function tt(e){return vh()?e instanceof Element||e instanceof On(e).Element:!1}function qn(e){return vh()?e instanceof HTMLElement||e instanceof On(e).HTMLElement:!1}function cb(e){return!vh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof On(e).ShadowRoot}function _c(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=mr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function y4(e){return["table","td","th"].includes(El(e))}function Th(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function C1(e){const t=kh(),n=tt(e)?mr(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function E4(e){let t=Ri(e);for(;qn(t)&&!Do(t);){if(C1(t))return t;if(Th(t))return null;t=Ri(t)}return null}function kh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Do(e){return["html","body","#document"].includes(El(e))}function mr(e){return On(e).getComputedStyle(e)}function xh(e){return tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ri(e){if(El(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cb(e)&&e.host||ui(e);return cb(t)?t.host:t}function KN(e){const t=Ri(e);return Do(t)?e.ownerDocument?e.ownerDocument.body:e.body:qn(t)&&_c(t)?t:KN(t)}function wi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=KN(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=On(i);if(o){const s=db(a);return t.concat(a,a.visualViewport||[],_c(i)?i:[],s&&n?wi(s):[])}return t.concat(i,wi(i,[],n))}function db(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nk(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Yu(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&cb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function GN(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function QN(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function v4(e){return x4()?!1:!rk()&&e.width===0&&e.height===0||rk()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function T4(){return/apple/i.test(navigator.vendor)}function rk(){const e=/android/i;return e.test(GN())||e.test(QN())}function k4(){return GN().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function x4(){return QN().includes("jsdom/")}function fb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function S4(e){return"nativeEvent"in e}function w4(e){return e.matches("html,body")}function ca(e){return(e==null?void 0:e.ownerDocument)||document}function og(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ps(e){return"composedPath"in e?e.composedPath()[0]:e.target}const _4="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function C4(e){return qn(e)&&e.matches(_4)}const Pr=Math.min,nn=Math.max,Uf=Math.round,hd=Math.floor,ri=e=>({x:e,y:e}),N4={left:"right",right:"left",bottom:"top",top:"bottom"},A4={start:"end",end:"start"};function pb(e,t,n){return nn(e,Pr(t,n))}function Mi(e,t){return typeof e=="function"?e(t):e}function Br(e){return e.split("-")[0]}function vl(e){return e.split("-")[1]}function N1(e){return e==="x"?"y":"x"}function A1(e){return e==="y"?"height":"width"}function Di(e){return["top","bottom"].includes(Br(e))?"y":"x"}function O1(e){return N1(Di(e))}function O4(e,t,n){n===void 0&&(n=!1);const r=vl(e),i=O1(e),o=A1(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=jf(a)),[a,jf(a)]}function I4(e){const t=jf(e);return[hb(e),t,hb(t)]}function hb(e){return e.replace(/start|end/g,t=>A4[t])}function R4(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function M4(e,t,n,r){const i=vl(e);let o=R4(Br(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(hb)))),o}function jf(e){return e.replace(/left|right|bottom|top/g,t=>N4[t])}function D4(e){return{top:0,right:0,bottom:0,left:0,...e}}function I1(e){return typeof e!="number"?D4(e):{top:e,right:e,bottom:e,left:e}}function rl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ik(e,t,n){let{reference:r,floating:i}=e;const o=Di(t),a=O1(t),s=A1(a),l=Br(t),u=o==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(vl(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1);break}return p}const L4=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=ik(u,r,l),f=r,p={},h=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Mi(e,t)||{};if(u==null)return{};const d=I1(c),f={x:n,y:r},p=O1(i),h=A1(p),m=await a.getDimensions(u),y=p==="y",b=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",k=o.reference[h]+o.reference[p]-f[p]-o.floating[h],_=f[p]-o.reference[p],x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let I=x?x[v]:0;(!I||!await(a.isElement==null?void 0:a.isElement(x)))&&(I=s.floating[v]||o.floating[h]);const R=k/2-_/2,z=I/2-m[h]/2-1,A=Pr(d[b],z),j=Pr(d[E],z),L=A,U=I-m[h]-j,V=I/2-m[h]/2+R,H=pb(L,V,U),B=!l.arrow&&vl(i)!=null&&V!==H&&o.reference[h]/2-(VV<=0)){var j,L;const V=(((j=o.flip)==null?void 0:j.index)||0)+1,H=I[V];if(H)return{data:{index:V,overflows:A},reset:{placement:H}};let B=(L=A.filter(M=>M.overflows[0]<=0).sort((M,N)=>M.overflows[1]-N.overflows[1])[0])==null?void 0:L.placement;if(!B)switch(p){case"bestFit":{var U;const M=(U=A.filter(N=>{if(x){const F=Di(N.placement);return F===E||F==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(F=>F>0).reduce((F,w)=>F+w,0)]).sort((N,F)=>N[1]-F[1])[0])==null?void 0:U[0];M&&(B=M);break}case"initialPlacement":B=s;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function XN(e){const t=Pr(...e.map(o=>o.left)),n=Pr(...e.map(o=>o.top)),r=nn(...e.map(o=>o.right)),i=nn(...e.map(o=>o.bottom));return{x:t,y:n,width:r-t,height:i-n}}function z4(e){const t=e.slice().sort((i,o)=>i.y-o.y),n=[];let r=null;for(let i=0;ir.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(i=>rl(XN(i)))}const F4=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:i,platform:o,strategy:a}=t,{padding:s=2,x:l,y:u}=Mi(e,t),c=Array.from(await(o.getClientRects==null?void 0:o.getClientRects(r.reference))||[]),d=z4(c),f=rl(XN(c)),p=I1(s);function h(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&u!=null)return d.find(y=>l>y.left-p.left&&ly.top-p.top&&u=2){if(Di(n)==="y"){const A=d[0],j=d[d.length-1],L=Br(n)==="top",U=A.top,V=j.bottom,H=L?A.left:j.left,B=L?A.right:j.right,M=B-H,N=V-U;return{top:U,bottom:V,left:H,right:B,width:M,height:N,x:H,y:U}}const y=Br(n)==="left",b=nn(...d.map(A=>A.right)),E=Pr(...d.map(A=>A.left)),v=d.filter(A=>y?A.left===E:A.right===b),k=v[0].top,_=v[v.length-1].bottom,x=E,I=b,R=I-x,z=_-k;return{top:k,bottom:_,left:x,right:I,width:R,height:z,x,y:k}}return f}const m=await o.getElementRects({reference:{getBoundingClientRect:h},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}};async function H4(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Br(n),s=vl(n),l=Di(n)==="y",u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=Mi(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}const U4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await H4(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},j4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:y=>{let{x:b,y:E}=y;return{x:b,y:E}}},...l}=Mi(e,t),u={x:n,y:r},c=await R1(t,l),d=Di(Br(i)),f=N1(d);let p=u[f],h=u[d];if(o){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",E=p+c[y],v=p-c[b];p=pb(E,p,v)}if(a){const y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",E=h+c[y],v=h-c[b];h=pb(E,h,v)}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:o,[d]:a}}}}}},$4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Mi(e,t),c={x:n,y:r},d=Di(i),f=N1(d);let p=c[f],h=c[d];const m=Mi(s,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const v=f==="y"?"height":"width",k=o.reference[f]-o.floating[v]+y.mainAxis,_=o.reference[f]+o.reference[v]-y.mainAxis;p_&&(p=_)}if(u){var b,E;const v=f==="y"?"width":"height",k=["top","left"].includes(Br(i)),_=o.reference[d]-o.floating[v]+(k&&((b=a.offset)==null?void 0:b[d])||0)+(k?0:y.crossAxis),x=o.reference[d]+o.reference[v]+(k?0:((E=a.offset)==null?void 0:E[d])||0)-(k?y.crossAxis:0);h<_?h=_:h>x&&(h=x)}return{[f]:p,[d]:h}}}},W4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...u}=Mi(e,t),c=await R1(t,u),d=Br(i),f=vl(i),p=Di(i)==="y",{width:h,height:m}=o.floating;let y,b;d==="top"||d==="bottom"?(y=d,b=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,y=f==="end"?"top":"bottom");const E=m-c.top-c.bottom,v=h-c.left-c.right,k=Pr(m-c[y],E),_=Pr(h-c[b],v),x=!t.middlewareData.shift;let I=k,R=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=E),x&&!f){const A=nn(c.left,0),j=nn(c.right,0),L=nn(c.top,0),U=nn(c.bottom,0);p?R=h-2*(A!==0||j!==0?A+j:nn(c.left,c.right)):I=m-2*(L!==0||U!==0?L+U:nn(c.top,c.bottom))}await l({...t,availableWidth:R,availableHeight:I});const z=await a.getDimensions(s.floating);return h!==z.width||m!==z.height?{reset:{rects:!0}}:{}}}};function JN(e){const t=mr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=qn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Uf(n)!==o||Uf(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function M1(e){return tt(e)?e:e.contextElement}function js(e){const t=M1(e);if(!qn(t))return ri(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=JN(t);let a=(o?Uf(n.width):n.width)/r,s=(o?Uf(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const V4=ri(0);function ZN(e){const t=On(e);return!kh()||!t.visualViewport?V4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function q4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==On(e)?!1:t}function Ba(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=M1(e);let a=ri(1);t&&(r?tt(r)&&(a=js(r)):a=js(e));const s=q4(o,n,r)?ZN(o):ri(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const f=On(o),p=r&&tt(r)?On(r):r;let h=f,m=db(h);for(;m&&r&&p!==h;){const y=js(m),b=m.getBoundingClientRect(),E=mr(m),v=b.left+(m.clientLeft+parseFloat(E.paddingLeft))*y.x,k=b.top+(m.clientTop+parseFloat(E.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,d*=y.y,l+=v,u+=k,h=On(m),m=db(h)}}return rl({width:c,height:d,x:l,y:u})}function D1(e,t){const n=xh(e).scrollLeft;return t?t.left+n:Ba(ui(e)).left+n}function e2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:D1(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Y4(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=ui(r),s=t?Th(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=ri(1);const c=ri(0),d=qn(r);if((d||!d&&!o)&&((El(r)!=="body"||_c(a))&&(l=xh(r)),qn(r))){const p=Ba(r);u=js(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const f=a&&!d&&!o?e2(a,l,!0):ri(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function K4(e){return Array.from(e.getClientRects())}function G4(e){const t=ui(e),n=xh(e),r=e.ownerDocument.body,i=nn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=nn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+D1(e);const s=-n.scrollTop;return mr(r).direction==="rtl"&&(a+=nn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function Q4(e,t){const n=On(e),r=ui(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=kh();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function X4(e,t){const n=Ba(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=qn(e)?js(e):ri(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function ok(e,t,n){let r;if(t==="viewport")r=Q4(e,n);else if(t==="document")r=G4(ui(e));else if(tt(t))r=X4(t,n);else{const i=ZN(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return rl(r)}function t2(e,t){const n=Ri(e);return n===t||!tt(n)||Do(n)?!1:mr(n).position==="fixed"||t2(n,t)}function J4(e,t){const n=t.get(e);if(n)return n;let r=wi(e,[],!1).filter(s=>tt(s)&&El(s)!=="body"),i=null;const o=mr(e).position==="fixed";let a=o?Ri(e):e;for(;tt(a)&&!Do(a);){const s=mr(a),l=C1(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||_c(a)&&!l&&t2(e,a))?r=r.filter(c=>c!==a):i=s,a=Ri(a)}return t.set(e,r),r}function Z4(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Th(t)?[]:J4(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,c)=>{const d=ok(t,c,i);return u.top=nn(d.top,u.top),u.right=Pr(d.right,u.right),u.bottom=Pr(d.bottom,u.bottom),u.left=nn(d.left,u.left),u},ok(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function e5(e){const{width:t,height:n}=JN(e);return{width:t,height:n}}function t5(e,t,n){const r=qn(t),i=ui(t),o=n==="fixed",a=Ba(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=ri(0);if(r||!r&&!o)if((El(t)!=="body"||_c(i))&&(s=xh(t)),r){const f=Ba(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&(l.x=D1(i));const u=i&&!r&&!o?e2(i,s):ri(0),c=a.left+s.scrollLeft-l.x-u.x,d=a.top+s.scrollTop-l.y-u.y;return{x:c,y:d,width:a.width,height:a.height}}function ag(e){return mr(e).position==="static"}function ak(e,t){if(!qn(e)||mr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ui(e)===n&&(n=n.ownerDocument.body),n}function n2(e,t){const n=On(e);if(Th(e))return n;if(!qn(e)){let i=Ri(e);for(;i&&!Do(i);){if(tt(i)&&!ag(i))return i;i=Ri(i)}return n}let r=ak(e,t);for(;r&&y4(r)&&ag(r);)r=ak(r,t);return r&&Do(r)&&ag(r)&&!C1(r)?n:r||E4(e)||n}const n5=async function(e){const t=this.getOffsetParent||n2,n=this.getDimensions,r=await n(e.floating);return{reference:t5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function r5(e){return mr(e).direction==="rtl"}const i5={convertOffsetParentRelativeRectToViewportRelativeRect:Y4,getDocumentElement:ui,getClippingRect:Z4,getOffsetParent:n2,getElementRects:n5,getClientRects:K4,getDimensions:e5,getScale:js,isElement:tt,isRTL:r5};function o5(e,t){let n=null,r;const i=ui(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p=hd(c),h=hd(i.clientWidth-(u+d)),m=hd(i.clientHeight-(c+f)),y=hd(u),E={rootMargin:-p+"px "+-h+"px "+-m+"px "+-y+"px",threshold:nn(0,Pr(1,l))||1};let v=!0;function k(_){const x=_[0].intersectionRatio;if(x!==l){if(!v)return a();x?a(!1,x):r=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(k,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,E)}n.observe(e)}return a(!0),o}function a5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=M1(e),c=i||o?[...u?wi(u):[],...wi(t)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const d=u&&s?o5(u,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(b=>{let[E]=b;E&&E.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let h,m=l?Ba(e):null;l&&y();function y(){const b=Ba(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,h=requestAnimationFrame(y)}return n(),()=>{var b;c.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const s5=U4,l5=j4,u5=B4,c5=W4,sk=P4,d5=F4,f5=$4,p5=(e,t,n)=>{const r=new Map,i={platform:i5,...n},o={...i.platform,_c:r};return L4(e,t,{...i,platform:o})};var tf=typeof document<"u"?S.useLayoutEffect:S.useEffect;function $f(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!$f(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!$f(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function r2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lk(e,t){const n=r2(e);return Math.round(t*n)/n}function sg(e){const t=S.useRef(e);return tf(()=>{t.current=e}),t}function h5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=S.useState(r);$f(f,r)||p(r);const[h,m]=S.useState(null),[y,b]=S.useState(null),E=S.useCallback(N=>{N!==x.current&&(x.current=N,m(N))},[]),v=S.useCallback(N=>{N!==I.current&&(I.current=N,b(N))},[]),k=o||h,_=a||y,x=S.useRef(null),I=S.useRef(null),R=S.useRef(c),z=l!=null,A=sg(l),j=sg(i),L=sg(u),U=S.useCallback(()=>{if(!x.current||!I.current)return;const N={placement:t,strategy:n,middleware:f};j.current&&(N.platform=j.current),p5(x.current,I.current,N).then(F=>{const w={...F,isPositioned:L.current!==!1};V.current&&!$f(R.current,w)&&(R.current=w,fh.flushSync(()=>{d(w)}))})},[f,t,n,j,L]);tf(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(N=>({...N,isPositioned:!1})))},[u]);const V=S.useRef(!1);tf(()=>(V.current=!0,()=>{V.current=!1}),[]),tf(()=>{if(k&&(x.current=k),_&&(I.current=_),k&&_){if(A.current)return A.current(k,_,U);U()}},[k,_,U,A,z]);const H=S.useMemo(()=>({reference:x,floating:I,setReference:E,setFloating:v}),[E,v]),B=S.useMemo(()=>({reference:k,floating:_}),[k,_]),M=S.useMemo(()=>{const N={position:n,left:0,top:0};if(!B.floating)return N;const F=lk(B.floating,c.x),w=lk(B.floating,c.y);return s?{...N,transform:"translate("+F+"px, "+w+"px)",...r2(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:w}},[n,s,B.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:U,refs:H,elements:B,floatingStyles:M}),[c,U,H,B,M])}const m5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?sk({element:r.current,padding:i}).fn(n):{}:r?sk({element:r,padding:i}).fn(n):{}}}},i2=(e,t)=>({...s5(e),options:[e,t]}),L1=(e,t)=>({...l5(e),options:[e,t]}),uk=(e,t)=>({...f5(e),options:[e,t]}),mb=(e,t)=>({...u5(e),options:[e,t]}),g5=(e,t)=>({...c5(e),options:[e,t]}),gb=(e,t)=>({...d5(e),options:[e,t]}),o2=(e,t)=>({...m5(e),options:[e,t]}),a2={...NM},b5=a2.useInsertionEffect,y5=b5||(e=>e());function so(e){const t=S.useRef(()=>{});return y5(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i"floating-ui-"+Math.random().toString(36).slice(2,6)+E5++;function v5(){const[e,t]=S.useState(()=>ck?dk():void 0);return ii(()=>{e==null&&t(dk())},[]),S.useEffect(()=>{ck=!0},[]),e}const T5=a2.useId,s2=T5||v5;function k5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const x5=S.createContext(null),S5=S.createContext(null),P1=()=>{var e;return((e=S.useContext(x5))==null?void 0:e.id)||null},B1=()=>S.useContext(S5);function z1(e){return"data-floating-ui-"+e}function lg(e){const t=S.useRef(e);return ii(()=>{t.current=e}),t}const fk=z1("safe-polygon");function nf(e,t,n){return n&&!fb(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function w5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:u=null,mouseOnly:c=!1,restMs:d=0,move:f=!0}=t,p=B1(),h=P1(),m=lg(u),y=lg(l),b=lg(n),E=S.useRef(),v=S.useRef(-1),k=S.useRef(),_=S.useRef(-1),x=S.useRef(!0),I=S.useRef(!1),R=S.useRef(()=>{}),z=S.useRef(!1),A=S.useCallback(()=>{var B;const M=(B=i.current.openEvent)==null?void 0:B.type;return(M==null?void 0:M.includes("mouse"))&&M!=="mousedown"},[i]);S.useEffect(()=>{if(!s)return;function B(M){let{open:N}=M;N||(clearTimeout(v.current),clearTimeout(_.current),x.current=!0,z.current=!1)}return o.on("openchange",B),()=>{o.off("openchange",B)}},[s,o]),S.useEffect(()=>{if(!s||!m.current||!n)return;function B(N){A()&&r(!1,N,"hover")}const M=ca(a.floating).documentElement;return M.addEventListener("mouseleave",B),()=>{M.removeEventListener("mouseleave",B)}},[a.floating,n,r,s,m,A]);const j=S.useCallback(function(B,M,N){M===void 0&&(M=!0),N===void 0&&(N="hover");const F=nf(y.current,"close",E.current);F&&!k.current?(clearTimeout(v.current),v.current=window.setTimeout(()=>r(!1,B,N),F)):M&&(clearTimeout(v.current),r(!1,B,N))},[y,r]),L=so(()=>{R.current(),k.current=void 0}),U=so(()=>{if(I.current){const B=ca(a.floating).body;B.style.pointerEvents="",B.removeAttribute(fk),I.current=!1}});S.useEffect(()=>{if(!s)return;function B(){return i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1}function M(q){if(clearTimeout(v.current),x.current=!1,c&&!fb(E.current)||d>0&&!nf(y.current,"open"))return;const X=nf(y.current,"open",E.current);X?v.current=window.setTimeout(()=>{b.current||r(!0,q,"hover")},X):r(!0,q,"hover")}function N(q){if(B())return;R.current();const X=ca(a.floating);if(clearTimeout(_.current),z.current=!1,m.current&&i.current.floatingContext){n||clearTimeout(v.current),k.current=m.current({...i.current.floatingContext,tree:p,x:q.clientX,y:q.clientY,onClose(){U(),L(),j(q,!0,"safe-polygon")}});const be=k.current;X.addEventListener("mousemove",be),R.current=()=>{X.removeEventListener("mousemove",be)};return}(E.current==="touch"?!Yu(a.floating,q.relatedTarget):!0)&&j(q)}function F(q){B()||i.current.floatingContext&&(m.current==null||m.current({...i.current.floatingContext,tree:p,x:q.clientX,y:q.clientY,onClose(){U(),L(),j(q)}})(q))}if(tt(a.domReference)){var w;const q=a.domReference;return n&&q.addEventListener("mouseleave",F),(w=a.floating)==null||w.addEventListener("mouseleave",F),f&&q.addEventListener("mousemove",M,{once:!0}),q.addEventListener("mouseenter",M),q.addEventListener("mouseleave",N),()=>{var X;n&&q.removeEventListener("mouseleave",F),(X=a.floating)==null||X.removeEventListener("mouseleave",F),f&&q.removeEventListener("mousemove",M),q.removeEventListener("mouseenter",M),q.removeEventListener("mouseleave",N)}}},[a,s,e,c,d,f,j,L,U,r,n,b,p,y,m,i]),ii(()=>{var B;if(s&&n&&(B=m.current)!=null&&B.__options.blockPointerEvents&&A()){I.current=!0;const N=a.floating;if(tt(a.domReference)&&N){var M;const F=ca(a.floating).body;F.setAttribute(fk,"");const w=a.domReference,q=p==null||(M=p.nodesRef.current.find(X=>X.id===h))==null||(M=M.context)==null?void 0:M.elements.floating;return q&&(q.style.pointerEvents=""),F.style.pointerEvents="none",w.style.pointerEvents="auto",N.style.pointerEvents="auto",()=>{F.style.pointerEvents="",w.style.pointerEvents="",N.style.pointerEvents=""}}}},[s,n,h,a,p,m,A]),ii(()=>{n||(E.current=void 0,z.current=!1,L(),U())},[n,L,U]),S.useEffect(()=>()=>{L(),clearTimeout(v.current),clearTimeout(_.current),U()},[s,a.domReference,L,U]);const V=S.useMemo(()=>{function B(M){E.current=M.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(M){const{nativeEvent:N}=M;function F(){!x.current&&!b.current&&r(!0,N,"hover")}c&&!fb(E.current)||n||d===0||z.current&&M.movementX**2+M.movementY**2<2||(clearTimeout(_.current),E.current==="touch"?F():(z.current=!0,_.current=window.setTimeout(F,d)))}}},[c,r,n,b,d]),H=S.useMemo(()=>({onMouseEnter(){clearTimeout(v.current)},onMouseLeave(B){j(B.nativeEvent,!1)}}),[j]);return S.useMemo(()=>s?{reference:V,floating:H}:{},[s,V,H])}const bb=()=>{},l2=S.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:bb,setState:bb,isInstantPhase:!1}),u2=()=>S.useContext(l2);function _5(e){const{children:t,delay:n,timeoutMs:r=0}=e,[i,o]=S.useReducer((l,u)=>({...l,...u}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),a=S.useRef(null),s=S.useCallback(l=>{o({currentId:l})},[]);return ii(()=>{i.currentId?a.current===null?a.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),a.current=null)},[i.currentId,i.isInstantPhase]),S.createElement(l2.Provider,{value:S.useMemo(()=>({...i,setState:o,setCurrentId:s}),[i,s])},t)}function C5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:i}=e,{id:o,enabled:a=!0}=t,s=o??i,l=u2(),{currentId:u,setCurrentId:c,initialDelay:d,setState:f,timeoutMs:p}=l;return ii(()=>{a&&u&&(f({delay:{open:1,close:nf(d,"close")}}),u!==s&&r(!1))},[a,s,r,f,u,d]),ii(()=>{function h(){r(!1),f({delay:d,currentId:null})}if(a&&u&&!n&&u===s){if(p){const m=window.setTimeout(h,p);return()=>{clearTimeout(m)}}h()}},[a,n,f,u,s,r,d,p]),ii(()=>{a&&(c===bb||!n||c(s))},[a,n,c,s]),l}function ug(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var s;return i.parentId===a.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}const N5="data-floating-ui-focusable",A5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},O5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},pk=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function I5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:h}=t,m=B1(),y=so(typeof l=="function"?l:()=>!1),b=typeof l=="function"?y:l,E=S.useRef(!1),v=S.useRef(!1),{escapeKey:k,outsidePress:_}=pk(p),{escapeKey:x,outsidePress:I}=pk(h),R=S.useRef(!1),z=so(H=>{var B;if(!n||!a||!s||H.key!=="Escape"||R.current)return;const M=(B=o.current.floatingContext)==null?void 0:B.nodeId,N=m?ug(m.nodesRef.current,M):[];if(!k&&(H.stopPropagation(),N.length>0)){let F=!0;if(N.forEach(w=>{var q;if((q=w.context)!=null&&q.open&&!w.context.dataRef.current.__escapeKeyBubbles){F=!1;return}}),!F)return}r(!1,S4(H)?H.nativeEvent:H,"escape-key")}),A=so(H=>{var B;const M=()=>{var N;z(H),(N=ps(H))==null||N.removeEventListener("keydown",M)};(B=ps(H))==null||B.addEventListener("keydown",M)}),j=so(H=>{var B;const M=E.current;E.current=!1;const N=v.current;if(v.current=!1,u==="click"&&N||M||typeof b=="function"&&!b(H))return;const F=ps(H),w="["+z1("inert")+"]",q=ca(i.floating).querySelectorAll(w);let X=tt(F)?F:null;for(;X&&!Do(X);){const le=Ri(X);if(Do(le)||!tt(le))break;X=le}if(q.length&&tt(F)&&!w4(F)&&!Yu(F,i.floating)&&Array.from(q).every(le=>!Yu(X,le)))return;if(qn(F)&&V){const le=F.clientWidth>0&&F.scrollWidth>F.clientWidth,Ce=F.clientHeight>0&&F.scrollHeight>F.clientHeight;let Ie=Ce&&H.offsetX>F.clientWidth;if(Ce&&mr(F).direction==="rtl"&&(Ie=H.offsetX<=F.offsetWidth-F.clientWidth),Ie||le&&H.offsetY>F.clientHeight)return}const D=(B=o.current.floatingContext)==null?void 0:B.nodeId,be=m&&ug(m.nodesRef.current,D).some(le=>{var Ce;return og(H,(Ce=le.context)==null?void 0:Ce.elements.floating)});if(og(H,i.floating)||og(H,i.domReference)||be)return;const ge=m?ug(m.nodesRef.current,D):[];if(ge.length>0){let le=!0;if(ge.forEach(Ce=>{var Ie;if((Ie=Ce.context)!=null&&Ie.open&&!Ce.context.dataRef.current.__outsidePressBubbles){le=!1;return}}),!le)return}r(!1,H,"outside-press")}),L=so(H=>{var B;const M=()=>{var N;j(H),(N=ps(H))==null||N.removeEventListener(u,M)};(B=ps(H))==null||B.addEventListener(u,M)});S.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=k,o.current.__outsidePressBubbles=_;let H=-1;function B(q){r(!1,q,"ancestor-scroll")}function M(){window.clearTimeout(H),R.current=!0}function N(){H=window.setTimeout(()=>{R.current=!1},kh()?5:0)}const F=ca(i.floating);s&&(F.addEventListener("keydown",x?A:z,x),F.addEventListener("compositionstart",M),F.addEventListener("compositionend",N)),b&&F.addEventListener(u,I?L:j,I);let w=[];return f&&(tt(i.domReference)&&(w=wi(i.domReference)),tt(i.floating)&&(w=w.concat(wi(i.floating))),!tt(i.reference)&&i.reference&&i.reference.contextElement&&(w=w.concat(wi(i.reference.contextElement)))),w=w.filter(q=>{var X;return q!==((X=F.defaultView)==null?void 0:X.visualViewport)}),w.forEach(q=>{q.addEventListener("scroll",B,{passive:!0})}),()=>{s&&(F.removeEventListener("keydown",x?A:z,x),F.removeEventListener("compositionstart",M),F.removeEventListener("compositionend",N)),b&&F.removeEventListener(u,I?L:j,I),w.forEach(q=>{q.removeEventListener("scroll",B)}),window.clearTimeout(H)}},[o,i,s,b,u,n,r,f,a,k,_,z,x,A,j,I,L]),S.useEffect(()=>{E.current=!1},[b,u]);const U=S.useMemo(()=>({onKeyDown:z,[A5[d]]:H=>{c&&r(!1,H.nativeEvent,"reference-press")}}),[z,r,c,d]),V=S.useMemo(()=>({onKeyDown:z,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[O5[u]]:()=>{E.current=!0}}),[z,u]);return S.useMemo(()=>a?{reference:U,floating:V}:{},[a,U,V])}function R5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=s2(),o=S.useRef({}),[a]=S.useState(()=>k5()),s=P1()!=null,[l,u]=S.useState(r.reference),c=so((p,h,m)=>{o.current.openEvent=p?h:void 0,a.emit("openchange",{open:p,event:h,reason:m,nested:s}),n==null||n(p,h,m)}),d=S.useMemo(()=>({setPositionReference:u}),[]),f=S.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return S.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:f,events:a,floatingId:i,refs:d}),[t,c,f,a,i,d])}function F1(e){e===void 0&&(e={});const{nodeId:t}=e,n=R5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=S.useState(null),[s,l]=S.useState(null),c=(i==null?void 0:i.domReference)||o,d=S.useRef(null),f=B1();ii(()=>{c&&(d.current=c)},[c]);const p=h5({...e,elements:{...i,...s&&{reference:s}}}),h=S.useCallback(v=>{const k=tt(v)?{getBoundingClientRect:()=>v.getBoundingClientRect(),contextElement:v}:v;l(k),p.refs.setReference(k)},[p.refs]),m=S.useCallback(v=>{(tt(v)||v===null)&&(d.current=v,a(v)),(tt(p.refs.reference.current)||p.refs.reference.current===null||v!==null&&!tt(v))&&p.refs.setReference(v)},[p.refs]),y=S.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d}),[p.refs,m,h]),b=S.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),E=S.useMemo(()=>({...p,...r,refs:y,elements:b,nodeId:t}),[p,y,b,t,r]);return ii(()=>{r.dataRef.current.floatingContext=E;const v=f==null?void 0:f.nodesRef.current.find(k=>k.id===t);v&&(v.context=E)}),S.useMemo(()=>({...p,context:E,refs:y,elements:b}),[p,y,b,E])}function M5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,u=S.useRef(!1),c=S.useRef(),d=S.useRef(!0);S.useEffect(()=>{if(!s)return;const p=On(a.domReference);function h(){!n&&qn(a.domReference)&&a.domReference===nk(ca(a.domReference))&&(u.current=!0)}function m(){d.current=!0}return p.addEventListener("blur",h),p.addEventListener("keydown",m,!0),()=>{p.removeEventListener("blur",h),p.removeEventListener("keydown",m,!0)}},[a.domReference,n,s]),S.useEffect(()=>{if(!s)return;function p(h){let{reason:m}=h;(m==="reference-press"||m==="escape-key")&&(u.current=!0)}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,s]),S.useEffect(()=>()=>{clearTimeout(c.current)},[]);const f=S.useMemo(()=>({onPointerDown(p){v4(p.nativeEvent)||(d.current=!1)},onMouseLeave(){u.current=!1},onFocus(p){if(u.current)return;const h=ps(p.nativeEvent);if(l&&tt(h))try{if(T4()&&k4())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!d.current&&!C4(h))return}r(!0,p.nativeEvent,"focus")},onBlur(p){u.current=!1;const h=p.relatedTarget,m=p.nativeEvent,y=tt(h)&&h.hasAttribute(z1("focus-guard"))&&h.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var b;const E=nk(a.domReference?a.domReference.ownerDocument:document);!h&&E===a.domReference||Yu((b=o.current.floatingContext)==null?void 0:b.refs.floating.current,E)||Yu(a.domReference,E)||y||r(!1,m,"focus")})}}),[o,a.domReference,r,l]);return S.useMemo(()=>s?{reference:f}:{},[s,f])}const hk="active",mk="selected";function cg(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[hk]:a,[mk]:s,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[N5]:""},...o,...t.map(a=>{const s=a?a[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((a,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[hk,mk].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),a[u]=function(){for(var f,p=arguments.length,h=new Array(p),m=0;my(...h)).find(y=>y!==void 0)}}}else a[u]=c}),a),{})}}function D5(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=S.useCallback(s=>cg(s,e,"reference"),t),o=S.useCallback(s=>cg(s,e,"floating"),n),a=S.useCallback(s=>cg(s,e,"item"),r);return S.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const L5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function P5(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,s=(n=L5.get(a))!=null?n:a,l=s2(),c=P1()!=null,d=S.useMemo(()=>s==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:l},...s==="menu"&&c&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,a]),f=S.useMemo(()=>{const h={id:i,...s&&{role:s}};return s==="tooltip"||a==="label"?h:{...h,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,a]),p=S.useCallback(h=>{let{active:m,selected:y}=h;const b={role:"option",...m&&{id:i+"-option"}};switch(a){case"select":return{...b,"aria-selected":m&&y};case"combobox":return{...b,...m&&{"aria-selected":!0}}}return{}},[i,a]);return S.useMemo(()=>o?{reference:d,floating:f,item:p}:{},[o,d,f,p])}function c2(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),i=n==="right"?"left":"right";return r===void 0?i:`${i}-${r}`}return t}function gk(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function bk(e,t,n,r,i){return e==="center"||r==="center"?{left:t}:e==="end"?{[i==="ltr"?"right":"left"]:n}:e==="start"?{[i==="ltr"?"left":"right"]:n}:{}}const B5={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function z5({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:o,arrowY:a,dir:s}){const[l,u="center"]=e.split("-"),c={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[B5[l]]:r},d=-t/2;return l==="left"?{...c,...gk(u,a,n,i),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent"}:l==="right"?{...c,...gk(u,a,n,i),left:d,borderRightColor:"transparent",borderTopColor:"transparent"}:l==="top"?{...c,...bk(u,o,n,i,s),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent"}:l==="bottom"?{...c,...bk(u,o,n,i,s),top:d,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const H1=S.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:o,arrowX:a,arrowY:s,style:l,...u},c)=>{const{dir:d}=Sc();return o?T.jsx("div",{...u,ref:c,style:{...l,...z5({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:d,arrowX:a,arrowY:s})}}):null});H1.displayName="@mantine/core/FloatingArrow";const[F5,d2]=Uo("Popover component was not found in the tree");function Sh({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const i=zP(t),o=Dn(i,r);return Va(e)?S.cloneElement(e,{[n]:o}):e}function f2(e){return T.jsx(_1,{tabIndex:-1,"data-autofocus":!0,...e})}Sh.displayName="@mantine/core/FocusTrap";f2.displayName="@mantine/core/FocusTrapInitialFocus";Sh.InitialFocus=f2;function H5(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}const U5={},p2=S.forwardRef((e,t)=>{const{children:n,target:r,...i}=ie("Portal",U5,e),[o,a]=S.useState(!1),s=S.useRef(null);return bl(()=>(a(!0),s.current=r?typeof r=="string"?document.querySelector(r):r:H5(i),yN(t,s.current),!r&&s.current&&document.body.appendChild(s.current),()=>{!r&&s.current&&document.body.removeChild(s.current)}),[r]),!o||!s.current?null:fh.createPortal(T.jsx(T.Fragment,{children:n}),s.current)});p2.displayName="@mantine/core/Portal";function Cc({withinPortal:e=!0,children:t,...n}){return e?T.jsx(p2,{...n,children:t}):T.jsx(T.Fragment,{children:t})}Cc.displayName="@mantine/core/OptionalPortal";const jl=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${Y(e==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),md={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${Y(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${Y(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${Y(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${Y(-30)}`},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${Y(-20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${Y(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${Y(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${Y(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...jl("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...jl("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...jl("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...jl("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...jl("top"),common:{transformOrigin:"top right"}}},yk={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function j5({transition:e,state:t,duration:n,timingFunction:r}){const i={transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in md?{transitionProperty:md[e].transitionProperty,...i,...md[e].common,...md[e][yk[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[yk[t]]}}function $5({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:o,onEntered:a,onExited:s,enterDelay:l,exitDelay:u}){const c=li(),d=EN(),f=c.respectReducedMotion?d:!1,[p,h]=S.useState(f?0:e),[m,y]=S.useState(r?"entered":"exited"),b=S.useRef(-1),E=S.useRef(-1),v=S.useRef(-1),k=x=>{const I=x?i:o,R=x?a:s;window.clearTimeout(b.current);const z=f?0:x?e:t;h(z),z===0?(typeof I=="function"&&I(),typeof R=="function"&&R(),y(x?"entered":"exited")):v.current=requestAnimationFrame(()=>{rN.flushSync(()=>{y(x?"pre-entering":"pre-exiting")}),v.current=requestAnimationFrame(()=>{typeof I=="function"&&I(),y(x?"entering":"exiting"),b.current=window.setTimeout(()=>{typeof R=="function"&&R(),y(x?"entered":"exited")},z)})})},_=x=>{if(window.clearTimeout(E.current),typeof(x?l:u)!="number"){k(x);return}E.current=window.setTimeout(()=>{k(x)},x?l:u)};return Da(()=>{_(r)},[r]),S.useEffect(()=>()=>{window.clearTimeout(b.current),cancelAnimationFrame(v.current)},[]),{transitionDuration:p,transitionStatus:m,transitionTimingFunction:n||"ease"}}function qa({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:i,children:o,timingFunction:a="ease",onExit:s,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f}){const{transitionDuration:p,transitionStatus:h,transitionTimingFunction:m}=$5({mounted:i,exitDuration:r,duration:n,timingFunction:a,onExit:s,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f});return p===0?i?T.jsx(T.Fragment,{children:o({})}):e?o({display:"none"}):null:h==="exited"?e?o({display:"none"}):null:T.jsx(T.Fragment,{children:o(j5({transition:t,duration:p,state:h,timingFunction:m}))})}qa.displayName="@mantine/core/Transition";var h2={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const W5={},U1=fe((e,t)=>{var y,b,E,v;const n=ie("PopoverDropdown",W5,e),{className:r,style:i,vars:o,children:a,onKeyDownCapture:s,variant:l,classNames:u,styles:c,...d}=n,f=d2(),p=pN({opened:f.opened,shouldReturnFocus:f.returnFocus}),h=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},m=Dn(t,f.floating);return f.disabled?null:T.jsx(Cc,{...f.portalProps,withinPortal:f.withinPortal,children:T.jsx(qa,{mounted:f.opened,...f.transitionProps,transition:((y=f.transitionProps)==null?void 0:y.transition)||"fade",duration:((b=f.transitionProps)==null?void 0:b.duration)??150,keepMounted:f.keepMounted,exitDuration:typeof((E=f.transitionProps)==null?void 0:E.exitDuration)=="number"?f.transitionProps.exitDuration:(v=f.transitionProps)==null?void 0:v.duration,children:k=>T.jsx(Sh,{active:f.trapFocus&&f.opened,innerRef:m,children:T.jsxs(se,{...h,...d,variant:l,onKeyDownCapture:wP(f.onClose,{active:f.closeOnEscape,onTrigger:p,onKeyDown:s}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:r,props:n,classNames:u,styles:c,style:[{...k,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:Y(f.width)},i]}),children:[a,T.jsx(H1,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:u,styles:c})})]})})})})});U1.classes=h2;U1.displayName="@mantine/core/PopoverDropdown";const V5={refProp:"ref",popupType:"dialog"},m2=fe((e,t)=>{const{children:n,refProp:r,popupType:i,...o}=ie("PopoverTarget",V5,e);if(!Va(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=o,s=d2(),l=Dn(s.reference,mh(n),t),u=s.withRoles?{"aria-haspopup":i,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return S.cloneElement(n,{...a,...u,...s.targetProps,className:kt(s.targetProps.className,a.className,n.props.className),[r]:l,...s.controlled?null:{onClick:s.onToggle}})});m2.displayName="@mantine/core/PopoverTarget";function g2({opened:e,floating:t,position:n,positionDependencies:r}){const[i,o]=S.useState(0);S.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return a5(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,i,n]),Da(()=>{t.update()},r),Da(()=>{o(a=>a+1)},[e])}function q5(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function Y5(e,t){const n=q5(e.middlewares),r=[i2(e.offset)];return n.shift&&r.push(L1(typeof n.shift=="boolean"?{limiter:uk(),padding:5}:{limiter:uk(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?mb():mb(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?gb():gb(n.inline)),r.push(o2({element:e.arrowRef,padding:e.arrowOffset})),(n.size||e.width==="target")&&r.push(g5({...typeof n.size=="boolean"?{}:n.size,apply({rects:i,availableWidth:o,availableHeight:a,...s}){var c;const u=((c=t().refs.floating.current)==null?void 0:c.style)??{};n.size&&(typeof n.size=="object"&&n.size.apply?n.size.apply({rects:i,availableWidth:o,availableHeight:a,...s}):Object.assign(u,{maxWidth:`${o}px`,maxHeight:`${a}px`})),e.width==="target"&&Object.assign(u,{width:`${i.reference.width}px`})}})),r}function K5(e){const[t,n]=La({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=()=>{t&&n(!1)},i=()=>n(!t),o=F1({strategy:e.strategy,placement:e.position,middleware:Y5(e,()=>o)});return g2({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:o}),Da(()=>{var a;(a=e.onPositionChange)==null||a.call(e,o.placement)},[o.placement]),Da(()=>{var a,s;t?(s=e.onOpen)==null||s.call(e):(a=e.onClose)==null||a.call(e)},[t,e.onClose,e.onOpen]),{floating:o,controlled:typeof e.opened=="boolean",opened:t,onClose:r,onToggle:i}}const G5={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:Mn("popover"),__staticSelector:"Popover",width:"max-content"},Q5=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:gr(t),"--popover-shadow":h1(n)}});function Wo(e){var Fe,Ln,pe,ht,He,Me;const t=ie("Popover",G5,e),{children:n,position:r,offset:i,onPositionChange:o,positionDependencies:a,opened:s,transitionProps:l,width:u,middlewares:c,withArrow:d,arrowSize:f,arrowOffset:p,arrowRadius:h,arrowPosition:m,unstyled:y,classNames:b,styles:E,closeOnClickOutside:v,withinPortal:k,portalProps:_,closeOnEscape:x,clickOutsideEvents:I,trapFocus:R,onClose:z,onOpen:A,onChange:j,zIndex:L,radius:U,shadow:V,id:H,defaultOpened:B,__staticSelector:M,withRoles:N,disabled:F,returnFocus:w,variant:q,keepMounted:X,vars:D,floatingStrategy:be,...ge}=t,le=Pe({name:M,props:t,classes:h2,classNames:b,styles:E,unstyled:y,rootSelector:"dropdown",vars:D,varsResolver:Q5}),Ce=S.useRef(null),[Ie,Oe]=S.useState(null),[Ke,xt]=S.useState(null),{dir:Xt}=Sc(),ye=jo(H),Re=K5({middlewares:c,width:u,position:c2(Xt,r),offset:typeof i=="number"?i+(d?f/2:0):i,arrowRef:Ce,arrowOffset:p,onPositionChange:o,positionDependencies:a,opened:s,defaultOpened:B,onChange:j,onOpen:A,onClose:z,strategy:be});CP(()=>v&&Re.onClose(),I,[Ie,Ke]);const at=S.useCallback(St=>{Oe(St),Re.floating.refs.setReference(St)},[Re.floating.refs.setReference]),Be=S.useCallback(St=>{xt(St),Re.floating.refs.setFloating(St)},[Re.floating.refs.setFloating]);return T.jsx(F5,{value:{returnFocus:w,disabled:F,controlled:Re.controlled,reference:at,floating:Be,x:Re.floating.x,y:Re.floating.y,arrowX:(pe=(Ln=(Fe=Re.floating)==null?void 0:Fe.middlewareData)==null?void 0:Ln.arrow)==null?void 0:pe.x,arrowY:(Me=(He=(ht=Re.floating)==null?void 0:ht.middlewareData)==null?void 0:He.arrow)==null?void 0:Me.y,opened:Re.opened,arrowRef:Ce,transitionProps:l,width:u,withArrow:d,arrowSize:f,arrowOffset:p,arrowRadius:h,arrowPosition:m,placement:Re.floating.placement,trapFocus:R,withinPortal:k,portalProps:_,zIndex:L,radius:U,shadow:V,closeOnEscape:x,onClose:Re.onClose,onToggle:Re.onToggle,getTargetId:()=>`${ye}-target`,getDropdownId:()=>`${ye}-dropdown`,withRoles:N,targetProps:ge,__staticSelector:M,classNames:b,styles:E,unstyled:y,variant:q,keepMounted:X,getStyles:le,floatingStrategy:be},children:n})}Wo.Target=m2;Wo.Dropdown=U1;Wo.displayName="@mantine/core/Popover";Wo.extend=e=>e;var Or={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const b2=S.forwardRef(({className:e,...t},n)=>T.jsxs(se,{component:"span",className:kt(Or.barsLoader,e),...t,ref:n,children:[T.jsx("span",{className:Or.bar}),T.jsx("span",{className:Or.bar}),T.jsx("span",{className:Or.bar})]}));b2.displayName="@mantine/core/Bars";const y2=S.forwardRef(({className:e,...t},n)=>T.jsxs(se,{component:"span",className:kt(Or.dotsLoader,e),...t,ref:n,children:[T.jsx("span",{className:Or.dot}),T.jsx("span",{className:Or.dot}),T.jsx("span",{className:Or.dot})]}));y2.displayName="@mantine/core/Dots";const E2=S.forwardRef(({className:e,...t},n)=>T.jsx(se,{component:"span",className:kt(Or.ovalLoader,e),...t,ref:n}));E2.displayName="@mantine/core/Oval";const v2={bars:b2,oval:E2,dots:y2},X5={loaders:v2,type:"oval"},J5=(e,{size:t,color:n})=>({root:{"--loader-size":Je(t,"loader-size"),"--loader-color":n?Mo(n,e):void 0}}),Nc=fe((e,t)=>{const n=ie("Loader",X5,e),{size:r,color:i,type:o,vars:a,className:s,style:l,classNames:u,styles:c,unstyled:d,loaders:f,variant:p,children:h,...m}=n,y=Pe({name:"Loader",props:n,classes:Or,className:s,style:l,classNames:u,styles:c,unstyled:d,vars:a,varsResolver:J5});return h?T.jsx(se,{...y("root"),ref:t,...m,children:h}):T.jsx(se,{...y("root"),ref:t,component:f[o],variant:p,size:r,...m})});Nc.defaultLoaders=v2;Nc.classes=Or;Nc.displayName="@mantine/core/Loader";var wh={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const Ek={orientation:"horizontal"},Z5=(e,{borderWidth:t})=>({group:{"--ai-border-width":Y(t)}}),j1=fe((e,t)=>{const n=ie("ActionIconGroup",Ek,e),{className:r,style:i,classNames:o,styles:a,unstyled:s,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...p}=ie("ActionIconGroup",Ek,e),h=Pe({name:"ActionIconGroup",props:n,classes:wh,className:r,style:i,classNames:o,styles:a,unstyled:s,vars:u,varsResolver:Z5,rootSelector:"group"});return T.jsx(se,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...p})});j1.classes=wh;j1.displayName="@mantine/core/ActionIconGroup";const e8={},t8=(e,{size:t,radius:n,variant:r,gradient:i,color:o,autoContrast:a})=>{const s=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:a});return{root:{"--ai-size":Je(t,"ai-size"),"--ai-radius":n===void 0?void 0:gr(n),"--ai-bg":o||r?s.background:void 0,"--ai-hover":o||r?s.hover:void 0,"--ai-hover-color":o||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":o||r?s.border:void 0}}},ze=br((e,t)=>{const n=ie("ActionIcon",e8,e),{className:r,unstyled:i,variant:o,classNames:a,styles:s,style:l,loading:u,loaderProps:c,size:d,color:f,radius:p,__staticSelector:h,gradient:m,vars:y,children:b,disabled:E,"data-disabled":v,autoContrast:k,mod:_,...x}=n,I=Pe({name:["ActionIcon",h],props:n,className:r,style:l,classes:wh,classNames:a,styles:s,unstyled:i,vars:y,varsResolver:t8});return T.jsxs(yl,{...I("root",{active:!E&&!u&&!v}),...x,unstyled:i,variant:o,size:d,disabled:E||u,ref:t,mod:[{loading:u,disabled:E||v},_],children:[T.jsx(qa,{mounted:!!u,transition:"slide-down",duration:150,children:R=>T.jsx(se,{component:"span",...I("loader",{style:R}),"aria-hidden":!0,children:T.jsx(Nc,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...c})})}),T.jsx(se,{component:"span",mod:{loading:u},...I("icon"),children:b})]})});ze.classes=wh;ze.displayName="@mantine/core/ActionIcon";ze.Group=j1;const T2=S.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...n},r)=>T.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...n,children:T.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));T2.displayName="@mantine/core/CloseIcon";var k2={root:"m_86a44da5","root--subtle":"m_220c80f2"};const n8={variant:"subtle"},r8=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Je(t,"cb-size"),"--cb-radius":n===void 0?void 0:gr(n),"--cb-icon-size":Y(r)}}),_h=br((e,t)=>{const n=ie("CloseButton",n8,e),{iconSize:r,children:i,vars:o,radius:a,className:s,classNames:l,style:u,styles:c,unstyled:d,"data-disabled":f,disabled:p,variant:h,icon:m,mod:y,...b}=n,E=Pe({name:"CloseButton",props:n,className:s,style:u,classes:k2,classNames:l,styles:c,unstyled:d,vars:o,varsResolver:r8});return T.jsxs(yl,{ref:t,...b,unstyled:d,variant:h,disabled:p,mod:[{disabled:p||f},y],...E("root",{variant:h,active:!p&&!f}),children:[m||T.jsx(T2,{}),i]})});_h.classes=k2;_h.displayName="@mantine/core/CloseButton";function i8(e){return S.Children.toArray(e).filter(Boolean)}var x2={root:"m_4081bf90"};const o8={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},a8=(e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:o,wrap:a},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":vc(r),"--group-align":i,"--group-justify":o,"--group-wrap":a}}),it=fe((e,t)=>{const n=ie("Group",o8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,children:l,gap:u,align:c,justify:d,wrap:f,grow:p,preventGrowOverflow:h,vars:m,variant:y,__size:b,mod:E,...v}=n,k=i8(l),_=k.length,x=vc(u??"md"),R={childWidth:`calc(${100/_}% - (${x} - ${x} / ${_}))`},z=Pe({name:"Group",props:n,stylesCtx:R,className:i,style:o,classes:x2,classNames:r,styles:a,unstyled:s,vars:m,varsResolver:a8});return T.jsx(se,{...z("root"),ref:t,variant:y,mod:[{grow:p},E],size:b,...v,children:k})});it.classes=x2;it.displayName="@mantine/core/Group";var S2={root:"m_9814e45f"};const s8={zIndex:Mn("modal")},l8=(e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:o,zIndex:a})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Wr(n||"#000",r??.6)||void 0,"--overlay-filter":i?`blur(${Y(i)})`:void 0,"--overlay-radius":o===void 0?void 0:gr(o),"--overlay-z-index":a==null?void 0:a.toString()}}),$1=br((e,t)=>{const n=ie("Overlay",s8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,fixed:u,center:c,children:d,radius:f,zIndex:p,gradient:h,blur:m,color:y,backgroundOpacity:b,mod:E,...v}=n,k=Pe({name:"Overlay",props:n,classes:S2,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:l8});return T.jsx(se,{ref:t,...k("root"),mod:[{center:c,fixed:u},E],...v,children:d})});$1.classes=S2;$1.displayName="@mantine/core/Overlay";const[u8,Pi]=Uo("ModalBase component was not found in tree");function c8({opened:e,transitionDuration:t}){const[n,r]=S.useState(e),i=S.useRef(),a=EN()?0:t;return S.useEffect(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function d8({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:o,returnFocus:a}){const s=jo(e),[l,u]=S.useState(!1),[c,d]=S.useState(!1),f=typeof(t==null?void 0:t.duration)=="number"?t==null?void 0:t.duration:200,p=c8({opened:n,transitionDuration:f});return bN("keydown",h=>{var m;h.key==="Escape"&&i&&n&&((m=h.target)==null?void 0:m.getAttribute("data-mantine-stop-propagation"))!=="true"&&o()},{capture:!0}),pN({opened:n,shouldReturnFocus:r&&a}),{_id:s,titleMounted:l,bodyMounted:c,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:d}}const W1=S.forwardRef(({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:i,trapFocus:o,closeOnEscape:a,returnFocus:s,closeOnClickOutside:l,withinPortal:u,portalProps:c,lockScroll:d,children:f,zIndex:p,shadow:h,padding:m,__vars:y,unstyled:b,removeScrollProps:E,...v},k)=>{const{_id:_,titleMounted:x,bodyMounted:I,shouldLockScroll:R,setTitleMounted:z,setBodyMounted:A}=d8({id:r,transitionProps:i,opened:t,trapFocus:o,closeOnEscape:a,onClose:n,returnFocus:s}),{key:j,...L}=E||{};return T.jsx(Cc,{...c,withinPortal:u,children:T.jsx(u8,{value:{opened:t,onClose:n,closeOnClickOutside:l,transitionProps:{...i,keepMounted:e},getTitleId:()=>`${_}-title`,getBodyId:()=>`${_}-body`,titleMounted:x,bodyMounted:I,setTitleMounted:z,setBodyMounted:A,trapFocus:o,closeOnEscape:a,zIndex:p,unstyled:b},children:T.jsx(hh,{enabled:R&&d,...L,children:T.jsx(se,{ref:k,...v,__vars:{...y,"--mb-z-index":(p||Mn("modal")).toString(),"--mb-shadow":h1(h),"--mb-padding":vc(m)},children:f})},j)})})});W1.displayName="@mantine/core/ModalBase";function f8(){const e=Pi();return S.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var il={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const V1=S.forwardRef(({className:e,...t},n)=>{const r=f8(),i=Pi();return T.jsx(se,{ref:n,...t,id:r,className:kt({[il.body]:!i.unstyled},e)})});V1.displayName="@mantine/core/ModalBaseBody";const q1=S.forwardRef(({className:e,onClick:t,...n},r)=>{const i=Pi();return T.jsx(_h,{ref:r,...n,onClick:o=>{i.onClose(),t==null||t(o)},className:kt({[il.close]:!i.unstyled},e),unstyled:i.unstyled})});q1.displayName="@mantine/core/ModalBaseCloseButton";const Y1=S.forwardRef(({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,...o},a)=>{const s=Pi();return T.jsx(qa,{mounted:s.opened,transition:"pop",...s.transitionProps,...e,children:l=>T.jsx("div",{...n,className:kt({[il.inner]:!s.unstyled},n.className),children:T.jsx(Sh,{active:s.opened&&s.trapFocus,innerRef:a,children:T.jsx(Pa,{...o,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,l],className:kt({[il.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})});Y1.displayName="@mantine/core/ModalBaseContent";const K1=S.forwardRef(({className:e,...t},n)=>{const r=Pi();return T.jsx(se,{component:"header",ref:n,className:kt({[il.header]:!r.unstyled},e),...t})});K1.displayName="@mantine/core/ModalBaseHeader";const p8={duration:200,timingFunction:"ease",transition:"fade"};function h8(e){const t=Pi();return{...p8,...t.transitionProps,...e}}const G1=S.forwardRef(({onClick:e,transitionProps:t,style:n,visible:r,...i},o)=>{const a=Pi(),s=h8(t);return T.jsx(qa,{mounted:r!==void 0?r:a.opened,...s,transition:"fade",children:l=>T.jsx($1,{ref:o,fixed:!0,style:[n,l],zIndex:a.zIndex,unstyled:a.unstyled,onClick:u=>{e==null||e(u),a.closeOnClickOutside&&a.onClose()},...i})})});G1.displayName="@mantine/core/ModalBaseOverlay";function m8(){const e=Pi();return S.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const Q1=S.forwardRef(({className:e,...t},n)=>{const r=m8(),i=Pi();return T.jsx(se,{component:"h2",ref:n,className:kt({[il.title]:!i.unstyled},e),...t,id:r})});Q1.displayName="@mantine/core/ModalBaseTitle";function w2({children:e}){return T.jsx(T.Fragment,{children:e})}const[g8,Ac]=p1({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Er={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const vk={},b8=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`}}),Ch=fe((e,t)=>{const n=ie("InputDescription",vk,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...p}=ie("InputDescription",vk,n),h=Ac(),m=Pe({name:["InputWrapper",c],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"description",vars:l,varsResolver:b8}),y=d&&(h==null?void 0:h.getStyles)||m;return T.jsx(se,{component:"p",ref:t,variant:f,size:u,...y("description",h!=null&&h.getStyles?{className:i,style:o}:void 0),...p})});Ch.classes=Er;Ch.displayName="@mantine/core/InputDescription";const y8={},E8=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`}}),Nh=fe((e,t)=>{const n=ie("InputError",y8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...p}=n,h=Pe({name:["InputWrapper",c],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"error",vars:l,varsResolver:E8}),m=Ac(),y=d&&(m==null?void 0:m.getStyles)||h;return T.jsx(se,{component:"p",ref:t,variant:f,size:u,...y("error",m!=null&&m.getStyles?{className:i,style:o}:void 0),...p})});Nh.classes=Er;Nh.displayName="@mantine/core/InputError";const Tk={labelElement:"label"},v8=(e,{size:t})=>({label:{"--input-label-size":$n(t),"--input-asterisk-color":void 0}}),Ah=fe((e,t)=>{const n=ie("InputLabel",Tk,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,labelElement:u,size:c,required:d,htmlFor:f,onMouseDown:p,children:h,__staticSelector:m,variant:y,mod:b,...E}=ie("InputLabel",Tk,n),v=Pe({name:["InputWrapper",m],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"label",vars:l,varsResolver:v8}),k=Ac(),_=(k==null?void 0:k.getStyles)||v;return T.jsxs(se,{..._("label",k!=null&&k.getStyles?{className:i,style:o}:void 0),component:u,variant:y,size:c,ref:t,htmlFor:u==="label"?f:void 0,mod:[{required:d},b],onMouseDown:x=>{p==null||p(x),!x.defaultPrevented&&x.detail>1&&x.preventDefault()},...E,children:[h,d&&T.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});Ah.classes=Er;Ah.displayName="@mantine/core/InputLabel";const kk={},X1=fe((e,t)=>{const n=ie("InputPlaceholder",kk,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,__staticSelector:u,variant:c,error:d,mod:f,...p}=ie("InputPlaceholder",kk,n),h=Pe({name:["InputPlaceholder",u],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"placeholder"});return T.jsx(se,{...h("placeholder"),mod:[{error:!!d},f],component:"span",variant:c,ref:t,...p})});X1.classes=Er;X1.displayName="@mantine/core/InputPlaceholder";function T8(e,{hasDescription:t,hasError:n}){const r=e.findIndex(l=>l==="input"),i=e.slice(0,r),o=e.slice(r+1),a=t&&i.includes("description")||n&&i.includes("error");return{offsetBottom:t&&o.includes("description")||n&&o.includes("error"),offsetTop:a}}const k8={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},x8=(e,{size:t})=>({label:{"--input-label-size":$n(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`}}),J1=fe((e,t)=>{const n=ie("InputWrapper",k8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,variant:c,__staticSelector:d,inputContainer:f,inputWrapperOrder:p,label:h,error:m,description:y,labelProps:b,descriptionProps:E,errorProps:v,labelElement:k,children:_,withAsterisk:x,id:I,required:R,__stylesApiProps:z,mod:A,...j}=n,L=Pe({name:["InputWrapper",d],props:z||n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:x8}),U={size:u,variant:c,__staticSelector:d},V=jo(I),H=typeof x=="boolean"?x:R,B=(v==null?void 0:v.id)||`${V}-error`,M=(E==null?void 0:E.id)||`${V}-description`,N=V,F=!!m&&typeof m!="boolean",w=!!y,q=`${F?B:""} ${w?M:""}`,X=q.trim().length>0?q.trim():void 0,D=(b==null?void 0:b.id)||`${V}-label`,be=h&&T.jsx(Ah,{labelElement:k,id:D,htmlFor:N,required:H,...U,...b,children:h},"label"),ge=w&&T.jsx(Ch,{...E,...U,size:(E==null?void 0:E.size)||U.size,id:(E==null?void 0:E.id)||M,children:y},"description"),le=T.jsx(S.Fragment,{children:f(_)},"input"),Ce=F&&S.createElement(Nh,{...v,...U,size:(v==null?void 0:v.size)||U.size,key:"error",id:(v==null?void 0:v.id)||B},m),Ie=p.map(Oe=>{switch(Oe){case"label":return be;case"input":return le;case"description":return ge;case"error":return Ce;default:return null}});return T.jsx(g8,{value:{getStyles:L,describedBy:X,inputId:N,labelId:D,...T8(p,{hasDescription:w,hasError:F})},children:T.jsx(se,{ref:t,variant:c,size:u,mod:[{error:!!m},A],...L("root"),...j,children:Ie})})});J1.classes=Er;J1.displayName="@mantine/core/InputWrapper";const S8={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},w8=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Je(t.size,"input-height"),"--input-fz":$n(t.size),"--input-radius":t.radius===void 0?void 0:gr(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?Y(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?Y(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Je(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),zt=br((e,t)=>{const n=ie("Input",S8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,required:l,__staticSelector:u,__stylesApiProps:c,size:d,wrapperProps:f,error:p,disabled:h,leftSection:m,leftSectionProps:y,leftSectionWidth:b,rightSection:E,rightSectionProps:v,rightSectionWidth:k,rightSectionPointerEvents:_,leftSectionPointerEvents:x,variant:I,vars:R,pointer:z,multiline:A,radius:j,id:L,withAria:U,withErrorStyles:V,mod:H,inputSize:B,...M}=n,{styleProps:N,rest:F}=xc(M),w=Ac(),q={offsetBottom:w==null?void 0:w.offsetBottom,offsetTop:w==null?void 0:w.offsetTop},X=Pe({name:["Input",u],props:c||n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,stylesCtx:q,rootSelector:"wrapper",vars:R,varsResolver:w8}),D=U?{required:l,disabled:h,"aria-invalid":!!p,"aria-describedby":w==null?void 0:w.describedBy,id:(w==null?void 0:w.inputId)||L}:{};return T.jsxs(se,{...X("wrapper"),...N,...f,mod:[{error:!!p&&V,pointer:z,disabled:h,multiline:A,"data-with-right-section":!!E,"data-with-left-section":!!m},H],variant:I,size:d,children:[m&&T.jsx("div",{...y,"data-position":"left",...X("section",{className:y==null?void 0:y.className,style:y==null?void 0:y.style}),children:m}),T.jsx(se,{component:"input",...F,...D,ref:t,required:l,mod:{disabled:h,error:!!p&&V},variant:I,__size:B,...X("input")}),E&&T.jsx("div",{...v,"data-position":"right",...X("section",{className:v==null?void 0:v.className,style:v==null?void 0:v.style}),children:E})]})});zt.classes=Er;zt.Wrapper=J1;zt.Label=Ah;zt.Error=Nh;zt.Description=Ch;zt.Placeholder=X1;zt.displayName="@mantine/core/Input";function _8(e,t,n){const r=ie(e,t,n),{label:i,description:o,error:a,required:s,classNames:l,styles:u,className:c,unstyled:d,__staticSelector:f,__stylesApiProps:p,errorProps:h,labelProps:m,descriptionProps:y,wrapperProps:b,id:E,size:v,style:k,inputContainer:_,inputWrapperOrder:x,withAsterisk:I,variant:R,vars:z,mod:A,...j}=r,{styleProps:L,rest:U}=xc(j),V={label:i,description:o,error:a,required:s,classNames:l,className:c,__staticSelector:f,__stylesApiProps:p||r,errorProps:h,labelProps:m,descriptionProps:y,unstyled:d,styles:u,size:v,style:k,inputContainer:_,inputWrapperOrder:x,withAsterisk:I,variant:R,id:E,mod:A,...b};return{...U,classNames:l,styles:u,unstyled:d,wrapperProps:{...V,...L},inputProps:{required:s,classNames:l,styles:u,unstyled:d,size:v,__staticSelector:f,__stylesApiProps:p||r,error:a,variant:R,id:E}}}const C8={__staticSelector:"InputBase",withAria:!0},Bi=br((e,t)=>{const{inputProps:n,wrapperProps:r,...i}=_8("InputBase",C8,e);return T.jsx(zt.Wrapper,{...r,children:T.jsx(zt,{...n,...i,ref:t})})});Bi.classes={...zt.classes,...zt.Wrapper.classes};Bi.displayName="@mantine/core/InputBase";var _2={root:"m_b6d8b162"};function N8(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const A8={inherit:!1},O8=(e,{variant:t,lineClamp:n,gradient:r,size:i,color:o})=>({root:{"--text-fz":$n(i),"--text-lh":_P(i),"--text-gradient":t==="gradient"?ob(r,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":o?Mo(o,e):void 0}}),qt=br((e,t)=>{const n=ie("Text",A8,e),{lineClamp:r,truncate:i,inline:o,inherit:a,gradient:s,span:l,__staticSelector:u,vars:c,className:d,style:f,classNames:p,styles:h,unstyled:m,variant:y,mod:b,size:E,...v}=n,k=Pe({name:["Text",u],props:n,classes:_2,className:d,style:f,classNames:p,styles:h,unstyled:m,vars:c,varsResolver:O8});return T.jsx(se,{...k("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:y,mod:[{"data-truncate":N8(i),"data-line-clamp":typeof r=="number","data-inline":o,"data-inherit":a},b],size:E,...v})});qt.classes=_2;qt.displayName="@mantine/core/Text";var C2={root:"m_849cf0da"};const I8={underline:"hover"},Wf=br((e,t)=>{const{underline:n,className:r,unstyled:i,mod:o,...a}=ie("Anchor",I8,e);return T.jsx(qt,{component:"a",ref:t,className:kt({[C2.root]:!i},r),...a,mod:[{underline:n},o],__staticSelector:"Anchor",unstyled:i})});Wf.classes=C2;Wf.displayName="@mantine/core/Anchor";const[R8,Tl]=Uo("AppShell was not found in tree");var Vo={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const M8={},Z1=fe((e,t)=>{const n=ie("AppShellAside",M8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"aside",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("aside",{className:i,classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-aside-z-index":`calc(${c??p.zIndex} + 1)`}})});Z1.classes=Vo;Z1.displayName="@mantine/core/AppShellAside";const D8={},eE=fe((e,t)=>{var h;const n=ie("AppShellFooter",D8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"footer",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("footer",{className:kt({[hh.classNames.zeroRight]:p.offsetScrollbars},i),classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-footer-z-index":(h=c??p.zIndex)==null?void 0:h.toString()}})});eE.classes=Vo;eE.displayName="@mantine/core/AppShellFooter";const L8={},tE=fe((e,t)=>{var h;const n=ie("AppShellHeader",L8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"header",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("header",{className:kt({[hh.classNames.zeroRight]:p.offsetScrollbars},i),classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-header-z-index":(h=c??p.zIndex)==null?void 0:h.toString()}})});tE.classes=Vo;tE.displayName="@mantine/core/AppShellHeader";const P8={},nE=fe((e,t)=>{const n=ie("AppShellMain",P8,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=Tl();return T.jsx(se,{component:"main",ref:t,...u.getStyles("main",{className:i,style:o,classNames:r,styles:a}),...l})});nE.classes=Vo;nE.displayName="@mantine/core/AppShellMain";function Oc(e){return typeof e=="object"?e.base:e}function Ic(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function Rc(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function B8({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i}){var l,u,c;const o=r==null?void 0:r.width,a="translateX(var(--app-shell-aside-width))",s="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((l=r==null?void 0:r.collapsed)!=null&&l.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"),Ic(o)){const d=Y(Oc(o));e["--app-shell-aside-width"]=d,e["--app-shell-aside-offset"]=d}if(Rc(o)&&(typeof o.base<"u"&&(e["--app-shell-aside-width"]=Y(o.base),e["--app-shell-aside-offset"]=Y(o.base)),Kt(o).forEach(d=>{d!=="base"&&(t[d]=t[d]||{},t[d]["--app-shell-aside-width"]=Y(o[d]),t[d]["--app-shell-aside-offset"]=Y(o[d]))})),(u=r==null?void 0:r.collapsed)!=null&&u.desktop){const d=r.breakpoint;t[d]=t[d]||{},t[d]["--app-shell-aside-transform"]=a,t[d]["--app-shell-aside-transform-rtl"]=s,t[d]["--app-shell-aside-offset"]="0px !important"}if((c=r==null?void 0:r.collapsed)!=null&&c.mobile){const d=m1(r.breakpoint,i.breakpoints)-.1;n[d]=n[d]||{},n[d]["--app-shell-aside-width"]="100%",n[d]["--app-shell-aside-offset"]="0px",n[d]["--app-shell-aside-transform"]=a,n[d]["--app-shell-aside-transform-rtl"]=s}}function z8({baseStyles:e,minMediaStyles:t,footer:n}){const r=n==null?void 0:n.height,i="translateY(var(--app-shell-footer-height))",o=(n==null?void 0:n.offset)??!0;if(Ic(r)){const a=Y(Oc(r));e["--app-shell-footer-height"]=a,o&&(e["--app-shell-footer-offset"]=a)}Rc(r)&&(typeof r.base<"u"&&(e["--app-shell-footer-height"]=Y(r.base),o&&(e["--app-shell-footer-offset"]=Y(r.base))),Kt(r).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-footer-height"]=Y(r[a]),o&&(t[a]["--app-shell-footer-offset"]=Y(r[a])))})),n!=null&&n.collapsed&&(e["--app-shell-footer-transform"]=i,e["--app-shell-footer-offset"]="0px !important")}function F8({baseStyles:e,minMediaStyles:t,header:n}){const r=n==null?void 0:n.height,i="translateY(calc(var(--app-shell-header-height) * -1))",o=(n==null?void 0:n.offset)??!0;if(Ic(r)){const a=Y(Oc(r));e["--app-shell-header-height"]=a,o&&(e["--app-shell-header-offset"]=a)}Rc(r)&&(typeof r.base<"u"&&(e["--app-shell-header-height"]=Y(r.base),o&&(e["--app-shell-header-offset"]=Y(r.base))),Kt(r).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-header-height"]=Y(r[a]),o&&(t[a]["--app-shell-header-offset"]=Y(r[a])))})),n!=null&&n.collapsed&&(e["--app-shell-header-transform"]=i,e["--app-shell-header-offset"]="0px !important")}function H8({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i}){var l,u,c;const o=r==null?void 0:r.width,a="translateX(calc(var(--app-shell-navbar-width) * -1))",s="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((l=r==null?void 0:r.collapsed)!=null&&l.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-navbar-offset"]="0px"),Ic(o)){const d=Y(Oc(o));e["--app-shell-navbar-width"]=d,e["--app-shell-navbar-offset"]=d}if(Rc(o)&&(typeof o.base<"u"&&(e["--app-shell-navbar-width"]=Y(o.base),e["--app-shell-navbar-offset"]=Y(o.base)),Kt(o).forEach(d=>{d!=="base"&&(t[d]=t[d]||{},t[d]["--app-shell-navbar-width"]=Y(o[d]),t[d]["--app-shell-navbar-offset"]=Y(o[d]))})),(u=r==null?void 0:r.collapsed)!=null&&u.desktop){const d=r.breakpoint;t[d]=t[d]||{},t[d]["--app-shell-navbar-transform"]=a,t[d]["--app-shell-navbar-transform-rtl"]=s,t[d]["--app-shell-navbar-offset"]="0px !important"}if((c=r==null?void 0:r.collapsed)!=null&&c.mobile){const d=m1(r.breakpoint,i.breakpoints)-.1;n[d]=n[d]||{},n[d]["--app-shell-navbar-width"]="100%",n[d]["--app-shell-navbar-offset"]="0px",n[d]["--app-shell-navbar-transform"]=a,n[d]["--app-shell-navbar-transform-rtl"]=s}}function dg(e){return Number(e)===0?"0px":vc(e)}function U8({padding:e,baseStyles:t,minMediaStyles:n}){Ic(e)&&(t["--app-shell-padding"]=dg(Oc(e))),Rc(e)&&(e.base&&(t["--app-shell-padding"]=dg(e.base)),Kt(e).forEach(r=>{r!=="base"&&(n[r]=n[r]||{},n[r]["--app-shell-padding"]=dg(e[r]))}))}function j8({navbar:e,header:t,footer:n,aside:r,padding:i,theme:o}){const a={},s={},l={};H8({baseStyles:l,minMediaStyles:a,maxMediaStyles:s,navbar:e,theme:o}),B8({baseStyles:l,minMediaStyles:a,maxMediaStyles:s,aside:r,theme:o}),F8({baseStyles:l,minMediaStyles:a,header:t}),z8({baseStyles:l,minMediaStyles:a,footer:n}),U8({baseStyles:l,minMediaStyles:a,padding:i});const u=WT(Kt(a),o.breakpoints).map(f=>({query:`(min-width: ${zf(f.px)})`,styles:a[f.value]})),c=WT(Kt(s),o.breakpoints).map(f=>({query:`(max-width: ${zf(f.px)})`,styles:s[f.value]})),d=[...u,...c];return{baseStyles:l,media:d}}function $8({navbar:e,header:t,aside:n,footer:r,padding:i}){const o=li(),a=$o(),{media:s,baseStyles:l}=j8({navbar:e,header:t,footer:r,aside:n,padding:i,theme:o});return T.jsx(_N,{media:s,styles:l,selector:a.cssVariablesSelector})}const W8={},rE=fe((e,t)=>{const n=ie("AppShellNavbar",W8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"nav",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("navbar",{className:i,classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-navbar-z-index":`calc(${c??p.zIndex} + 1)`}})});rE.classes=Vo;rE.displayName="@mantine/core/AppShellNavbar";const V8={},iE=br((e,t)=>{const n=ie("AppShellSection",V8,e),{classNames:r,className:i,style:o,styles:a,vars:s,grow:l,mod:u,...c}=n,d=Tl();return T.jsx(se,{ref:t,mod:[{grow:l},u],...d.getStyles("section",{className:i,style:o,classNames:r,styles:a}),...c})});iE.classes=Vo;iE.displayName="@mantine/core/AppShellSection";function q8({transitionDuration:e,disabled:t}){const[n,r]=S.useState(!0),i=S.useRef(),o=S.useRef();return bN("resize",()=>{r(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>S.startTransition(()=>{r(!1)}),200)}),bl(()=>{r(!0),clearTimeout(o.current),o.current=window.setTimeout(()=>S.startTransition(()=>{r(!1)}),e||0)},[t,e]),n}const Y8={withBorder:!0,offsetScrollbars:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Mn("app")},K8=(e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}}),ur=fe((e,t)=>{const n=ie("AppShell",Y8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,navbar:u,withBorder:c,padding:d,transitionDuration:f,transitionTimingFunction:p,header:h,zIndex:m,layout:y,disabled:b,aside:E,footer:v,offsetScrollbars:k,mod:_,...x}=n,I=Pe({name:"AppShell",classes:Vo,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:K8}),R=q8({disabled:b,transitionDuration:f});return T.jsxs(R8,{value:{getStyles:I,withBorder:c,zIndex:m,disabled:b,offsetScrollbars:k},children:[T.jsx($8,{navbar:u,header:h,aside:E,footer:v,padding:d}),T.jsx(se,{ref:t,...I("root"),mod:[{resizing:R,layout:y,disabled:b},_],...x})]})});ur.classes=Vo;ur.displayName="@mantine/core/AppShell";ur.Navbar=rE;ur.Header=tE;ur.Main=nE;ur.Aside=Z1;ur.Footer=eE;ur.Section=iE;function N2(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(t=>N2(t))}:e}function G8(e){return e?e.map(t=>N2(t)):[]}function A2(e){return e.reduce((t,n)=>"group"in n?{...t,...A2(n.items)}:(t[n.value]=n,t),{})}var Rn={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const Q8={error:null},X8=(e,{size:t})=>({chevron:{"--combobox-chevron-size":Je(t,"combobox-chevron-size")}}),oE=fe((e,t)=>{const n=ie("ComboboxChevron",Q8,e),{size:r,error:i,style:o,className:a,classNames:s,styles:l,unstyled:u,vars:c,mod:d,...f}=n,p=Pe({name:"ComboboxChevron",classes:Rn,props:n,style:o,className:a,classNames:s,styles:l,unstyled:u,vars:c,varsResolver:X8,rootSelector:"chevron"});return T.jsx(se,{component:"svg",...f,...p("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},d],ref:t,children:T.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});oE.classes=Rn;oE.displayName="@mantine/core/ComboboxChevron";const[J8,vr]=Uo("Combobox component was not found in tree"),O2=S.forwardRef(({size:e,onMouseDown:t,onClick:n,onClear:r,...i},o)=>T.jsx(_h,{ref:o,size:e||"sm",variant:"transparent",tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:a=>{a.preventDefault(),t==null||t(a)},onClick:a=>{r(),n==null||n(a)}}));O2.displayName="@mantine/core/ComboboxClearButton";const Z8={},aE=fe((e,t)=>{const{classNames:n,styles:r,className:i,style:o,hidden:a,...s}=ie("ComboboxDropdown",Z8,e),l=vr();return T.jsx(Wo.Dropdown,{...s,ref:t,role:"presentation","data-hidden":a||void 0,...l.getStyles("dropdown",{className:i,style:o,classNames:n,styles:r})})});aE.classes=Rn;aE.displayName="@mantine/core/ComboboxDropdown";const eB={refProp:"ref"},I2=fe((e,t)=>{const{children:n,refProp:r}=ie("ComboboxDropdownTarget",eB,e);if(vr(),!Va(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return T.jsx(Wo.Target,{ref:t,refProp:r,children:n})});I2.displayName="@mantine/core/ComboboxDropdownTarget";const tB={},sE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=ie("ComboboxEmpty",tB,e),l=vr();return T.jsx(se,{ref:t,...l.getStyles("empty",{className:r,classNames:n,styles:o,style:i}),...s})});sE.classes=Rn;sE.displayName="@mantine/core/ComboboxEmpty";function lE({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:i,autoComplete:o}){const a=vr(),[s,l]=S.useState(null),u=d=>{if(e==null||e(d),!a.readOnly&&t){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectNextOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const f=a.store.getSelectedOptionIndex();a.store.dropdownOpened&&f!==-1?(d.preventDefault(),a.store.clickSelectedOption()):i==="button"&&(d.preventDefault(),a.store.openDropdown("keyboard"))}d.nativeEvent.code==="Escape"&&a.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&i==="button"&&(d.preventDefault(),a.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!!(a.store.listId&&a.store.dropdownOpened)||void 0,"aria-controls":a.store.listId,"aria-activedescendant":a.store.dropdownOpened&&s||void 0,autoComplete:o,"data-expanded":a.store.dropdownOpened||void 0,"data-mantine-stop-propagation":a.store.dropdownOpened||void 0}:{},onKeyDown:u}}const nB={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},R2=fe((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=ie("ComboboxEventsTarget",nB,e);if(!Va(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const c=vr(),d=lE({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:n.props.onKeyDown,autoComplete:l});return S.cloneElement(n,{...d,...u,[r]:Dn(t,c.store.targetRef,mh(n))})});R2.displayName="@mantine/core/ComboboxEventsTarget";const rB={},uE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=ie("ComboboxFooter",rB,e),l=vr();return T.jsx(se,{ref:t,...l.getStyles("footer",{className:r,classNames:n,style:i,styles:o}),...s,onMouseDown:u=>{u.preventDefault()}})});uE.classes=Rn;uE.displayName="@mantine/core/ComboboxFooter";const iB={},cE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,children:s,label:l,...u}=ie("ComboboxGroup",iB,e),c=vr();return T.jsxs(se,{ref:t,...c.getStyles("group",{className:r,classNames:n,style:i,styles:o}),...u,children:[l&&T.jsx("div",{...c.getStyles("groupLabel",{classNames:n,styles:o}),children:l}),s]})});cE.classes=Rn;cE.displayName="@mantine/core/ComboboxGroup";const oB={},dE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=ie("ComboboxHeader",oB,e),l=vr();return T.jsx(se,{ref:t,...l.getStyles("header",{className:r,classNames:n,style:i,styles:o}),...s,onMouseDown:u=>{u.preventDefault()}})});dE.classes=Rn;dE.displayName="@mantine/core/ComboboxHeader";function M2({value:e,valuesDivider:t=",",...n}){return T.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}M2.displayName="@mantine/core/ComboboxHiddenInput";const aB={},fE=fe((e,t)=>{const n=ie("ComboboxOption",aB,e),{classNames:r,className:i,style:o,styles:a,vars:s,onClick:l,id:u,active:c,onMouseDown:d,onMouseOver:f,disabled:p,selected:h,mod:m,...y}=n,b=vr(),E=S.useId(),v=u||E;return T.jsx(se,{...b.getStyles("option",{className:i,classNames:r,styles:a,style:o}),...y,ref:t,id:v,mod:["combobox-option",{"combobox-active":c,"combobox-disabled":p,"combobox-selected":h},m],role:"option",onClick:k=>{var _;p?k.preventDefault():((_=b.onOptionSubmit)==null||_.call(b,n.value,n),l==null||l(k))},onMouseDown:k=>{k.preventDefault(),d==null||d(k)},onMouseOver:k=>{b.resetSelectionOnOptionHover&&b.store.resetSelectedOption(),f==null||f(k)}})});fE.classes=Rn;fE.displayName="@mantine/core/ComboboxOption";const sB={},pE=fe((e,t)=>{const n=ie("ComboboxOptions",sB,e),{classNames:r,className:i,style:o,styles:a,id:s,onMouseDown:l,labelledBy:u,...c}=n,d=vr(),f=jo(s);return S.useEffect(()=>{d.store.setListId(f)},[f]),T.jsx(se,{ref:t,...d.getStyles("options",{className:i,style:o,classNames:r,styles:a}),...c,id:f,role:"listbox","aria-labelledby":u,onMouseDown:p=>{p.preventDefault(),l==null||l(p)}})});pE.classes=Rn;pE.displayName="@mantine/core/ComboboxOptions";const lB={withAriaAttributes:!0,withKeyboardNavigation:!0},hE=fe((e,t)=>{const n=ie("ComboboxSearch",lB,e),{classNames:r,styles:i,unstyled:o,vars:a,withAriaAttributes:s,onKeyDown:l,withKeyboardNavigation:u,size:c,...d}=n,f=vr(),p=f.getStyles("search"),h=lE({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return T.jsx(zt,{ref:Dn(t,f.store.searchRef),classNames:[{input:p.className},r],styles:[{input:p.style},i],size:c||f.size,...h,...d,__staticSelector:"Combobox"})});hE.classes=Rn;hE.displayName="@mantine/core/ComboboxSearch";const uB={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},D2=fe((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=ie("ComboboxTarget",uB,e);if(!Va(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const c=vr(),d=lE({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:n.props.onKeyDown,autoComplete:l}),f=S.cloneElement(n,{...d,...u});return T.jsx(Wo.Target,{ref:Dn(t,c.store.targetRef),children:f})});D2.displayName="@mantine/core/ComboboxTarget";function cB(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r}return e}function dB(e,t,n){for(let r=e+1;r{s||(l(!0),i==null||i(B))},[l,i,s]),b=S.useCallback((B="unknown")=>{s&&(l(!1),r==null||r(B))},[l,r,s]),E=S.useCallback((B="unknown")=>{s?b(B):y(B)},[b,y,s]),v=S.useCallback(()=>{const B=document.querySelector(`#${u.current} [data-combobox-selected]`);B==null||B.removeAttribute("data-combobox-selected"),B==null||B.removeAttribute("aria-selected")},[]),k=S.useCallback(B=>{const M=document.getElementById(u.current),N=M==null?void 0:M.querySelectorAll("[data-combobox-option]");if(!N)return null;const F=B>=N.length?0:B<0?N.length-1:B;return c.current=F,N!=null&&N[F]&&!N[F].hasAttribute("data-combobox-disabled")?(v(),N[F].setAttribute("data-combobox-selected","true"),N[F].setAttribute("aria-selected","true"),N[F].scrollIntoView({block:"nearest",behavior:a}),N[F].id):null},[a,v]),_=S.useCallback(()=>{const B=document.querySelector(`#${u.current} [data-combobox-active]`);if(B){const M=document.querySelectorAll(`#${u.current} [data-combobox-option]`),N=Array.from(M).findIndex(F=>F===B);return k(N)}return k(0)},[k]),x=S.useCallback(()=>k(dB(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),o)),[k,o]),I=S.useCallback(()=>k(cB(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),o)),[k,o]),R=S.useCallback(()=>k(fB(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[k]),z=S.useCallback((B="selected",M)=>{m.current=window.setTimeout(()=>{var w;const N=document.querySelectorAll(`#${u.current} [data-combobox-option]`),F=Array.from(N).findIndex(q=>q.hasAttribute(`data-combobox-${B}`));c.current=F,M!=null&&M.scrollIntoView&&((w=N[F])==null||w.scrollIntoView({block:"nearest",behavior:a}))},0)},[]),A=S.useCallback(()=>{c.current=-1,v()},[v]),j=S.useCallback(()=>{const B=document.querySelectorAll(`#${u.current} [data-combobox-option]`),M=B==null?void 0:B[c.current];M==null||M.click()},[]),L=S.useCallback(B=>{u.current=B},[]),U=S.useCallback(()=>{p.current=window.setTimeout(()=>d.current.focus(),0)},[]),V=S.useCallback(()=>{h.current=window.setTimeout(()=>f.current.focus(),0)},[]),H=S.useCallback(()=>c.current,[]);return S.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(h.current),window.clearTimeout(m.current)},[]),{dropdownOpened:s,openDropdown:y,closeDropdown:b,toggleDropdown:E,selectedOptionIndex:c.current,getSelectedOptionIndex:H,selectOption:k,selectFirstOption:R,selectActiveOption:_,selectNextOption:x,selectPreviousOption:I,resetSelectedOption:A,updateSelectedOptionIndex:z,listId:u.current,setListId:L,clickSelectedOption:j,searchRef:d,focusSearchInput:U,targetRef:f,focusTarget:V}}const pB={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},hB=(e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":$n(t),"--combobox-option-padding":Je(t,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Y(n),"--combobox-option-fz":$n(t),"--combobox-option-padding":Je(t,"combobox-option-padding")}});function Ve(e){const t=ie("Combobox",pB,e),{classNames:n,styles:r,unstyled:i,children:o,store:a,vars:s,onOptionSubmit:l,onClose:u,size:c,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:h,...m}=t,y=L2(),b=a||y,E=Pe({name:p||"Combobox",classes:Rn,props:t,classNames:n,styles:r,unstyled:i,vars:s,varsResolver:hB}),v=()=>{u==null||u(),b.closeDropdown()};return T.jsx(J8,{value:{getStyles:E,store:b,onOptionSubmit:l,size:c,resetSelectionOnOptionHover:f,readOnly:h},children:T.jsx(Wo,{opened:b.dropdownOpened,...m,onChange:k=>!k&&v(),withRoles:!1,unstyled:i,children:o})})}const mB=e=>e;Ve.extend=mB;Ve.classes=Rn;Ve.displayName="@mantine/core/Combobox";Ve.Target=D2;Ve.Dropdown=aE;Ve.Options=pE;Ve.Option=fE;Ve.Search=hE;Ve.Empty=sE;Ve.Chevron=oE;Ve.Footer=uE;Ve.Header=dE;Ve.EventsTarget=R2;Ve.DropdownTarget=I2;Ve.Group=cE;Ve.ClearButton=O2;Ve.HiddenInput=M2;var P2={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const gB=P2,B2=S.forwardRef(({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:i,unstyled:o,children:a,label:s,description:l,id:u,disabled:c,error:d,size:f,labelPosition:p="left",bodyElement:h="div",labelElement:m="label",variant:y,style:b,vars:E,mod:v,...k},_)=>{const x=Pe({name:e,props:t,className:n,style:b,classes:P2,classNames:r,styles:i,unstyled:o});return T.jsx(se,{...x("root"),ref:_,__vars:{"--label-fz":$n(f),"--label-lh":Je(f,"label-lh")},mod:[{"label-position":p},v],variant:y,size:f,...k,children:T.jsxs(se,{component:h,htmlFor:h==="label"?u:void 0,...x("body"),children:[a,T.jsxs("div",{...x("labelWrapper"),"data-disabled":c||void 0,children:[s&&T.jsx(se,{component:m,htmlFor:m==="label"?u:void 0,...x("label"),"data-disabled":c||void 0,children:s}),l&&T.jsx(zt.Description,{size:f,__inheritStyles:!1,...x("description"),children:l}),d&&typeof d!="boolean"&&T.jsx(zt.Error,{size:f,__inheritStyles:!1,...x("error"),children:d})]})]})})});B2.displayName="@mantine/core/InlineInput";function bB({children:e,role:t}){const n=Ac();return n?T.jsx("div",{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):T.jsx(T.Fragment,{children:e})}function yB({size:e,style:t,...n}){const r=e!==void 0?{width:Y(e),height:Y(e),...t}:t;return T.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:T.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ku(e){return"group"in e}function z2({options:e,search:t,limit:n}){const r=t.trim().toLowerCase(),i=[];for(let o=0;o0)return!1;return!0}function F2(e,t=new Set){if(Array.isArray(e))for(const n of e)if(Ku(n))F2(n.items,t);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(t.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function vB(e,t){return Array.isArray(e)?e.includes(t):e===t}function H2({data:e,withCheckIcon:t,value:n,checkIconPosition:r,unstyled:i,renderOption:o}){if(!Ku(e)){const s=vB(n,e.value),l=t&&s&&T.jsx(yB,{className:Rn.optionsDropdownCheckIcon}),u=T.jsxs(T.Fragment,{children:[r==="left"&&l,T.jsx("span",{children:e.label}),r==="right"&&l]});return T.jsx(Ve.Option,{value:e.value,disabled:e.disabled,className:kt({[Rn.optionsDropdownOption]:!i}),"data-reverse":r==="right"||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o=="function"?o({option:e,checked:s}):u})}const a=e.items.map(s=>T.jsx(H2,{data:s,value:n,unstyled:i,withCheckIcon:t,checkIconPosition:r,renderOption:o},s.value));return T.jsx(Ve.Group,{label:e.group,children:a})}function TB({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:o,maxDropdownHeight:a,withScrollArea:s=!0,filterOptions:l=!0,withCheckIcon:u=!1,value:c,checkIconPosition:d,nothingFoundMessage:f,unstyled:p,labelId:h,renderOption:m,scrollAreaProps:y,"aria-label":b}){F2(e);const v=typeof i=="string"?(r||z2)({options:e,search:l?i:"",limit:o??1/0}):e,k=EB(v),_=v.map(x=>T.jsx(H2,{data:x,withCheckIcon:u,value:c,checkIconPosition:d,unstyled:p,renderOption:m},Ku(x)?x.group:x.value));return T.jsx(Ve.Dropdown,{hidden:t||n&&k,children:T.jsxs(Ve.Options,{labelledBy:h,"aria-label":b,children:[s?T.jsx(wc.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...y,children:_}):_,k&&f&&T.jsx(Ve.Empty,{children:f})]})})}var U2={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const kB={},xB=(e,{color:t,size:n,lineSize:r,transitionDuration:i,transitionTimingFunction:o})=>({root:{"--burger-color":t?Mo(t,e):void 0,"--burger-size":Je(n,"burger-size"),"--burger-line-size":r?Y(r):void 0,"--burger-transition-duration":i===void 0?void 0:`${i}ms`,"--burger-transition-timing-function":o}}),mE=fe((e,t)=>{const n=ie("Burger",kB,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,opened:u,children:c,transitionDuration:d,transitionTimingFunction:f,lineSize:p,...h}=n,m=Pe({name:"Burger",classes:U2,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:xB});return T.jsxs(yl,{...m("root"),ref:t,...h,children:[T.jsx(se,{mod:["reduce-motion",{opened:u}],...m("burger")}),c]})});mE.classes=U2;mE.displayName="@mantine/core/Burger";var Oh={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const xk={orientation:"horizontal"},SB=(e,{borderWidth:t})=>({group:{"--button-border-width":Y(t)}}),gE=fe((e,t)=>{const n=ie("ButtonGroup",xk,e),{className:r,style:i,classNames:o,styles:a,unstyled:s,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...p}=ie("ButtonGroup",xk,e),h=Pe({name:"ButtonGroup",props:n,classes:Oh,className:r,style:i,classNames:o,styles:a,unstyled:s,vars:u,varsResolver:SB,rootSelector:"group"});return T.jsx(se,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...p})});gE.classes=Oh;gE.displayName="@mantine/core/ButtonGroup";const wB={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Y(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},_B={},CB=(e,{radius:t,color:n,gradient:r,variant:i,size:o,justify:a,autoContrast:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||"filled",autoContrast:s});return{root:{"--button-justify":a,"--button-height":Je(o,"button-height"),"--button-padding-x":Je(o,"button-padding-x"),"--button-fz":o!=null&&o.includes("compact")?$n(o.replace("compact-","")):$n(o),"--button-radius":t===void 0?void 0:gr(t),"--button-bg":n||i?l.background:void 0,"--button-hover":n||i?l.hover:void 0,"--button-color":l.color,"--button-bd":n||i?l.border:void 0,"--button-hover-color":n||i?l.hoverColor:void 0}}},$t=br((e,t)=>{const n=ie("Button",_B,e),{style:r,vars:i,className:o,color:a,disabled:s,children:l,leftSection:u,rightSection:c,fullWidth:d,variant:f,radius:p,loading:h,loaderProps:m,gradient:y,classNames:b,styles:E,unstyled:v,"data-disabled":k,autoContrast:_,mod:x,...I}=n,R=Pe({name:"Button",props:n,classes:Oh,className:o,style:r,classNames:b,styles:E,unstyled:v,vars:i,varsResolver:CB}),z=!!u,A=!!c;return T.jsxs(yl,{ref:t,...R("root",{active:!s&&!h&&!k}),unstyled:v,variant:f,disabled:s||h,mod:[{disabled:s||k,loading:h,block:d,"with-left-section":z,"with-right-section":A},x],...I,children:[T.jsx(qa,{mounted:!!h,transition:wB,duration:150,children:j=>T.jsx(se,{component:"span",...R("loader",{style:j}),"aria-hidden":!0,children:T.jsx(Nc,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...m})})}),T.jsxs("span",{...R("inner"),children:[u&&T.jsx(se,{component:"span",...R("section"),mod:{position:"left"},children:u}),T.jsx(se,{component:"span",mod:{loading:h},...R("label"),children:l}),c&&T.jsx(se,{component:"span",...R("section"),mod:{position:"right"},children:c})]})]})});$t.classes=Oh;$t.displayName="@mantine/core/Button";$t.Group=gE;const NB={timeout:1e3};function j2(e){const{children:t,timeout:n,value:r,...i}=ie("CopyButton",NB,e),o=NP({timeout:n}),a=()=>o.copy(r);return T.jsx(T.Fragment,{children:t({copy:a,copied:o.copied,...i})})}j2.displayName="@mantine/core/CopyButton";const[AB,kl]=Uo("Drawer component was not found in tree");var zi={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const OB={},Ih=fe((e,t)=>{const n=ie("DrawerBody",OB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(V1,{ref:t,...u.getStyles("body",{classNames:r,style:o,styles:a,className:i}),...l})});Ih.classes=zi;Ih.displayName="@mantine/core/DrawerBody";const IB={},Rh=fe((e,t)=>{const n=ie("DrawerCloseButton",IB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(q1,{ref:t,...u.getStyles("close",{classNames:r,style:o,styles:a,className:i}),...l})});Rh.classes=zi;Rh.displayName="@mantine/core/DrawerCloseButton";const RB={},Mh=fe((e,t)=>{const n=ie("DrawerContent",RB,e),{classNames:r,className:i,style:o,styles:a,vars:s,children:l,radius:u,__hidden:c,...d}=n,f=kl(),p=f.scrollAreaComponent||w2;return T.jsx(Y1,{...f.getStyles("content",{className:i,style:o,styles:a,classNames:r}),innerProps:f.getStyles("inner",{className:i,style:o,styles:a,classNames:r}),ref:t,...d,radius:u||f.radius||0,"data-hidden":c||void 0,children:T.jsx(p,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:l})})});Mh.classes=zi;Mh.displayName="@mantine/core/DrawerContent";const MB={},Dh=fe((e,t)=>{const n=ie("DrawerHeader",MB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(K1,{ref:t,...u.getStyles("header",{classNames:r,style:o,styles:a,className:i}),...l})});Dh.classes=zi;Dh.displayName="@mantine/core/DrawerHeader";const DB={},Lh=fe((e,t)=>{const n=ie("DrawerOverlay",DB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(G1,{ref:t,...u.getStyles("overlay",{classNames:r,style:o,styles:a,className:i}),...l})});Lh.classes=zi;Lh.displayName="@mantine/core/DrawerOverlay";function LB(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function PB(e){if(e==="top"||e==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const BB={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},zB={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},FB={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),position:"left"},HB=(e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":Je(n,"drawer-size"),"--drawer-flex":PB(t),"--drawer-height":t==="left"||t==="right"?void 0:"var(--drawer-size)","--drawer-align":LB(t),"--drawer-justify":t==="right"?"flex-end":void 0,"--drawer-offset":Y(r)}}),Ph=fe((e,t)=>{const n=ie("DrawerRoot",FB,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,scrollAreaComponent:u,position:c,transitionProps:d,radius:f,...p}=n,{dir:h}=Sc(),m=Pe({name:"Drawer",classes:zi,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:HB}),y=(h==="rtl"?zB:BB)[c];return T.jsx(AB,{value:{scrollAreaComponent:u,getStyles:m,radius:f},children:T.jsx(W1,{ref:t,...m("root"),transitionProps:{transition:y,...d},unstyled:s,...p})})});Ph.classes=zi;Ph.displayName="@mantine/core/DrawerRoot";const[UB,jB]=p1();function $2({children:e}){const[t,n]=S.useState([]),[r,i]=S.useState(Mn("modal"));return T.jsx(UB,{value:{stack:t,addModal:(o,a)=>{n(s=>[...new Set([...s,o])]),i(s=>typeof a=="number"&&typeof s=="number"?Math.max(s,a):s)},removeModal:o=>n(a=>a.filter(s=>s!==o)),getZIndex:o=>`calc(${r} + ${t.indexOf(o)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}$2.displayName="@mantine/core/DrawerStack";const $B={},Bh=fe((e,t)=>{const n=ie("DrawerTitle",$B,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(Q1,{ref:t,...u.getStyles("title",{classNames:r,style:o,styles:a,className:i}),...l})});Bh.classes=zi;Bh.displayName="@mantine/core/DrawerTitle";const WB={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),withOverlay:!0,withCloseButton:!0},Fr=fe((e,t)=>{const{title:n,withOverlay:r,overlayProps:i,withCloseButton:o,closeButtonProps:a,children:s,opened:l,stackId:u,zIndex:c,...d}=ie("Drawer",WB,e),f=jB(),p=!!n||o,h=f&&u?{closeOnEscape:f.currentId===u,trapFocus:f.currentId===u,zIndex:f.getZIndex(u)}:{},m=r===!1?!1:u&&f?f.currentId===u:l;return S.useEffect(()=>{f&&u&&(l?f.addModal(u,c||Mn("modal")):f.removeModal(u))},[l,u,c]),T.jsxs(Ph,{ref:t,opened:l,zIndex:f&&u?f.getZIndex(u):c,...d,...h,children:[r&&T.jsx(Lh,{visible:m,transitionProps:f&&u?{duration:0}:void 0,...i}),T.jsxs(Mh,{__hidden:f&&u&&l?u!==f.currentId:!1,children:[p&&T.jsxs(Dh,{children:[n&&T.jsx(Bh,{children:n}),o&&T.jsx(Rh,{...a})]}),T.jsx(Ih,{children:s})]})]})});Fr.classes=zi;Fr.displayName="@mantine/core/Drawer";Fr.Root=Ph;Fr.Overlay=Lh;Fr.Content=Mh;Fr.Body=Ih;Fr.Header=Dh;Fr.Title=Bh;Fr.CloseButton=Rh;Fr.Stack=$2;var W2={root:"m_9e117634"};const VB={},qB=(e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:gr(t),"--image-object-fit":n}}),Gu=br((e,t)=>{const n=ie("Image",VB,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,onError:u,src:c,radius:d,fit:f,fallbackSrc:p,mod:h,...m}=n,[y,b]=S.useState(!c);S.useEffect(()=>b(!c),[c]);const E=Pe({name:"Image",classes:W2,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:qB});return y&&p?T.jsx(se,{component:"img",ref:t,src:p,...E("root"),onError:u,mod:["fallback",h],...m}):T.jsx(se,{component:"img",ref:t,...E("root"),src:c,onError:v=>{u==null||u(v),b(!0)},mod:h,...m})});Gu.classes=W2;Gu.displayName="@mantine/core/Image";function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{autosize:n,maxRows:r,minRows:i,__staticSelector:o,resize:a,...s}=ie("Textarea",uz,e),l=n&&WP()!=="test",u=l?{maxRows:r,minRows:i}:{};return T.jsx(Bi,{component:l?lz:"textarea",ref:t,...s,__staticSelector:o||"Textarea",multiline:!0,"data-no-overflow":n&&r===void 0||void 0,__vars:{"--input-resize":a},...u})});bE.classes=Bi.classes;bE.displayName="@mantine/core/Textarea";const[cz,xl]=Uo("Modal component was not found in tree");var Fi={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const dz={},zh=fe((e,t)=>{const n=ie("ModalBody",dz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(V1,{ref:t,...u.getStyles("body",{classNames:r,style:o,styles:a,className:i}),...l})});zh.classes=Fi;zh.displayName="@mantine/core/ModalBody";const fz={},Fh=fe((e,t)=>{const n=ie("ModalCloseButton",fz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(q1,{ref:t,...u.getStyles("close",{classNames:r,style:o,styles:a,className:i}),...l})});Fh.classes=Fi;Fh.displayName="@mantine/core/ModalCloseButton";const pz={},Hh=fe((e,t)=>{const n=ie("ModalContent",pz,e),{classNames:r,className:i,style:o,styles:a,vars:s,children:l,__hidden:u,...c}=n,d=xl(),f=d.scrollAreaComponent||w2;return T.jsx(Y1,{...d.getStyles("content",{className:i,style:o,styles:a,classNames:r}),innerProps:d.getStyles("inner",{className:i,style:o,styles:a,classNames:r}),"data-full-screen":d.fullScreen||void 0,"data-modal-content":!0,"data-hidden":u||void 0,ref:t,...c,children:T.jsx(f,{style:{maxHeight:d.fullScreen?"100dvh":`calc(100dvh - (${Y(d.yOffset)} * 2))`},children:l})})});Hh.classes=Fi;Hh.displayName="@mantine/core/ModalContent";const hz={},Uh=fe((e,t)=>{const n=ie("ModalHeader",hz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(K1,{ref:t,...u.getStyles("header",{classNames:r,style:o,styles:a,className:i}),...l})});Uh.classes=Fi;Uh.displayName="@mantine/core/ModalHeader";const mz={},jh=fe((e,t)=>{const n=ie("ModalOverlay",mz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(G1,{ref:t,...u.getStyles("overlay",{classNames:r,style:o,styles:a,className:i}),...l})});jh.classes=Fi;jh.displayName="@mantine/core/ModalOverlay";const gz={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},bz=(e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:gr(t),"--modal-size":Je(n,"modal-size"),"--modal-y-offset":Y(r),"--modal-x-offset":Y(i)}}),$h=fe((e,t)=>{const n=ie("ModalRoot",gz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,yOffset:u,scrollAreaComponent:c,radius:d,fullScreen:f,centered:p,xOffset:h,__staticSelector:m,...y}=n,b=Pe({name:m,classes:Fi,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:bz});return T.jsx(cz,{value:{yOffset:u,scrollAreaComponent:c,getStyles:b,fullScreen:f},children:T.jsx(W1,{ref:t,...b("root"),"data-full-screen":f||void 0,"data-centered":p||void 0,unstyled:s,...y})})});$h.classes=Fi;$h.displayName="@mantine/core/ModalRoot";const[yz,Ez]=p1();function q2({children:e}){const[t,n]=S.useState([]),[r,i]=S.useState(Mn("modal"));return T.jsx(yz,{value:{stack:t,addModal:(o,a)=>{n(s=>[...new Set([...s,o])]),i(s=>typeof a=="number"&&typeof s=="number"?Math.max(s,a):s)},removeModal:o=>n(a=>a.filter(s=>s!==o)),getZIndex:o=>`calc(${r} + ${t.indexOf(o)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}q2.displayName="@mantine/core/ModalStack";const vz={},Wh=fe((e,t)=>{const n=ie("ModalTitle",vz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(Q1,{ref:t,...u.getStyles("title",{classNames:r,style:o,styles:a,className:i}),...l})});Wh.classes=Fi;Wh.displayName="@mantine/core/ModalTitle";const Tz={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Yn=fe((e,t)=>{const{title:n,withOverlay:r,overlayProps:i,withCloseButton:o,closeButtonProps:a,children:s,radius:l,opened:u,stackId:c,zIndex:d,...f}=ie("Modal",Tz,e),p=Ez(),h=!!n||o,m=p&&c?{closeOnEscape:p.currentId===c,trapFocus:p.currentId===c,zIndex:p.getZIndex(c)}:{},y=r===!1?!1:c&&p?p.currentId===c:u;return S.useEffect(()=>{p&&c&&(u?p.addModal(c,d||Mn("modal")):p.removeModal(c))},[u,c,d]),T.jsxs($h,{ref:t,radius:l,opened:u,zIndex:p&&c?p.getZIndex(c):d,...f,...m,children:[r&&T.jsx(jh,{visible:y,transitionProps:p&&c?{duration:0}:void 0,...i}),T.jsxs(Hh,{radius:l,__hidden:p&&c&&u?c!==p.currentId:!1,children:[h&&T.jsxs(Uh,{children:[n&&T.jsx(Wh,{children:n}),o&&T.jsx(Fh,{...a})]}),T.jsx(zh,{children:s})]})]})});Yn.classes=Fi;Yn.displayName="@mantine/core/Modal";Yn.Root=$h;Yn.Overlay=jh;Yn.Content=Hh;Yn.Body=zh;Yn.Header=Uh;Yn.Title=Wh;Yn.CloseButton=Fh;Yn.Stack=q2;const kz=({reveal:e})=>T.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:T.jsx("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})});var Eb={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const xz={visibilityToggleIcon:kz},Sz=(e,{size:t})=>({root:{"--psi-icon-size":Je(t,"psi-icon-size"),"--psi-button-size":Je(t,"psi-button-size")}}),yE=fe((e,t)=>{const n=ie("PasswordInput",xz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,required:u,error:c,leftSection:d,disabled:f,id:p,variant:h,inputContainer:m,description:y,label:b,size:E,errorProps:v,descriptionProps:k,labelProps:_,withAsterisk:x,inputWrapperOrder:I,wrapperProps:R,radius:z,rightSection:A,rightSectionWidth:j,rightSectionPointerEvents:L,leftSectionWidth:U,visible:V,defaultVisible:H,onVisibilityChange:B,visibilityToggleIcon:M,visibilityToggleButtonProps:N,rightSectionProps:F,leftSectionProps:w,leftSectionPointerEvents:q,withErrorStyles:X,mod:D,...be}=n,ge=jo(p),[le,Ce]=La({value:V,defaultValue:H,finalValue:!1,onChange:B}),Ie=()=>Ce(!le),Oe=Pe({name:"PasswordInput",classes:Eb,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:Sz}),{resolvedClassNames:Ke,resolvedStyles:xt}=wN({classNames:r,styles:a,props:n}),{styleProps:Xt,rest:ye}=xc(be),Re=M,at=T.jsx(ze,{...Oe("visibilityToggle"),disabled:f,radius:z,"aria-hidden":!N,tabIndex:-1,...N,variant:"subtle",color:"gray",unstyled:s,onTouchEnd:Be=>{var Fe;Be.preventDefault(),(Fe=N==null?void 0:N.onTouchEnd)==null||Fe.call(N,Be),Ie()},onMouseDown:Be=>{var Fe;Be.preventDefault(),(Fe=N==null?void 0:N.onMouseDown)==null||Fe.call(N,Be),Ie()},onKeyDown:Be=>{var Fe;(Fe=N==null?void 0:N.onKeyDown)==null||Fe.call(N,Be),Be.key===" "&&(Be.preventDefault(),Ie())},children:T.jsx(Re,{reveal:le})});return T.jsx(zt.Wrapper,{required:u,id:ge,label:b,error:c,description:y,size:E,classNames:Ke,styles:xt,__staticSelector:"PasswordInput",errorProps:v,descriptionProps:k,unstyled:s,withAsterisk:x,inputWrapperOrder:I,inputContainer:m,variant:h,labelProps:{..._,htmlFor:ge},mod:D,...Oe("root"),...Xt,...R,children:T.jsx(zt,{component:"div",error:c,leftSection:d,size:E,classNames:{...Ke,input:kt(Eb.input,Ke.input)},styles:xt,radius:z,disabled:f,__staticSelector:"PasswordInput",rightSectionWidth:j,rightSection:A??at,variant:h,unstyled:s,leftSectionWidth:U,rightSectionPointerEvents:L||"all",rightSectionProps:F,leftSectionProps:w,leftSectionPointerEvents:q,withAria:!1,withErrorStyles:X,children:T.jsx("input",{required:u,"data-invalid":!!c||void 0,"data-with-left-section":!!d||void 0,...Oe("innerInput"),disabled:f,id:ge,ref:t,...ye,autoComplete:ye.autoComplete||"off",type:le?"text":"password"})})})});yE.classes={...Bi.classes,...Eb};yE.displayName="@mantine/core/PasswordInput";const wz={duration:100,transition:"fade"};function _z(e,t){return{...wz,...t,...e}}function Cz({offset:e,position:t,defaultOpened:n}){const[r,i]=S.useState(n),o=S.useRef(),{x:a,y:s,elements:l,refs:u,update:c,placement:d}=F1({placement:t,middleware:[L1({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=d.includes("right")?e:t.includes("left")?e*-1:0,p=d.includes("bottom")?e:t.includes("top")?e*-1:0,h=S.useCallback(({clientX:m,clientY:y})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:m,y,left:m+f,top:y+p,right:m,bottom:y}}})},[l.reference]);return S.useEffect(()=>{if(u.floating.current){const m=o.current;m.addEventListener("mousemove",h);const y=wi(u.floating.current);return y.forEach(b=>{b.addEventListener("scroll",c)}),()=>{m.removeEventListener("mousemove",h),y.forEach(b=>{b.removeEventListener("scroll",c)})}}},[l.reference,u.floating.current,c,h,r]),{handleMouseMove:h,x:a,y:s,opened:r,setOpened:i,boundaryRef:o,floating:u.setFloating}}var Vh={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const Nz={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:Mn("popover")},Az=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:gr(t),"--tooltip-bg":n?Mo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),EE=fe((e,t)=>{const n=ie("TooltipFloating",Nz,e),{children:r,refProp:i,withinPortal:o,style:a,className:s,classNames:l,styles:u,unstyled:c,radius:d,color:f,label:p,offset:h,position:m,multiline:y,zIndex:b,disabled:E,defaultOpened:v,variant:k,vars:_,portalProps:x,...I}=n,R=li(),z=Pe({name:"TooltipFloating",props:n,classes:Vh,className:s,style:a,classNames:l,styles:u,unstyled:c,rootSelector:"tooltip",vars:_,varsResolver:Az}),{handleMouseMove:A,x:j,y:L,opened:U,boundaryRef:V,floating:H,setOpened:B}=Cz({offset:h,position:m,defaultOpened:v});if(!Va(r))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const M=Dn(V,mh(r),t),N=w=>{var q,X;(X=(q=r.props).onMouseEnter)==null||X.call(q,w),A(w),B(!0)},F=w=>{var q,X;(X=(q=r.props).onMouseLeave)==null||X.call(q,w),B(!1)};return T.jsxs(T.Fragment,{children:[T.jsx(Cc,{...x,withinPortal:o,children:T.jsx(se,{...I,...z("tooltip",{style:{...CN(a,R),zIndex:b,display:!E&&U?"block":"none",top:(L&&Math.round(L))??"",left:(j&&Math.round(j))??""}}),variant:k,ref:H,mod:{multiline:y},children:p})}),S.cloneElement(r,{...r.props,[i]:M,onMouseEnter:N,onMouseLeave:F})]})});EE.classes=Vh;EE.displayName="@mantine/core/TooltipFloating";const Y2=S.createContext(!1),Oz=Y2.Provider,Iz=()=>S.useContext(Y2),Rz={openDelay:0,closeDelay:0};function vE(e){const{openDelay:t,closeDelay:n,children:r}=ie("TooltipGroup",Rz,e);return T.jsx(Oz,{value:!0,children:T.jsx(_5,{delay:{open:t,close:n},children:r})})}vE.displayName="@mantine/core/TooltipGroup";vE.extend=e=>e;function Mz(e){var x,I,R;const[t,n]=S.useState(e.defaultOpened),i=typeof e.opened=="boolean"?e.opened:t,o=Iz(),a=jo(),{delay:s,currentId:l,setCurrentId:u}=u2(),c=S.useCallback(z=>{n(z),z&&u(a)},[u,a]),{x:d,y:f,context:p,refs:h,update:m,placement:y,middlewareData:{arrow:{x:b,y:E}={}}}=F1({strategy:e.strategy,placement:e.position,open:i,onOpenChange:c,middleware:[i2(e.offset),L1({padding:8}),mb(),o2({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[gb()]:[]]});C5(p,{id:a});const{getReferenceProps:v,getFloatingProps:k}=D5([w5(p,{enabled:(x=e.events)==null?void 0:x.hover,delay:o?s:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((I=e.events)!=null&&I.touch)}),M5(p,{enabled:(R=e.events)==null?void 0:R.focus,visibleOnly:!0}),P5(p,{role:"tooltip"}),I5(p,{enabled:typeof e.opened>"u"})]);g2({opened:i,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:h,update:m}}),Da(()=>{var z;(z=e.onPositionChange)==null||z.call(e,y)},[y]);const _=i&&l&&l!==a;return{x:d,y:f,arrowX:b,arrowY:E,reference:h.setReference,floating:h.setFloating,getFloatingProps:k,getReferenceProps:v,isGroupPhase:_,opened:i,placement:y}}const Ak={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Mn("popover"),positionDependencies:[]},Dz=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:gr(t),"--tooltip-bg":n?Mo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),Qe=fe((e,t)=>{const n=ie("Tooltip",Ak,e),{children:r,position:i,refProp:o,label:a,openDelay:s,closeDelay:l,onPositionChange:u,opened:c,defaultOpened:d,withinPortal:f,radius:p,color:h,classNames:m,styles:y,unstyled:b,style:E,className:v,withArrow:k,arrowSize:_,arrowOffset:x,arrowRadius:I,arrowPosition:R,offset:z,transitionProps:A,multiline:j,events:L,zIndex:U,disabled:V,positionDependencies:H,onClick:B,onMouseEnter:M,onMouseLeave:N,inline:F,variant:w,keepMounted:q,vars:X,portalProps:D,mod:be,floatingStrategy:ge,...le}=ie("Tooltip",Ak,n),{dir:Ce}=Sc(),Ie=S.useRef(null),Oe=Mz({position:c2(Ce,i),closeDelay:l,openDelay:s,onPositionChange:u,opened:c,defaultOpened:d,events:L,arrowRef:Ie,arrowOffset:x,offset:typeof z=="number"?z+(k?_/2:0):z,positionDependencies:[...H,r],inline:F,strategy:ge}),Ke=Pe({name:"Tooltip",props:n,classes:Vh,className:v,style:E,classNames:m,styles:y,unstyled:b,rootSelector:"tooltip",vars:X,varsResolver:Dz});if(!Va(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const xt=Dn(Oe.reference,mh(r),t),Xt=_z(A,{duration:100,transition:"fade"});return T.jsxs(T.Fragment,{children:[T.jsx(Cc,{...D,withinPortal:f,children:T.jsx(qa,{...Xt,keepMounted:q,mounted:!V&&!!Oe.opened,duration:Oe.isGroupPhase?10:Xt.duration,children:ye=>T.jsxs(se,{...le,"data-fixed":ge==="fixed"||void 0,variant:w,mod:[{multiline:j},be],...Oe.getFloatingProps({ref:Oe.floating,className:Ke("tooltip").className,style:{...Ke("tooltip").style,...ye,zIndex:U,top:Oe.y??0,left:Oe.x??0}}),children:[a,T.jsx(H1,{ref:Ie,arrowX:Oe.arrowX,arrowY:Oe.arrowY,visible:k,position:Oe.placement,arrowSize:_,arrowOffset:x,arrowRadius:I,arrowPosition:R,...Ke("arrow")})]})})}),S.cloneElement(r,Oe.getReferenceProps({onClick:B,onMouseEnter:M,onMouseLeave:N,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,[o]:xt,className:kt(v,r.props.className),...r.props}))]})});Qe.classes=Vh;Qe.displayName="@mantine/core/Tooltip";Qe.Floating=EE;Qe.Group=vE;const Lz={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},TE=fe((e,t)=>{const n=ie("Select",Lz,e),{classNames:r,styles:i,unstyled:o,vars:a,dropdownOpened:s,defaultDropdownOpened:l,onDropdownClose:u,onDropdownOpen:c,onFocus:d,onBlur:f,onClick:p,onChange:h,data:m,value:y,defaultValue:b,selectFirstOptionOnChange:E,onOptionSubmit:v,comboboxProps:k,readOnly:_,disabled:x,filter:I,limit:R,withScrollArea:z,maxDropdownHeight:A,size:j,searchable:L,rightSection:U,checkIconPosition:V,withCheckIcon:H,nothingFoundMessage:B,name:M,form:N,searchValue:F,defaultSearchValue:w,onSearchChange:q,allowDeselect:X,error:D,rightSectionPointerEvents:be,id:ge,clearable:le,clearButtonProps:Ce,hiddenInputProps:Ie,renderOption:Oe,onClear:Ke,autoComplete:xt,scrollAreaProps:Xt,...ye}=n,Re=S.useMemo(()=>G8(m),[m]),at=S.useMemo(()=>A2(Re),[Re]),Be=jo(ge),[Fe,Ln,pe]=La({value:y,defaultValue:b,finalValue:null,onChange:h}),ht=typeof Fe=="string"?at[Fe]:void 0,He=jP(ht),[Me,St]=La({value:F,defaultValue:w,finalValue:ht?ht.label:"",onChange:q}),mt=L2({opened:s,defaultOpened:l,onDropdownOpen:()=>{c==null||c(),mt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u==null||u(),mt.resetSelectedOption()}}),{resolvedClassNames:Ui,resolvedStyles:G}=wN({props:n,styles:i,classNames:r});S.useEffect(()=>{E&&mt.selectFirstOption()},[E,Fe]),S.useEffect(()=>{y===null&&St(""),typeof y=="string"&&ht&&((He==null?void 0:He.value)!==ht.value||(He==null?void 0:He.label)!==ht.label)&&St(ht.label)},[y,ht]);const W=le&&!!Fe&&!x&&!_&&T.jsx(Ve.ClearButton,{size:j,...Ce,onClear:()=>{Ln(null,null),St(""),Ke==null||Ke()}});return T.jsxs(T.Fragment,{children:[T.jsxs(Ve,{store:mt,__staticSelector:"Select",classNames:Ui,styles:G,unstyled:o,readOnly:_,onOptionSubmit:Q=>{v==null||v(Q);const re=X&&at[Q].value===Fe?null:at[Q],de=re?re.value:null;de!==Fe&&Ln(de,re),!pe&&St(typeof de=="string"&&(re==null?void 0:re.label)||""),mt.closeDropdown()},size:j,...k,children:[T.jsx(Ve.Target,{targetType:L?"input":"button",autoComplete:xt,children:T.jsx(Bi,{id:Be,ref:t,rightSection:U||W||T.jsx(Ve.Chevron,{size:j,error:D,unstyled:o}),rightSectionPointerEvents:be||(W?"all":"none"),...ye,size:j,__staticSelector:"Select",disabled:x,readOnly:_||!L,value:Me,onChange:Q=>{St(Q.currentTarget.value),mt.openDropdown(),E&&mt.selectFirstOption()},onFocus:Q=>{L&&mt.openDropdown(),d==null||d(Q)},onBlur:Q=>{var re;L&&mt.closeDropdown(),St(Fe!=null&&((re=at[Fe])==null?void 0:re.label)||""),f==null||f(Q)},onClick:Q=>{L?mt.openDropdown():mt.toggleDropdown(),p==null||p(Q)},classNames:Ui,styles:G,unstyled:o,pointer:!L,error:D})}),T.jsx(TB,{data:Re,hidden:_||x,filter:I,search:Me,limit:R,hiddenWhenEmpty:!B,withScrollArea:z,maxDropdownHeight:A,filterOptions:L&&(ht==null?void 0:ht.label)!==Me,value:Fe,checkIconPosition:V,withCheckIcon:H,nothingFoundMessage:B,unstyled:o,labelId:ye.label?`${Be}-label`:void 0,"aria-label":ye.label?void 0:ye["aria-label"],renderOption:Oe,scrollAreaProps:Xt})]}),T.jsx(Ve.HiddenInput,{value:Fe,name:M,form:N,disabled:x,...Ie})]})});TE.classes={...Bi.classes,...Ve.classes};TE.displayName="@mantine/core/Select";var K2={root:"m_6d731127"};const Pz={gap:"md",align:"stretch",justify:"flex-start"},Bz=(e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":vc(t),"--stack-align":n,"--stack-justify":r}}),Un=fe((e,t)=>{const n=ie("Stack",Pz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,align:u,justify:c,gap:d,variant:f,...p}=n,h=Pe({name:"Stack",props:n,classes:K2,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:Bz});return T.jsx(se,{ref:t,...h("root"),variant:f,...p})});Un.classes=K2;Un.displayName="@mantine/core/Stack";const G2=S.createContext(null),zz=G2.Provider,Fz=()=>S.useContext(G2),Hz={},kE=fe((e,t)=>{const{value:n,defaultValue:r,onChange:i,size:o,wrapperProps:a,children:s,readOnly:l,...u}=ie("SwitchGroup",Hz,e),[c,d]=La({value:n,defaultValue:r,finalValue:[],onChange:i}),f=p=>{const h=p.currentTarget.value;!l&&d(c.includes(h)?c.filter(m=>m!==h):[...c,h])};return T.jsx(zz,{value:{value:c,onChange:f,size:o},children:T.jsx(zt.Wrapper,{size:o,ref:t,...a,...u,labelElement:"div",__staticSelector:"SwitchGroup",children:T.jsx(bB,{role:"group",children:s})})})});kE.classes=zt.Wrapper.classes;kE.displayName="@mantine/core/SwitchGroup";var Q2={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const Uz={labelPosition:"right"},jz=(e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:gr(t),"--switch-height":Je(r,"switch-height"),"--switch-width":Je(r,"switch-width"),"--switch-thumb-size":Je(r,"switch-thumb-size"),"--switch-label-font-size":Je(r,"switch-label-font-size"),"--switch-track-label-padding":Je(r,"switch-track-label-padding"),"--switch-color":n?Mo(n,e):void 0}}),qh=fe((e,t)=>{const n=ie("Switch",Uz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,color:u,label:c,offLabel:d,onLabel:f,id:p,size:h,radius:m,wrapperProps:y,thumbIcon:b,checked:E,defaultChecked:v,onChange:k,labelPosition:_,description:x,error:I,disabled:R,variant:z,rootRef:A,mod:j,...L}=n,U=Fz(),V=h||(U==null?void 0:U.size),H=Pe({name:"Switch",props:n,classes:Q2,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:jz}),{styleProps:B,rest:M}=xc(L),N=jo(p),F=U?{checked:U.value.includes(M.value),onChange:U.onChange}:{},[w,q]=La({value:F.checked??E,defaultValue:v,finalValue:!1});return T.jsxs(B2,{...H("root"),__staticSelector:"Switch",__stylesApiProps:n,id:N,size:V,labelPosition:_,label:c,description:x,error:I,disabled:R,bodyElement:"label",labelElement:"span",classNames:r,styles:a,unstyled:s,"data-checked":F.checked||void 0,variant:z,ref:A,mod:j,...B,...y,children:[T.jsx("input",{...M,disabled:R,checked:w,onChange:X=>{var D;U?(D=F.onChange)==null||D.call(F,X):k==null||k(X),q(X.currentTarget.checked)},id:N,ref:t,type:"checkbox",role:"switch",...H("input")}),T.jsxs(se,{"aria-hidden":"true",mod:{error:I,"label-position":_,"without-labels":!f&&!d},...H("track"),children:[T.jsx(se,{component:"span",mod:"reduce-motion",...H("thumb"),children:b}),T.jsx("span",{...H("trackLabel"),children:w?f:d})]})]})});qh.classes={...Q2,...gB};qh.displayName="@mantine/core/Switch";qh.Group=kE;const $z={},Ea=fe((e,t)=>{const n=ie("TextInput",$z,e);return T.jsx(Bi,{component:"input",ref:t,...n,__staticSelector:"TextInput"})});Ea.classes=Bi.classes;Ea.displayName="@mantine/core/TextInput";const Wz="modulepreload",Vz=function(e){return"/"+e},Ok={},qz=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=Vz(l),l in Ok)return;Ok[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Wz,u||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},X2=6048e5,Yz=864e5,Ik=Symbol.for("constructDateFrom");function Lo(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ik in e?e[Ik](t):e instanceof Date?new e.constructor(t):new Date(t)}function Hr(e,t){return Lo(t||e,e)}let Kz={};function Yh(){return Kz}function Qu(e,t){var s,l,u,c;const n=Yh(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=Hr(e,t==null?void 0:t.in),o=i.getDay(),a=(o=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Rk(e){const t=Hr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Gz(e,...t){const n=Lo.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Mk(e,t){const n=Hr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Qz(e,t,n){const[r,i]=Gz(n==null?void 0:n.in,e,t),o=Mk(r),a=Mk(i),s=+o-Rk(o),l=+a-Rk(a);return Math.round((s-l)/Yz)}function Xz(e,t){const n=J2(e,t),r=Lo(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Vf(r)}function Jz(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zz(e){return!(!Jz(e)&&typeof e!="number"||isNaN(+Hr(e)))}function e9(e,t){const n=Hr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const t9={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n9=(e,t,n)=>{let r;const i=t9[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function fg(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const r9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a9={date:fg({formats:r9,defaultWidth:"full"}),time:fg({formats:i9,defaultWidth:"full"}),dateTime:fg({formats:o9,defaultWidth:"full"})},s9={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l9=(e,t,n,r)=>s9[e];function $l(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const u9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},f9={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},p9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},h9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},m9=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},g9={ordinalNumber:m9,era:$l({values:u9,defaultWidth:"wide"}),quarter:$l({values:c9,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$l({values:d9,defaultWidth:"wide"}),day:$l({values:f9,defaultWidth:"wide"}),dayPeriod:$l({values:p9,defaultWidth:"wide",formattingValues:h9,defaultFormattingWidth:"wide"})};function Wl(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?y9(s,d=>d.test(a)):b9(s,d=>d.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(a.length);return{value:u,rest:c}}}function b9(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function y9(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const v9=/^(\d+)(th|st|nd|rd)?/i,T9=/\d+/i,k9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},x9={any:[/^b/i,/^(a|c)/i]},S9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},w9={any:[/1/i,/2/i,/3/i,/4/i]},_9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},C9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},N9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},A9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},O9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},I9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},R9={ordinalNumber:E9({matchPattern:v9,parsePattern:T9,valueCallback:e=>parseInt(e,10)}),era:Wl({matchPatterns:k9,defaultMatchWidth:"wide",parsePatterns:x9,defaultParseWidth:"any"}),quarter:Wl({matchPatterns:S9,defaultMatchWidth:"wide",parsePatterns:w9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Wl({matchPatterns:_9,defaultMatchWidth:"wide",parsePatterns:C9,defaultParseWidth:"any"}),day:Wl({matchPatterns:N9,defaultMatchWidth:"wide",parsePatterns:A9,defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:O9,defaultMatchWidth:"any",parsePatterns:I9,defaultParseWidth:"any"})},M9={code:"en-US",formatDistance:n9,formatLong:a9,formatRelative:l9,localize:g9,match:R9,options:{weekStartsOn:0,firstWeekContainsDate:1}};function D9(e,t){const n=Hr(e,t==null?void 0:t.in);return Qz(n,e9(n))+1}function L9(e,t){const n=Hr(e,t==null?void 0:t.in),r=+Vf(n)-+Xz(n);return Math.round(r/X2)+1}function Z2(e,t){var c,d,f,p;const n=Hr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Yh(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=Lo((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Qu(a,t),l=Lo((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const u=Qu(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function P9(e,t){var s,l,u,c;const n=Yh(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=Z2(e,t),o=Lo((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Qu(o,t)}function B9(e,t){const n=Hr(e,t==null?void 0:t.in),r=+Qu(n,t)-+P9(n,t);return Math.round(r/X2)+1}function Ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const $i={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ue(n+1,2)},d(e,t){return Ue(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ue(e.getHours()%12||12,t.length)},H(e,t){return Ue(e.getHours(),t.length)},m(e,t){return Ue(e.getMinutes(),t.length)},s(e,t){return Ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ue(i,t.length)}},ss={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Dk={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return $i.y(e,t)},Y:function(e,t,n,r){const i=Z2(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Ue(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ue(o,t.length)},R:function(e,t){const n=J2(e);return Ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ue(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return $i.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=B9(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ue(i,t.length)},I:function(e,t,n){const r=L9(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):$i.d(e,t)},D:function(e,t,n){const r=D9(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ue(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ue(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ue(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Ue(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ss.noon:r===0?i=ss.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ss.evening:r>=12?i=ss.afternoon:r>=4?i=ss.morning:i=ss.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return $i.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):$i.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):$i.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):$i.s(e,t)},S:function(e,t){return $i.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Pk(r);case"XXXX":case"XX":return na(r);case"XXXXX":case"XXX":default:return na(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Pk(r);case"xxxx":case"xx":return na(r);case"xxxxx":case"xxx":default:return na(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Lk(r,":");case"OOOO":default:return"GMT"+na(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Lk(r,":");case"zzzz":default:return"GMT"+na(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ue(r,t.length)},T:function(e,t,n){return Ue(+e,t.length)}};function Lk(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ue(o,2)}function Pk(e,t){return e%60===0?(e>0?"-":"+")+Ue(Math.abs(e)/60,2):na(e,t)}function na(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ue(Math.trunc(r/60),2),o=Ue(r%60,2);return n+i+t+o}const Bk=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},eA=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},z9=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Bk(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Bk(r,t)).replace("{{time}}",eA(i,t))},F9={p:eA,P:z9},H9=/^D+$/,U9=/^Y+$/,j9=["D","DD","YY","YYYY"];function $9(e){return H9.test(e)}function W9(e){return U9.test(e)}function V9(e,t,n){const r=q9(e,t,n);if(console.warn(r),j9.includes(e))throw new RangeError(r)}function q9(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Y9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,K9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G9=/^'([^]*?)'?$/,Q9=/''/g,X9=/[a-zA-Z]/;function vb(e,t,n){var c,d,f,p;const r=Yh(),i=r.locale??M9,o=r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,a=r.weekStartsOn??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,s=Hr(e,n==null?void 0:n.in);if(!Zz(s))throw new RangeError("Invalid time value");let l=t.match(K9).map(h=>{const m=h[0];if(m==="p"||m==="P"){const y=F9[m];return y(h,i.formatLong)}return h}).join("").match(Y9).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const m=h[0];if(m==="'")return{isToken:!1,value:J9(h)};if(Dk[m])return{isToken:!0,value:h};if(m.match(X9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:h}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(h=>{if(!h.isToken)return h.value;const m=h.value;(W9(m)||$9(m))&&V9(m,t,String(e));const y=Dk[m[0]];return y(s,m,i.localize,u)}).join("")}function J9(e){const t=e.match(G9);return t?t[1].replace(Q9,"'"):e}/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var Z9={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Ze=(e,t,n,r)=>{const i=S.forwardRef(({color:o="currentColor",size:a=24,stroke:s=2,title:l,className:u,children:c,...d},f)=>S.createElement("svg",{ref:f,...Z9[e],width:a,height:a,className:["tabler-icon",`tabler-icon-${t}`,u].join(" "),strokeWidth:s,stroke:o,...d},[l&&S.createElement("title",{key:"svg-title"},l),...r.map(([p,h])=>S.createElement(p,h)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i};/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var eF=Ze("outline","bold","IconBold",[["path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z",key:"svg-0"}],["path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var Tb=Ze("outline","brand-github","IconBrandGithub",[["path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var tF=Ze("outline","check","IconCheck",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var nF=Ze("outline","chevron-left","IconChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var rF=Ze("outline","chevron-right","IconChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var iF=Ze("outline","clear-formatting","IconClearFormatting",[["path",{d:"M17 15l4 4m0 -4l-4 4",key:"svg-0"}],["path",{d:"M7 6v-1h11v1",key:"svg-1"}],["path",{d:"M7 19l4 0",key:"svg-2"}],["path",{d:"M13 5l-4 14",key:"svg-3"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var tA=Ze("outline","cloud","IconCloud",[["path",{d:"M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-11.878",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var oF=Ze("outline","code","IconCode",[["path",{d:"M7 8l-4 4l4 4",key:"svg-0"}],["path",{d:"M17 8l4 4l-4 4",key:"svg-1"}],["path",{d:"M14 4l-4 16",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var aF=Ze("outline","columns","IconColumns",[["path",{d:"M4 6l5.5 0",key:"svg-0"}],["path",{d:"M4 10l5.5 0",key:"svg-1"}],["path",{d:"M4 14l5.5 0",key:"svg-2"}],["path",{d:"M4 18l5.5 0",key:"svg-3"}],["path",{d:"M14.5 6l5.5 0",key:"svg-4"}],["path",{d:"M14.5 10l5.5 0",key:"svg-5"}],["path",{d:"M14.5 14l5.5 0",key:"svg-6"}],["path",{d:"M14.5 18l5.5 0",key:"svg-7"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var nA=Ze("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var zk=Ze("outline","edit","IconEdit",[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var Fk=Ze("outline","eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var sF=Ze("outline","h-1","IconH1",[["path",{d:"M19 18v-8l-2 2",key:"svg-0"}],["path",{d:"M4 6v12",key:"svg-1"}],["path",{d:"M12 6v12",key:"svg-2"}],["path",{d:"M11 18h2",key:"svg-3"}],["path",{d:"M3 18h2",key:"svg-4"}],["path",{d:"M4 12h8",key:"svg-5"}],["path",{d:"M3 6h2",key:"svg-6"}],["path",{d:"M11 6h2",key:"svg-7"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var lF=Ze("outline","h-2","IconH2",[["path",{d:"M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0",key:"svg-0"}],["path",{d:"M4 6v12",key:"svg-1"}],["path",{d:"M12 6v12",key:"svg-2"}],["path",{d:"M11 18h2",key:"svg-3"}],["path",{d:"M3 18h2",key:"svg-4"}],["path",{d:"M4 12h8",key:"svg-5"}],["path",{d:"M3 6h2",key:"svg-6"}],["path",{d:"M11 6h2",key:"svg-7"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var uF=Ze("outline","h-3","IconH3",[["path",{d:"M19 14a2 2 0 1 0 -2 -2",key:"svg-0"}],["path",{d:"M17 16a2 2 0 1 0 2 -2",key:"svg-1"}],["path",{d:"M4 6v12",key:"svg-2"}],["path",{d:"M12 6v12",key:"svg-3"}],["path",{d:"M11 18h2",key:"svg-4"}],["path",{d:"M3 18h2",key:"svg-5"}],["path",{d:"M4 12h8",key:"svg-6"}],["path",{d:"M3 6h2",key:"svg-7"}],["path",{d:"M11 6h2",key:"svg-8"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var cF=Ze("outline","italic","IconItalic",[["path",{d:"M11 5l6 0",key:"svg-0"}],["path",{d:"M7 19l6 0",key:"svg-1"}],["path",{d:"M14 5l-4 14",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var dF=Ze("outline","list-numbers","IconListNumbers",[["path",{d:"M11 6h9",key:"svg-0"}],["path",{d:"M11 12h9",key:"svg-1"}],["path",{d:"M12 18h8",key:"svg-2"}],["path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4",key:"svg-3"}],["path",{d:"M6 10v-6l-2 2",key:"svg-4"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var fF=Ze("outline","list","IconList",[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var kb=Ze("outline","moon","IconMoon",[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var hu=Ze("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var pF=Ze("outline","quote","IconQuote",[["path",{d:"M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5",key:"svg-0"}],["path",{d:"M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var rA=Ze("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var xb=Ze("outline","sun","IconSun",[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var xE=Ze("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var hF=Ze("outline","typography","IconTypography",[["path",{d:"M4 20l3 0",key:"svg-0"}],["path",{d:"M14 20l7 0",key:"svg-1"}],["path",{d:"M6.9 15l6.9 0",key:"svg-2"}],["path",{d:"M10.2 6.3l5.8 13.7",key:"svg-3"}],["path",{d:"M5 20l6 -16l2 0l7 16",key:"svg-4"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var iA=Ze("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);function Hk(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function oA(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const mF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bF={};function Uk(e,t){return(bF.jsx?gF:mF).test(e)}const yF=/[ \t\n\f\r]/g;function EF(e){return typeof e=="object"?e.type==="text"?jk(e.value):!1:jk(e)}function jk(e){return e.replace(yF,"")===""}let Mc=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Mc.prototype.property={};Mc.prototype.normal={};Mc.prototype.space=null;function aA(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&SF.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Wk,CF);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Wk.test(o)){let a=o.replace(wF,_F);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=SE}return new i(r,t)}function _F(e){return"-"+e.toLowerCase()}function CF(e){return e.charAt(1).toUpperCase()}const NF={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Dc=aA([uA,lA,fA,pA,kF],"html"),qo=aA([uA,lA,fA,pA,xF],"svg");function Vk(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function hA(e){return e.join(" ").trim()}var mA={},qk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,AF=/\n/g,OF=/^\s*/,IF=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,RF=/^:\s*/,MF=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,DF=/^[;\s]*/,LF=/^\s+|\s+$/g,PF=` +`,Yk="/",Kk="*",ia="",BF="comment",zF="declaration",FF=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var m=h.match(AF);m&&(n+=m.length);var y=h.lastIndexOf(PF);r=~y?h.length-y:r+h.length}function o(){var h={line:n,column:r};return function(m){return m.position=new a(h),u(),m}}function a(h){this.start=h,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(h){var m=new Error(t.source+":"+n+":"+r+": "+h);if(m.reason=h,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function l(h){var m=h.exec(e);if(m){var y=m[0];return i(y),e=e.slice(y.length),m}}function u(){l(OF)}function c(h){var m;for(h=h||[];m=d();)m!==!1&&h.push(m);return h}function d(){var h=o();if(!(Yk!=e.charAt(0)||Kk!=e.charAt(1))){for(var m=2;ia!=e.charAt(m)&&(Kk!=e.charAt(m)||Yk!=e.charAt(m+1));)++m;if(m+=2,ia===e.charAt(m-1))return s("End of comment missing");var y=e.slice(2,m-2);return r+=2,i(y),e=e.slice(m),r+=2,h({type:BF,comment:y})}}function f(){var h=o(),m=l(IF);if(m){if(d(),!l(RF))return s("property missing ':'");var y=l(MF),b=h({type:zF,property:Gk(m[0].replace(qk,ia)),value:y?Gk(y[0].replace(qk,ia)):ia});return l(DF),b}}function p(){var h=[];c(h);for(var m;m=f();)m!==!1&&(h.push(m),c(h));return h}return u(),p()};function Gk(e){return e?e.replace(LF,ia):ia}var HF=Av&&Av.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mA,"__esModule",{value:!0});var Qk=mA.default=jF,UF=HF(FF);function jF(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,UF.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}const $F=Qk.default||Qk,Gh=gA("end"),ci=gA("start");function gA(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function WF(e){const t=ci(e),n=Gh(e);if(t&&n)return{start:t,end:n}}function mu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Xk(e.position):"start"in e||"end"in e?Xk(e):"line"in e||"column"in e?wb(e):""}function wb(e){return Jk(e&&e.line)+":"+Jk(e&&e.column)}function Xk(e){return wb(e&&e.start)+"-"+wb(e&&e.end)}function Jk(e){return e&&typeof e=="number"?e:1}class sn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=mu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}sn.prototype.file="";sn.prototype.name="";sn.prototype.reason="";sn.prototype.message="";sn.prototype.stack="";sn.prototype.column=void 0;sn.prototype.line=void 0;sn.prototype.ancestors=void 0;sn.prototype.cause=void 0;sn.prototype.fatal=void 0;sn.prototype.place=void 0;sn.prototype.ruleId=void 0;sn.prototype.source=void 0;const wE={}.hasOwnProperty,VF=new Map,qF=/[A-Z]/g,YF=/-([a-z])/g,KF=new Set(["table","tbody","thead","tfoot","tr"]),GF=new Set(["td","th"]),bA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function QF(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=i7(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=r7(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?qo:Dc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=yA(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function yA(e,t,n){if(t.type==="element")return XF(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return JF(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return e7(e,t,n);if(t.type==="mdxjsEsm")return ZF(e,t);if(t.type==="root")return t7(e,t,n);if(t.type==="text")return n7(e,t)}function XF(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=qo,e.schema=i),e.ancestors.push(t);const o=vA(e,t.tagName,!1),a=o7(e,t);let s=CE(e,t);return KF.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!EF(l):!0})),EA(e,a,o,t),_E(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function JF(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ju(e,t.position)}function ZF(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ju(e,t.position)}function e7(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=qo,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:vA(e,t.name,!0),a=a7(e,t),s=CE(e,t);return EA(e,a,o,t),_E(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function t7(e,t,n){const r={};return _E(r,CE(e,t)),e.create(t,e.Fragment,r,n)}function n7(e,t){return t.value}function EA(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function _E(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function r7(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function i7(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=ci(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function o7(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&wE.call(t.properties,i)){const o=s7(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&GF.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function a7(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Ju(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Ju(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function CE(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:VF;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(Wn(e,e.length,0,t),e):t}const tx={}.hasOwnProperty;function kA(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Mr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fn=Yo(/[A-Za-z]/),rn=Yo(/[\dA-Za-z]/),b7=Yo(/[#-'*+\--9=?A-Z^-~]/);function qf(e){return e!==null&&(e<32||e===127)}const _b=Yo(/\d/),y7=Yo(/[\dA-Fa-f]/),E7=Yo(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const Qh=Yo(new RegExp("\\p{P}|\\p{S}","u")),za=Yo(/\s/);function Yo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function wl(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function De(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Ne(l)?(e.enter(n),s(l)):t(l)}function s(l){return Ne(l)&&o++a))return;const I=t.events.length;let R=I,z,A;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(z){A=t.events[R][1].end;break}z=!0}for(b(r),x=I;xv;){const _=n[k];t.containerState=_[1],_[0].exit.call(t,e)}n.length=v}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function S7(e,t,n){return De(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ol(e){if(e===null||Ye(e)||za(e))return 1;if(Qh(e))return 2}function Xh(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};rx(d,-l),rx(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=or(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=or(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=or(u,Xh(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=or(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=or(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Wn(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Ne(x)?De(e,E,"linePrefix",o+1)(x):E(x)}function E(x){return x===null||he(x)?e.check(ix,m,k)(x):(e.enter("codeFlowValue"),v(x))}function v(x){return x===null||he(x)?(e.exit("codeFlowValue"),E(x)):(e.consume(x),v)}function k(x){return e.exit("codeFenced"),t(x)}function _(x,I,R){let z=0;return A;function A(H){return x.enter("lineEnding"),x.consume(H),x.exit("lineEnding"),j}function j(H){return x.enter("codeFencedFence"),Ne(H)?De(x,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):L(H)}function L(H){return H===s?(x.enter("codeFencedFenceSequence"),U(H)):R(H)}function U(H){return H===s?(z++,x.consume(H),U):z>=a?(x.exit("codeFencedFenceSequence"),Ne(H)?De(x,V,"whitespace")(H):V(H)):R(H)}function V(H){return H===null||he(H)?(x.exit("codeFencedFence"),I(H)):R(H)}}}function P7(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const mg={name:"codeIndented",tokenize:z7},B7={partial:!0,tokenize:F7};function z7(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),De(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):he(u)?e.attempt(B7,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||he(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function F7(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):he(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):De(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):he(a)?i(a):n(a)}}const H7={name:"codeText",previous:j7,resolve:U7,tokenize:$7};function U7(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length)return this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse();const i=this.left.slice(t);return i.push(...this.right.slice(this.right.length-r+this.left.length).reverse()),i}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Vl(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Vl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Vl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function NA(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(b){return b===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(b),e.exit(o),f):b===null||b===32||b===41||qf(b)?n(b):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(b))}function f(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(s),f(b)):b===null||b===60||he(b)?n(b):(e.consume(b),b===92?h:p)}function h(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function m(b){return!c&&(b===null||b===41||Ye(b))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):c999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):he(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||he(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!Ne(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function OA(e,t,n,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):n(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===a?(e.exit(o),l(a)):f===null?n(f):he(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),De(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||he(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===a||f===92?(e.consume(f),c):c(f)}}function gu(e,t){let n;return r;function r(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ne(i)?De(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const X7={name:"definition",tokenize:Z7},J7={partial:!0,tokenize:eH};function Z7(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return AA.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=Mr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Ye(p)?gu(e,u)(p):u(p)}function u(p){return NA(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(J7,d,d)(p)}function d(p){return Ne(p)?De(e,f,"whitespace")(p):f(p)}function f(p){return p===null||he(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function eH(e,t,n){return r;function r(s){return Ye(s)?gu(e,i)(s):n(s)}function i(s){return OA(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Ne(s)?De(e,a,"whitespace")(s):a(s)}function a(s){return s===null||he(s)?t(s):n(s)}}const tH={name:"hardBreakEscape",tokenize:nH};function nH(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return he(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const rH={name:"headingAtx",resolve:iH,tokenize:oH};function iH(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Wn(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function oH(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||Ye(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Ne(c)?De(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||Ye(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const aH=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ax=["pre","script","style","textarea"],sH={concrete:!0,name:"htmlFlow",resolveTo:cH,tokenize:dH},lH={partial:!0,tokenize:pH},uH={partial:!0,tokenize:fH};function cH(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function dH(e,t,n){const r=this;let i,o,a,s,l;return u;function u(D){return c(D)}function c(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),f):D===47?(e.consume(D),o=!0,m):D===63?(e.consume(D),i=3,r.interrupt?t:w):fn(D)?(e.consume(D),a=String.fromCharCode(D),y):n(D)}function f(D){return D===45?(e.consume(D),i=2,p):D===91?(e.consume(D),i=5,s=0,h):fn(D)?(e.consume(D),i=4,r.interrupt?t:w):n(D)}function p(D){return D===45?(e.consume(D),r.interrupt?t:w):n(D)}function h(D){const be="CDATA[";return D===be.charCodeAt(s++)?(e.consume(D),s===be.length?r.interrupt?t:L:h):n(D)}function m(D){return fn(D)?(e.consume(D),a=String.fromCharCode(D),y):n(D)}function y(D){if(D===null||D===47||D===62||Ye(D)){const be=D===47,ge=a.toLowerCase();return!be&&!o&&ax.includes(ge)?(i=1,r.interrupt?t(D):L(D)):aH.includes(a.toLowerCase())?(i=6,be?(e.consume(D),b):r.interrupt?t(D):L(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):o?E(D):v(D))}return D===45||rn(D)?(e.consume(D),a+=String.fromCharCode(D),y):n(D)}function b(D){return D===62?(e.consume(D),r.interrupt?t:L):n(D)}function E(D){return Ne(D)?(e.consume(D),E):A(D)}function v(D){return D===47?(e.consume(D),A):D===58||D===95||fn(D)?(e.consume(D),k):Ne(D)?(e.consume(D),v):A(D)}function k(D){return D===45||D===46||D===58||D===95||rn(D)?(e.consume(D),k):_(D)}function _(D){return D===61?(e.consume(D),x):Ne(D)?(e.consume(D),_):v(D)}function x(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),l=D,I):Ne(D)?(e.consume(D),x):R(D)}function I(D){return D===l?(e.consume(D),l=null,z):D===null||he(D)?n(D):(e.consume(D),I)}function R(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Ye(D)?_(D):(e.consume(D),R)}function z(D){return D===47||D===62||Ne(D)?v(D):n(D)}function A(D){return D===62?(e.consume(D),j):n(D)}function j(D){return D===null||he(D)?L(D):Ne(D)?(e.consume(D),j):n(D)}function L(D){return D===45&&i===2?(e.consume(D),B):D===60&&i===1?(e.consume(D),M):D===62&&i===4?(e.consume(D),q):D===63&&i===3?(e.consume(D),w):D===93&&i===5?(e.consume(D),F):he(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lH,X,U)(D)):D===null||he(D)?(e.exit("htmlFlowData"),U(D)):(e.consume(D),L)}function U(D){return e.check(uH,V,X)(D)}function V(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),H}function H(D){return D===null||he(D)?U(D):(e.enter("htmlFlowData"),L(D))}function B(D){return D===45?(e.consume(D),w):L(D)}function M(D){return D===47?(e.consume(D),a="",N):L(D)}function N(D){if(D===62){const be=a.toLowerCase();return ax.includes(be)?(e.consume(D),q):L(D)}return fn(D)&&a.length<8?(e.consume(D),a+=String.fromCharCode(D),N):L(D)}function F(D){return D===93?(e.consume(D),w):L(D)}function w(D){return D===62?(e.consume(D),q):D===45&&i===2?(e.consume(D),w):L(D)}function q(D){return D===null||he(D)?(e.exit("htmlFlowData"),X(D)):(e.consume(D),q)}function X(D){return e.exit("htmlFlow"),t(D)}}function fH(e,t,n){const r=this;return i;function i(a){return he(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function pH(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Lc,t,n)}}const hH={name:"htmlText",tokenize:mH};function mH(e,t,n){const r=this;let i,o,a;return s;function s(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),l}function l(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),_):w===63?(e.consume(w),v):fn(w)?(e.consume(w),R):n(w)}function u(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),o=0,h):fn(w)?(e.consume(w),E):n(w)}function c(w){return w===45?(e.consume(w),p):n(w)}function d(w){return w===null?n(w):w===45?(e.consume(w),f):he(w)?(a=d,M(w)):(e.consume(w),d)}function f(w){return w===45?(e.consume(w),p):d(w)}function p(w){return w===62?B(w):w===45?f(w):d(w)}function h(w){const q="CDATA[";return w===q.charCodeAt(o++)?(e.consume(w),o===q.length?m:h):n(w)}function m(w){return w===null?n(w):w===93?(e.consume(w),y):he(w)?(a=m,M(w)):(e.consume(w),m)}function y(w){return w===93?(e.consume(w),b):m(w)}function b(w){return w===62?B(w):w===93?(e.consume(w),b):m(w)}function E(w){return w===null||w===62?B(w):he(w)?(a=E,M(w)):(e.consume(w),E)}function v(w){return w===null?n(w):w===63?(e.consume(w),k):he(w)?(a=v,M(w)):(e.consume(w),v)}function k(w){return w===62?B(w):v(w)}function _(w){return fn(w)?(e.consume(w),x):n(w)}function x(w){return w===45||rn(w)?(e.consume(w),x):I(w)}function I(w){return he(w)?(a=I,M(w)):Ne(w)?(e.consume(w),I):B(w)}function R(w){return w===45||rn(w)?(e.consume(w),R):w===47||w===62||Ye(w)?z(w):n(w)}function z(w){return w===47?(e.consume(w),B):w===58||w===95||fn(w)?(e.consume(w),A):he(w)?(a=z,M(w)):Ne(w)?(e.consume(w),z):B(w)}function A(w){return w===45||w===46||w===58||w===95||rn(w)?(e.consume(w),A):j(w)}function j(w){return w===61?(e.consume(w),L):he(w)?(a=j,M(w)):Ne(w)?(e.consume(w),j):z(w)}function L(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,U):he(w)?(a=L,M(w)):Ne(w)?(e.consume(w),L):(e.consume(w),V)}function U(w){return w===i?(e.consume(w),i=void 0,H):w===null?n(w):he(w)?(a=U,M(w)):(e.consume(w),U)}function V(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||Ye(w)?z(w):(e.consume(w),V)}function H(w){return w===47||w===62||Ye(w)?z(w):n(w)}function B(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function M(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),N}function N(w){return Ne(w)?De(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):F(w)}function F(w){return e.enter("htmlTextData"),a(w)}}const OE={name:"labelEnd",resolveAll:EH,resolveTo:vH,tokenize:TH},gH={tokenize:kH},bH={tokenize:xH},yH={tokenize:SH};function EH(e){let t=-1;const n=[];for(;++t=3&&(u===null||he(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Ne(u)?De(e,s,"whitespace")(u):s(u))}}const kn={continuation:{tokenize:DH},exit:PH,name:"list",tokenize:MH},IH={partial:!0,tokenize:BH},RH={partial:!0,tokenize:LH};function MH(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:_b(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(rf,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return _b(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Lc,r.interrupt?n:c,e.attempt(IH,f,d))}function c(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return Ne(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function DH(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Lc,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,De(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Ne(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(RH,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,De(e,e.attempt(kn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function LH(e,t,n){const r=this;return De(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function PH(e){e.exit(this.containerState.type)}function BH(e,t,n){const r=this;return De(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Ne(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const sx={name:"setextUnderline",resolveTo:zH,tokenize:FH};function zH(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function FH(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Ne(u)?De(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||he(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const HH={tokenize:UH};function UH(e){const t=this,n=e.attempt(Lc,r,e.attempt(this.parser.constructs.flowInitial,i,De(e,e.attempt(this.parser.constructs.flow,i,e.attempt(q7,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const jH={resolveAll:RA()},$H=IA("string"),WH=IA("text");function IA(e){return{resolveAll:RA(e==="text"?VH:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let f=-1;if(d)for(;++f-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function iU(e,t){let n=-1;const r=[];let i;for(;++n0){const $e=Q.tokenStack[Q.tokenStack.length-1];($e[1]||ux).call(Q,void 0,$e[0])}for(W.position={start:Wi(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Wi(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function TU(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kU(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function LA(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function xU(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return LA(e,t);const i={src:wl(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function SU(e,t){const n={src:wl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function wU(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function _U(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return LA(e,t);const i={href:wl(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function CU(e,t){const n={href:wl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function NU(e,t,n){const r=e.all(t),i=n?AU(n):PA(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s1}function OU(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=ci(t.children[1]),l=Gh(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function LU(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(fx(t.slice(i),i>0,!1)),o.join("")}function fx(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===cx||o===dx;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===cx||o===dx;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function zU(e,t){const n={type:"text",value:BU(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function FU(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const HU={blockquote:mU,break:gU,code:bU,delete:yU,emphasis:EU,footnoteReference:vU,heading:TU,html:kU,imageReference:xU,image:SU,inlineCode:wU,linkReference:_U,link:CU,listItem:NU,list:OU,paragraph:IU,root:RU,strong:MU,table:DU,tableCell:PU,tableRow:LU,text:zU,thematicBreak:FU,toml:gd,yaml:gd,definition:gd,footnoteDefinition:gd};function gd(){}const BA=-1,Jh=0,Yf=1,Kf=2,IE=3,RE=4,ME=5,DE=6,zA=7,FA=8,px=typeof self=="object"?self:globalThis,UU=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case Jh:case BA:return n(a,i);case Yf:{const s=n([],i);for(const l of a)s.push(r(l));return s}case Kf:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case IE:return n(new Date(a),i);case RE:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case ME:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case DE:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case zA:{const{name:s,message:l}=a;return n(new px[s](l),i)}case FA:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new px[o](a),i)};return r},hx=e=>UU(new Map,e)(0),ls="",{toString:jU}={},{keys:$U}=Object,ql=e=>{const t=typeof e;if(t!=="object"||!e)return[Jh,t];const n=jU.call(e).slice(8,-1);switch(n){case"Array":return[Yf,ls];case"Object":return[Kf,ls];case"Date":return[IE,ls];case"RegExp":return[RE,ls];case"Map":return[ME,ls];case"Set":return[DE,ls]}return n.includes("Array")?[Yf,n]:n.includes("Error")?[zA,n]:[Kf,n]},bd=([e,t])=>e===Jh&&(t==="function"||t==="symbol"),WU=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=ql(a);switch(s){case Jh:{let c=a;switch(l){case"bigint":s=FA,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([BA],a)}return i([s,c],a)}case Yf:{if(l)return i([l,[...a]],a);const c=[],d=i([s,c],a);for(const f of a)c.push(o(f));return d}case Kf:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const c=[],d=i([s,c],a);for(const f of $U(a))(e||!bd(ql(a[f])))&&c.push([o(f),o(a[f])]);return d}case IE:return i([s,a.toISOString()],a);case RE:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case ME:{const c=[],d=i([s,c],a);for(const[f,p]of a)(e||!(bd(ql(f))||bd(ql(p))))&&c.push([o(f),o(p)]);return d}case DE:{const c=[],d=i([s,c],a);for(const f of a)(e||!bd(ql(f)))&&c.push(o(f));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},mx=(e,{json:t,lossy:n}={})=>{const r=[];return WU(!(t||n),!!t,new Map,r)(e),r},al=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?hx(mx(e,t)):structuredClone(e):(e,t)=>hx(mx(e,t));function VU(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function qU(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function YU(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||VU,r=e.options.footnoteBackLabel||qU,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&h.push({type:"text",value:" "});let E=typeof n=="string"?n:n(l,p);typeof E=="string"&&(E={type:"text",value:E}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const E=y.children[y.children.length-1];E&&E.type==="text"?E.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...h)}else c.push(...h);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,b),s.push(b)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...al(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const Pc=function(e){if(e==null)return XU;if(typeof e=="function")return Zh(e);if(typeof e=="object")return Array.isArray(e)?KU(e):GU(e);if(typeof e=="string")return QU(e);throw new Error("Expected function, string, or object as test")};function KU(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=HA,h,m,y;if((!t||o(l,u,c[c.length-1]||void 0))&&(p=tj(n(l,c)),p[0]===Nb))return p;if("children"in l&&l.children){const b=l;if(b.children&&p[0]!==ej)for(m=(r?b.children.length:-1)+a,y=c.concat(b);m>-1&&m0&&n.push({type:"text",value:` +`}),n}function gx(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function bx(e,t){const n=rj(e,t),r=n.one(e,void 0),i=YU(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` +`},i),o}function lj(e,t){return e&&"run"in e?async function(n,r){const i=bx(n,{file:r,...t});await e.run(i,r)}:function(n,r){return bx(n,{file:r,...e||t})}}function yx(e){if(e)throw e}var of=Object.prototype.hasOwnProperty,jA=Object.prototype.toString,Ex=Object.defineProperty,vx=Object.getOwnPropertyDescriptor,Tx=function(t){return typeof Array.isArray=="function"?Array.isArray(t):jA.call(t)==="[object Array]"},kx=function(t){if(!t||jA.call(t)!=="[object Object]")return!1;var n=of.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&of.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||of.call(t,i)},xx=function(t,n){Ex&&n.name==="__proto__"?Ex(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Sx=function(t,n){if(n==="__proto__")if(of.call(t,n)){if(vx)return vx(t,n).value}else return;return t[n]},uj=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});la.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const Vr={basename:fj,dirname:pj,extname:hj,join:mj,sep:"/"};function fj(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zc(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function pj(e){if(zc(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function hj(e){zc(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function mj(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function bj(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function zc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yj={cwd:Ej};function Ej(){return"/"}function Ib(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function vj(e){if(typeof e=="string")e=new URL(e);else if(!Ib(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Tj(e)}function Tj(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...h]=c;const m=r[f][1];Ob(m)&&Ob(p)&&(p=bg(!0,m,p)),r[f]=[u,p,...h]}}}}const wj=new LE().freeze();function Tg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xg(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _x(e){if(!Ob(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Cx(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yd(e){return _j(e)?e:new $A(e)}function _j(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Cj(e){return typeof e=="string"||Nj(e)}function Nj(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Aj="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nx=[],Ax={allowDangerousHtml:!0},Oj=/^(https?|ircs?|mailto|xmpp)$/i,Ij=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Rj(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Nx,l=e.remarkPlugins||Nx,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ax}:Ax,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Mj,p=wj().use(hU).use(l).use(lj,u).use(s),h=new $A;typeof r=="string"&&(h.value=r);for(const E of Ij)Object.hasOwn(e,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+Aj+E.id,void 0);const m=p.parse(h);let y=p.runSync(m,h);return i&&(y={type:"element",tagName:"div",properties:{className:i},children:y.type==="root"?y.children:[y]}),Bc(y,b),QF(y,{Fragment:T.Fragment,components:o,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function b(E,v,k){if(E.type==="raw"&&k&&typeof v=="number")return c?k.children.splice(v,1):k.children[v]={type:"text",value:E.value},v;if(E.type==="element"){let _;for(_ in hg)if(Object.hasOwn(hg,_)&&Object.hasOwn(E.properties,_)){const x=E.properties[_],I=hg[_];(I===null||I.includes(E.tagName))&&(E.properties[_]=f(String(x||""),_,E))}}if(E.type==="element"){let _=t?!t.includes(E.tagName):a?a.includes(E.tagName):!1;if(!_&&n&&typeof v=="number"&&(_=!n(E,v,k)),_&&k&&typeof v=="number")return d&&E.children?k.children.splice(v,1,...E.children):k.children.splice(v,1),v}}}function Mj(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||Oj.test(e.slice(0,t))?e:""}function Ox(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Dj(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Lj(e,t,n){const i=Pc((n||{}).ignore||[]),o=Pj(t);let a=-1;for(;++a0?{type:"text",value:x}:void 0),x===!1?f.lastIndex=k+1:(h!==k&&E.push({type:"text",value:u.value.slice(h,k)}),Array.isArray(x)?E.push(...x):x&&E.push(x),h=k+v[0].length,b=!0),!f.global)break;v=f.exec(u.value)}return b?(h?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Ox(e,"(");let o=Ox(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function WA(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||za(n)||Qh(n))&&(!t||n!==47)}VA.peek=s$;function Xj(){return{enter:{gfmFootnoteDefinition:Zj,gfmFootnoteDefinitionLabelString:e$,gfmFootnoteCall:r$,gfmFootnoteCallString:i$},exit:{gfmFootnoteDefinition:n$,gfmFootnoteDefinitionLabelString:t$,gfmFootnoteCall:a$,gfmFootnoteCallString:o$}}}function Jj(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:l$,footnoteReference:VA}}}function Zj(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function e$(){this.buffer()}function t$(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Mr(this.sliceSerialize(e)).toLowerCase()}function n$(e){this.exit(e)}function r$(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i$(){this.buffer()}function o$(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Mr(this.sliceSerialize(e)).toLowerCase()}function a$(e){this.exit(e)}function VA(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function s$(){return"["}function l$(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),u$)),a(),o}function u$(e,t,n){return t===0?e:(n?"":" ")+e}const c$=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qA.peek=m$;function d$(){return{canContainEols:["delete"],enter:{strikethrough:p$},exit:{strikethrough:h$}}}function f$(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:c$}],handlers:{delete:qA}}}function p$(e){this.enter({type:"delete",children:[]},e)}function h$(e){this.exit(e)}function qA(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function m$(){return"~"}function g$(e){return e.length}function b$(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||g$,o=[],a=[],s=[],l=[];let u=0,c=-1;for(;++cu&&(u=e[c].length);++bl[b])&&(l[b]=v)}m.push(E)}a[c]=m,s[c]=y}let d=-1;if(typeof r=="object"&&"length"in r)for(;++dl[d]&&(l[d]=E),p[d]=E),f[d]=v}a.splice(1,0,f),s.splice(1,0,p),c=-1;const h=[];for(;++c "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),v$);return i(),a}function v$(e,t,n){return">"+(n?"":" ")+e}function T$(e,t){return Mx(e,t.inConstruct,!0)&&!Mx(e,t.notInConstruct,!1)}function Mx(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ra&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function x$(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function S$(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function w$(e,t,n,r){const i=S$(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(x$(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(o,_$);return d(),f}const s=n.createTracker(r),l=i.repeat(Math.max(k$(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:` +`,encode:["`"],...s.current()})),d()}return c+=s.move(` +`),o&&(c+=s.move(o+` +`)),c+=s.move(l),u(),c}function _$(e,t,n){return(n?"":" ")+e}function PE(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function C$(e,t,n,r){const i=PE(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function N$(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Zu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Gf(e,t,n){const r=ol(e),i=ol(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}KA.peek=A$;function KA(e,t,n,r){const i=N$(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),c=Gf(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Zu(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Gf(r.after.charCodeAt(0),d,i);f.inside&&(l=l.slice(0,-1)+Zu(d));const p=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+p}function A$(e,t,n){return n.options.emphasis||"*"}function O$(e,t){let n=!1;return Bc(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Nb}),!!((!e.depth||e.depth<3)&&NE(e)&&(t.options.setext||n))}function I$(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(O$(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...o.current(),before:` +`,after:` +`});return d(),c(),f+` +`+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(` +`))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:` +`,...o.current()});return/^[\t ]/.test(u)&&(u=Zu(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}GA.peek=R$;function GA(e){return e.value||""}function R$(){return"<"}QA.peek=M$;function QA(e,t,n,r){const i=PE(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function M$(){return"!"}XA.peek=D$;function XA(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function D$(){return"!"}JA.peek=L$;function JA(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}eO.peek=P$;function eO(e,t,n,r){const i=PE(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(ZA(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=c,d}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function P$(e,t,n){return ZA(e,n)?"<":"["}tO.peek=B$;function tO(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function B$(){return"["}function BE(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function z$(e){const t=BE(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function F$(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nO(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function H$(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?F$(n):BE(n);const s=e.ordered?a==="."?")":".":z$(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),nO(n)===a&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(d,f,p){return f?(p?"":" ".repeat(a))+d:(p?o:o+" ".repeat(a-o.length))+d}}function $$(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const W$=Pc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function V$(e,t,n,r){return(e.children.some(function(a){return W$(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function q$(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}rO.peek=Y$;function rO(e,t,n,r){const i=q$(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),c=Gf(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Zu(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Gf(r.after.charCodeAt(0),d,i);f.inside&&(l=l.slice(0,-1)+Zu(d));const p=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+p}function Y$(e,t,n){return n.options.strong||"*"}function K$(e,t,n,r){return n.safe(e.value,r)}function G$(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Q$(e,t,n){const r=(nO(n)+(n.options.ruleSpaces?" ":"")).repeat(G$(n));return n.options.ruleSpaces?r.slice(0,-1):r}const iO={blockquote:E$,break:Dx,code:w$,definition:C$,emphasis:KA,hardBreak:Dx,heading:I$,html:GA,image:QA,imageReference:XA,inlineCode:JA,link:eO,linkReference:tO,list:H$,listItem:j$,paragraph:$$,root:V$,strong:rO,text:K$,thematicBreak:Q$};function X$(){return{enter:{table:J$,tableData:Lx,tableHeader:Lx,tableRow:eW},exit:{codeText:tW,table:Z$,tableData:Cg,tableHeader:Cg,tableRow:Cg}}}function J$(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Z$(e){this.exit(e),this.data.inTable=void 0}function eW(e){this.enter({type:"tableRow",children:[]},e)}function Cg(e){this.exit(e)}function Lx(e){this.enter({type:"tableCell",children:[]},e)}function tW(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nW));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function nW(e,t){return t==="|"?t:e}function rW(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:a,tableCell:l,tableRow:s}};function a(p,h,m,y){return u(c(p,m,y),p.align)}function s(p,h,m,y){const b=d(p,m,y),E=u([b]);return E.slice(0,E.indexOf(` +`))}function l(p,h,m,y){const b=m.enter("tableCell"),E=m.enter("phrasing"),v=m.containerPhrasing(p,{...y,before:o,after:o});return E(),b(),v}function u(p,h){return b$(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(p,h,m){const y=p.children;let b=-1;const E=[],v=h.enter("table");for(;++b0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const TW={tokenize:AW,partial:!0};function kW(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:_W,continuation:{tokenize:CW},exit:NW}},text:{91:{name:"gfmFootnoteCall",tokenize:wW},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xW,resolveTo:SW}}}}function xW(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Mr(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function SW(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function wW(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||Ye(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Mr(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ye(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function _W(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(a>999||h===93&&!s||h===null||h===91||Ye(h))return n(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return o=Mr(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Ye(h)||(s=!0),a++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),De(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function CW(e,t,n){return e.check(Lc,t,e.attempt(TW,t,n))}function NW(e){e.exit("gfmFootnoteDefinition")}function AW(e,t,n){const r=this;return De(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function OW(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l1?l(h):(a.consume(h),d++,p);if(d<2&&!n)return l(h);const y=a.exit("strikethroughSequenceTemporary"),b=ol(h);return y._open=!b||b===2&&!!m,y._close=!m||m===2&&!!b,s(h)}}}class IW{constructor(){this.map=[]}add(t,n,r){RW(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function RW(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const V=r.events[j][1].type;if(V==="lineEnding"||V==="linePrefix")j--;else break}const L=j>-1?r.events[j][1].type:null,U=L==="tableHead"||L==="tableRow"?x:l;return U===x&&r.parser.lazy[r.now().line]?n(A):U(A)}function l(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(a=!0,o+=1),c(A)}function c(A){return A===null?n(A):he(A)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),p):n(A):Ne(A)?De(e,c,"whitespace")(A):(o+=1,a&&(a=!1,i+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(A)))}function d(A){return A===null||A===124||Ye(A)?(e.exit("data"),c(A)):(e.consume(A),A===92?f:d)}function f(A){return A===92||A===124?(e.consume(A),d):d(A)}function p(A){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(A):(e.enter("tableDelimiterRow"),a=!1,Ne(A)?De(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):h(A))}function h(A){return A===45||A===58?y(A):A===124?(a=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),m):_(A)}function m(A){return Ne(A)?De(e,y,"whitespace")(A):y(A)}function y(A){return A===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):A===45?(o+=1,b(A)):A===null||he(A)?k(A):_(A)}function b(A){return A===45?(e.enter("tableDelimiterFiller"),E(A)):_(A)}function E(A){return A===45?(e.consume(A),E):A===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(A))}function v(A){return Ne(A)?De(e,k,"whitespace")(A):k(A)}function k(A){return A===124?h(A):A===null||he(A)?!a||i!==o?_(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):_(A)}function _(A){return n(A)}function x(A){return e.enter("tableRow"),I(A)}function I(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),I):A===null||he(A)?(e.exit("tableRow"),t(A)):Ne(A)?De(e,I,"whitespace")(A):(e.enter("data"),R(A))}function R(A){return A===null||A===124||Ye(A)?(e.exit("data"),I(A)):(e.consume(A),A===92?z:R)}function z(A){return A===92||A===124?(e.consume(A),R):R(A)}}function PW(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,d;const f=new IW;for(;++nn[2]+1){const h=n[2]+1,m=n[3]-n[2]-1;e.add(h,m,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},hs(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Bx(e,t,n,r,i){const o=[],a=hs(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function hs(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const BW={name:"tasklistCheck",tokenize:FW};function zW(){return{text:{91:BW}}}function FW(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Ye(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return he(l)?t(l):Ne(l)?e.check({tokenize:HW},t,n)(l):n(l)}}function HW(e,t,n){return De(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function UW(e){return kA([fW(),kW(),OW(e),DW(),zW()])}const jW={};function $W(e){const t=this,n=e||jW,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(UW(n)),o.push(lW()),a.push(uW(n))}const zx=/[#.]/g;function WW(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&o<=t.length){let a=0;for(;;){let s=n[a];if(s===void 0){const l=Hx(t,n[a-1]);s=l===-1?t.length+1:l+1,n[a]=s}if(s>o)return{line:a+1,column:o-(a>0?n[a-1]:0)+1,offset:o};a++}}}function i(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length1?n[o.line-2]:0)+o.column-1;if(a=55296&&e<=57343}function gV(e){return e>=56320&&e<=57343}function bV(e,t){return(e-55296)*1024+9216+t}function yO(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function EO(e){return e>=64976&&e<=65007||mV.has(e)}var K;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(K||(K={}));const yV=65536;class EV{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=yV,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:o}=this,a=i+n,s=o+n;return{code:t,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(gV(n))return this.pos++,this._addGap(),bV(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,C.EOF;return this._err(K.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;const r=this.html.charCodeAt(n);return r===C.CARRIAGE_RETURN?C.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;let t=this.html.charCodeAt(this.pos);return t===C.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,C.LINE_FEED):t===C.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,bO(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===C.LINE_FEED||t===C.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){yO(t)?this._err(K.controlCharacterInInputStream):EO(t)&&this._err(K.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const TO=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),vV=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ng;const TV=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),kV=(Ng=String.fromCodePoint)!==null&&Ng!==void 0?Ng:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function xV(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=TV.get(e))!==null&&t!==void 0?t:e}var Dt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Dt||(Dt={}));const SV=32;var po;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(po||(po={}));function Lb(e){return e>=Dt.ZERO&&e<=Dt.NINE}function wV(e){return e>=Dt.UPPER_A&&e<=Dt.UPPER_F||e>=Dt.LOWER_A&&e<=Dt.LOWER_F}function _V(e){return e>=Dt.UPPER_A&&e<=Dt.UPPER_Z||e>=Dt.LOWER_A&&e<=Dt.LOWER_Z||Lb(e)}function CV(e){return e===Dt.EQUALS||_V(e)}var At;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(At||(At={}));var Ti;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ti||(Ti={}));class kO{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=At.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ti.Strict}startEntity(t){this.decodeMode=t,this.state=At.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case At.EntityStart:return t.charCodeAt(n)===Dt.NUM?(this.state=At.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=At.NamedEntity,this.stateNamedEntity(t,n));case At.NumericStart:return this.stateNumericStart(t,n);case At.NumericDecimal:return this.stateNumericDecimal(t,n);case At.NumericHex:return this.stateNumericHex(t,n);case At.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|SV)===Dt.LOWER_X?(this.state=At.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=At.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===Dt.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Ti.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&po.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~po.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case At.NamedEntity:return this.result!==0&&(this.decodeMode!==Ti.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case At.NumericDecimal:return this.emitNumericEntity(0,2);case At.NumericHex:return this.emitNumericEntity(0,3);case At.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case At.EntityStart:return 0}}}function xO(e){let t="";const n=new kO(e,r=>t+=kV(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),n.startEntity(o);const u=n.write(i,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const l=t+i.slice(a);return t="",l}}function NV(e,t,n,r){const i=(t&po.BRANCH_LENGTH)>>7,o=t&po.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+i]}return-1}xO(TO);xO(vV);var J;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(J||(J={}));var va;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(va||(va={}));var ar;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ar||(ar={}));var $;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})($||($={}));var g;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(g||(g={}));const AV=new Map([[$.A,g.A],[$.ADDRESS,g.ADDRESS],[$.ANNOTATION_XML,g.ANNOTATION_XML],[$.APPLET,g.APPLET],[$.AREA,g.AREA],[$.ARTICLE,g.ARTICLE],[$.ASIDE,g.ASIDE],[$.B,g.B],[$.BASE,g.BASE],[$.BASEFONT,g.BASEFONT],[$.BGSOUND,g.BGSOUND],[$.BIG,g.BIG],[$.BLOCKQUOTE,g.BLOCKQUOTE],[$.BODY,g.BODY],[$.BR,g.BR],[$.BUTTON,g.BUTTON],[$.CAPTION,g.CAPTION],[$.CENTER,g.CENTER],[$.CODE,g.CODE],[$.COL,g.COL],[$.COLGROUP,g.COLGROUP],[$.DD,g.DD],[$.DESC,g.DESC],[$.DETAILS,g.DETAILS],[$.DIALOG,g.DIALOG],[$.DIR,g.DIR],[$.DIV,g.DIV],[$.DL,g.DL],[$.DT,g.DT],[$.EM,g.EM],[$.EMBED,g.EMBED],[$.FIELDSET,g.FIELDSET],[$.FIGCAPTION,g.FIGCAPTION],[$.FIGURE,g.FIGURE],[$.FONT,g.FONT],[$.FOOTER,g.FOOTER],[$.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[$.FORM,g.FORM],[$.FRAME,g.FRAME],[$.FRAMESET,g.FRAMESET],[$.H1,g.H1],[$.H2,g.H2],[$.H3,g.H3],[$.H4,g.H4],[$.H5,g.H5],[$.H6,g.H6],[$.HEAD,g.HEAD],[$.HEADER,g.HEADER],[$.HGROUP,g.HGROUP],[$.HR,g.HR],[$.HTML,g.HTML],[$.I,g.I],[$.IMG,g.IMG],[$.IMAGE,g.IMAGE],[$.INPUT,g.INPUT],[$.IFRAME,g.IFRAME],[$.KEYGEN,g.KEYGEN],[$.LABEL,g.LABEL],[$.LI,g.LI],[$.LINK,g.LINK],[$.LISTING,g.LISTING],[$.MAIN,g.MAIN],[$.MALIGNMARK,g.MALIGNMARK],[$.MARQUEE,g.MARQUEE],[$.MATH,g.MATH],[$.MENU,g.MENU],[$.META,g.META],[$.MGLYPH,g.MGLYPH],[$.MI,g.MI],[$.MO,g.MO],[$.MN,g.MN],[$.MS,g.MS],[$.MTEXT,g.MTEXT],[$.NAV,g.NAV],[$.NOBR,g.NOBR],[$.NOFRAMES,g.NOFRAMES],[$.NOEMBED,g.NOEMBED],[$.NOSCRIPT,g.NOSCRIPT],[$.OBJECT,g.OBJECT],[$.OL,g.OL],[$.OPTGROUP,g.OPTGROUP],[$.OPTION,g.OPTION],[$.P,g.P],[$.PARAM,g.PARAM],[$.PLAINTEXT,g.PLAINTEXT],[$.PRE,g.PRE],[$.RB,g.RB],[$.RP,g.RP],[$.RT,g.RT],[$.RTC,g.RTC],[$.RUBY,g.RUBY],[$.S,g.S],[$.SCRIPT,g.SCRIPT],[$.SEARCH,g.SEARCH],[$.SECTION,g.SECTION],[$.SELECT,g.SELECT],[$.SOURCE,g.SOURCE],[$.SMALL,g.SMALL],[$.SPAN,g.SPAN],[$.STRIKE,g.STRIKE],[$.STRONG,g.STRONG],[$.STYLE,g.STYLE],[$.SUB,g.SUB],[$.SUMMARY,g.SUMMARY],[$.SUP,g.SUP],[$.TABLE,g.TABLE],[$.TBODY,g.TBODY],[$.TEMPLATE,g.TEMPLATE],[$.TEXTAREA,g.TEXTAREA],[$.TFOOT,g.TFOOT],[$.TD,g.TD],[$.TH,g.TH],[$.THEAD,g.THEAD],[$.TITLE,g.TITLE],[$.TR,g.TR],[$.TRACK,g.TRACK],[$.TT,g.TT],[$.U,g.U],[$.UL,g.UL],[$.SVG,g.SVG],[$.VAR,g.VAR],[$.WBR,g.WBR],[$.XMP,g.XMP]]);function Cl(e){var t;return(t=AV.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const Z=g,OV={[J.HTML]:new Set([Z.ADDRESS,Z.APPLET,Z.AREA,Z.ARTICLE,Z.ASIDE,Z.BASE,Z.BASEFONT,Z.BGSOUND,Z.BLOCKQUOTE,Z.BODY,Z.BR,Z.BUTTON,Z.CAPTION,Z.CENTER,Z.COL,Z.COLGROUP,Z.DD,Z.DETAILS,Z.DIR,Z.DIV,Z.DL,Z.DT,Z.EMBED,Z.FIELDSET,Z.FIGCAPTION,Z.FIGURE,Z.FOOTER,Z.FORM,Z.FRAME,Z.FRAMESET,Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6,Z.HEAD,Z.HEADER,Z.HGROUP,Z.HR,Z.HTML,Z.IFRAME,Z.IMG,Z.INPUT,Z.LI,Z.LINK,Z.LISTING,Z.MAIN,Z.MARQUEE,Z.MENU,Z.META,Z.NAV,Z.NOEMBED,Z.NOFRAMES,Z.NOSCRIPT,Z.OBJECT,Z.OL,Z.P,Z.PARAM,Z.PLAINTEXT,Z.PRE,Z.SCRIPT,Z.SECTION,Z.SELECT,Z.SOURCE,Z.STYLE,Z.SUMMARY,Z.TABLE,Z.TBODY,Z.TD,Z.TEMPLATE,Z.TEXTAREA,Z.TFOOT,Z.TH,Z.THEAD,Z.TITLE,Z.TR,Z.TRACK,Z.UL,Z.WBR,Z.XMP]),[J.MATHML]:new Set([Z.MI,Z.MO,Z.MN,Z.MS,Z.MTEXT,Z.ANNOTATION_XML]),[J.SVG]:new Set([Z.TITLE,Z.FOREIGN_OBJECT,Z.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},Pb=new Set([Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6]);$.STYLE,$.SCRIPT,$.XMP,$.IFRAME,$.NOEMBED,$.NOFRAMES,$.PLAINTEXT;var O;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(O||(O={}));const bt={DATA:O.DATA,RCDATA:O.RCDATA,RAWTEXT:O.RAWTEXT,SCRIPT_DATA:O.SCRIPT_DATA,PLAINTEXT:O.PLAINTEXT,CDATA_SECTION:O.CDATA_SECTION};function IV(e){return e>=C.DIGIT_0&&e<=C.DIGIT_9}function tu(e){return e>=C.LATIN_CAPITAL_A&&e<=C.LATIN_CAPITAL_Z}function RV(e){return e>=C.LATIN_SMALL_A&&e<=C.LATIN_SMALL_Z}function Xi(e){return RV(e)||tu(e)}function jx(e){return Xi(e)||IV(e)}function vd(e){return e+32}function SO(e){return e===C.SPACE||e===C.LINE_FEED||e===C.TABULATION||e===C.FORM_FEED}function $x(e){return SO(e)||e===C.SOLIDUS||e===C.GREATER_THAN_SIGN}function MV(e){return e===C.NULL?K.nullCharacterReference:e>1114111?K.characterReferenceOutsideUnicodeRange:bO(e)?K.surrogateCharacterReference:EO(e)?K.noncharacterCharacterReference:yO(e)||e===C.CARRIAGE_RETURN?K.controlCharacterReference:null}class DV{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=O.DATA,this.returnState=O.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new EV(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kO(TO,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(K.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(K.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=MV(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(K.endTagWithAttributes),t.selfClosing&&this._err(K.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case _e.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case _e.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case _e.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:_e.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=SO(t)?_e.WHITESPACE_CHARACTER:t===C.NULL?_e.NULL_CHARACTER:_e.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(_e.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=O.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ti.Attribute:Ti.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===O.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case O.DATA:{this._stateData(t);break}case O.RCDATA:{this._stateRcdata(t);break}case O.RAWTEXT:{this._stateRawtext(t);break}case O.SCRIPT_DATA:{this._stateScriptData(t);break}case O.PLAINTEXT:{this._statePlaintext(t);break}case O.TAG_OPEN:{this._stateTagOpen(t);break}case O.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case O.TAG_NAME:{this._stateTagName(t);break}case O.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case O.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case O.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case O.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case O.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case O.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case O.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case O.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case O.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case O.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case O.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case O.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case O.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case O.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case O.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case O.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case O.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case O.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case O.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case O.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case O.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case O.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case O.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case O.BOGUS_COMMENT:{this._stateBogusComment(t);break}case O.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case O.COMMENT_START:{this._stateCommentStart(t);break}case O.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case O.COMMENT:{this._stateComment(t);break}case O.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case O.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case O.COMMENT_END:{this._stateCommentEnd(t);break}case O.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case O.DOCTYPE:{this._stateDoctype(t);break}case O.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case O.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case O.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case O.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case O.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case O.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case O.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case O.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case O.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case O.CDATA_SECTION:{this._stateCdataSection(t);break}case O.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case O.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case O.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case O.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.TAG_OPEN;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitCodePoint(t);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case C.AMPERSAND:{this._startCharacterReference();break}case C.LESS_THAN_SIGN:{this.state=O.RCDATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.RAWTEXT_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Xi(t))this._createStartTagToken(),this.state=O.TAG_NAME,this._stateTagName(t);else switch(t){case C.EXCLAMATION_MARK:{this.state=O.MARKUP_DECLARATION_OPEN;break}case C.SOLIDUS:{this.state=O.END_TAG_OPEN;break}case C.QUESTION_MARK:{this._err(K.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=O.BOGUS_COMMENT,this._stateBogusComment(t);break}case C.EOF:{this._err(K.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(K.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=O.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Xi(t))this._createEndTagToken(),this.state=O.TAG_NAME,this._stateTagName(t);else switch(t){case C.GREATER_THAN_SIGN:{this._err(K.missingEndTagName),this.state=O.DATA;break}case C.EOF:{this._err(K.eofBeforeTagName),this._emitChars("");break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_ESCAPED,this._emitChars(rt);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===C.SOLIDUS?this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Xi(t)?(this._emitChars("<"),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Xi(t)?(this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(rt);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===C.SOLIDUS?(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Tn.SCRIPT,!1)&&$x(this.preprocessor.peek(Tn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==J.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(FV,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(zV,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(BV,J.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===g.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===g.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case J.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case J.SVG:{if(qx.has(i))return!1;break}case J.MATHML:{if(Vx.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Qf)}hasInListItemScope(t){return this.hasInDynamicScope(t,LV)}hasInButtonScope(t){return this.hasInDynamicScope(t,PV)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case J.HTML:{if(Pb.has(n))return!0;if(Qf.has(n))return!1;break}case J.SVG:{if(qx.has(n))return!1;break}case J.MATHML:{if(Vx.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===J.HTML)switch(this.tagIDs[n]){case t:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===J.HTML)switch(this.tagIDs[n]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;wO.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Wx.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Wx.has(this.currentTagId);)this.pop()}}const Ag=3;var Xr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Xr||(Xr={}));const Yx={type:Xr.Marker};class jV{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let s=0;s[a.name,a.value]));let o=0;for(let a=0;ai.get(l.name)===l.value)&&(o+=1,o>=Ag&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Yx)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Xr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Xr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Yx);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Xr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Xr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Xr.Element&&n.element===t)}}const Ji={createDocument(){return{nodeName:"#document",mode:ar.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ji.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ji.isTextNode(n)){n.value+=t;return}}Ji.appendChild(e,Ji.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ji.isTextNode(r)?r.value+=t:Ji.insertBefore(e,Ji.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function KV(e){return e.name===_O&&e.publicId===null&&(e.systemId===null||e.systemId===$V)}function GV(e){if(e.name!==_O)return ar.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===WV)return ar.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),qV.has(n))return ar.QUIRKS;let r=t===null?VV:CO;if(Kx(n,r))return ar.QUIRKS;if(r=t===null?NO:YV,Kx(n,r))return ar.LIMITED_QUIRKS}return ar.NO_QUIRKS}const Gx={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},QV="definitionurl",XV="definitionURL",JV=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),ZV=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:J.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:J.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:J.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:J.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:J.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:J.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:J.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:J.XML}],["xml:space",{prefix:"xml",name:"space",namespace:J.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:J.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:J.XMLNS}]]),eq=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),tq=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function nq(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:r})=>r===va.COLOR||r===va.SIZE||r===va.FACE)||tq.has(t)}function AO(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let o,a;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,a=this.fragmentContextID):{current:o,currentTagId:a}=this.openElements,this._setContextModes(o,a)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===J.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,J.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=P.TEXT}switchToPlaintextParsing(){this.insertionMode=P.TEXT,this.originalInsertionMode=P.IN_BODY,this.tokenizer.state=bt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===$.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=bt.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=bt.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=bt.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=bt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,J.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,J.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement($.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,g.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),o=r?i.lastIndexOf(r):i.length,a=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),o=n.type===_e.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===g.SVG&&this.treeAdapter.getTagName(n)===$.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===J.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&!this._isIntegrationPoint(r,n,J.HTML)}_processToken(t){switch(t.type){case _e.CHARACTER:{this.onCharacter(t);break}case _e.NULL_CHARACTER:{this.onNullCharacter(t);break}case _e.COMMENT:{this.onComment(t);break}case _e.DOCTYPE:{this.onDoctype(t);break}case _e.START_TAG:{this._processStartTag(t);break}case _e.END_TAG:{this.onEndTag(t);break}case _e.EOF:{this.onEof(t);break}case _e.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return aq(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Xr.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const o=this.activeFormattingElements.entries[i];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=P.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case g.TR:{this.insertionMode=P.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=P.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=P.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=P.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=P.IN_TABLE;return}case g.BODY:{this.insertionMode=P.IN_BODY;return}case g.FRAMESET:{this.insertionMode=P.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(t);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?P.AFTER_HEAD:P.BEFORE_HEAD;return}case g.TD:case g.TH:{if(t>0){this.insertionMode=P.IN_CELL;return}break}case g.HEAD:{if(t>0){this.insertionMode=P.IN_HEAD;return}break}}this.insertionMode=P.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===g.TEMPLATE)break;if(r===g.TABLE){this.insertionMode=P.IN_SELECT_IN_TABLE;return}}this.insertionMode=P.IN_SELECT}_isElementCausesFosterParenting(t){return IO.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case g.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return OV[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){HY(this,t);return}switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{bu(this,t);break}case P.BEFORE_HEAD:{yu(this,t);break}case P.IN_HEAD:{Eu(this,t);break}case P.IN_HEAD_NO_SCRIPT:{vu(this,t);break}case P.AFTER_HEAD:{Tu(this,t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:{MO(this,t);break}case P.TEXT:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{Og(this,t);break}case P.IN_TABLE_TEXT:{FO(this,t);break}case P.IN_COLUMN_GROUP:{Xf(this,t);break}case P.AFTER_BODY:{Jf(this,t);break}case P.AFTER_AFTER_BODY:{sf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){FY(this,t);return}switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{bu(this,t);break}case P.BEFORE_HEAD:{yu(this,t);break}case P.IN_HEAD:{Eu(this,t);break}case P.IN_HEAD_NO_SCRIPT:{vu(this,t);break}case P.AFTER_HEAD:{Tu(this,t);break}case P.TEXT:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{Og(this,t);break}case P.IN_COLUMN_GROUP:{Xf(this,t);break}case P.AFTER_BODY:{Jf(this,t);break}case P.AFTER_AFTER_BODY:{sf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Bb(this,t);return}switch(this.insertionMode){case P.INITIAL:case P.BEFORE_HTML:case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_TEMPLATE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{Bb(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.AFTER_BODY:{bq(this,t);break}case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{yq(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case P.INITIAL:{Eq(this,t);break}case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:{this._err(t,K.misplacedDoctype);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,K.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?UY(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{vq(this,t);break}case P.BEFORE_HEAD:{kq(this,t);break}case P.IN_HEAD:{Ur(this,t);break}case P.IN_HEAD_NO_SCRIPT:{wq(this,t);break}case P.AFTER_HEAD:{Cq(this,t);break}case P.IN_BODY:{ln(this,t);break}case P.IN_TABLE:{sl(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.IN_CAPTION:{xY(this,t);break}case P.IN_COLUMN_GROUP:{WE(this,t);break}case P.IN_TABLE_BODY:{nm(this,t);break}case P.IN_ROW:{rm(this,t);break}case P.IN_CELL:{_Y(this,t);break}case P.IN_SELECT:{jO(this,t);break}case P.IN_SELECT_IN_TABLE:{NY(this,t);break}case P.IN_TEMPLATE:{OY(this,t);break}case P.AFTER_BODY:{RY(this,t);break}case P.IN_FRAMESET:{MY(this,t);break}case P.AFTER_FRAMESET:{LY(this,t);break}case P.AFTER_AFTER_BODY:{BY(this,t);break}case P.AFTER_AFTER_FRAMESET:{zY(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?jY(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{Tq(this,t);break}case P.BEFORE_HEAD:{xq(this,t);break}case P.IN_HEAD:{Sq(this,t);break}case P.IN_HEAD_NO_SCRIPT:{_q(this,t);break}case P.AFTER_HEAD:{Nq(this,t);break}case P.IN_BODY:{tm(this,t);break}case P.TEXT:{pY(this,t);break}case P.IN_TABLE:{ec(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.IN_CAPTION:{SY(this,t);break}case P.IN_COLUMN_GROUP:{wY(this,t);break}case P.IN_TABLE_BODY:{zb(this,t);break}case P.IN_ROW:{UO(this,t);break}case P.IN_CELL:{CY(this,t);break}case P.IN_SELECT:{$O(this,t);break}case P.IN_SELECT_IN_TABLE:{AY(this,t);break}case P.IN_TEMPLATE:{IY(this,t);break}case P.AFTER_BODY:{VO(this,t);break}case P.IN_FRAMESET:{DY(this,t);break}case P.AFTER_FRAMESET:{PY(this,t);break}case P.AFTER_AFTER_BODY:{sf(this,t);break}}}onEof(t){switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{bu(this,t);break}case P.BEFORE_HEAD:{yu(this,t);break}case P.IN_HEAD:{Eu(this,t);break}case P.IN_HEAD_NO_SCRIPT:{vu(this,t);break}case P.AFTER_HEAD:{Tu(this,t);break}case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{BO(this,t);break}case P.TEXT:{hY(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.IN_TEMPLATE:{WO(this,t);break}case P.AFTER_BODY:case P.IN_FRAMESET:case P.AFTER_FRAMESET:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{$E(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===C.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.TEXT:case P.IN_COLUMN_GROUP:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{this._insertCharacters(t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:case P.AFTER_BODY:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{RO(this,t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{Og(this,t);break}case P.IN_TABLE_TEXT:{zO(this,t);break}}}}function dq(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):PO(e,t),n}function fq(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function pq(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=uq;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=hq(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function hq(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function mq(e,t,n){const r=e.treeAdapter.getTagName(t),i=Cl(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===g.TEMPLATE&&o===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function gq(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function jE(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(o);a&&!a.endTag&&e._setEndLocation(o,t)}}}}function Eq(e,t){e._setDocumentType(t);const n=t.forceQuirks?ar.QUIRKS:GV(t);KV(t)||e._err(t,K.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=P.BEFORE_HTML}function Yl(e,t){e._err(t,K.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ar.QUIRKS),e.insertionMode=P.BEFORE_HTML,e._processToken(t)}function vq(e,t){t.tagID===g.HTML?(e._insertElement(t,J.HTML),e.insertionMode=P.BEFORE_HEAD):bu(e,t)}function Tq(e,t){const n=t.tagID;(n===g.HTML||n===g.HEAD||n===g.BODY||n===g.BR)&&bu(e,t)}function bu(e,t){e._insertFakeRootElement(),e.insertionMode=P.BEFORE_HEAD,e._processToken(t)}function kq(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.HEAD:{e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD;break}default:yu(e,t)}}function xq(e,t){const n=t.tagID;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?yu(e,t):e._err(t,K.endTagWithoutMatchingOpenElement)}function yu(e,t){e._insertFakeElement($.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD,e._processToken(t)}function Ur(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,bt.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,bt.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=P.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,bt.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,bt.SCRIPT_DATA);break}case g.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=P.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(P.IN_TEMPLATE);break}case g.HEAD:{e._err(t,K.misplacedStartTagForHeadElement);break}default:Eu(e,t)}}function Sq(e,t){switch(t.tagID){case g.HEAD:{e.openElements.pop(),e.insertionMode=P.AFTER_HEAD;break}case g.BODY:case g.BR:case g.HTML:{Eu(e,t);break}case g.TEMPLATE:{Ka(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function Ka(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,K.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,K.endTagWithoutMatchingOpenElement)}function Eu(e,t){e.openElements.pop(),e.insertionMode=P.AFTER_HEAD,e._processToken(t)}function wq(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{Ur(e,t);break}case g.NOSCRIPT:{e._err(t,K.nestedNoscriptInHead);break}default:vu(e,t)}}function _q(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=P.IN_HEAD;break}case g.BR:{vu(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function vu(e,t){const n=t.type===_e.EOF?K.openElementsLeftAfterEof:K.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=P.IN_HEAD,e._processToken(t)}function Cq(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.BODY:{e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=P.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,J.HTML),e.insertionMode=P.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{e._err(t,K.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),Ur(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,K.misplacedStartTagForHeadElement);break}default:Tu(e,t)}}function Nq(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{Tu(e,t);break}case g.TEMPLATE:{Ka(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function Tu(e,t){e._insertFakeElement($.BODY,g.BODY),e.insertionMode=P.IN_BODY,em(e,t)}function em(e,t){switch(t.type){case _e.CHARACTER:{MO(e,t);break}case _e.WHITESPACE_CHARACTER:{RO(e,t);break}case _e.COMMENT:{Bb(e,t);break}case _e.START_TAG:{ln(e,t);break}case _e.END_TAG:{tm(e,t);break}case _e.EOF:{BO(e,t);break}}}function RO(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function MO(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Aq(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Oq(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Iq(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_FRAMESET)}function Rq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function Mq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),Pb.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function Dq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Lq(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function Pq(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===g.LI&&i===g.LI||(n===g.DD||n===g.DT)&&(i===g.DD||i===g.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function Bq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=bt.PLAINTEXT}function zq(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function Fq(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName($.A);n&&(jE(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Hq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Uq(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(jE(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function $q(e,t){e.treeAdapter.getDocumentMode(e.document)!==ar.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=P.IN_TABLE}function DO(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function LO(e){const t=vO(e,va.TYPE);return t!=null&&t.toLowerCase()===sq}function Wq(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),LO(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Vq(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function qq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Yq(e,t){t.tagName=$.IMG,t.tagID=g.IMG,DO(e,t)}function Kq(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=bt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=P.TEXT}function Gq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function Qq(e,t){e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function Jx(e,t){e._switchToTextParsing(t,bt.RAWTEXT)}function Xq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===P.IN_TABLE||e.insertionMode===P.IN_CAPTION||e.insertionMode===P.IN_TABLE_BODY||e.insertionMode===P.IN_ROW||e.insertionMode===P.IN_CELL?P.IN_SELECT_IN_TABLE:P.IN_SELECT}function Jq(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Zq(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function eY(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,J.HTML)}function tY(e,t){e._reconstructActiveFormattingElements(),AO(t),UE(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function nY(e,t){e._reconstructActiveFormattingElements(),OO(t),UE(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function Zx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function ln(e,t){switch(t.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{Hq(e,t);break}case g.A:{Fq(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{Mq(e,t);break}case g.P:case g.DL:case g.OL:case g.UL:case g.DIV:case g.DIR:case g.NAV:case g.MAIN:case g.MENU:case g.ASIDE:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.DETAILS:case g.ADDRESS:case g.ARTICLE:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{Rq(e,t);break}case g.LI:case g.DD:case g.DT:{Pq(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{DO(e,t);break}case g.HR:{qq(e,t);break}case g.RB:case g.RTC:{Zq(e,t);break}case g.RT:case g.RP:{eY(e,t);break}case g.PRE:case g.LISTING:{Dq(e,t);break}case g.XMP:{Gq(e,t);break}case g.SVG:{nY(e,t);break}case g.HTML:{Aq(e,t);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{Ur(e,t);break}case g.BODY:{Oq(e,t);break}case g.FORM:{Lq(e,t);break}case g.NOBR:{Uq(e,t);break}case g.MATH:{tY(e,t);break}case g.TABLE:{$q(e,t);break}case g.INPUT:{Wq(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{Vq(e,t);break}case g.IMAGE:{Yq(e,t);break}case g.BUTTON:{zq(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{jq(e,t);break}case g.IFRAME:{Qq(e,t);break}case g.SELECT:{Xq(e,t);break}case g.OPTION:case g.OPTGROUP:{Jq(e,t);break}case g.NOEMBED:case g.NOFRAMES:{Jx(e,t);break}case g.FRAMESET:{Iq(e,t);break}case g.TEXTAREA:{Kq(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?Jx(e,t):Zx(e,t);break}case g.PLAINTEXT:{Bq(e,t);break}case g.COL:case g.TH:case g.TD:case g.TR:case g.HEAD:case g.FRAME:case g.TBODY:case g.TFOOT:case g.THEAD:case g.CAPTION:case g.COLGROUP:break;default:Zx(e,t)}}function rY(e,t){if(e.openElements.hasInScope(g.BODY)&&(e.insertionMode=P.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function iY(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=P.AFTER_BODY,VO(e,t))}function oY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function aY(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):n&&e.openElements.remove(n))}function sY(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement($.P,g.P),e._closePElement()}function lY(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function uY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function cY(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function dY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function fY(e){e._reconstructActiveFormattingElements(),e._insertFakeElement($.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function PO(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==g.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,a))break}}function tm(e,t){switch(t.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{jE(e,t);break}case g.P:{sY(e);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{oY(e,t);break}case g.LI:{lY(e);break}case g.DD:case g.DT:{uY(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{cY(e);break}case g.BR:{fY(e);break}case g.BODY:{rY(e,t);break}case g.HTML:{iY(e,t);break}case g.FORM:{aY(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{dY(e,t);break}case g.TEMPLATE:{Ka(e,t);break}default:PO(e,t)}}function BO(e,t){e.tmplInsertionModeStack.length>0?WO(e,t):$E(e,t)}function pY(e,t){var n;t.tagID===g.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function hY(e,t){e._err(t,K.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Og(e,t){if(IO.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=P.IN_TABLE_TEXT,t.type){case _e.CHARACTER:{FO(e,t);break}case _e.WHITESPACE_CHARACTER:{zO(e,t);break}}else Fc(e,t)}function mY(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_CAPTION}function gY(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_COLUMN_GROUP}function bY(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.COLGROUP,g.COLGROUP),e.insertionMode=P.IN_COLUMN_GROUP,WE(e,t)}function yY(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_TABLE_BODY}function EY(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.TBODY,g.TBODY),e.insertionMode=P.IN_TABLE_BODY,nm(e,t)}function vY(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function TY(e,t){LO(t)?e._appendElement(t,J.HTML):Fc(e,t),t.ackSelfClosing=!0}function kY(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function sl(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{EY(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{Ur(e,t);break}case g.COL:{bY(e,t);break}case g.FORM:{kY(e,t);break}case g.TABLE:{vY(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{yY(e,t);break}case g.INPUT:{TY(e,t);break}case g.CAPTION:{mY(e,t);break}case g.COLGROUP:{gY(e,t);break}default:Fc(e,t)}}function ec(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{Ka(e,t);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Fc(e,t)}}function Fc(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,em(e,t),e.fosterParentingEnabled=n}function zO(e,t){e.pendingCharacterTokens.push(t)}function FO(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Kl(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===g.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop();break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop();break}case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode());break}case g.TEMPLATE:{Ka(e,t);break}}}function NY(e,t){const n=t.tagID;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processStartTag(t)):jO(e,t)}function AY(e,t){const n=t.tagID;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e.onEndTag(t)):$O(e,t)}function OY(e,t){switch(t.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{Ur(e,t);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.tmplInsertionModeStack[0]=P.IN_TABLE,e.insertionMode=P.IN_TABLE,sl(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=P.IN_COLUMN_GROUP,e.insertionMode=P.IN_COLUMN_GROUP,WE(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=P.IN_TABLE_BODY,e.insertionMode=P.IN_TABLE_BODY,nm(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=P.IN_ROW,e.insertionMode=P.IN_ROW,rm(e,t);break}default:e.tmplInsertionModeStack[0]=P.IN_BODY,e.insertionMode=P.IN_BODY,ln(e,t)}}function IY(e,t){t.tagID===g.TEMPLATE&&Ka(e,t)}function WO(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):$E(e,t)}function RY(e,t){t.tagID===g.HTML?ln(e,t):Jf(e,t)}function VO(e,t){var n;if(t.tagID===g.HTML){if(e.fragmentContext||(e.insertionMode=P.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===g.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Jf(e,t)}function Jf(e,t){e.insertionMode=P.IN_BODY,em(e,t)}function MY(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.FRAMESET:{e._insertElement(t,J.HTML);break}case g.FRAME:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{Ur(e,t);break}}}function DY(e,t){t.tagID===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==g.FRAMESET&&(e.insertionMode=P.AFTER_FRAMESET))}function LY(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.NOFRAMES:{Ur(e,t);break}}}function PY(e,t){t.tagID===g.HTML&&(e.insertionMode=P.AFTER_AFTER_FRAMESET)}function BY(e,t){t.tagID===g.HTML?ln(e,t):sf(e,t)}function sf(e,t){e.insertionMode=P.IN_BODY,em(e,t)}function zY(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.NOFRAMES:{Ur(e,t);break}}}function FY(e,t){t.chars=rt,e._insertCharacters(t)}function HY(e,t){e._insertCharacters(t),e.framesetOk=!1}function qO(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function UY(e,t){if(nq(t))qO(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?AO(t):r===J.SVG&&(rq(t),OO(t)),UE(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function jY(e,t){if(t.tagID===g.P||t.tagID===g.BR){qO(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===J.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}$.AREA,$.BASE,$.BASEFONT,$.BGSOUND,$.BR,$.COL,$.EMBED,$.FRAME,$.HR,$.IMG,$.INPUT,$.KEYGEN,$.LINK,$.META,$.PARAM,$.SOURCE,$.TRACK,$.WBR;const $Y=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),eS={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function YO(e,t){const n=ZY(e),r=YA("type",{handlers:{root:WY,element:VY,text:qY,comment:GO,doctype:YY,raw:GY},unknown:QY}),i={parser:n?new Xx(eS):Xx.getFragmentParser(void 0,eS),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),Nl(i,ci());const o=n?i.parser.document:i.parser.getFragment(),a=tV(o,{file:i.options.file});return i.stitches&&Bc(a,"comment",function(s,l,u){const c=s;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function KO(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:_e.CHARACTER,chars:e.value,location:Hc(e)};Nl(t,ci(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function YY(e,t){const n={type:_e.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Hc(e)};Nl(t,ci(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function KY(e,t){t.stitches=!0;const n=eK(e);if("children"in e&&"children"in n){const r=YO({type:"root",children:e.children},t.options);n.children=r.children}GO({type:"comment",value:{stitch:n}},t)}function GO(e,t){const n=e.value,r={type:_e.COMMENT,data:n,location:Hc(e)};Nl(t,ci(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function GY(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,QO(t,ci(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function QY(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))KY(n,t);else{let r="";throw $Y.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Nl(e,t){QO(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=bt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function QO(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function XY(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===bt.PLAINTEXT)return;Nl(t,ci(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:da.html;i===da.html&&n==="svg"&&(i=da.svg);const o=aV({...e,children:[]},{space:i===da.svg?"svg":"html"}),a={type:_e.START_TAG,tagName:n,tagID:Cl(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:Hc(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function JY(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&hV.includes(n)||t.parser.tokenizer.state===bt.PLAINTEXT)return;Nl(t,Gh(e));const r={type:_e.END_TAG,tagName:n,tagID:Cl(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Hc(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===bt.RCDATA||t.parser.tokenizer.state===bt.RAWTEXT||t.parser.tokenizer.state===bt.SCRIPT_DATA)&&(t.parser.tokenizer.state=bt.DATA)}function ZY(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Hc(e){const t=ci(e)||{line:void 0,column:void 0,offset:void 0},n=Gh(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function eK(e){return"children"in e?al({...e,children:[]}):al(e)}function tK(e){return function(t,n){return YO(t,{...e,file:n})}}const tS=function(e,t,n){const r=Pc(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++tu&&(u=c):c&&(u!==void 0&&u>-1&&l.push(` +`.repeat(u)||" "),u=-1,l.push(c))}return l.join("")}function JO(e,t,n){return e.type==="element"?lK(e,t,n):e.type==="text"?n.whitespace==="normal"?ZO(e,n):uK(e):[]}function lK(e,t,n){const r=eI(e,n),i=e.children||[];let o=-1,a=[];if(sK(e))return a;let s,l;for(Fb(e)||oS(e)&&tS(t,e,oS)?l=` +`:aK(e)?(s=2,l=2):XO(e)&&(s=1,l=1);++o]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},_={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},x=[_,d,s,n,e.C_BLOCK_COMMENT_MODE,c,u],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:x.concat([{begin:/\(/,end:/\)/,keywords:k,contains:x.concat(["self"]),relevance:0}]),relevance:0},R={className:"function",begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:k,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"",keywords:k,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function mK(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=hK(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function gK(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(a);const s={match:/\\"/},l={className:"string",begin:/'/,end:/'/},u={match:/\\'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},d=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${d.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],y={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],E=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],v=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],k=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[...b,...E,"set","shopt",...v,...k]},contains:[f,e.SHEBANG(),p,c,e.HASH_COMMENT_MODE,o,y,a,s,l,u,n]}}function bK(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",y={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},b=[d,s,n,e.C_BLOCK_COMMENT_MODE,c,u],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:y,contains:b.concat([{begin:/\(/,end:/\)/,keywords:y,contains:b.concat(["self"]),relevance:0}]),relevance:0},v={begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:y,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:y,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:u,keywords:y}}}function yK(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},_={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},x=[_,d,s,n,e.C_BLOCK_COMMENT_MODE,c,u],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:x.concat([{begin:/\(/,end:/\)/,keywords:k,contains:x.concat(["self"]),relevance:0}]),relevance:0},R={className:"function",begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:k,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"",keywords:k,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function EK(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},c=e.inherit(u,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=e.inherit(d,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},h={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},m=e.inherit(h,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});d.contains=[h,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],f.contains=[m,p,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const y={variants:[h,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},E=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",v={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},y,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+E+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,b],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[y,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}const vK=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),TK=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],kK=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],xK=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],SK=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],wK=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function _K(e){const t=e.regex,n=vK(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+xK.join("|")+")"},{begin:":(:)?("+SK.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+wK.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:kK.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+TK.join("|")+")\\b"}]}}function CK(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function NK(e){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"tI(e,t,n-1))}function IK(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+tI("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},c={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,sS,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},sS,u]}}const lS="[A-Za-z$_][0-9A-Za-z$_]*",RK=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],MK=["true","false","null","undefined","NaN","Infinity"],nI=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],rI=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],iI=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],DK=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],LK=[].concat(iI,nI,rI);function PK(e){const t=e.regex,n=(N,{after:F})=>{const w="",end:""},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,F)=>{const w=N[0].length+N.index,q=N.input[w];if(q==="<"||q===","){F.ignoreMatch();return}q===">"&&(n(N,{after:w})||F.ignoreMatch());let X;const D=N.input.substring(w);if(X=D.match(/^\s*=/)){F.ignoreMatch();return}if((X=D.match(/^\s+extends\s+/))&&X.index===0){F.ignoreMatch();return}}},s={$pattern:lS,keyword:RK,literal:MK,built_in:LK,"variable.language":DK},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},y={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},E={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const k=[].concat(E,f.contains),_=k.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_},I={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...nI,...rI]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(N){return t.concat("(?!",N.join("|"),")")}const U={match:t.concat(/\b/,L([...iI,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},V={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:_,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,E,{match:/\$\d+/},d,R,{className:"attr",begin:r+t.lookahead(":"),relevance:0},M,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},U,j,I,H,{match:/\$[(.]/}]}}function BK(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var gs="[0-9](_*[0-9])*",xd=`\\.(${gs})`,Sd="[0-9a-fA-F](_*[0-9a-fA-F])*",zK={className:"number",variants:[{begin:`(\\b(${gs})((${xd})|\\.)?|(${xd}))[eE][+-]?(${gs})[fFdD]?\\b`},{begin:`\\b(${gs})((${xd})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${xd})[fFdD]?\\b`},{begin:`\\b(${gs})[fFdD]\\b`},{begin:`\\b0[xX]((${Sd})\\.?|(${Sd})?\\.(${Sd}))[pP][+-]?(${gs})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Sd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function FK(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(a);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},u=zK,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,s,l,a,e.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` +`},u]}}const HK=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),UK=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],jK=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],oI=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],aI=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],$K=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),WK=oI.concat(aI);function VK(e){const t=HK(e),n=WK,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",a=[],s=[],l=function(v){return{className:"string",begin:"~?"+v+".*?"+v}},u=function(v,k,_){return{className:v,begin:k,relevance:_}},c={$pattern:/[a-z-]+/,keyword:r,attribute:jK.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:c,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,u("variable","@@?"+i,10),u("variable","@\\{"+i+"\\}"),u("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=s.concat({begin:/\{/,end:/\}/,contains:a}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},h={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+$K.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:s,relevance:0}},y={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},b={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,u("keyword","all\\b"),u("variable","@\\{"+i+"\\}"),{begin:"\\b("+UK.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,u("selector-tag",o,0),u("selector-id","#"+o),u("selector-class","\\."+o,0),u("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+oI.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+aI.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},E={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[b]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,y,E,h,b,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function qK(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function YK(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(u,{contains:[]}),f=e.inherit(c,{contains:[]});u.contains.push(f),c.contains.push(d);let p=[n,l];return[u,c,d,f].forEach(y=>{y.contains=y.contains.concat(p)}),p=p.concat(u,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,o,u,c,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,l,a]}}function GK(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function QK(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,o,s],u=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],c=(p,h,m="\\1")=>{const y=m==="\\1"?m:t.concat(m,h);return t.concat(t.concat("(?:",p,")"),h,/(?:\\.|[^\\\/])*?/,y,/(?:\\.|[^\\\/])*?/,m,r)},d=(p,h,m)=>t.concat(t.concat("(?:",p,")"),h,/(?:\\.|[^\\\/])*?/,m,r),f=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:c("s|tr|y",t.either(...u,{capture:!0}))},{begin:c("s|tr|y","\\(","\\)")},{begin:c("s|tr|y","\\[","\\]")},{begin:c("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t.either(...u,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=f,a.contains=f,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:f}}function XK(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o={scope:"variable",match:"\\$+"+r},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),c={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s),"on:begin":(U,V)=>{V.data._beginMatch=U[1]||U[2]},"on:end":(U,V)=>{V.data._beginMatch!==U[1]&&V.ignoreMatch()}},d=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[ +]`,p={scope:"string",variants:[u,l,c,d]},h={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},m=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v={keyword:y,literal:(U=>{const V=[];return U.forEach(H=>{V.push(H),H.toLowerCase()===H?V.push(H.toUpperCase()):V.push(H.toLowerCase())}),V})(m),built_in:b},k=U=>U.map(V=>V.replace(/\|\d+$/,"")),_={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",k(b).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},x=t.concat(r,"\\b(?!\\()"),I={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},R={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},z={relevance:0,begin:/\(/,end:/\)/,keywords:v,contains:[R,o,I,e.C_BLOCK_COMMENT_MODE,p,h,_]},A={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",k(y).join("\\b|"),"|",k(b).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[z]};z.contains.push(A);const j=[R,I,e.C_BLOCK_COMMENT_MODE,p,h,_],L={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:m,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:m,keyword:["new","array"]},contains:["self",...j]},...j,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:v,contains:[L,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},o,A,I,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:v,contains:["self",o,I,e.C_BLOCK_COMMENT_MODE,p,h]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},p,h]}}function JK(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function ZK(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function eG(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},c={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,c,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,c,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,c,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,c,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",p=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,h=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${p}))[eE][+-]?(${f})[jJ]?(?=${h})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${h})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${h})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`},{begin:`\\b(${f})[jJ](?=${h})`}]},y={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,m,d,e.HASH_COMMENT_MODE]}]};return u.contains=[d,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,m,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,y,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,b,d]}]}}function tG(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function nG(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function rG(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},f="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},x=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,u),relevance:0}].concat(l,u);c.contains=x,m.contains=x;const A=[{begin:/^\s*=>/,starts:{end:"$",contains:x}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:x}}];return u.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(A).concat(u).concat(x)}}function iG(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],o=["true","false","Some","None","Ok","Err"],a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:i,literal:o,built_in:a},illegal:""},n]}}const oG=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),aG=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],sG=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],lG=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],uG=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],cG=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function dG(e){const t=oG(e),n=uG,r=lG,i="@[a-z-]+",o="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+aG.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+cG.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:sG.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function fG(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function pG(e){const t=e.regex,n=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],c=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=c,h=[...u,...l].filter(v=>!c.includes(v)),m={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},y={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={begin:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function E(v,{exceptions:k,when:_}={}){const x=_;return k=k||[],v.map(I=>I.match(/\|\d+$/)||k.includes(I)?I:x(I)?`${I}|0`:I)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:E(h,{when:v=>v.length<3}),literal:o,type:s,built_in:d},contains:[{begin:t.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:h.concat(f),literal:o,type:s}},{className:"type",begin:t.either(...a)},b,m,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,y]}}function sI(e){return e?typeof e=="string"?e:e.source:null}function wd(e){return We("(?=",e,")")}function We(...e){return e.map(n=>sI(n)).join("")}function hG(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function xn(...e){return"("+(hG(e).capture?"":"?:")+e.map(r=>sI(r)).join("|")+")"}const qE=e=>We(/\b/,e,/\w$/.test(e)?/\b/:/\B/),mG=["Protocol","Type"].map(qE),uS=["init","self"].map(qE),gG=["Any","Self"],Ig=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],cS=["false","nil","true"],bG=["assignment","associativity","higherThan","left","lowerThan","none","right"],yG=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],dS=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],lI=xn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),uI=xn(lI,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Rg=We(lI,uI,"*"),cI=xn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Zf=xn(cI,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),gi=We(cI,Zf,"*"),Mg=We(/[A-Z]/,Zf,"*"),EG=["attached","autoclosure",We(/convention\(/,xn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",We(/objc\(/,gi,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],vG=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function TG(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,xn(...mG,...uS)],className:{2:"keyword"}},o={match:We(/\./,xn(...Ig)),relevance:0},a=Ig.filter(ye=>typeof ye=="string").concat(["_|0"]),s=Ig.filter(ye=>typeof ye!="string").concat(gG).map(qE),l={variants:[{className:"keyword",match:xn(...s,...uS)}]},u={$pattern:xn(/\b\w+/,/#\w+/),keyword:a.concat(yG),literal:cS},c=[i,o,l],d={match:We(/\./,xn(...dS)),relevance:0},f={className:"built_in",match:We(/\b/,xn(...dS),/(?=\()/)},p=[d,f],h={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:Rg},{match:`\\.(\\.|${uI})+`}]},y=[h,m],b="([0-9]_*)+",E="([0-9a-fA-F]_*)+",v={className:"number",relevance:0,variants:[{match:`\\b(${b})(\\.(${b}))?([eE][+-]?(${b}))?\\b`},{match:`\\b0x(${E})(\\.(${E}))?([pP][+-]?(${b}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},k=(ye="")=>({className:"subst",variants:[{match:We(/\\/,ye,/[0\\tnr"']/)},{match:We(/\\/,ye,/u\{[0-9a-fA-F]{1,8}\}/)}]}),_=(ye="")=>({className:"subst",match:We(/\\/,ye,/[\t ]*(?:[\r\n]|\r\n)/)}),x=(ye="")=>({className:"subst",label:"interpol",begin:We(/\\/,ye,/\(/),end:/\)/}),I=(ye="")=>({begin:We(ye,/"""/),end:We(/"""/,ye),contains:[k(ye),_(ye),x(ye)]}),R=(ye="")=>({begin:We(ye,/"/),end:We(/"/,ye),contains:[k(ye),x(ye)]}),z={className:"string",variants:[I(),I("#"),I("##"),I("###"),R(),R("#"),R("##"),R("###")]},A=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],j={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:A},L=ye=>{const Re=We(ye,/\//),at=We(/\//,ye);return{begin:Re,end:at,contains:[...A,{scope:"comment",begin:`#(?!.*${at})`,end:/$/}]}},U={scope:"regexp",variants:[L("###"),L("##"),L("#"),j]},V={match:We(/`/,gi,/`/)},H={className:"variable",match:/\$\d+/},B={className:"variable",match:`\\$${Zf}+`},M=[V,H,B],N={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:vG,contains:[...y,v,z]}]}},F={scope:"keyword",match:We(/@/,xn(...EG))},w={scope:"meta",match:We(/@/,gi)},q=[N,F,w],X={match:wd(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:We(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Zf,"+")},{className:"type",match:Mg,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:We(/\s+&\s+/,wd(Mg)),relevance:0}]},D={begin://,keywords:u,contains:[...r,...c,...q,h,X]};X.contains.push(D);const be={match:We(gi,/\s*:/),keywords:"_|0",relevance:0},ge={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",be,...r,U,...c,...p,...y,v,z,...M,...q,X]},le={begin://,keywords:"repeat each",contains:[...r,X]},Ce={begin:xn(wd(We(gi,/\s*:/)),wd(We(gi,/\s+/,gi,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:gi}]},Ie={begin:/\(/,end:/\)/,keywords:u,contains:[Ce,...r,...c,...y,v,z,...q,X,ge],endsParent:!0,illegal:/["']/},Oe={match:[/(func|macro)/,/\s+/,xn(V.match,gi,Rg)],className:{1:"keyword",3:"title.function"},contains:[le,Ie,t],illegal:[/\[/,/%/]},Ke={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[le,Ie,t],illegal:/\[|%/},xt={match:[/operator/,/\s+/,Rg],className:{1:"keyword",3:"title"}},Xt={begin:[/precedencegroup/,/\s+/,Mg],className:{1:"keyword",3:"title"},contains:[X],keywords:[...bG,...cS],end:/}/};for(const ye of z.variants){const Re=ye.contains.find(Be=>Be.label==="interpol");Re.keywords=u;const at=[...c,...p,...y,v,z,...M];Re.contains=[...at,{begin:/\(/,end:/\)/,contains:["self",...at]}]}return{name:"Swift",keywords:u,contains:[...r,Oe,Ke,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:u,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c]},xt,Xt,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},U,...c,...p,...y,v,z,...M,...q,X,ge]}}const ep="[A-Za-z$_][0-9A-Za-z$_]*",dI=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],fI=["true","false","null","undefined","NaN","Infinity"],pI=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],hI=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mI=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],gI=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],bI=[].concat(mI,pI,hI);function kG(e){const t=e.regex,n=(N,{after:F})=>{const w="",end:""},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,F)=>{const w=N[0].length+N.index,q=N.input[w];if(q==="<"||q===","){F.ignoreMatch();return}q===">"&&(n(N,{after:w})||F.ignoreMatch());let X;const D=N.input.substring(w);if(X=D.match(/^\s*=/)){F.ignoreMatch();return}if((X=D.match(/^\s+extends\s+/))&&X.index===0){F.ignoreMatch();return}}},s={$pattern:ep,keyword:dI,literal:fI,built_in:bI,"variable.language":gI},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},y={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},E={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const k=[].concat(E,f.contains),_=k.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_},I={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...pI,...hI]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(N){return t.concat("(?!",N.join("|"),")")}const U={match:t.concat(/\b/,L([...mI,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},V={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:_,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,E,{match:/\$\d+/},d,R,{className:"attr",begin:r+t.lookahead(":"),relevance:0},M,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},U,j,I,H,{match:/\$[(.]/}]}}function xG(e){const t=kG(e),n=ep,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[t.exports.CLASS_REFERENCE]},a={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:ep,keyword:dI.concat(s),literal:fI,built_in:bI.concat(r),"variable.language":gI},u={className:"meta",begin:"@"+n},c=(f,p,h)=>{const m=f.contains.findIndex(y=>y.label===p);if(m===-1)throw new Error("can not find mode to replace");f.contains.splice(m,1,h)};Object.assign(t.keywords,l),t.exports.PARAMS_CONTAINS.push(u),t.contains=t.contains.concat([u,i,o]),c(t,"shebang",e.SHEBANG()),c(t,"use_strict",a);const d=t.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function SG(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(a,s),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},c={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,u,c,d,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function wG(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,e.QUOTE_STRING_MODE,l,u,s]}}function _G(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[o,a,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function CG(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},a=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),d={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},p={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},m=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},d,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},p,h,o],y=[...m];return y.pop(),y.push(a),f.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}const NG={arduino:mK,bash:gK,c:bK,cpp:yK,csharp:EK,css:_K,diff:CK,go:NK,graphql:AK,ini:OK,java:IK,javascript:PK,json:BK,kotlin:FK,less:VK,lua:qK,makefile:YK,markdown:KK,objectivec:GK,perl:QK,php:XK,"php-template":JK,plaintext:ZK,python:eG,"python-repl":tG,r:nG,ruby:rG,rust:iG,scss:dG,shell:fG,sql:pG,swift:TG,typescript:xG,vbnet:SG,wasm:wG,xml:_G,yaml:CG};function yI(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&yI(n)}),e}class fS{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function EI(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function ho(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const AG="",pS=e=>!!e.scope,OG=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class IG{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=EI(t)}openNode(t){if(!pS(t))return;const n=OG(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){pS(t)&&(this.buffer+=AG)}value(){return this.buffer}span(t){this.buffer+=``}}const hS=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class YE{constructor(){this.rootNode=hS(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=hS({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{YE._collapse(n)}))}}class RG extends YE{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new IG(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function tc(e){return e?typeof e=="string"?e:e.source:null}function vI(e){return Qa("(?=",e,")")}function MG(e){return Qa("(?:",e,")*")}function DG(e){return Qa("(?:",e,")?")}function Qa(...e){return e.map(n=>tc(n)).join("")}function LG(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function KE(...e){return"("+(LG(e).capture?"":"?:")+e.map(r=>tc(r)).join("|")+")"}function TI(e){return new RegExp(e.toString()+"|").exec("").length-1}function PG(e,t){const n=e&&e.exec(t);return n&&n.index===0}const BG=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function GE(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=tc(r),a="";for(;o.length>0;){const s=BG.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const zG=/\b\B/,kI="[a-zA-Z]\\w*",QE="[a-zA-Z_]\\w*",xI="\\b\\d+(\\.\\d+)?",SI="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",wI="\\b(0b[01]+)",FG="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",HG=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Qa(t,/.*\b/,e.binary,/\b.*/)),ho({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},nc={begin:"\\\\[\\s\\S]",relevance:0},UG={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[nc]},jG={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[nc]},$G={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},im=function(e,t,n={}){const r=ho({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=KE("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Qa(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},WG=im("//","$"),VG=im("/\\*","\\*/"),qG=im("#","$"),YG={scope:"number",begin:xI,relevance:0},KG={scope:"number",begin:SI,relevance:0},GG={scope:"number",begin:wI,relevance:0},QG={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[nc,{begin:/\[/,end:/\]/,relevance:0,contains:[nc]}]},XG={scope:"title",begin:kI,relevance:0},JG={scope:"title",begin:QE,relevance:0},ZG={begin:"\\.\\s*"+QE,relevance:0},eQ=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var _d=Object.freeze({__proto__:null,APOS_STRING_MODE:UG,BACKSLASH_ESCAPE:nc,BINARY_NUMBER_MODE:GG,BINARY_NUMBER_RE:wI,COMMENT:im,C_BLOCK_COMMENT_MODE:VG,C_LINE_COMMENT_MODE:WG,C_NUMBER_MODE:KG,C_NUMBER_RE:SI,END_SAME_AS_BEGIN:eQ,HASH_COMMENT_MODE:qG,IDENT_RE:kI,MATCH_NOTHING_RE:zG,METHOD_GUARD:ZG,NUMBER_MODE:YG,NUMBER_RE:xI,PHRASAL_WORDS_MODE:$G,QUOTE_STRING_MODE:jG,REGEXP_MODE:QG,RE_STARTERS_RE:FG,SHEBANG:HG,TITLE_MODE:XG,UNDERSCORE_IDENT_RE:QE,UNDERSCORE_TITLE_MODE:JG});function tQ(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function nQ(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function rQ(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=tQ,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function iQ(e,t){Array.isArray(e.illegal)&&(e.illegal=KE(...e.illegal))}function oQ(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function aQ(e,t){e.relevance===void 0&&(e.relevance=1)}const sQ=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Qa(n.beforeMatch,vI(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},lQ=["of","and","for","in","not","or","if","then","parent","list","value"],uQ="keyword";function _I(e,t,n=uQ){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,_I(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,cQ(l[0],l[1])]})}}function cQ(e,t){return t?Number(t):dQ(e)?0:1}function dQ(e){return lQ.includes(e.toLowerCase())}const mS={},Ta=e=>{console.error(e)},gS=(e,...t)=>{console.log(`WARN: ${e}`,...t)},us=(e,t)=>{mS[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),mS[`${e}/${t}`]=!0)},tp=new Error;function CI(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=TI(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function fQ(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ta("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),tp;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ta("beginScope must be object"),tp;CI(e,e.begin,{key:"beginScope"}),e.begin=GE(e.begin,{joinWith:""})}}function pQ(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ta("skip, excludeEnd, returnEnd not compatible with endScope: {}"),tp;if(typeof e.endScope!="object"||e.endScope===null)throw Ta("endScope must be object"),tp;CI(e,e.end,{key:"endScope"}),e.end=GE(e.end,{joinWith:""})}}function hQ(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function mQ(e){hQ(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),fQ(e),pQ(e)}function gQ(e){function t(a,s){return new RegExp(tc(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=TI(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(GE(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const u=l.findIndex((d,f)=>f>0&&d!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(s);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(s)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[nQ,oQ,mQ,sQ].forEach(c=>c(a,s)),e.compilerExtensions.forEach(c=>c(a,s)),a.__beforeBegin=null,[rQ,iQ,aQ].forEach(c=>c(a,s)),a.isCompiled=!0;let u=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),u=a.keywords.$pattern,delete a.keywords.$pattern),u=u||/\w+/,a.keywords&&(a.keywords=_I(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(u,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=tc(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(c){return bQ(c==="self"?a:c)})),a.contains.forEach(function(c){o(c,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ho(e.classNameAliases||{}),o(e)}function NI(e){return e?e.endsWithParent||NI(e.starts):!1}function bQ(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return ho(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:NI(e)?ho(e,{starts:e.starts?ho(e.starts):null}):Object.isFrozen(e)?ho(e):e}var yQ="11.9.0";class EQ extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const Dg=EI,bS=ho,yS=Symbol("nomatch"),vQ=7,AI=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:RG};function l(M){return s.noHighlightRe.test(M)}function u(M){let N=M.className+" ";N+=M.parentNode?M.parentNode.className:"";const F=s.languageDetectRe.exec(N);if(F){const w=z(F[1]);return w||(gS(o.replace("{}",F[1])),gS("Falling back to no-highlight mode for this block.",M)),w?F[1]:"no-highlight"}return N.split(/\s+/).find(w=>l(w)||z(w))}function c(M,N,F){let w="",q="";typeof N=="object"?(w=M,F=N.ignoreIllegals,q=N.language):(us("10.7.0","highlight(lang, code, ...args) has been deprecated."),us("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),q=M,w=N),F===void 0&&(F=!0);const X={code:w,language:q};H("before:highlight",X);const D=X.result?X.result:d(X.language,X.code,F);return D.code=X.code,H("after:highlight",D),D}function d(M,N,F,w){const q=Object.create(null);function X(W,Q){return W.keywords[Q]}function D(){if(!pe.keywords){He.addText(Me);return}let W=0;pe.keywordPatternRe.lastIndex=0;let Q=pe.keywordPatternRe.exec(Me),re="";for(;Q;){re+=Me.substring(W,Q.index);const de=Be.case_insensitive?Q[0].toLowerCase():Q[0],$e=X(pe,de);if($e){const[Ht,xr]=$e;if(He.addText(re),re="",q[de]=(q[de]||0)+1,q[de]<=vQ&&(St+=xr),Ht.startsWith("_"))re+=Q[0];else{const Xo=Be.classNameAliases[Ht]||Ht;le(Q[0],Xo)}}else re+=Q[0];W=pe.keywordPatternRe.lastIndex,Q=pe.keywordPatternRe.exec(Me)}re+=Me.substring(W),He.addText(re)}function be(){if(Me==="")return;let W=null;if(typeof pe.subLanguage=="string"){if(!t[pe.subLanguage]){He.addText(Me);return}W=d(pe.subLanguage,Me,!0,ht[pe.subLanguage]),ht[pe.subLanguage]=W._top}else W=p(Me,pe.subLanguage.length?pe.subLanguage:null);pe.relevance>0&&(St+=W.relevance),He.__addSublanguage(W._emitter,W.language)}function ge(){pe.subLanguage!=null?be():D(),Me=""}function le(W,Q){W!==""&&(He.startScope(Q),He.addText(W),He.endScope())}function Ce(W,Q){let re=1;const de=Q.length-1;for(;re<=de;){if(!W._emit[re]){re++;continue}const $e=Be.classNameAliases[W[re]]||W[re],Ht=Q[re];$e?le(Ht,$e):(Me=Ht,D(),Me=""),re++}}function Ie(W,Q){return W.scope&&typeof W.scope=="string"&&He.openNode(Be.classNameAliases[W.scope]||W.scope),W.beginScope&&(W.beginScope._wrap?(le(Me,Be.classNameAliases[W.beginScope._wrap]||W.beginScope._wrap),Me=""):W.beginScope._multi&&(Ce(W.beginScope,Q),Me="")),pe=Object.create(W,{parent:{value:pe}}),pe}function Oe(W,Q,re){let de=PG(W.endRe,re);if(de){if(W["on:end"]){const $e=new fS(W);W["on:end"](Q,$e),$e.isMatchIgnored&&(de=!1)}if(de){for(;W.endsParent&&W.parent;)W=W.parent;return W}}if(W.endsWithParent)return Oe(W.parent,Q,re)}function Ke(W){return pe.matcher.regexIndex===0?(Me+=W[0],1):(G=!0,0)}function xt(W){const Q=W[0],re=W.rule,de=new fS(re),$e=[re.__beforeBegin,re["on:begin"]];for(const Ht of $e)if(Ht&&(Ht(W,de),de.isMatchIgnored))return Ke(Q);return re.skip?Me+=Q:(re.excludeBegin&&(Me+=Q),ge(),!re.returnBegin&&!re.excludeBegin&&(Me=Q)),Ie(re,W),re.returnBegin?0:Q.length}function Xt(W){const Q=W[0],re=N.substring(W.index),de=Oe(pe,W,re);if(!de)return yS;const $e=pe;pe.endScope&&pe.endScope._wrap?(ge(),le(Q,pe.endScope._wrap)):pe.endScope&&pe.endScope._multi?(ge(),Ce(pe.endScope,W)):$e.skip?Me+=Q:($e.returnEnd||$e.excludeEnd||(Me+=Q),ge(),$e.excludeEnd&&(Me=Q));do pe.scope&&He.closeNode(),!pe.skip&&!pe.subLanguage&&(St+=pe.relevance),pe=pe.parent;while(pe!==de.parent);return de.starts&&Ie(de.starts,W),$e.returnEnd?0:Q.length}function ye(){const W=[];for(let Q=pe;Q!==Be;Q=Q.parent)Q.scope&&W.unshift(Q.scope);W.forEach(Q=>He.openNode(Q))}let Re={};function at(W,Q){const re=Q&&Q[0];if(Me+=W,re==null)return ge(),0;if(Re.type==="begin"&&Q.type==="end"&&Re.index===Q.index&&re===""){if(Me+=N.slice(Q.index,Q.index+1),!i){const de=new Error(`0 width match regex (${M})`);throw de.languageName=M,de.badRule=Re.rule,de}return 1}if(Re=Q,Q.type==="begin")return xt(Q);if(Q.type==="illegal"&&!F){const de=new Error('Illegal lexeme "'+re+'" for mode "'+(pe.scope||"")+'"');throw de.mode=pe,de}else if(Q.type==="end"){const de=Xt(Q);if(de!==yS)return de}if(Q.type==="illegal"&&re==="")return 1;if(Ui>1e5&&Ui>Q.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Me+=re,re.length}const Be=z(M);if(!Be)throw Ta(o.replace("{}",M)),new Error('Unknown language: "'+M+'"');const Fe=gQ(Be);let Ln="",pe=w||Fe;const ht={},He=new s.__emitter(s);ye();let Me="",St=0,mt=0,Ui=0,G=!1;try{if(Be.__emitTokens)Be.__emitTokens(N,He);else{for(pe.matcher.considerAll();;){Ui++,G?G=!1:pe.matcher.considerAll(),pe.matcher.lastIndex=mt;const W=pe.matcher.exec(N);if(!W)break;const Q=N.substring(mt,W.index),re=at(Q,W);mt=W.index+re}at(N.substring(mt))}return He.finalize(),Ln=He.toHTML(),{language:M,value:Ln,relevance:St,illegal:!1,_emitter:He,_top:pe}}catch(W){if(W.message&&W.message.includes("Illegal"))return{language:M,value:Dg(N),illegal:!0,relevance:0,_illegalBy:{message:W.message,index:mt,context:N.slice(mt-100,mt+100),mode:W.mode,resultSoFar:Ln},_emitter:He};if(i)return{language:M,value:Dg(N),illegal:!1,relevance:0,errorRaised:W,_emitter:He,_top:pe};throw W}}function f(M){const N={value:Dg(M),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return N._emitter.addText(M),N}function p(M,N){N=N||s.languages||Object.keys(t);const F=f(M),w=N.filter(z).filter(j).map(ge=>d(ge,M,!1));w.unshift(F);const q=w.sort((ge,le)=>{if(ge.relevance!==le.relevance)return le.relevance-ge.relevance;if(ge.language&&le.language){if(z(ge.language).supersetOf===le.language)return 1;if(z(le.language).supersetOf===ge.language)return-1}return 0}),[X,D]=q,be=X;return be.secondBest=D,be}function h(M,N,F){const w=N&&n[N]||F;M.classList.add("hljs"),M.classList.add(`language-${w}`)}function m(M){let N=null;const F=u(M);if(l(F))return;if(H("before:highlightElement",{el:M,language:F}),M.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",M);return}if(M.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(M)),s.throwUnescapedHTML))throw new EQ("One of your code blocks includes unescaped HTML.",M.innerHTML);N=M;const w=N.textContent,q=F?c(w,{language:F,ignoreIllegals:!0}):p(w);M.innerHTML=q.value,M.dataset.highlighted="yes",h(M,F,q.language),M.result={language:q.language,re:q.relevance,relevance:q.relevance},q.secondBest&&(M.secondBest={language:q.secondBest.language,relevance:q.secondBest.relevance}),H("after:highlightElement",{el:M,result:q,text:w})}function y(M){s=bS(s,M)}const b=()=>{k(),us("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function E(){k(),us("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let v=!1;function k(){if(document.readyState==="loading"){v=!0;return}document.querySelectorAll(s.cssSelector).forEach(m)}function _(){v&&k()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_,!1);function x(M,N){let F=null;try{F=N(e)}catch(w){if(Ta("Language definition for '{}' could not be registered.".replace("{}",M)),i)Ta(w);else throw w;F=a}F.name||(F.name=M),t[M]=F,F.rawDefinition=N.bind(null,e),F.aliases&&A(F.aliases,{languageName:M})}function I(M){delete t[M];for(const N of Object.keys(n))n[N]===M&&delete n[N]}function R(){return Object.keys(t)}function z(M){return M=(M||"").toLowerCase(),t[M]||t[n[M]]}function A(M,{languageName:N}){typeof M=="string"&&(M=[M]),M.forEach(F=>{n[F.toLowerCase()]=N})}function j(M){const N=z(M);return N&&!N.disableAutodetect}function L(M){M["before:highlightBlock"]&&!M["before:highlightElement"]&&(M["before:highlightElement"]=N=>{M["before:highlightBlock"](Object.assign({block:N.el},N))}),M["after:highlightBlock"]&&!M["after:highlightElement"]&&(M["after:highlightElement"]=N=>{M["after:highlightBlock"](Object.assign({block:N.el},N))})}function U(M){L(M),r.push(M)}function V(M){const N=r.indexOf(M);N!==-1&&r.splice(N,1)}function H(M,N){const F=M;r.forEach(function(w){w[F]&&w[F](N)})}function B(M){return us("10.7.0","highlightBlock will be removed entirely in v12.0"),us("10.7.0","Please use highlightElement now."),m(M)}Object.assign(e,{highlight:c,highlightAuto:p,highlightAll:k,highlightElement:m,highlightBlock:B,configure:y,initHighlighting:b,initHighlightingOnLoad:E,registerLanguage:x,unregisterLanguage:I,listLanguages:R,getLanguage:z,registerAliases:A,autoDetection:j,inherit:bS,addPlugin:U,removePlugin:V}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=yQ,e.regex={concat:Qa,lookahead:vI,either:KE,optional:DG,anyNumberOfTimes:MG};for(const M in _d)typeof _d[M]=="object"&&yI(_d[M]);return Object.assign(e,_d),e},ll=AI({});ll.newInstance=()=>AI({});var TQ=ll;ll.HighlightJS=ll;ll.default=ll;const kQ=Gp(TQ),ES={},xQ="hljs-";function SQ(e){const t=kQ.newInstance();return e&&o(e),{highlight:n,highlightAuto:r,listLanguages:i,register:o,registerAlias:a,registered:s};function n(l,u,c){const d=c||ES,f=typeof d.prefix=="string"?d.prefix:xQ;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:wQ,classPrefix:f});const p=t.highlight(u,{ignoreIllegals:!0,language:l});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const h=p._emitter.root,m=h.data;return m.language=p.language,m.relevance=p.relevance,h}function r(l,u){const d=(u||ES).subset||i();let f=-1,p=0,h;for(;++fp&&(p=y.data.relevance,h=y)}return h||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function o(l,u){if(typeof l=="string")t.registerLanguage(l,u);else{let c;for(c in l)Object.hasOwn(l,c)&&t.registerLanguage(c,l[c])}}function a(l,u){if(typeof l=="string")t.registerAliases(typeof u=="string"?u:[...u],{languageName:l});else{let c;for(c in l)if(Object.hasOwn(l,c)){const d=l[c];t.registerAliases(typeof d=="string"?d:[...d],{languageName:c})}}}function s(l){return!!t.getLanguage(l)}}class wQ{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(a,s){return s?a+"_".repeat(s):n.options.classPrefix+a}),i=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const _Q={};function CQ(e){const t=e||_Q,n=t.aliases,r=t.detect||!1,i=t.languages||NG,o=t.plainText,a=t.prefix,s=t.subset;let l="hljs";const u=SQ(i);if(n&&u.registerAlias(n),a){const c=a.indexOf("-");l=c>-1?a.slice(0,c):a}return function(c,d){Bc(c,"element",function(f,p,h){if(f.tagName!=="code"||!h||h.type!=="element"||h.tagName!=="pre")return;const m=NQ(f);if(m===!1||!m&&!r||m&&o&&o.includes(m))return;Array.isArray(f.properties.className)||(f.properties.className=[]),f.properties.className.includes(l)||f.properties.className.unshift(l);let y;try{y=m?u.highlight(m,aS(h),{prefix:a}):u.highlightAuto(aS(h),{prefix:a,subset:s})}catch(b){const E=b;if(m&&/Unknown language/.test(E.message)){d.message("Cannot highlight as `"+m+"`, it’s not registered",{ancestors:[h,f],cause:E,place:f.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw E}!m&&y.data&&y.data.language&&f.properties.className.push("language-"+y.data.language),y.children.length>0&&(f.children=y.children)})}}function NQ(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n>1}};jt.from=function(e){if(e instanceof jt)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new jt(t)};function OI(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),o=t.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let a=0;i.text[a]==o.text[a];a++)n++;return n}if(i.content.size||o.content.size){let a=OI(i.content,o.content,n+1);if(a!=null)return a}n+=i.nodeSize}}function II(e,t,n,r){for(let i=e.childCount,o=t.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let a=e.child(--i),s=t.child(--o),l=a.nodeSize;if(a==s){n-=l,r-=l;continue}if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let u=0,c=Math.min(a.text.length,s.text.length);for(;ut&&r(l,i+s,o||null,a)!==!1&&l.content.size){let c=s+1;l.nodesBetween(Math.max(0,t-c),Math.min(l.content.size,n-c),r,i+c)}s=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let o="",a=!0;return this.nodesBetween(t,n,(s,l)=>{let u=s.isText?s.text.slice(Math.max(t,l)-l,n-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&u||s.isTextblock)&&r&&(a?a=!1:o+=r),o+=u},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);ot)for(let o=0,a=0;at&&((an)&&(s.isText?s=s.cut(Math.max(0,t-a),Math.min(s.text.length,n-a)):s=s.cut(Math.max(0,t-a-1),Math.min(s.content.size,n-a-1))),r.push(s),i+=s.nodeSize),a=l}return new ee(r,i)}cutByIndex(t,n){return t==n?ee.empty:t==0&&n==this.content.length?this:new ee(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new ee(i,o)}addToStart(t){return new ee([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new ee(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,i=0;;r++){let o=this.child(r),a=i+o.nodeSize;if(a>=t)return a==t||n>0?Cd(r+1,a):Cd(r,i);i=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return ee.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ee(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return ee.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-i.type.rank),n}};qe.none=[];class rp extends Error{}class ae{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=MI(this.content,t+this.openStart,n);return r&&new ae(r,this.openStart,this.openEnd)}removeBetween(t,n){return new ae(RI(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return ae.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ae(ee.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let o=t.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=t.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new ae(t,r,i)}}ae.empty=new ae(ee.empty,0,0);function RI(e,t,n){let{index:r,offset:i}=e.findIndex(t),o=e.maybeChild(r),{index:a,offset:s}=e.findIndex(n);if(i==t||o.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(RI(o.content,t-i-1,n-i-1)))}function MI(e,t,n,r){let{index:i,offset:o}=e.findIndex(t),a=e.maybeChild(i);if(o==t||a.isText)return e.cut(0,t).append(n).append(e.cut(t));let s=MI(a.content,t-o-1,n);return s&&e.replaceChild(i,a.copy(s))}function AQ(e,t,n){if(n.openStart>e.depth)throw new rp("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new rp("Inconsistent open depths");return DI(e,t,n,0)}function DI(e,t,n,r){let i=e.index(r),o=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function ku(e,t,n,r){let i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(ka(e.nodeAfter,r),o++));for(let s=o;si&&Ub(e,t,i+1),a=r.depth>i&&Ub(n,r,i+1),s=[];return ku(null,e,i,s),o&&a&&t.index(i)==n.index(i)?(LI(o,a),ka(xa(o,PI(e,t,n,r,i+1)),s)):(o&&ka(xa(o,ip(e,t,i+1)),s),ku(t,n,i,s),a&&ka(xa(a,ip(n,r,i+1)),s)),ku(r,null,i,s),new ee(s)}function ip(e,t,n){let r=[];if(ku(null,e,n,r),e.depth>n){let i=Ub(e,t,n+1);ka(xa(i,ip(e,t,n+1)),r)}return ku(t,null,n,r),new ee(r)}function OQ(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let o=n-1;o>=0;o--)i=t.node(o).copy(ee.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class rc{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new op(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let a=t;;){let{index:s,offset:l}=a.content.findIndex(o),u=o-l;if(r.push(a,s,i+l),!u||(a=a.child(s),a.isText))break;o=u-1,i+=l+1}return new rc(n,r,o)}static resolveCached(t,n){let r=vS.get(t);if(r)for(let o=0;ot&&this.nodesBetween(t,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),BI(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=ee.empty,i=0,o=r.childCount){let a=this.contentMatchAt(t).matchFragment(r,i,o),s=a&&a.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;ln.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=ee.fromJSON(t,n.content),o=t.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};Sa.prototype.text=void 0;class ap extends Sa{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):BI(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new ap(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new ap(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function BI(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Fa{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new DQ(t,n);if(r.next==null)return Fa.empty;let i=zI(r);r.next&&r.err("Unexpected trailing text");let o=UQ(HQ(i));return jQ(o,r),o}matchType(t){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i{let o=i+(r.validEnd?"*":" ")+" ";for(let a=0;a"+t.indexOf(r.next[a].next);return o}).join(` +`)}}Fa.empty=new Fa(!0);class DQ{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function zI(e){let t=[];do t.push(LQ(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function LQ(e){let t=[];do t.push(PQ(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function PQ(e){let t=FQ(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=BQ(e,t);else break;return t}function TS(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function BQ(e,t){let n=TS(e),r=n;return e.eat(",")&&(e.next!="}"?r=TS(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function zQ(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let o in n){let a=n[o];a.isInGroup(t)&&i.push(a)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function FQ(e){if(e.eat("(")){let t=zI(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=zQ(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function HQ(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(a,s,l){let u={term:l,to:s};return t[a].push(u),u}function i(a,s){a.forEach(l=>l.to=s)}function o(a,s){if(a.type=="choice")return a.exprs.reduce((l,u)=>l.concat(o(u,s)),[]);if(a.type=="seq")for(let l=0;;l++){let u=o(a.exprs[l],s);if(l==a.exprs.length-1)return u;i(u,s=n())}else if(a.type=="star"){let l=n();return r(s,l),i(o(a.expr,l),l),[r(l)]}else if(a.type=="plus"){let l=n();return i(o(a.expr,s),l),i(o(a.expr,l),l),[r(l)]}else{if(a.type=="opt")return[r(s)].concat(o(a.expr,s));if(a.type=="range"){let l=s;for(let u=0;u{e[a].forEach(({term:s,to:l})=>{if(!s)return;let u;for(let c=0;c{u||i.push([s,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let o=t[r.join(",")]=new Fa(r.indexOf(e.length-1)>-1);for(let a=0;a-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:UI(this.attrs,t)}create(t=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Sa(this,this.computeAttrs(t),ee.from(n),qe.setFrom(r))}createChecked(t=null,n,r){return n=ee.from(n),this.checkContent(n),new Sa(this,this.computeAttrs(t),n,qe.setFrom(r))}createAndFill(t=null,n,r){if(t=this.computeAttrs(t),n=ee.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(ee.empty,!0);return o?new Sa(this,t,n.append(o),qe.setFrom(r)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let r=0;r-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;nr[o]=new WI(o,n,a));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function $Q(e,t,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}class WQ{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?$Q(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class om{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=$I(t,i.attrs),this.excluded=null;let o=HI(this.attrs);this.instance=o?new qe(this,o):null}create(t=null){return!t&&this.instance?this.instance:new qe(this,UI(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((o,a)=>r[o]=new om(o,i++,n,a)),r}removeFromSet(t){for(var n=0;n-1}}class VI{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=jt.from(t.nodes),n.marks=jt.from(t.marks||{}),this.nodes=xS.compile(this.spec.nodes,this),this.marks=om.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],a=o.spec.content||"",s=o.spec.marks;if(o.contentMatch=r[a]||(r[a]=Fa.parse(a,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=s=="_"?null:s?SS(this,s.split(" ")):s==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],a=o.spec.excludes;o.excluded=a==null?[o]:a==""?[]:SS(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof xS){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new ap(r,r.defaultAttrs,t,qe.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return Sa.fromJSON(this,t)}markFromJSON(t){return qe.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function SS(e,t){let n=[];for(let r=0;r-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function VQ(e){return e.tag!=null}function qQ(e){return e.style!=null}class _o{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(VQ(i))this.tags.push(i);else if(qQ(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=t.nodes[i.node];return o.contentMatch.matchType(o)})}parse(t,n={}){let r=new _S(this,n,!1);return r.addAll(t,qe.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new _S(this,n,!0);return r.addAll(t,qe.none,n.from,n.to),ae.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;it.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(a.getAttrs){let l=a.getAttrs(n);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(t){let n=[];function r(i){let o=i.priority==null?50:i.priority,a=0;for(;a{r(a=CS(a)),a.mark||a.ignore||a.clearMark||(a.mark=i)})}for(let i in t.nodes){let o=t.nodes[i].spec.parseDOM;o&&o.forEach(a=>{r(a=CS(a)),a.node||a.ignore||a.mark||(a.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new _o(t,_o.schemaRules(t)))}}const qI={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},YQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},YI={ol:!0,ul:!0},sp=1,lp=2,xu=4;function wS(e,t,n){return t!=null?(t?sp:0)|(t==="full"?lp:0):e&&e.whitespace=="pre"?sp|lp:n&~xu}class Nd{constructor(t,n,r,i,o,a){this.type=t,this.attrs=n,this.marks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=qe.none,this.match=o||(a&xu?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(ee.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&sp)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=ee.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(ee.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!qI.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class _S{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0;let i=n.topNode,o,a=wS(null,n.preserveWhitespace,0)|(r?xu:0);i?o=new Nd(i.type,i.attrs,qe.none,!0,n.topMatch||i.type.contentMatch,a):r?o=new Nd(null,null,qe.none,!0,null,a):o=new Nd(t.schema.topNodeType,null,qe.none,!0,null,a),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,i=this.top;if(i.options&lp||i.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(i.options&sp)i.options&lp?r=r.replace(/\r\n?/g,` +`):r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=i.content[i.content.length-1],a=t.previousSibling;(!o||a&&a.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let i=t.nodeName.toLowerCase(),o;YI.hasOwnProperty(i)&&this.parser.normalizeLists&&KQ(t);let a=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(o=this.parser.matchTag(t,this,r));if(a?a.ignore:YQ.hasOwnProperty(i))this.findInside(t),this.ignoreFallback(t,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(t=a.skip);let s,l=this.top,u=this.needsBlock;if(qI.hasOwnProperty(i))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);return}let c=a&&a.skip?n:this.readStyles(t,n);c&&this.addAll(t,c),s&&this.sync(l),this.needsBlock=u}else{let s=this.readStyles(t,n);s&&this.addElementByRule(t,a,s,a.consuming===!1?o:void 0)}}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` +`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let i=0;i!l.clearMark(u)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return n}addElementByRule(t,n,r,i){let o,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),r)||this.leafFallback(t,r);else{let l=this.enter(a,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let s=this.top;if(a&&a.isLeaf)this.findInside(t);else if(i)this.addElement(t,r,i);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l,r));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l,r),this.findAround(t,l,!1)}o&&this.sync(s)&&this.open--}addAll(t,n,r,i){let o=r||0;for(let a=r?t.childNodes[r]:t.firstChild,s=i==null?null:t.childNodes[i];a!=s;a=a.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(a,n);this.findAtPoint(t,o)}findPlace(t,n){let r,i;for(let o=this.open;o>=0;o--){let a=this.nodes[o],s=a.findWrapping(t);if(s&&(!r||r.length>s.length)&&(r=s,i=a,!s.length)||a.solid)break}if(!r)return null;this.sync(i);for(let o=0;o(a.type?a.type.allowsMarkType(u.type):NS(u.type,t))?(l=u.addToSet(l),!1):!0),this.nodes.push(new Nd(t,n,l,i,null,s)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let n=this.open;n>=0;n--)if(this.nodes[n]==t)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=(s,l)=>{for(;s>=0;s--){let u=n[s];if(u==""){if(s==n.length-1||s==0)continue;for(;l>=o;l--)if(a(s-1,l))return!0;return!1}else{let c=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;l--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function KQ(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&YI.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function GQ(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function CS(e){let t={};for(let n in e)t[n]=e[n];return t}function NS(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],a=s=>{o.push(s);for(let l=0;l{if(o.length||a.marks.length){let s=0,l=0;for(;s=0;i--){let o=this.serializeMark(t.marks[i],t.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&lf(Pg(r),i(t,n),null,t.attrs)}static renderSpec(t,n,r=null,i){return lf(t,n,r,i)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Xa(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=AS(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return AS(t.marks)}}function AS(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Pg(e){return e.document||window.document}const OS=new WeakMap;function QQ(e){let t=OS.get(e);return t===void 0&&OS.set(e,t=XQ(e)),t}function XQ(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let i=0;i-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=i.indexOf(" ");a>0&&(n=i.slice(0,a),i=i.slice(a+1));let s,l=n?e.createElementNS(n,i):e.createElement(i),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),u[d]):l.setAttribute(d,u[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:p,contentDOM:h}=lf(e,f,n,r);if(l.appendChild(p),h){if(s)throw new RangeError("Multiple content holes");s=h}}}return{dom:l,contentDOM:s}}const KI=65535,GI=Math.pow(2,16);function JQ(e,t){return e+t*GI}function IS(e){return e&KI}function ZQ(e){return(e-(e&KI))/GI}const QI=1,XI=2,uf=4,JI=8;class $b{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&JI)>0}get deletedBefore(){return(this.delInfo&(QI|uf))>0}get deletedAfter(){return(this.delInfo&(XI|uf))>0}get deletedAcross(){return(this.delInfo&uf)>0}}class Fn{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Fn.empty)return Fn.empty}recover(t){let n=0,r=IS(t);if(!this.inverted)for(let i=0;it)break;let u=this.ranges[s+o],c=this.ranges[s+a],d=l+u;if(t<=d){let f=u?t==l?-1:t==d?1:n:n,p=l+i+(f<0?0:c);if(r)return p;let h=t==(n<0?l:d)?null:JQ(s/3,t-l),m=t==l?XI:t==d?QI:uf;return(n<0?t!=l:t!=d)&&(m|=JI),new $b(p,m,h)}i+=c-u}return r?t+i:new $b(t+i,0,null)}touches(t,n){let r=0,i=IS(n),o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;st)break;let u=this.ranges[s+o],c=l+u;if(t<=c&&s==i*3)return!0;r+=this.ranges[s+a]-u}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i=0;n--){let i=t.getMirror(n);this.appendMap(t.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new Ws;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;ro&&l!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),i),n.openStart,n.openEnd);return Tt.fromReplace(t,this.from,this.to,o)}invert(){return new ei(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new mo(n.pos,r.pos,this.mark)}merge(t){return t instanceof mo&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new mo(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new mo(n.from,n.to,t.markFromJSON(n.mark))}}un.jsonID("addMark",mo);class ei extends un{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new ae(XE(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return Tt.fromReplace(t,this.from,this.to,r)}invert(){return new mo(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new ei(n.pos,r.pos,this.mark)}merge(t){return t instanceof ei&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new ei(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new ei(n.from,n.to,t.markFromJSON(n.mark))}}un.jsonID("removeMark",ei);class go extends un{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Tt.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Tt.fromReplace(t,this.pos,this.pos+1,new ae(ee.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new Pt(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Pt(n.from,n.to,n.gapFrom,n.gapTo,ae.fromJSON(t,n.slice),n.insert,!!n.structure)}}un.jsonID("replaceAround",Pt);function Wb(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let a=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}}return!1}function eX(e,t,n,r){let i=[],o=[],a,s;e.doc.nodesBetween(t,n,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let f=Math.max(u,t),p=Math.min(u+l.nodeSize,n),h=r.addToSet(d);for(let m=0;me.step(l)),o.forEach(l=>e.step(l))}function tX(e,t,n,r){let i=[],o=0;e.doc.nodesBetween(t,n,(a,s)=>{if(!a.isInline)return;o++;let l=null;if(r instanceof om){let u=a.marks,c;for(;c=r.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(a.marks)&&(l=[r]):l=a.marks;if(l&&l.length){let u=Math.min(s+a.nodeSize,n);for(let c=0;ce.step(new ei(a.from,a.to,a.style)))}function JE(e,t,n,r=n.contentMatch,i=!0){let o=e.doc.nodeAt(t),a=[],s=t+1;for(let l=0;l=0;l--)e.step(a[l])}function nX(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Al(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let i=e.$from.node(r),o=e.$from.index(r),a=e.$to.indexAfter(r);if(rn;h--)m||r.index(h)>0?(m=!0,c=ee.from(r.node(h).copy(c)),d++):l--;let f=ee.empty,p=0;for(let h=o,m=!1;h>n;h--)m||i.after(h+1)=0;a--){if(r.size){let s=n[a].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=ee.from(n[a].type.create(n[a].attrs,r))}let i=t.start,o=t.end;e.step(new Pt(i,o,i,o,new ae(r,0,0),n.length,!0))}function sX(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,n,(a,s)=>{let l=typeof i=="function"?i(a):i;if(a.isTextblock&&!a.hasMarkup(r,l)&&lX(e.doc,e.mapping.slice(o).map(s),r)){let u=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",h=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!h?u=!1:!p&&h&&(u=!0)}u===!1&&eR(e,a,s,o),JE(e,e.mapping.slice(o).map(s,1),r,void 0,u===null);let c=e.mapping.slice(o),d=c.map(s,1),f=c.map(s+a.nodeSize,1);return e.step(new Pt(d,f,d+1,f-1,new ae(ee.from(r.create(l,null,a.marks)),0,0),1,!0)),u===!0&&ZI(e,a,s,o),!1}})}function ZI(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(i.text);){let l=e.mapping.slice(r).map(n+1+o+a.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}}})}function eR(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let a=e.mapping.slice(r).map(n+1+o);e.replaceWith(a,a+1,t.type.schema.text(` +`))}})}function lX(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function uX(e,t,n,r,i){let o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let a=n.create(r,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,a);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Pt(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new ae(ee.from(a),0,0),1,!0))}function Vs(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let u=i.depth-1,c=n-2;u>o;u--,c--){let d=i.node(u),f=i.index(u);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(f,d.childCount),h=r&&r[c+1];h&&(p=p.replaceChild(0,h.type.create(h.attrs)));let m=r&&r[c]||d;if(!d.canReplace(f+1,d.childCount)||!m.type.validContent(p))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function cX(e,t,n=1,r){let i=e.doc.resolve(t),o=ee.empty,a=ee.empty;for(let s=i.depth,l=i.depth-n,u=n-1;s>l;s--,u--){o=ee.from(i.node(s).copy(o));let c=r&&r[u];a=ee.from(c?c.type.create(c.attrs,a):i.node(s).copy(a))}e.step(new Mt(t,t,new ae(o.append(a),n,n),!0))}function Ko(e,t){let n=e.resolve(t),r=n.index();return tR(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function dX(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i0?(o=r.node(i+1),s++,a=r.node(i).maybeChild(s)):(o=r.node(i).maybeChild(s-1),a=r.node(i+1)),o&&!o.isTextblock&&tR(o,a)&&r.node(i).canReplace(s,s+1))return t;if(i==0)break;t=n<0?r.before(i):r.after(i)}}function fX(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,o=e.doc.resolve(t-n),a=o.node().type;if(i&&a.inlineContent){let c=a.whitespace=="pre",d=!!a.contentMatch.matchType(i);c&&!d?r=!1:!c&&d&&(r=!0)}let s=e.steps.length;if(r===!1){let c=e.doc.resolve(t+n);eR(e,c.node(),c.before(),s)}a.inlineContent&&JE(e,t+n-1,a,o.node().contentMatchAt(o.index()),r==null);let l=e.mapping.slice(s),u=l.map(t-n);if(e.step(new Mt(u,l.map(t+n,-1),ae.empty,!0)),r===!0){let c=e.doc.resolve(u);ZI(e,c.node(),c.before(),e.steps.length)}return e}function pX(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o=0;a--){let s=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,l=r.index(a)+(s>0?1:0),u=r.node(a),c=!1;if(o==1)c=u.canReplace(l,l,i);else{let d=u.contentMatchAt(l).findWrapping(i.firstChild.type);c=d&&u.canReplaceWith(l,l,d[0])}if(c)return s==0?r.pos:s<0?r.before(a+1):r.after(a+1)}return null}function sm(e,t,n=t,r=ae.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),o=e.resolve(n);return rR(i,o,r)?new Mt(t,n,r):new hX(i,o,r).fit()}function rR(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class hX{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=ee.empty;for(let i=0;i<=t.depth;i++){let o=t.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=ee.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let o=this.placed,a=r.depth,s=i.depth;for(;a&&s&&o.childCount==1;)o=o.firstChild.content,a--,s--;let l=new ae(o,a,s);return t>-1?new Pt(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Mt(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),o.type.spec.isolating&&i<=r){t=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=zg(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let a=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:u}=this.frontier[s],c,d=null;if(n==1&&(a?u.matchType(a.type)||(d=u.fillBefore(ee.from(a),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:s,parent:o,inject:d};if(n==2&&a&&(c=u.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:s,parent:o,wrap:c};if(o&&u.matchType(o.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=zg(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new ae(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=zg(t,n);if(i.childCount<=1&&n>0){let o=t.size-n<=n+i.size;this.unplaced=new ae(nu(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new ae(nu(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let m=0;m1||l==0||m.content.size)&&(d=y,c.push(iR(m.mark(f.allowedMarks(m.marks)),u==1?l:0,u==s.childCount?p:-1)))}let h=u==s.childCount;h||(p=-1),this.placed=ru(this.placed,n,ee.from(c)),this.frontier[n].match=d,h&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,y=s;m1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n=0;s--){let{match:l,type:u}=this.frontier[s],c=Fg(t,s,u,l,!0);if(!c||c.childCount)continue e}return{depth:n,fit:a,move:o?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=ru(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,o)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=ru(this.placed,this.depth,ee.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(ee.empty,!0);n.childCount&&(this.placed=ru(this.placed,this.frontier.length,n))}}function nu(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(nu(e.firstChild.content,t-1,n)))}function ru(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(ru(e.lastChild.content,t-1,n)))}function zg(e,t){for(let n=0;n1&&(r=r.replaceChild(0,iR(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(ee.empty,!0)))),e.copy(r)}function Fg(e,t,n,r,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!mX(n,o.content,a)?s:null}function mX(e,t,n){for(let r=n;r0;f--,p--){let h=i.node(f).type.spec;if(h.defining||h.definingAsContext||h.isolating)break;a.indexOf(f)>-1?s=f:i.before(f)==p&&a.splice(1,0,-f)}let l=a.indexOf(s),u=[],c=r.openStart;for(let f=r.content,p=0;;p++){let h=f.firstChild;if(u.push(h),p==r.openStart)break;f=h.content}for(let f=c-1;f>=0;f--){let p=u[f],h=gX(p.type);if(h&&!p.sameMarkup(i.node(Math.abs(s)-1)))c=f;else if(h||!p.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let p=(f+c+1)%(r.openStart+1),h=u[p];if(h)for(let m=0;m=0&&(e.replace(t,n,r),!(e.steps.length>d));f--){let p=a[f];p<0||(t=i.before(p),n=o.after(p))}}function oR(e,t,n,r,i){if(tr){let o=i.contentMatchAt(0),a=o.fillBefore(e).append(e);e=a.append(o.matchFragment(a).fillBefore(ee.empty,!0))}return e}function yX(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=pX(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new ae(ee.from(r),0,0))}function EX(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=aR(r,i);for(let a=0;a0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return e.delete(r.before(s),i.after(s))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function aR(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let o=e.start(i);if(ot.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&n.push(i)}return n}class qs extends un{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Tt.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Tt.fromReplace(t,this.pos,this.pos+1,new ae(ee.from(i),0,n.isLeaf?0:1))}getMap(){return Fn.empty}invert(t){return new qs(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new qs(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new qs(n.pos,n.attr,n.value)}}un.jsonID("attr",qs);class ic extends un{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let i in t.attrs)n[i]=t.attrs[i];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return Tt.ok(r)}getMap(){return Fn.empty}invert(t){return new ic(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new ic(n.attr,n.value)}}un.jsonID("docAttr",ic);let cl=class extends Error{};cl=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};cl.prototype=Object.create(Error.prototype);cl.prototype.constructor=cl;cl.prototype.name="TransformError";class sR{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Ws}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new cl(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=ae.empty){let i=sm(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new ae(ee.from(r),0,0))}delete(t,n){return this.replace(t,n,ae.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return bX(this,t,n,r),this}replaceRangeWith(t,n,r){return yX(this,t,n,r),this}deleteRange(t,n){return EX(this,t,n),this}lift(t,n){return rX(this,t,n),this}join(t,n=1){return fX(this,t,n),this}wrap(t,n){return aX(this,t,n),this}setBlockType(t,n=t,r,i=null){return sX(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return uX(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new qs(t,n,r)),this}setDocAttribute(t,n){return this.step(new ic(t,n)),this}addNodeMark(t,n){return this.step(new go(t,n)),this}removeNodeMark(t,n){if(!(n instanceof qe)){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n=n.isInSet(r.marks),!n)return this}return this.step(new ul(t,n)),this}split(t,n=1,r){return cX(this,t,n,r),this}addMark(t,n,r){return eX(this,t,n,r),this}removeMark(t,n,r){return tX(this,t,n,r),this}clearIncompatible(t,n,r){return JE(this,t,n,r),this}}const Hg=Object.create(null);class ke{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new vX(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;o--){let a=n<0?bs(t.node(0),t.node(o),t.before(o+1),t.index(o),n,r):bs(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,n,r);if(a)return a}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new Dr(t.node(0))}static atStart(t){return bs(t,t,0,0,1)||new Dr(t)}static atEnd(t){return bs(t,t,t.content.size,t.childCount,-1)||new Dr(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Hg[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in Hg)throw new RangeError("Duplicate use of selection JSON ID "+t);return Hg[t]=n,n.prototype.jsonID=t,n}getBookmark(){return ve.between(this.$anchor,this.$head).getBookmark()}}ke.prototype.visible=!0;class vX{constructor(t,n){this.$from=t,this.$to=n}}let MS=!1;function DS(e){!MS&&!e.parent.inlineContent&&(MS=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class ve extends ke{constructor(t,n=t){DS(t),DS(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return ke.near(r);let i=t.resolve(n.map(this.anchor));return new ve(i.parent.inlineContent?i:r,r)}replace(t,n=ae.empty){if(super.replace(t,n),n==ae.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof ve&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new lm(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new ve(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=ke.findFrom(n,r,!0)||ke.findFrom(n,-r,!0);if(o)n=o.$head;else return ke.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(ke.findFrom(t,-r,!0)||ke.findFrom(t,r,!0)).$anchor,t.pos0?0:1);i>0?a=0;a+=i){let s=t.child(a);if(s.isAtom){if(!o&&me.isSelectable(s))return me.create(e,n-(i<0?s.nodeSize:0))}else{let l=bs(e,s,n+i,i<0?s.childCount:0,i,o);if(l)return l}n+=s.nodeSize*i}return null}function LS(e,t,n){let r=e.steps.length-1;if(r{a==null&&(a=c)}),e.setSelection(ke.near(e.doc.resolve(a),n))}const PS=1,Ad=2,BS=4;class kX extends sR{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=Ad,this}ensureMarks(t){return qe.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ad)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~Ad,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||qe.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let i=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!t)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let a=this.doc.resolve(n);o=r==n?a.marks():a.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(t,o)),this.selection.empty||this.setSelection(ke.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=BS,this}get scrolledIntoView(){return(this.updated&BS)>0}}function zS(e,t){return!t||!e?e:e.bind(t)}class iu{constructor(t,n,r){this.name=t,this.init=zS(n.init,r),this.apply=zS(n.apply,r)}}const xX=[new iu("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new iu("selection",{init(e,t){return e.selection||ke.atStart(t.doc)},apply(e){return e.selection}}),new iu("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new iu("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class Ug{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=xX.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new iu(r.key,r.spec.state,r))})}}class Ms{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;rr.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new Ug(t.schema,t.plugins),o=new Ms(i);return i.fields.forEach(a=>{if(a.name=="doc")o.doc=Sa.fromJSON(t.schema,n.doc);else if(a.name=="selection")o.selection=ke.fromJSON(o.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],u=l.spec.state;if(l.key==a.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){o[a.name]=u.fromJSON.call(l,t,n[s],o);return}}o[a.name]=a.init(t,o)}}),o}}function lR(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=lR(i,t,{})),n[r]=i}return n}class Qt{constructor(t){this.spec=t,this.props={},t.props&&lR(t.props,this,this.props),this.key=t.key?t.key.key:uR("plugin")}getState(t){return t[this.key]}}const jg=Object.create(null);function uR(e){return e in jg?e+"$"+ ++jg[e]:(jg[e]=0,e+"$")}class Xn{constructor(t="key"){this.key=uR(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const Wt=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},oc=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let Vb=null;const Ei=function(e,t,n){let r=Vb||(Vb=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},SX=function(){Vb=null},Ha=function(e,t,n,r){return n&&(FS(e,t,n,r,-1)||FS(e,t,n,r,1))},wX=/^(img|br|input|textarea|hr)$/i;function FS(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:sr(e))){let o=e.parentNode;if(!o||o.nodeType!=1||Uc(e)||wX.test(e.nodeName)||e.contentEditable=="false")return!1;t=Wt(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?sr(e):0}else return!1}}function sr(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function _X(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=sr(e)}else if(e.parentNode&&!Uc(e))t=Wt(e),e=e.parentNode;else return null}}function CX(e,t){for(;;){if(e.nodeType==3&&t2),nr=dl||(oi?/Mac/.test(oi.platform):!1),IX=oi?/Win/.test(oi.platform):!1,Nr=/Android \d/.test(Go),jc=!!HS&&"webkitFontSmoothing"in HS.documentElement.style,RX=jc?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function MX(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function mi(e,t){return typeof e=="number"?e:e[t]}function DX(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function US(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;a;a=oc(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,u=l?MX(o):DX(s),c=0,d=0;if(t.topu.bottom-mi(r,"bottom")&&(d=t.bottom-t.top>u.bottom-u.top?t.top+mi(i,"top")-u.top:t.bottom-u.bottom+mi(i,"bottom")),t.leftu.right-mi(r,"right")&&(c=t.right-u.right+mi(i,"right")),c||d)if(l)o.defaultView.scrollBy(c,d);else{let f=s.scrollLeft,p=s.scrollTop;d&&(s.scrollTop+=d),c&&(s.scrollLeft+=c);let h=s.scrollLeft-f,m=s.scrollTop-p;t={left:t.left-h,top:t.top-m,right:t.right-h,bottom:t.bottom-m}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function LX(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let o=(t.left+t.right)/2,a=n+1;a=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:fR(e.dom)}}function fR(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=oc(r));return t}function PX({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;pR(n,r==0?0:r-t)}function pR(e,t){for(let n=0;n=s){a=Math.max(h.bottom,a),s=Math.min(h.top,s);let m=h.left>t.left?h.left-t.left:h.right=(h.left+h.right)/2?1:0));continue}}else h.top>t.top&&!l&&h.left<=t.left&&h.right>=t.left&&(l=c,u={left:Math.max(h.left,Math.min(h.right,t.left)),top:h.top});!n&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(o=d+1)}}return!n&&l&&(n=l,i=u,r=0),n&&n.nodeType==3?zX(n,i):!n||r&&n.nodeType==1?{node:e,offset:o}:hR(n,i)}function zX(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function tv(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function FX(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function UX(e,t,n,r){let i=-1;for(let o=t,a=!1;o!=e.dom;){let s=e.docView.nearestDesc(o,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right-1?i:e.docView.posFromDOM(t,n,-1)}function mR(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}let u;jc&&i&&r.nodeType==1&&(u=r.childNodes[i-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=UX(e,r,i,t))}s==null&&(s=HX(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function jS(e){return e.top=0&&i==r.nodeValue.length?(l--,c=1):n<0?l--:u++,Gl(Zi(Ei(r,l,u),c),c<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==sr(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return $g(l.getBoundingClientRect(),!1)}if(o==null&&i=0)}if(o==null&&i&&(n<0||i==sr(r))){let l=r.childNodes[i-1],u=l.nodeType==3?Ei(l,sr(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Gl(Zi(u,1),!1)}if(o==null&&i=0)}function Gl(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function $g(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function bR(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function WX(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return bR(e,t,()=>{let{node:o}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=gR(e,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Ei(s,0,s.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?a.top-c.top>(c.bottom-a.top)*2:c.bottom-a.bottom>(a.bottom-c.top)*2))return!1}}return!0})}const VX=/[\u0590-\u08ac]/;function qX(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return s?!VX.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:bR(e,t,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:d}=e.domSelectionRange(),f=s.caretBidiLevel;s.modify("move",n,"character");let p=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:h,focusOffset:m}=e.domSelectionRange(),y=h&&!p.contains(h.nodeType==1?h:h.parentNode)||l==h&&u==m;try{s.collapse(c,d),l&&(l!=c||u!=d)&&s.extend&&s.extend(l,u)}catch{}return f!=null&&(s.caretBidiLevel=f),y}):r.pos==r.start()||r.pos==r.end()}let $S=null,WS=null,VS=!1;function YX(e,t,n){return $S==t&&WS==n?VS:($S=t,WS=n,VS=n=="up"||n=="down"?WX(e,t,n):qX(e,t,n))}const fr=0,qS=1,fa=2,ai=3;class $c{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=fr,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;nWt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||a instanceof ER){i=t-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof yR&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Wt(o.dom)+1:0}}else{let o,a=!0;for(;o=r=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,c);t=a;for(let d=s;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){i=Wt(f.dom)+1;break}t-=f.size}i==-1&&(i=0)}if(i>-1&&(u>n||s==this.children.length-1)){n=u;for(let c=s+1;cp&&an){let p=s;s=l,l=p}let f=document.createRange();f.setEnd(l.node,l.offset),f.setStart(s.node,s.offset),u.removeAllRanges(),u.addRange(f)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i=r:tr){let s=r+o.border,l=a-o.border;if(t>=s&&n<=l){this.dirty=t==r||n==a?fa:qS,t==s&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=ai:o.markDirty(t-s,n-s);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?fa:ai}r=a}this.dirty=fa}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?fa:qS;n.dirty{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=n,this.widget=n,o=this}matchesWidget(t){return this.dirty==fr&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class KX extends $c{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Ua extends $c{constructor(t,n,r,i,o){super(t,[],r,i),this.mark=n,this.spec=o}static create(t,n,r,i){let o=i.nodeViews[n.type.name],a=o&&o(n,i,r);return(!a||!a.dom)&&(a=Xa.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Ua(t,n,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&ai||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=ai&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=fr){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(o=Qb(o,0,t,r));for(let s=0;s{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},r,i),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=Xa.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let f=c;return c=kR(c,r,n),u?l=new GX(t,n,r,i,c,d||null,f,u,o,a+1):n.isText?new cm(t,n,r,i,c,f,o):new No(t,n,r,i,c,d||null,f,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>ee.empty)}return t}matchesNode(t,n,r){return this.dirty==fr&&t.eq(this.node)&&up(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,o=t.composing?this.localCompositionInfo(t,n):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new XX(this,a&&a.node,t);eJ(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?l.syncToMarks(u.spec.marks,r,t):u.type.side>=0&&!d&&l.syncToMarks(c==this.node.childCount?qe.none:this.node.child(c).marks,r,t),l.placeWidget(u,t,i)},(u,c,d,f)=>{l.syncToMarks(u.marks,r,t);let p;l.findNodeMatch(u,c,d,f)||s&&t.state.selection.from>i&&t.state.selection.to-1&&l.updateNodeAt(u,c,d,p,t)||l.updateNextNode(u,c,d,t,f,i)||l.addNode(u,c,d,t,i),i+=u.nodeSize}),l.syncToMarks([],r,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==fa)&&(a&&this.protectLocalComposition(t,a),vR(this.contentDOM,this.children,t),dl&&tJ(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof ve)||rn+this.node.content.size)return null;let o=t.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,s=nJ(this.node.content,a,r-n,i-n);return s<0?null:{node:o,pos:s,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new KX(this,o,n,i);t.input.compositionNodes.push(a),this.children=Qb(this.children,r,r+i.length,t,a)}update(t,n,r,i){return this.dirty==ai||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=fr}updateOuterDeco(t){if(up(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=TR(this.dom,this.nodeDOM,Gb(this.outerDeco,this.node,n),Gb(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function YS(e,t,n,r,i){kR(r,t,e);let o=new No(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class cm extends No{constructor(t,n,r,i,o,a,s){super(t,n,r,i,o,null,a,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==ai||this.dirty!=fr&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=fr||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=fr,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),o=document.createTextNode(i.text);return new cm(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=ai)}get domAtom(){return!1}isText(t){return this.node.text==t}}class ER extends $c{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==fr&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class GX extends No{constructor(t,n,r,i,o,a,s,l,u,c){super(t,n,r,i,o,a,s,u,c),this.spec=l}update(t,n,r,i){if(this.dirty==ai)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let o=this.spec.update(t,n,r);return o&&this.updateInner(t,n,r,i),o}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function vR(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o>1,a=Math.min(o,t.length);for(;i-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=Ua.create(this.top,t[o],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(t,n,r,i){let o=-1,a;if(i>=this.preMatch.index&&(a=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,r))o=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let u=n.children[r-1];if(u instanceof Ua)n=u,r=u.children.length;else{s=u,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function ZX(e,t){return e.type.side-t.type.side}function eJ(e,t,n,r){let i=t.locals(e),o=0;if(i.length==0){for(let u=0;uo;)s.push(i[a++]);let h=o+f.nodeSize;if(f.isText){let y=h;a!y.inline):s.slice();r(f,m,t.forChild(o,f),p),o=h}}function tJ(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function nJ(e,t,n,r){for(let i=0,o=0;i=n){if(o>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;let u=s=0&&u+t.length+s>=n)return s+u;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function Qb(e,t,n,r,i){let o=[];for(let a=0,s=0;a=n||c<=t?o.push(l):(un&&o.push(l.slice(n-u,l.size,r)))}return o}function nv(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),o=i&&i.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),l,u;if(um(n)){for(l=a;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&me.isSelectable(d)&&i.parent&&!(d.isInline&&NX(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;u=new me(a==f?s:r.resolve(f))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=a,f=a;for(let p=0;p{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!xR(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function iJ(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let r=e.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setStart(r.parentNode,Wt(r)+1):n.setStart(r,0),n.collapse(!0),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&In&&Co<=11&&(r.disabled=!0,r.disabled=!1)}function SR(e,t){if(t instanceof me){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(JS(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else JS(e)}function JS(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function rv(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||ve.between(t,n,r)}function ZS(e){return e.editable&&!e.hasFocus()?!1:wR(e)}function wR(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function oJ(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Ha(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Xb(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&ke.findFrom(o,t)}function no(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function ew(e,t,n){let r=e.state.selection;if(r instanceof ve)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=e.state.doc.resolve(i.pos+o.nodeSize*(t<0?-1:1));return no(e,new ve(r.$anchor,a))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=Xb(e.state,t);return i&&i instanceof me?no(e,i):!1}else if(!(nr&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,a;if(!o||o.isText)return!1;let s=t<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(a=e.docView.descAt(s))&&!a.contentDOM?me.isSelectable(o)?no(e,new me(t<0?e.state.doc.resolve(i.pos-o.nodeSize):i)):jc?no(e,new ve(e.state.doc.resolve(t<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof me&&r.node.isInline)return no(e,new ve(t>0?r.$to:r.$from));{let i=Xb(e.state,t);return i?no(e,i):!1}}}function cp(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function wu(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function ds(e,t){return t<0?aJ(e):sJ(e)}function aJ(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,a=!1;for(zr&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(wu(s,-1))i=n,o=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(_R(n))break;{let s=n.previousSibling;for(;s&&wu(s,-1);)i=n.parentNode,o=Wt(s),s=s.previousSibling;if(s)n=s,r=cp(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?Jb(e,n,r):i&&Jb(e,i,o)}function sJ(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=cp(n),o,a;for(;;)if(r{e.state==i&&_i(e)},50)}function tw(e,t){let n=e.state.doc.resolve(t);if(!(on||IX)&&n.parent.inlineContent){let i=e.coordsAtPos(t);if(t>n.start()){let o=e.coordsAtPos(t-1),a=(o.top+o.bottom)/2;if(a>i.top&&a1)return o.lefti.top&&a1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function nw(e,t,n){let r=e.state.selection;if(r instanceof ve&&!r.empty||n.indexOf("s")>-1||nr&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=Xb(e.state,t);if(a&&a instanceof me)return no(e,a)}if(!i.parent.inlineContent){let a=t<0?i:o,s=r instanceof Dr?ke.near(a,t):ke.findFrom(a,t);return s?no(e,s):!1}return!1}function rw(e,t){if(!(e.state.selection instanceof ve))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=e.state.tr;return t<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),e.dispatch(a),!0}return!1}function iw(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function cJ(e){if(!hn||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;iw(e,r,"true"),setTimeout(()=>iw(e,r,"false"),20)}return!1}function dJ(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function fJ(e,t){let n=t.keyCode,r=dJ(t);if(n==8||nr&&n==72&&r=="c")return rw(e,-1)||ds(e,-1);if(n==46&&!t.shiftKey||nr&&n==68&&r=="c")return rw(e,1)||ds(e,1);if(n==13||n==27)return!0;if(n==37||nr&&n==66&&r=="c"){let i=n==37?tw(e,e.state.selection.from)=="ltr"?-1:1:-1;return ew(e,i,r)||ds(e,i)}else if(n==39||nr&&n==70&&r=="c"){let i=n==39?tw(e,e.state.selection.from)=="ltr"?1:-1:1;return ew(e,i,r)||ds(e,i)}else{if(n==38||nr&&n==80&&r=="c")return nw(e,-1,r)||ds(e,-1);if(n==40||nr&&n==78&&r=="c")return cJ(e)||nw(e,1,r)||ds(e,1);if(r==(nr?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function CR(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:r,openStart:i,openEnd:o}=t;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let a=e.someProp("clipboardSerializer")||Xa.fromSchema(e.state.schema),s=MR(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let u=l.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=RR[u.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let h=s.createElement(c[p]);for(;l.firstChild;)h.appendChild(l.firstChild);l.appendChild(h),d++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,` + +`);return{dom:l,text:f,slice:t}}function NR(e,t,n,r,i){let o=i.parent.type.spec.code,a,s;if(!n&&!t)return null;let l=t&&(r||o||!n);if(l){if(e.someProp("transformPastedText",f=>{t=f(t,o||r,e)}),o)return t?new ae(ee.from(e.state.schema.text(t.replace(/\r\n?/g,` +`))),0,0):ae.empty;let d=e.someProp("clipboardTextParser",f=>f(t,i,r,e));if(d)s=d;else{let f=i.marks(),{schema:p}=e.state,h=Xa.fromSchema(p);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let y=a.appendChild(document.createElement("p"));m&&y.appendChild(h.serializeNode(p.text(m,f)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),a=gJ(n),jc&&bJ(a);let u=a&&a.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let f=a.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;a=f}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||_o.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!pJ.test(f.parentNode.nodeName)?{ignore:!0}:null}})),c)s=yJ(ow(s,+c[1],+c[2]),c[4]);else if(s=ae.maxOpen(hJ(s.content,i),!0),s.openStart||s.openEnd){let d=0,f=0;for(let p=s.content.firstChild;d{s=d(s,e)}),s}const pJ=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function hJ(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),o,a=[];if(e.forEach(s=>{if(!a)return;let l=i.findWrapping(s.type),u;if(!l)return a=null;if(u=a.length&&o.length&&OR(l,o,s,a[a.length-1],0))a[a.length-1]=u;else{a.length&&(a[a.length-1]=IR(a[a.length-1],o.length));let c=AR(s,l);a.push(c),i=i.matchType(c.type),o=l}}),a)return ee.from(a)}return e}function AR(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,ee.from(e));return e}function OR(e,t,n,r,i){if(i1&&(o=0),i=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(ee.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function ow(e,t,n){return tn})),Vg.createHTML(e)):e}function gJ(e){let t=/^(\s*]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=MR().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&RR[r[1].toLowerCase()])&&(e=i.map(o=>"<"+o+">").join("")+e+i.map(o=>"").reverse().join("")),n.innerHTML=mJ(e),i)for(let o=0;o=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=ee.from(l.create(r[s+1],i)),o++,a++}return new ae(i,o,a)}const mn={},gn={},EJ={touchstart:!0,touchmove:!0};class vJ{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function TJ(e){for(let t in mn){let n=mn[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{xJ(e,r)&&!iv(e,r)&&(e.editable||!(r.type in gn))&&n(e,r)},EJ[t]?{passive:!0}:void 0)}hn&&e.dom.addEventListener("input",()=>null),ey(e)}function bo(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function kJ(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function ey(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>iv(e,r))})}function iv(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function xJ(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function SJ(e,t){!iv(e,t)&&mn[t.type]&&(e.editable||!(t.type in gn))&&mn[t.type](e,t)}gn.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!LR(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Nr&&on&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),dl&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,oa(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||fJ(e,n)?n.preventDefault():bo(e,"key")};gn.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};gn.keypress=(e,t)=>{let n=t;if(LR(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||nr&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof ve)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",o=>o(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function dm(e){return{left:e.clientX,top:e.clientY}}function wJ(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function ov(e,t,n,r,i){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,s=>a>o.depth?s(e,n,o.nodeAfter,o.before(a),i,!0):s(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Ys(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function _J(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&me.isSelectable(r)?(Ys(e,new me(n)),!0):!1}function CJ(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof me&&(r=n.node);let o=e.state.doc.resolve(t);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(me.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(Ys(e,me.create(e.state.doc,i)),!0):!1}function NJ(e,t,n,r,i){return ov(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(i?CJ(e,n):_J(e,n))}function AJ(e,t,n,r){return ov(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function OJ(e,t,n,r){return ov(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||IJ(e,n,r)}function IJ(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Ys(e,ve.create(r,0,r.content.size)),!0):!1;let i=r.resolve(t);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)Ys(e,ve.create(r,s+1,s+1+a.content.size));else if(me.isSelectable(a))Ys(e,me.create(r,s));else continue;return!0}}function av(e){return dp(e)}const DR=nr?"metaKey":"ctrlKey";mn.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=av(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&wJ(n,e.input.lastClick)&&!n[DR]&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=e.posAtCoords(dm(n));a&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new RJ(e,a,n,!!r)):(o=="doubleClick"?AJ:OJ)(e,a.pos,a.inside,n)?n.preventDefault():bo(e,"pointer"))};class RJ{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[DR],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),a=n.inside;else{let c=t.state.doc.resolve(n.pos);o=c.parent,a=c.depth?c.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof me&&u.from<=a&&u.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&zr&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),bo(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>_i(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(dm(t))),this.updateAllowDefault(t),this.allowDefault||!n?bo(this.view,"pointer"):NJ(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||hn&&this.mightDrag&&!this.mightDrag.node.isAtom||on&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Ys(this.view,ke.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):bo(this.view,"pointer")}move(t){this.updateAllowDefault(t),bo(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}mn.touchstart=e=>{e.input.lastTouch=Date.now(),av(e),bo(e,"pointer")};mn.touchmove=e=>{e.input.lastTouch=Date.now(),bo(e,"pointer")};mn.contextmenu=e=>av(e);function LR(e,t){return e.composing?!0:hn&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const MJ=Nr?5e3:-1;gn.compositionstart=gn.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof ve&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),dp(e,!0),e.markCursor=null;else if(dp(e,!t.selection.empty),zr&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){let s=e.domSelection();s&&s.collapse(a,a.nodeValue.length);break}else i=a,o=-1}}e.input.composing=!0}PR(e,MJ)};gn.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,PR(e,20))};function PR(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>dp(e),t))}function BR(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=LJ());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function DJ(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=_X(t.focusNode,t.focusOffset),r=CX(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function LJ(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function dp(e,t=!1){if(!(Nr&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),BR(e),t||e.docView&&e.docView.dirty){let n=nv(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!e.state.selection.empty?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function PJ(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const ac=In&&Co<15||dl&&RX<604;mn.copy=gn.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let o=ac?null:n.clipboardData,a=r.content(),{dom:s,text:l}=CR(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):PJ(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function BJ(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function zJ(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?sc(e,r.value,null,i,t):sc(e,r.textContent,r.innerHTML,i,t)},50)}function sc(e,t,n,r,i){let o=NR(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,o||ae.empty)))return!0;if(!o)return!1;let a=BJ(o),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function zR(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}gn.paste=(e,t)=>{let n=t;if(e.composing&&!Nr)return;let r=ac?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&sc(e,zR(r),r.getData("text/html"),i,n)?n.preventDefault():zJ(e,n)};class FR{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const HR=nr?"altKey":"ctrlKey";mn.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(dm(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof me?i.to-1:i.to))){if(r&&r.mightDrag)a=me.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(a=me.create(e.state.doc,d.posBefore))}}let s=(a||e.state.selection).content(),{dom:l,text:u,slice:c}=CR(e,s);(!n.dataTransfer.files.length||!on||dR>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(ac?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",ac||n.dataTransfer.setData("text/plain",u),e.dragging=new FR(c,!n[HR],a)};mn.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};gn.dragover=gn.dragenter=(e,t)=>t.preventDefault();gn.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(dm(n));if(!i)return;let o=e.state.doc.resolve(i.pos),a=r&&r.slice;a?e.someProp("transformPasted",h=>{a=h(a,e)}):a=NR(e,zR(n.dataTransfer),ac?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&!n[HR]);if(e.someProp("handleDrop",h=>h(e,n,a||ae.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?nR(e.state.doc,o.pos,a):o.pos;l==null&&(l=o.pos);let u=e.state.tr;if(s){let{node:h}=r;h?h.replace(u):u.deleteSelection()}let c=u.mapping.map(l),d=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,f=u.doc;if(d?u.replaceRangeWith(c,c,a.content.firstChild):u.replaceRange(c,c,a),u.doc.eq(f))return;let p=u.doc.resolve(c);if(d&&me.isSelectable(a.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new me(p));else{let h=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((m,y,b,E)=>h=E),u.setSelection(rv(e,p,u.doc.resolve(h)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))};mn.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&_i(e)},20))};mn.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};mn.beforeinput=(e,t)=>{if(on&&Nr&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",o=>o(e,oa(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in gn)mn[e]=gn[e];function lc(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class fp{constructor(t,n){this.toDOM=t,this.spec=n||wa,this.side=this.spec.side||0}map(t,n,r,i){let{pos:o,deleted:a}=t.mapResult(n.from+i,this.side<0?-1:1);return a?null:new cr(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof fp&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&lc(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ao{constructor(t,n){this.attrs=t,this.spec=n||wa}map(t,n,r,i){let o=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new cr(o,a,this)}valid(t,n){return n.from=t&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,i+s,o)}}map(t,n,r){return this==en||t.maps.length==0?this:this.mapInner(t,n,0,0,r||wa)}mapInner(t,n,r,i,o){let a;for(let s=0;s{let u=l+r,c;if(c=jR(n,s,u)){for(i||(i=this.children.slice());os&&d.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let o=t+1,a=o+n.content.size;for(let s=0;so&&l.type instanceof Ao){let u=Math.max(o,l.from)-o,c=Math.min(a,l.to)-o;ui.map(t,n,wa));return lo.from(r)}forChild(t,n){if(n.isLeaf)return _t.empty;let r=[];for(let i=0;in instanceof _t)?t:t.reduce((n,r)=>n.concat(r instanceof _t?r:r.members),[]))}}forEachSet(t){for(let n=0;n{let y=m-h-(p-f);for(let b=0;bE+c-d)continue;let v=s[b]+c-d;p>=v?s[b+1]=f<=v?-2:-1:f>=c&&y&&(s[b]+=y,s[b+1]+=y)}d+=y}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u=r.content.size){l=!0;continue}let f=n.map(e[u+1]+o,-1),p=f-i,{index:h,offset:m}=r.content.findIndex(d),y=r.maybeChild(h);if(y&&m==d&&m+y.nodeSize==p){let b=s[u+2].mapInner(n,y,c+1,e[u]+o+1,a);b!=en?(s[u]=d,s[u+1]=p,s[u+2]=b):(s[u+1]=-2,l=!0)}else l=!0}if(l){let u=HJ(s,e,t,n,i,o,a),c=pp(u,r,0,a);t=c.local;for(let d=0;dn&&a.to{let u=jR(e,s,l+n);if(u){o=!0;let c=pp(u,s,n+l+1,r);c!=en&&i.push(l,l+s.nodeSize,c)}});let a=UR(o?$R(e):e,-n).sort(_a);for(let s=0;s0;)t++;e.splice(t,0,n)}function qg(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=en&&t.push(r)}),e.cursorWrapper&&t.push(_t.create(e.state.doc,[e.cursorWrapper.deco])),lo.from(t)}const UJ={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},jJ=In&&Co<=11;class $J{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class WJ{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new $J,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),jJ&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,UJ)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(ZS(this.view)){if(this.suppressingSelectionUpdates)return _i(this.view);if(In&&Co<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Ha(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let o=t.focusNode;o;o=oc(o))n.add(o);for(let o=t.anchorNode;o;o=oc(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&ZS(t)&&!this.ignoreSelectionChange(r),o=-1,a=-1,s=!1,l=[];if(t.editable)for(let c=0;cd.nodeName=="BR");if(c.length==2){let[d,f]=c;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of c){let p=f.parentNode;p&&p.nodeName=="LI"&&(!d||YJ(t,d)!=p)&&f.remove()}}}let u=null;o<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(o>-1&&(t.docView.markDirty(o,a),VJ(t)),this.handleDOMChange(o,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||_i(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;ci;y--){let b=r.childNodes[y-1],E=b.pmViewDesc;if(b.nodeName=="BR"&&!E){o=y;break}if(!E||E.size)break}let d=e.state.doc,f=e.someProp("domParser")||_o.fromSchema(e.state.schema),p=d.resolve(a),h=null,m=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:o,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:GJ,context:p});if(u&&u[0].pos!=null){let y=u[0].pos,b=u[1]&&u[1].pos;b==null&&(b=y),h={anchor:y+a,head:b+a}}return{doc:m,sel:h,from:a,to:s}}function GJ(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(hn&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||hn&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const QJ=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function XJ(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let z=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,A=nv(e,z);if(A&&!e.state.selection.eq(A)){if(on&&Nr&&e.input.lastKeyCode===13&&Date.now()-100L(e,oa(13,"Enter"))))return;let j=e.state.tr.setSelection(A);z=="pointer"?j.setMeta("pointer",!0):z=="key"&&j.scrollIntoView(),o&&j.setMeta("composition",o),e.dispatch(j)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l=e.state.selection,u=KJ(e,t,n),c=e.state.doc,d=c.slice(u.from,u.to),f,p;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Nr)&&i.some(z=>z.nodeType==1&&!QJ.test(z.nodeName))&&(!h||h.endA>=h.endB)&&e.someProp("handleKeyDown",z=>z(e,oa(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!h)if(r&&l instanceof ve&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))h={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let z=dw(e,e.state.doc,u.sel);if(z&&!z.eq(e.state.selection)){let A=e.state.tr.setSelection(z);o&&A.setMeta("composition",o),e.dispatch(A)}}return}e.state.selection.frome.state.selection.from&&h.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?h.start=e.state.selection.from:h.endA=e.state.selection.to-2&&e.state.selection.to<=u.to&&(h.endB+=e.state.selection.to-h.endA,h.endA=e.state.selection.to)),In&&Co<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>u.from&&u.doc.textBetween(h.start-u.from-1,h.start-u.from+1)=="  "&&(h.start--,h.endA--,h.endB--);let m=u.doc.resolveNoCache(h.start-u.from),y=u.doc.resolveNoCache(h.endB-u.from),b=c.resolve(h.start),E=m.sameParent(y)&&m.parent.inlineContent&&b.end()>=h.endA,v;if((dl&&e.input.lastIOSEnter>Date.now()-225&&(!E||i.some(z=>z.nodeName=="DIV"||z.nodeName=="P"))||!E&&m.posz(e,oa(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>h.start&&ZJ(c,h.start,h.endA,m,y)&&e.someProp("handleKeyDown",z=>z(e,oa(8,"Backspace")))){Nr&&on&&e.domObserver.suppressSelectionUpdates();return}on&&Nr&&h.endB==h.start&&(e.input.lastAndroidDelete=Date.now()),Nr&&!E&&m.start()!=y.start()&&y.parentOffset==0&&m.depth==y.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==h.endA&&(h.endB-=2,y=u.doc.resolveNoCache(h.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(z){return z(e,oa(13,"Enter"))})},20));let k=h.start,_=h.endA,x,I,R;if(E){if(m.pos==y.pos)In&&Co<=11&&m.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>_i(e),20)),x=e.state.tr.delete(k,_),I=c.resolve(h.start).marksAcross(c.resolve(h.endA));else if(h.endA==h.endB&&(R=JJ(m.parent.content.cut(m.parentOffset,y.parentOffset),b.parent.content.cut(b.parentOffset,h.endA-b.start()))))x=e.state.tr,R.type=="add"?x.addMark(k,_,R.mark):x.removeMark(k,_,R.mark);else if(m.parent.child(m.index()).isText&&m.index()==y.index()-(y.textOffset?0:1)){let z=m.parent.textBetween(m.parentOffset,y.parentOffset);if(e.someProp("handleTextInput",A=>A(e,k,_,z)))return;x=e.state.tr.insertText(z,k,_)}}if(x||(x=e.state.tr.replace(k,_,u.doc.slice(h.start-u.from,h.endB-u.from))),u.sel){let z=dw(e,x.doc,u.sel);z&&!(on&&Nr&&e.composing&&z.empty&&(h.start!=h.endB||e.input.lastAndroidDeletet.content.size?null:rv(e,t.resolve(n.anchor),t.resolve(n.head))}function JJ(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,o=r,a,s,l;for(let c=0;cc.mark(s.addToSet(c.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=c=>c.mark(s.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||Yg(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function eZ(e,t,n,r,i){let o=e.findDiffStart(t,n);if(o==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a=a?o-r:0;o-=l,o&&o=s?o-r:0;o-=l,o&&o=56320&&t<=57343&&n>=55296&&n<=56319}class tZ{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new vJ,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(bw),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=mw(this),hw(this),this.nodeViews=gw(this),this.docView=YS(this.state.doc,pw(this),qg(this),this.dom,this),this.domObserver=new WJ(this,(r,i,o,a)=>XJ(this,r,i,o,a)),this.domObserver.start(),TJ(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ey(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(bw),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let i=this.state,o=!1,a=!1;t.storedMarks&&this.composing&&(BR(this),a=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=gw(this);rZ(p,this.nodeViews)&&(this.nodeViews=p,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&ey(this),this.editable=mw(this),hw(this);let l=qg(this),u=pw(this),c=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(t.doc,u,l);(d||!t.selection.eq(i.selection))&&(a=!0);let f=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&LX(this);if(a){this.domObserver.stop();let p=d&&(In||on)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&nZ(i.selection,t.selection);if(d){let h=on?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=DJ(this)),(o||!this.docView.update(t.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=YS(t.doc,u,l,this.dom,this)),h&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&oJ(this))?_i(this,p):(SR(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():f&&PX(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof me){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&US(this,n.getBoundingClientRect(),t)}else US(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new FR(t.slice,t.move,i<0?void 0:me.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return jX(this,t)}coordsAtPos(t,n=1){return gR(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return YX(this,n||this.state,t)}pasteHTML(t,n){return sc(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return sc(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(kJ(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],qg(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,SX())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return SJ(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){let t=this.domSelection();return t?hn&&this.root.nodeType===11&&AX(this.dom.ownerDocument)==this.dom&&qJ(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function pw(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[cr.node(0,e.state.doc.content.size,t)]}function hw(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:cr.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function mw(e){return!e.someProp("editable",t=>t(e.state)===!1)}function nZ(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function gw(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function rZ(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function bw(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Po={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},hp={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},iZ=typeof navigator<"u"&&/Mac/.test(navigator.platform),oZ=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Vt=0;Vt<10;Vt++)Po[48+Vt]=Po[96+Vt]=String(Vt);for(var Vt=1;Vt<=24;Vt++)Po[Vt+111]="F"+Vt;for(var Vt=65;Vt<=90;Vt++)Po[Vt]=String.fromCharCode(Vt+32),hp[Vt]=String.fromCharCode(Vt);for(var Kg in Po)hp.hasOwnProperty(Kg)||(hp[Kg]=Po[Kg]);function aZ(e){var t=iZ&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||oZ&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?hp:Po)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const sZ=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function lZ(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s127)&&(o=Po[r.keyCode])&&o!=i){let s=t[Gg(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const dZ=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function VR(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const fZ=(e,t,n)=>{let r=VR(e,n);if(!r)return!1;let i=uv(r);if(!i){let a=r.blockRange(),s=a&&Al(a);return s==null?!1:(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)}let o=i.nodeBefore;if(GR(e,i,t,-1))return!0;if(r.parent.content.size==0&&(fl(o,"end")||me.isSelectable(o)))for(let a=r.depth;;a--){let s=sm(e.doc,r.before(a),r.after(a),ae.empty);if(s&&s.slice.size1)break}return o.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},pZ=(e,t,n)=>{let r=VR(e,n);if(!r)return!1;let i=uv(r);return i?qR(e,i,t):!1},hZ=(e,t,n)=>{let r=YR(e,n);if(!r)return!1;let i=cv(r);return i?qR(e,i,t):!1};function qR(e,t,n){let r=t.nodeBefore,i=r,o=t.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let c=i.lastChild;if(!c)return!1;i=c}let a=t.nodeAfter,s=a,l=t.pos+1;for(;!s.isTextblock;l++){if(s.type.spec.isolating)return!1;let c=s.firstChild;if(!c)return!1;s=c}let u=sm(e.doc,o,l,ae.empty);if(!u||u.from!=o||u instanceof Mt&&u.slice.size>=l-o)return!1;if(n){let c=e.tr.step(u);c.setSelection(ve.create(c.doc,o)),n(c.scrollIntoView())}return!0}function fl(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const mZ=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=uv(r)}let a=o&&o.nodeBefore;return!a||!me.isSelectable(a)?!1:(t&&t(e.tr.setSelection(me.create(e.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function uv(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function YR(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let r=YR(e,n);if(!r)return!1;let i=cv(r);if(!i)return!1;let o=i.nodeAfter;if(GR(e,i,t,1))return!0;if(r.parent.content.size==0&&(fl(o,"start")||me.isSelectable(o))){let a=sm(e.doc,r.before(),r.after(),ae.empty);if(a&&a.slice.size{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let n=e.selection,r=n instanceof me,i;if(r){if(n.node.isTextblock||!Ko(e.doc,n.from))return!1;i=n.from}else if(i=am(e.doc,n.from,-1),i==null)return!1;if(t){let o=e.tr.join(i);r&&o.setSelection(me.create(o.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},EZ=(e,t)=>{let n=e.selection,r;if(n instanceof me){if(n.node.isTextblock||!Ko(e.doc,n.to))return!1;r=n.to}else if(r=am(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},vZ=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),o=i&&Al(i);return o==null?!1:(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},TZ=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` +`).scrollIntoView()),!0)};function KR(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),a=KR(i.contentMatchAt(o));if(!a||!i.canReplaceWith(o,o,a))return!1;if(t){let s=n.after(),l=e.tr.replaceWith(s,s,a.createAndFill());l.setSelection(ke.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},xZ=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof Dr||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=KR(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let a=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Vs(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&Al(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)},wZ=(e,t)=>{let{$from:n,to:r}=e.selection,i,o=n.sharedDepth(r);return o==0?!1:(i=n.before(o),t&&t(e.tr.setSelection(me.create(e.doc,i))),!0)};function _Z(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,o=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(i.isTextblock||Ko(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function GR(e,t,n,r){let i=t.nodeBefore,o=t.nodeAfter,a,s,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&_Z(e,t,n))return!0;let u=!l&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(a=(s=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&s.matchType(a[0]||o.type).validEnd){if(n){let p=t.pos+o.nodeSize,h=ee.empty;for(let b=a.length-1;b>=0;b--)h=ee.from(a[b].create(null,h));h=ee.from(i.copy(h));let m=e.tr.step(new Pt(t.pos-1,p,t.pos,p,new ae(h,1,0),a.length,!0)),y=m.doc.resolve(p+2*a.length);y.nodeAfter&&y.nodeAfter.type==i.type&&Ko(m.doc,y.pos)&&m.join(y.pos),n(m.scrollIntoView())}return!0}let c=o.type.spec.isolating||r>0&&l?null:ke.findFrom(t,1),d=c&&c.$from.blockRange(c.$to),f=d&&Al(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(u&&fl(o,"start",!0)&&fl(i,"end")){let p=i,h=[];for(;h.push(p),!p.isTextblock;)p=p.lastChild;let m=o,y=1;for(;!m.isTextblock;m=m.firstChild)y++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(n){let b=ee.empty;for(let v=h.length-1;v>=0;v--)b=ee.from(h[v].copy(b));let E=e.tr.step(new Pt(t.pos-h.length,t.pos+o.nodeSize,t.pos+y,t.pos+o.nodeSize-y,new ae(b,h.length,0),0,!0));n(E.scrollIntoView())}return!0}}return!1}function QR(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(t.tr.setSelection(ve.create(t.doc,e<0?i.start(o):i.end(o)))),!0):!1}}const CZ=QR(-1),NZ=QR(1);function AZ(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=a&&ZE(a,e,t);return s?(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0):!1}}function yw(e,t=null){return function(n,r){let i=!1;for(let o=0;o{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)i=!0;else{let c=n.doc.resolve(u),d=c.index();i=c.parent.canReplaceWith(d,d+1,e)}})}if(!i)return!1;if(r){let o=n.tr;for(let a=0;a=2&&i.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(i.index(a.depth-1)==0)return!1;let c=n.doc.resolve(a.start-2);l=new op(c,c,a.depth),a.endIndex=0;c--)o=ee.from(n[c].type.create(n[c].attrs,o));e.step(new Pt(t.start-(r?2:0),t.end,t.start,t.end,new ae(o,0,0),n.length,!0));let a=0;for(let c=0;ca.childCount>0&&a.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?MZ(t,n,e,o):DZ(t,n,o):!0:!1}}function MZ(e,t,n,r){let i=e.tr,o=r.end,a=r.$to.end(r.depth);om;h--)p-=i.child(h).nodeSize,r.delete(p-1,p+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+(s?0:1),c+1,a.content.append(l?ee.empty:ee.from(i))))return!1;let d=o.pos,f=d+a.nodeSize;return r.step(new Pt(d-(s?1:0),f+(l?1:0),d+1,f-1,new ae((s?ee.empty:ee.from(i.copy(ee.empty))).append(l?ee.empty:ee.from(i.copy(ee.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function LZ(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,u=>u.childCount>0&&u.firstChild.type==e);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=ee.from(u?e.create():null),d=new ae(ee.from(e.create(null,ee.from(s.type.create(null,c)))),u?3:1,0),f=o.start,p=o.end;n(t.tr.step(new Pt(f-(u?3:1),p,f,p,d,1,!0)).scrollIntoView())}return!0}}function fm(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:i}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,o=n.storedMarks,n}}}class pm{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:i}=n,{tr:o}=r,a=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([s,l])=>[s,(...c)=>{const d=l(...c)(a);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(o),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:a}=i,s=[],l=!!t,u=t||o.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(u),s.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(r).map(([f,p])=>[f,(...m)=>{const y=this.buildProps(u,n),b=p(...m)(y);return s.push(b),d}])),run:c};return d}createCan(t){const{rawCommands:n,state:r}=this,i=!1,o=t||r.tr,a=this.buildProps(o,i);return{...Object.fromEntries(Object.entries(n).map(([l,u])=>[l,(...c)=>u(...c)({...a,dispatch:void 0})])),chain:()=>this.createChain(o,i)}}buildProps(t,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:a}=i,s={tr:t,editor:i,view:a,state:fm({state:o,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,u])=>[l,(...c)=>u(...c)(s)]))}};return s}}class PZ{constructor(){this.callbacks={}}on(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),this}emit(t,...n){const r=this.callbacks[t];return r&&r.forEach(i=>i.apply(this,n)),this}off(t,n){const r=this.callbacks[t];return r&&(n?this.callbacks[t]=r.filter(i=>i!==n):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}function ce(e,t,n){return e.config[t]===void 0&&e.parent?ce(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?ce(e.parent,t,n):null}):e.config[t]}function hm(e){const t=e.filter(i=>i.type==="extension"),n=e.filter(i=>i.type==="node"),r=e.filter(i=>i.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function XR(e){const t=[],{nodeExtensions:n,markExtensions:r}=hm(e),i=[...n,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage,extensions:i},l=ce(a,"addGlobalAttributes",s);if(!l)return;l().forEach(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([f,p])=>{t.push({type:d,name:f,attribute:{...o,...p}})})})})}),i.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage},l=ce(a,"addAttributes",s);if(!l)return;const u=l();Object.entries(u).forEach(([c,d])=>{const f={...o,...d};typeof(f==null?void 0:f.default)=="function"&&(f.default=f.default()),f!=null&&f.isRequired&&(f==null?void 0:f.default)===void 0&&delete f.default,t.push({type:a.name,name:c,attribute:f})})}),t}function Ft(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function Nt(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([i,o])=>{if(!r[i]){r[i]=o;return}if(i==="class"){const s=o?o.split(" "):[],l=r[i]?r[i].split(" "):[],u=s.filter(c=>!l.includes(c));r[i]=[...l,...u].join(" ")}else if(i==="style"){const s=o?o.split(";").map(c=>c.trim()).filter(Boolean):[],l=r[i]?r[i].split(";").map(c=>c.trim()).filter(Boolean):[],u=new Map;l.forEach(c=>{const[d,f]=c.split(":").map(p=>p.trim());u.set(d,f)}),s.forEach(c=>{const[d,f]=c.split(":").map(p=>p.trim());u.set(d,f)}),r[i]=Array.from(u.entries()).map(([c,d])=>`${c}: ${d}`).join("; ")}else r[i]=o}),r},{})}function ty(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>Nt(n,r),{})}function JR(e){return typeof e=="function"}function we(e,t=void 0,...n){return JR(e)?t?e.bind(t)(...n):e(...n):e}function BZ(e={}){return Object.keys(e).length===0&&e.constructor===Object}function zZ(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function Ew(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const i=t.reduce((o,a)=>{const s=a.attribute.parseHTML?a.attribute.parseHTML(n):zZ(n.getAttribute(a.name));return s==null?o:{...o,[a.name]:s}},{});return{...r,...i}}}}function vw(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&BZ(n)?!1:n!=null))}function FZ(e,t){var n;const r=XR(e),{nodeExtensions:i,markExtensions:o}=hm(e),a=(n=i.find(u=>ce(u,"topNode")))===null||n===void 0?void 0:n.name,s=Object.fromEntries(i.map(u=>{const c=r.filter(b=>b.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},f=e.reduce((b,E)=>{const v=ce(E,"extendNodeSchema",d);return{...b,...v?v(u):{}}},{}),p=vw({...f,content:we(ce(u,"content",d)),marks:we(ce(u,"marks",d)),group:we(ce(u,"group",d)),inline:we(ce(u,"inline",d)),atom:we(ce(u,"atom",d)),selectable:we(ce(u,"selectable",d)),draggable:we(ce(u,"draggable",d)),code:we(ce(u,"code",d)),whitespace:we(ce(u,"whitespace",d)),defining:we(ce(u,"defining",d)),isolating:we(ce(u,"isolating",d)),attrs:Object.fromEntries(c.map(b=>{var E;return[b.name,{default:(E=b==null?void 0:b.attribute)===null||E===void 0?void 0:E.default}]}))}),h=we(ce(u,"parseHTML",d));h&&(p.parseDOM=h.map(b=>Ew(b,c)));const m=ce(u,"renderHTML",d);m&&(p.toDOM=b=>m({node:b,HTMLAttributes:ty(b,c)}));const y=ce(u,"renderText",d);return y&&(p.toText=y),[u.name,p]})),l=Object.fromEntries(o.map(u=>{const c=r.filter(y=>y.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},f=e.reduce((y,b)=>{const E=ce(b,"extendMarkSchema",d);return{...y,...E?E(u):{}}},{}),p=vw({...f,inclusive:we(ce(u,"inclusive",d)),excludes:we(ce(u,"excludes",d)),group:we(ce(u,"group",d)),spanning:we(ce(u,"spanning",d)),code:we(ce(u,"code",d)),attrs:Object.fromEntries(c.map(y=>{var b;return[y.name,{default:(b=y==null?void 0:y.attribute)===null||b===void 0?void 0:b.default}]}))}),h=we(ce(u,"parseHTML",d));h&&(p.parseDOM=h.map(y=>Ew(y,c)));const m=ce(u,"renderHTML",d);return m&&(p.toDOM=y=>m({mark:y,HTMLAttributes:ty(y,c)})),[u.name,p]}));return new VI({topNode:a,nodes:s,marks:l})}function Qg(e,t){return t.nodes[e]||t.marks[e]||null}function Tw(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}const HZ=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(i,o,a,s)=>{var l,u;const c=((u=(l=i.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:i,pos:o,parent:a,index:s}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?c:c.slice(0,Math.max(0,r-o))}),n};function dv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class mm{constructor(t){this.find=t.find,this.handler=t.handler}}const UZ=(e,t)=>{if(dv(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Od(e){var t;const{editor:n,from:r,to:i,text:o,rules:a,plugin:s}=e,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(r);if(u.parent.type.spec.code||!((t=u.nodeBefore||u.nodeAfter)===null||t===void 0)&&t.marks.find(f=>f.type.spec.code))return!1;let c=!1;const d=HZ(u)+o;return a.forEach(f=>{if(c)return;const p=UZ(d,f.find);if(!p)return;const h=l.state.tr,m=fm({state:l.state,transaction:h}),y={from:r-(p[0].length-o.length),to:i},{commands:b,chain:E,can:v}=new pm({editor:n,state:m});f.handler({state:m,range:y,match:p,commands:b,chain:E,can:v})===null||!h.steps.length||(h.setMeta(s,{transform:h,from:r,to:i,text:o}),l.dispatch(h),c=!0)}),c}function jZ(e){const{editor:t,rules:n}=e,r=new Qt({state:{init(){return null},apply(i,o){const a=i.getMeta(r);if(a)return a;const s=i.getMeta("applyInputRules");return!!s&&setTimeout(()=>{const{from:u,text:c}=s,d=u+c.length;Od({editor:t,from:u,to:d,text:c,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:o}},props:{handleTextInput(i,o,a,s){return Od({editor:t,from:o,to:a,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:o}=i.state.selection;o&&Od({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,o){if(o.key!=="Enter")return!1;const{$cursor:a}=i.state.selection;return a?Od({editor:t,from:a.pos,to:a.pos,text:` +`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function $Z(e){return Object.prototype.toString.call(e).slice(8,-1)}function Id(e){return $Z(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function gm(e,t){const n={...e};return Id(e)&&Id(t)&&Object.keys(t).forEach(r=>{Id(t[r])&&Id(e[r])?n[r]=gm(e[r],t[r]):n[r]=t[r]}),n}class si{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=we(ce(this,"addOptions",{name:this.name}))),this.storage=we(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new si(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>gm(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new si(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=we(ce(n,"addOptions",{name:n.name})),n.storage=we(ce(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const a=i.marks();if(!!!a.find(u=>(u==null?void 0:u.type.name)===n.name))return!1;const l=a.find(u=>(u==null?void 0:u.type.name)===n.name);return l&&r.removeStoredMark(l),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}}function WZ(e){return typeof e=="number"}class VZ{constructor(t){this.find=t.find,this.handler=t.handler}}const qZ=(e,t,n)=>{if(dv(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(i=>{const o=[i.text];return o.index=i.index,o.input=e,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]};function YZ(e){const{editor:t,state:n,from:r,to:i,rule:o,pasteEvent:a,dropEvent:s}=e,{commands:l,chain:u,can:c}=new pm({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(p,h)=>{if(!p.isTextblock||p.type.spec.code)return;const m=Math.max(r,h),y=Math.min(i,h+p.content.size),b=p.textBetween(m-h,y-h,void 0,"");qZ(b,o.find,a).forEach(v=>{if(v.index===void 0)return;const k=m+v.index+1,_=k+v[0].length,x={from:n.tr.mapping.map(k),to:n.tr.mapping.map(_)},I=o.handler({state:n,range:x,match:v,commands:l,chain:u,can:c,pasteEvent:a,dropEvent:s});d.push(I)})}),d.every(p=>p!==null)}const KZ=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function GZ(e){const{editor:t,rules:n}=e;let r=null,i=!1,o=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,s=typeof DragEvent<"u"?new DragEvent("drop"):null;const l=({state:c,from:d,to:f,rule:p,pasteEvt:h})=>{const m=c.tr,y=fm({state:c,transaction:m});if(!(!YZ({editor:t,state:y,from:Math.max(d-1,0),to:f.b-1,rule:p,pasteEvent:h,dropEvent:s})||!m.steps.length))return s=typeof DragEvent<"u"?new DragEvent("drop"):null,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m};return n.map(c=>new Qt({view(d){const f=p=>{var h;r=!((h=d.dom.parentElement)===null||h===void 0)&&h.contains(p.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(d,f)=>(o=r===d.dom.parentElement,s=f,!1),paste:(d,f)=>{var p;const h=(p=f.clipboardData)===null||p===void 0?void 0:p.getData("text/html");return a=f,i=!!(h!=null&&h.includes("data-pm-slice")),!1}}},appendTransaction:(d,f,p)=>{const h=d[0],m=h.getMeta("uiEvent")==="paste"&&!i,y=h.getMeta("uiEvent")==="drop"&&!o,b=h.getMeta("applyPasteRules"),E=!!b;if(!m&&!y&&!E)return;if(E){const{from:_,text:x}=b,I=_+x.length,R=KZ(x);return l({rule:c,state:p,from:_,to:{b:I},pasteEvt:R})}const v=f.doc.content.findDiffStart(p.doc.content),k=f.doc.content.findDiffEnd(p.doc.content);if(!(!WZ(v)||!k||v===k.b))return l({rule:c,state:p,from:v,to:k,pasteEvt:a})}}))}function QZ(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}class Ds{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=Ds.resolve(t),this.schema=FZ(this.extensions,n),this.setupExtensions()}static resolve(t){const n=Ds.sort(Ds.flatten(t)),r=QZ(n.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=ce(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(t){return t.sort((r,i)=>{const o=ce(r,"priority")||100,a=ce(i,"priority")||100;return o>a?-1:o{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:Qg(n.name,this.schema)},i=ce(n,"addCommands",r);return i?{...t,...i()}:t},{})}get plugins(){const{editor:t}=this,n=Ds.sort([...this.extensions].reverse()),r=[],i=[],o=n.map(a=>{const s={name:a.name,options:a.options,storage:a.storage,editor:t,type:Qg(a.name,this.schema)},l=[],u=ce(a,"addKeyboardShortcuts",s);let c={};if(a.type==="mark"&&ce(a,"exitable",s)&&(c.ArrowRight=()=>si.handleExit({editor:t,mark:a})),u){const m=Object.fromEntries(Object.entries(u()).map(([y,b])=>[y,()=>b({editor:t})]));c={...c,...m}}const d=cZ(c);l.push(d);const f=ce(a,"addInputRules",s);Tw(a,t.options.enableInputRules)&&f&&r.push(...f());const p=ce(a,"addPasteRules",s);Tw(a,t.options.enablePasteRules)&&p&&i.push(...p());const h=ce(a,"addProseMirrorPlugins",s);if(h){const m=h();l.push(...m)}return l}).flat();return[jZ({editor:t,rules:r}),...GZ({editor:t,rules:i}),...o]}get attributes(){return XR(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=hm(this.extensions);return Object.fromEntries(n.filter(r=>!!ce(r,"addNodeView")).map(r=>{const i=this.attributes.filter(l=>l.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:t,type:Ft(r.name,this.schema)},a=ce(r,"addNodeView",o);if(!a)return[];const s=(l,u,c,d,f)=>{const p=ty(l,i);return a()({node:l,view:u,getPos:c,decorations:d,innerDecorations:f,editor:t,extension:r,HTMLAttributes:p})};return[r.name,s]}))}setupExtensions(){this.extensions.forEach(t=>{var n;this.editor.extensionStorage[t.name]=t.storage;const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:Qg(t.name,this.schema)};t.type==="mark"&&(!((n=we(ce(t,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(t.name);const i=ce(t,"onBeforeCreate",r),o=ce(t,"onCreate",r),a=ce(t,"onUpdate",r),s=ce(t,"onSelectionUpdate",r),l=ce(t,"onTransaction",r),u=ce(t,"onFocus",r),c=ce(t,"onBlur",r),d=ce(t,"onDestroy",r);i&&this.editor.on("beforeCreate",i),o&&this.editor.on("create",o),a&&this.editor.on("update",a),s&&this.editor.on("selectionUpdate",s),l&&this.editor.on("transaction",l),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class bn{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=we(ce(this,"addOptions",{name:this.name}))),this.storage=we(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new bn(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>gm(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new bn({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=we(ce(n,"addOptions",{name:n.name})),n.storage=we(ce(n,"addStorage",{name:n.name,options:n.options})),n}}function ZR(e,t,n){const{from:r,to:i}=t,{blockSeparator:o=` + +`,textSerializers:a={}}=n||{};let s="";return e.nodesBetween(r,i,(l,u,c,d)=>{var f;l.isBlock&&u>r&&(s+=o);const p=a==null?void 0:a[l.type.name];if(p)return c&&(s+=p({node:l,pos:u,parent:c,index:d,range:t})),!1;l.isText&&(s+=(f=l==null?void 0:l.text)===null||f===void 0?void 0:f.slice(Math.max(r,u)-u,i-u))}),s}function e3(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const XZ=bn.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Qt({key:new Xn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:o}=i,a=Math.min(...o.map(c=>c.$from.pos)),s=Math.max(...o.map(c=>c.$to.pos)),l=e3(n);return ZR(r,{from:a,to:s},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),JZ=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),ZZ=(e=!1)=>({commands:t})=>t.setContent("",e),eee=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:o,$to:a})=>{e.doc.nodesBetween(o.pos,a.pos,(s,l)=>{if(s.type.isText)return;const{doc:u,mapping:c}=t,d=u.resolve(c.map(l)),f=u.resolve(c.map(l+s.nodeSize)),p=d.blockRange(f);if(!p)return;const h=Al(p);if(s.type.isTextblock){const{defaultType:m}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,m)}(h||h===0)&&t.lift(p,h)})}),!0},tee=e=>t=>e(t),nee=()=>({state:e,dispatch:t})=>xZ(e,t),ree=(e,t)=>({editor:n,tr:r})=>{const{state:i}=n,o=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const a=r.mapping.map(t);return r.insert(a,o.content),r.setSelection(new ve(r.doc.resolve(a-1))),!0},iee=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const i=e.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===r.type){if(t){const s=i.before(o),l=i.after(o);e.delete(s,l).scrollIntoView()}return!0}return!1},oee=e=>({tr:t,state:n,dispatch:r})=>{const i=Ft(e,n.schema),o=t.selection.$anchor;for(let a=o.depth;a>0;a-=1)if(o.node(a).type===i){if(r){const l=o.before(a),u=o.after(a);t.delete(l,u).scrollIntoView()}return!0}return!1},aee=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},see=()=>({state:e,dispatch:t})=>dZ(e,t),lee=()=>({commands:e})=>e.keyboardShortcut("Enter"),uee=()=>({state:e,dispatch:t})=>kZ(e,t);function mp(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:dv(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function ny(e,t,n={}){return e.find(r=>r.type===t&&mp(r.attrs,n))}function cee(e,t,n={}){return!!ny(e,t,n)}function fv(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(u=>u.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(u=>u.type===t))return;const i=ny([...r.node.marks],t,n);if(!i)return;let o=r.index,a=e.start()+r.offset,s=o+1,l=a+r.node.nodeSize;for(ny([...r.node.marks],t,n);o>0&&i.isInSet(e.parent.child(o-1).marks);)o-=1,a-=e.parent.child(o).nodeSize;for(;s({tr:n,state:r,dispatch:i})=>{const o=Qo(e,r.schema),{doc:a,selection:s}=n,{$from:l,from:u,to:c}=s;if(i){const d=fv(l,o,t);if(d&&d.from<=u&&d.to>=c){const f=ve.create(a,d.from,d.to);n.setSelection(f)}}return!0},fee=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r({editor:n,view:r,tr:i,dispatch:o})=>{t={scrollIntoView:!0,...t};const a=()=>{pv()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t!=null&&t.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&e===null||e===!1)return!0;if(o&&e===null&&!t3(n.state.selection))return a(),!0;const s=n3(i.doc,e)||n.state.selection,l=n.state.selection.eq(s);return o&&(l||i.setSelection(s),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),a()),!0},hee=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),mee=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),r3=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&r3(r)}return e};function Rd(e){const t=`${e}`,n=new window.DOMParser().parseFromString(t,"text/html").body;return r3(n)}function gp(e,t,n){n={slice:!0,parseOptions:{},...n};const r=typeof e=="object"&&e!==null,i=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return ee.fromArray(e.map(s=>t.nodeFromJSON(s)));const a=t.nodeFromJSON(e);return n.errorOnInvalidContent&&a.check(),a}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),gp("",t,n)}if(i){if(n.errorOnInvalidContent){let a=!1,s="";const l=new VI({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(a=!0,s=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?_o.fromSchema(l).parseSlice(Rd(e),n.parseOptions):_o.fromSchema(l).parse(Rd(e),n.parseOptions),n.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const o=_o.fromSchema(t);return n.slice?o.parseSlice(Rd(e),n.parseOptions).content:o.parse(Rd(e),n.parseOptions)}return gp("",t,n)}function gee(e,t,n){const r=e.steps.length-1;if(r{a===0&&(a=c)}),e.setSelection(ke.near(e.doc.resolve(a),n))}const bee=e=>!("type"in e),yee=(e,t,n)=>({tr:r,dispatch:i,editor:o})=>{var a;if(i){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let s;try{s=gp(t,o.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(a=n.errorOnInvalidContent)!==null&&a!==void 0?a:o.options.enableContentCheck})}catch(h){return o.emit("contentError",{editor:o,error:h,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:u}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},c=!0,d=!0;if((bee(s)?s:[s]).forEach(h=>{h.check(),c=c?h.isText&&h.marks.length===0:!1,d=d?h.isBlock:!1}),l===u&&d){const{parent:h}=r.doc.resolve(l);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(l-=1,u+=1)}let p;c?(Array.isArray(t)?p=t.map(h=>h.text||"").join(""):typeof t=="object"&&t&&t.text?p=t.text:p=t,r.insertText(p,l,u)):(p=s,r.replaceWith(l,u,p)),n.updateSelection&&gee(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:l,text:p}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:l,text:p})}return!0},Eee=()=>({state:e,dispatch:t})=>yZ(e,t),vee=()=>({state:e,dispatch:t})=>EZ(e,t),Tee=()=>({state:e,dispatch:t})=>fZ(e,t),kee=()=>({state:e,dispatch:t})=>gZ(e,t),xee=()=>({state:e,dispatch:t,tr:n})=>{try{const r=am(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},See=()=>({state:e,dispatch:t,tr:n})=>{try{const r=am(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},wee=()=>({state:e,dispatch:t})=>pZ(e,t),_ee=()=>({state:e,dispatch:t})=>hZ(e,t);function i3(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Cee(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,i,o,a;for(let s=0;s({editor:t,view:n,tr:r,dispatch:i})=>{const o=Cee(e).split(/-(?!$)/),a=o.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),s=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,s))});return l==null||l.steps.forEach(u=>{const c=u.map(r.mapping);c&&i&&r.maybeStep(c)}),!0};function uc(e,t,n={}){const{from:r,to:i,empty:o}=e.selection,a=t?Ft(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(d,f)=>{if(d.isText)return;const p=Math.max(r,f),h=Math.min(i,f+d.nodeSize);s.push({node:d,from:p,to:h})});const l=i-r,u=s.filter(d=>a?a.name===d.node.type.name:!0).filter(d=>mp(d.node.attrs,n,{strict:!1}));return o?!!u.length:u.reduce((d,f)=>d+f.to-f.from,0)>=l}const Aee=(e,t={})=>({state:n,dispatch:r})=>{const i=Ft(e,n.schema);return uc(n,i,t)?vZ(n,r):!1},Oee=()=>({state:e,dispatch:t})=>SZ(e,t),Iee=e=>({state:t,dispatch:n})=>{const r=Ft(e,t.schema);return RZ(r)(t,n)},Ree=()=>({state:e,dispatch:t})=>TZ(e,t);function bm(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function kw(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,i)=>(n.includes(i)||(r[i]=e[i]),r),{})}const Mee=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=bm(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(o=Ft(e,r.schema)),s==="mark"&&(a=Qo(e,r.schema)),i&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{o&&o===u.type&&n.setNodeMarkup(c,void 0,kw(u.attrs,t)),a&&u.marks.length&&u.marks.forEach(d=>{a===d.type&&n.addMark(c,c+u.nodeSize,a.create(kw(d.attrs,t)))})})}),!0):!1},Dee=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Lee=()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),Pee=()=>({state:e,dispatch:t})=>mZ(e,t),Bee=()=>({state:e,dispatch:t})=>bZ(e,t),zee=()=>({state:e,dispatch:t})=>wZ(e,t),Fee=()=>({state:e,dispatch:t})=>NZ(e,t),Hee=()=>({state:e,dispatch:t})=>CZ(e,t);function ry(e,t,n={},r={}){return gp(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const Uee=(e,t=!1,n={},r={})=>({editor:i,tr:o,dispatch:a,commands:s})=>{var l,u;const{doc:c}=o;if(n.preserveWhitespace!=="full"){const d=ry(e,i.schema,n,{errorOnInvalidContent:(l=r.errorOnInvalidContent)!==null&&l!==void 0?l:i.options.enableContentCheck});return a&&o.replaceWith(0,c.content.size,d).setMeta("preventUpdate",!t),!0}return a&&o.setMeta("preventUpdate",!t),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:(u=r.errorOnInvalidContent)!==null&&u!==void 0?u:i.options.enableContentCheck})};function o3(e,t){const n=Qo(t,e.schema),{from:r,to:i,empty:o}=e.selection,a=[];o?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,l=>{a.push(...l.marks)});const s=a.find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function jee(e,t){const n=new sR(e);return t.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function $ee(e){for(let t=0;t{n(i)&&r.push({node:i,pos:o})}),r}function Vee(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function hv(e){return t=>Vee(t.$from,e)}function qee(e,t){const n=Xa.fromSchema(t).serializeFragment(e),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function Yee(e,t){const n={from:0,to:e.content.size};return ZR(e,n,t)}function Kee(e,t){const n=Ft(t,e.schema),{from:r,to:i}=e.selection,o=[];e.doc.nodesBetween(r,i,s=>{o.push(s)});const a=o.reverse().find(s=>s.type.name===n.name);return a?{...a.attrs}:{}}function a3(e,t){const n=bm(typeof t=="string"?t:t.name,e.schema);return n==="node"?Kee(e,t):n==="mark"?o3(e,t):{}}function Gee(e,t=JSON.stringify){const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function Qee(e){const t=Gee(e);return t.length===1?t:t.filter((n,r)=>!t.filter((o,a)=>a!==r).some(o=>n.oldRange.from>=o.oldRange.from&&n.oldRange.to<=o.oldRange.to&&n.newRange.from>=o.newRange.from&&n.newRange.to<=o.newRange.to))}function Xee(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((i,o)=>{const a=[];if(i.ranges.length)i.forEach((s,l)=>{a.push({from:s,to:l})});else{const{from:s,to:l}=n[o];if(s===void 0||l===void 0)return;a.push({from:s,to:l})}a.forEach(({from:s,to:l})=>{const u=t.slice(o).map(s,-1),c=t.slice(o).map(l),d=t.invert().map(u,-1),f=t.invert().map(c);r.push({oldRange:{from:d,to:f},newRange:{from:u,to:c}})})}),Qee(r)}function mv(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const o=n.resolve(e),a=fv(o,i.type);a&&r.push({mark:i,...a})}):n.nodesBetween(e,t,(i,o)=>{!i||(i==null?void 0:i.nodeSize)===void 0||r.push(...i.marks.map(a=>({from:o,to:o+i.nodeSize,mark:a})))}),r}function cf(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=e.find(o=>o.type===t&&o.name===r);return i?i.attribute.keepOnSplit:!1}))}function iy(e,t,n={}){const{empty:r,ranges:i}=e.selection,o=t?Qo(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(d=>o?o.name===d.type.name:!0).find(d=>mp(d.attrs,n,{strict:!1}));let a=0;const s=[];if(i.forEach(({$from:d,$to:f})=>{const p=d.pos,h=f.pos;e.doc.nodesBetween(p,h,(m,y)=>{if(!m.isText&&!m.marks.length)return;const b=Math.max(p,y),E=Math.min(h,y+m.nodeSize),v=E-b;a+=v,s.push(...m.marks.map(k=>({mark:k,from:b,to:E})))})}),a===0)return!1;const l=s.filter(d=>o?o.name===d.mark.type.name:!0).filter(d=>mp(d.mark.attrs,n,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),u=s.filter(d=>o?d.mark.type!==o&&d.mark.type.excludes(o):!0).reduce((d,f)=>d+f.to-f.from,0);return(l>0?l+u:l)>=a}function Jee(e,t,n={}){if(!t)return uc(e,null,n)||iy(e,null,n);const r=bm(t,e.schema);return r==="node"?uc(e,t,n):r==="mark"?iy(e,t,n):!1}function xw(e,t){const{nodeExtensions:n}=hm(t),r=n.find(a=>a.name===e);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=we(ce(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function gv(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((r=e.text)!==null&&r!==void 0?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let i=!0;return e.content.forEach(o=>{i!==!1&&(gv(o,{ignoreWhitespace:n,checkChildren:t})||(i=!1))}),i}return!1}function Zee(e){return e instanceof me}function ete(e,t,n){var r;const{selection:i}=t;let o=null;if(t3(i)&&(o=i.$cursor),o){const s=(r=e.storedMarks)!==null&&r!==void 0?r:o.marks();return!!n.isInSet(s)||!s.some(l=>l.type.excludes(n))}const{ranges:a}=i;return a.some(({$from:s,$to:l})=>{let u=s.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(s.pos,l.pos,(c,d,f)=>{if(u)return!1;if(c.isInline){const p=!f||f.type.allowsMarkType(n),h=!!n.isInSet(c.marks)||!c.marks.some(m=>m.type.excludes(n));u=p&&h}return!u}),u})}const tte=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=n,{empty:a,ranges:s}=o,l=Qo(e,r.schema);if(i)if(a){const u=o3(r,l);n.addStoredMark(l.create({...u,...t}))}else s.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;r.doc.nodesBetween(c,d,(f,p)=>{const h=Math.max(p,c),m=Math.min(p+f.nodeSize,d);f.marks.find(b=>b.type===l)?f.marks.forEach(b=>{l===b.type&&n.addMark(h,m,l.create({...b.attrs,...t}))}):n.addMark(h,m,l.create(t))})});return ete(r,n,l)},nte=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),rte=(e,t={})=>({state:n,dispatch:r,chain:i})=>{const o=Ft(e,n.schema);return o.isTextblock?i().command(({commands:a})=>yw(o,t)(n)?!0:a.clearNodes()).command(({state:a})=>yw(o,t)(a,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},ite=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=ha(e,0,r.content.size),o=me.create(r,i);t.setSelection(o)}return!0},ote=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:o}=typeof e=="number"?{from:e,to:e}:e,a=ve.atStart(r).from,s=ve.atEnd(r).to,l=ha(i,a,s),u=ha(o,a,s),c=ve.create(r,l,u);t.setSelection(c)}return!0},ate=e=>({state:t,dispatch:n})=>{const r=Ft(e,t.schema);return LZ(r)(t,n)};function Sw(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(i=>t==null?void 0:t.includes(i.type.name));e.tr.ensureMarks(r)}}const ste=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{const{selection:o,doc:a}=t,{$from:s,$to:l}=o,u=i.extensionManager.attributes,c=cf(u,s.node().type.name,s.node().attrs);if(o instanceof me&&o.node.isBlock)return!s.parentOffset||!Vs(a,s.pos)?!1:(r&&(e&&Sw(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,f=s.depth===0?void 0:$ee(s.node(-1).contentMatchAt(s.indexAfter(-1)));let p=d&&f?[{type:f,attrs:c}]:void 0,h=Vs(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!h&&Vs(t.doc,t.mapping.map(s.pos),1,f?[{type:f}]:void 0)&&(h=!0,p=f?[{type:f,attrs:c}]:void 0),r){if(h&&(o instanceof ve&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f)){const m=t.mapping.map(s.before()),y=t.doc.resolve(m);s.node(-1).canReplaceWith(y.index(),y.index()+1,f)&&t.setNodeMarkup(t.mapping.map(s.before()),f)}e&&Sw(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return h},lte=(e,t={})=>({tr:n,state:r,dispatch:i,editor:o})=>{var a;const s=Ft(e,r.schema),{$from:l,$to:u}=r.selection,c=r.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;const d=l.node(-1);if(d.type!==s)return!1;const f=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let b=ee.empty;const E=l.index(-1)?1:l.index(-2)?2:3;for(let R=l.depth-E;R>=l.depth-3;R-=1)b=ee.from(l.node(R).copy(b));const v=l.indexAfter(-1){if(I>-1)return!1;R.isTextblock&&R.content.size===0&&(I=z+1)}),I>-1&&n.setSelection(ve.near(n.doc.resolve(I))),n.scrollIntoView()}return!0}const p=u.pos===l.end()?d.contentMatchAt(0).defaultType:null,h={...cf(f,d.type.name,d.attrs),...t},m={...cf(f,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,u.pos);const y=p?[{type:s,attrs:h},{type:p,attrs:m}]:[{type:s,attrs:h}];if(!Vs(n.doc,l.pos,2))return!1;if(i){const{selection:b,storedMarks:E}=r,{splittableMarks:v}=o.extensionManager,k=E||b.$to.parentOffset&&b.$from.marks();if(n.split(l.pos,2,y).scrollIntoView(),!k||!i)return!0;const _=k.filter(x=>v.includes(x.type.name));n.ensureMarks(_)}return!0},Xg=(e,t)=>{const n=hv(a=>a.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&Ko(e.doc,n.pos)&&e.join(n.pos),!0},Jg=(e,t)=>{const n=hv(a=>a.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&Ko(e.doc,r)&&e.join(r),!0},ute=(e,t,n,r={})=>({editor:i,tr:o,state:a,dispatch:s,chain:l,commands:u,can:c})=>{const{extensions:d,splittableMarks:f}=i.extensionManager,p=Ft(e,a.schema),h=Ft(t,a.schema),{selection:m,storedMarks:y}=a,{$from:b,$to:E}=m,v=b.blockRange(E),k=y||m.$to.parentOffset&&m.$from.marks();if(!v)return!1;const _=hv(x=>xw(x.type.name,d))(m);if(v.depth>=1&&_&&v.depth-_.depth<=1){if(_.node.type===p)return u.liftListItem(h);if(xw(_.node.type.name,d)&&p.validContent(_.node.content)&&s)return l().command(()=>(o.setNodeMarkup(_.pos,p),!0)).command(()=>Xg(o,p)).command(()=>Jg(o,p)).run()}return!n||!k||!s?l().command(()=>c().wrapInList(p,r)?!0:u.clearNodes()).wrapInList(p,r).command(()=>Xg(o,p)).command(()=>Jg(o,p)).run():l().command(()=>{const x=c().wrapInList(p,r),I=k.filter(R=>f.includes(R.type.name));return o.ensureMarks(I),x?!0:u.clearNodes()}).wrapInList(p,r).command(()=>Xg(o,p)).command(()=>Jg(o,p)).run()},cte=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=n,a=Qo(e,r.schema);return iy(r,a,t)?i.unsetMark(a,{extendEmptyMarkRange:o}):i.setMark(a,t)},dte=(e,t,n={})=>({state:r,commands:i})=>{const o=Ft(e,r.schema),a=Ft(t,r.schema),s=uc(r,o,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),s?i.setNode(a,l):i.setNode(o,{...l,...n})},fte=(e,t={})=>({state:n,commands:r})=>{const i=Ft(e,n.schema);return uc(n,i,t)?r.lift(i):r.wrapIn(i,t)},pte=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r=0;l-=1)a.step(s.steps[l].invert(s.docs[l]));if(o.text){const l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else a.delete(o.from,o.to)}return!0}}return!1},hte=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(o=>{e.removeMark(o.$from.pos,o.$to.pos)}),!0},mte=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:a=!1}=t,{selection:s}=n,l=Qo(e,r.schema),{$from:u,empty:c,ranges:d}=s;if(!i)return!0;if(c&&a){let{from:f,to:p}=s;const h=(o=u.marks().find(y=>y.type===l))===null||o===void 0?void 0:o.attrs,m=fv(u,l,h);m&&(f=m.from,p=m.to),n.removeMark(f,p,l)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,l)});return n.removeStoredMark(l),!0},gte=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=bm(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(o=Ft(e,r.schema)),s==="mark"&&(a=Qo(e,r.schema)),i&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,c=l.$to.pos;r.doc.nodesBetween(u,c,(d,f)=>{o&&o===d.type&&n.setNodeMarkup(f,void 0,{...d.attrs,...t}),a&&d.marks.length&&d.marks.forEach(p=>{if(a===p.type){const h=Math.max(f,u),m=Math.min(f+d.nodeSize,c);n.addMark(h,m,a.create({...p.attrs,...t}))}})})}),!0):!1},bte=(e,t={})=>({state:n,dispatch:r})=>{const i=Ft(e,n.schema);return AZ(i,t)(n,r)},yte=(e,t={})=>({state:n,dispatch:r})=>{const i=Ft(e,n.schema);return OZ(i,t)(n,r)};var Ete=Object.freeze({__proto__:null,blur:JZ,clearContent:ZZ,clearNodes:eee,command:tee,createParagraphNear:nee,cut:ree,deleteCurrentNode:iee,deleteNode:oee,deleteRange:aee,deleteSelection:see,enter:lee,exitCode:uee,extendMarkRange:dee,first:fee,focus:pee,forEach:hee,insertContent:mee,insertContentAt:yee,joinBackward:Tee,joinDown:vee,joinForward:kee,joinItemBackward:xee,joinItemForward:See,joinTextblockBackward:wee,joinTextblockForward:_ee,joinUp:Eee,keyboardShortcut:Nee,lift:Aee,liftEmptyBlock:Oee,liftListItem:Iee,newlineInCode:Ree,resetAttributes:Mee,scrollIntoView:Dee,selectAll:Lee,selectNodeBackward:Pee,selectNodeForward:Bee,selectParentNode:zee,selectTextblockEnd:Fee,selectTextblockStart:Hee,setContent:Uee,setMark:tte,setMeta:nte,setNode:rte,setNodeSelection:ite,setTextSelection:ote,sinkListItem:ate,splitBlock:ste,splitListItem:lte,toggleList:ute,toggleMark:cte,toggleNode:dte,toggleWrap:fte,undoInputRule:pte,unsetAllMarks:hte,unsetMark:mte,updateAttributes:gte,wrapIn:bte,wrapInList:yte});const vte=bn.create({name:"commands",addCommands(){return{...Ete}}}),Tte=bn.create({name:"drop",addProseMirrorPlugins(){return[new Qt({key:new Xn("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),kte=bn.create({name:"editable",addProseMirrorPlugins(){return[new Qt({key:new Xn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),xte=bn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Qt({key:new Xn("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),Ste=bn.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:s})=>{const{selection:l,doc:u}=s,{empty:c,$anchor:d}=l,{pos:f,parent:p}=d,h=d.parent.isTextblock&&f>0?s.doc.resolve(f-1):d,m=h.parent.type.spec.isolating,y=d.pos-d.parentOffset,b=m&&h.parent.childCount===1?y===d.pos:ke.atStart(u).from===f;return!c||!p.type.isTextblock||p.textContent.length||!b||b&&d.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},o={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return pv()||i3()?o:i},addProseMirrorPlugins(){return[new Qt({key:new Xn("clearDocument"),appendTransaction:(e,t,n)=>{const r=e.some(m=>m.docChanged)&&!t.doc.eq(n.doc),i=e.some(m=>m.getMeta("preventClearDocument"));if(!r||i)return;const{empty:o,from:a,to:s}=t.selection,l=ke.atStart(t.doc).from,u=ke.atEnd(t.doc).to;if(o||!(a===l&&s===u)||!gv(n.doc))return;const f=n.tr,p=fm({state:n,transaction:f}),{commands:h}=new pm({editor:this.editor,state:p});if(h.clearNodes(),!!f.steps.length)return f}})]}}),wte=bn.create({name:"paste",addProseMirrorPlugins(){return[new Qt({key:new Xn("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),_te=bn.create({name:"tabindex",addProseMirrorPlugins(){return[new Qt({key:new Xn("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class aa{get name(){return this.node.type.name}constructor(t,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=i}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new aa(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new aa(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new aa(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,a=this.pos+r+(o?0:1),s=this.resolvedPos.doc.resolve(a);if(!i&&s.depth<=this.depth)return;const l=new aa(s,this.editor,i,i?n:null);i&&(l.actualDepth=this.depth+1),t.push(new aa(s,this.editor,i,i?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===t)if(Object.keys(n).length>0){const o=i.node.attrs,a=Object.keys(n);for(let s=0;s{r&&i.length>0||(a.node.type.name===t&&o.every(l=>n[l]===a.node.attrs[l])&&i.push(a),!(r&&i.length>0)&&(i=i.concat(a.querySelectorAll(t,n,r))))}),i}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}}const Cte=`.ProseMirror { + position: relative; +} + +.ProseMirror { + word-wrap: break-word; + white-space: pre-wrap; + white-space: break-spaces; + -webkit-font-variant-ligatures: none; + font-variant-ligatures: none; + font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ +} + +.ProseMirror [contenteditable="false"] { + white-space: normal; +} + +.ProseMirror [contenteditable="false"] [contenteditable="true"] { + white-space: pre-wrap; +} + +.ProseMirror pre { + white-space: pre-wrap; +} + +img.ProseMirror-separator { + display: inline !important; + border: none !important; + margin: 0 !important; + width: 0 !important; + height: 0 !important; +} + +.ProseMirror-gapcursor { + display: none; + pointer-events: none; + position: absolute; + margin: 0; +} + +.ProseMirror-gapcursor:after { + content: ""; + display: block; + position: absolute; + top: -2px; + width: 20px; + border-top: 1px solid black; + animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; +} + +@keyframes ProseMirror-cursor-blink { + to { + visibility: hidden; + } +} + +.ProseMirror-hideselection *::selection { + background: transparent; +} + +.ProseMirror-hideselection *::-moz-selection { + background: transparent; +} + +.ProseMirror-hideselection * { + caret-color: transparent; +} + +.ProseMirror-focused .ProseMirror-gapcursor { + display: block; +} + +.tippy-box[data-animation=fade][data-state=hidden] { + opacity: 0 +}`;function Nte(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}class Ate extends PZ{constructor(t={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:r,moved:i})=>this.options.onDrop(n,r,i)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=Nte(Cte,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,n=!0){this.setOptions({editable:t}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,n){const r=JR(n)?n(t,[...this.state.plugins]):[...this.state.plugins,t],i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}unregisterPlugin(t){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(t).forEach(o=>{const a=typeof o=="string"?`${o}$`:o.key;r=n.filter(s=>!s.key.startsWith(a))}),n.length===r.length)return;const i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}createExtensionManager(){var t,n;const i=[...this.options.enableCoreExtensions?[kte,XZ.configure({blockSeparator:(n=(t=this.options.coreExtensionOptions)===null||t===void 0?void 0:t.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),vte,xte,Ste,_te,Tte,wte].filter(o=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[o.name]!==!1:!0):[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o==null?void 0:o.type));this.extensionManager=new Ds(i,this)}createCommandManager(){this.commandManager=new pm({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let t;try{t=ry(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(o){if(!(o instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(o.message))throw o;this.emit("contentError",{editor:this,error:o,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(a=>a.name!=="collaboration"),this.createExtensionManager()}}),t=ry(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=n3(t,this.options.autofocus);this.view=new tZ(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Ms.create({doc:t,selection:n||void 0})}),this.view.dom.setAttribute("role","textbox"),this.view.dom.getAttribute("aria-label")||this.view.dom.setAttribute("aria-label","Rich-Text Editor");const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(a=>{var s;return(s=this.capturedTransaction)===null||s===void 0?void 0:s.step(a)});return}const n=this.state.apply(t),r=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:t,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:t}),r&&this.emit("selectionUpdate",{editor:this,transaction:t});const i=t.getMeta("focus"),o=t.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:t}),o&&this.emit("blur",{editor:this,event:o.event,transaction:t}),!(!t.docChanged||t.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return a3(this.state,t)}isActive(t,n){const r=typeof t=="string"?t:null,i=typeof t=="string"?n:t;return Jee(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return qee(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:n=` + +`,textSerializers:r={}}=t||{};return Yee(this.state.doc,{blockSeparator:n,textSerializers:{...e3(this.schema),...r}})}get isEmpty(){return gv(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const t=this.view.dom;t&&t.editor&&delete t.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var t;return!(!((t=this.view)===null||t===void 0)&&t.docView)}$node(t,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(t,n))||null}$nodes(t,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(t,n))||null}$pos(t){const n=this.state.doc.resolve(t);return new aa(n,this)}get $doc(){return this.$pos(0)}}function ja(e){return new mm({find:e.find,handler:({state:t,range:n,match:r})=>{const i=we(e.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=t,a=r[r.length-1],s=r[0];if(a){const l=s.search(/\S/),u=n.from+s.indexOf(a),c=u+a.length;if(mv(n.from,n.to,t.doc).filter(p=>p.mark.type.excluded.find(m=>m===e.type&&m!==p.mark.type)).filter(p=>p.to>u).length)return null;cn.from&&o.delete(n.from+l,u);const f=n.from+l+a.length;o.addMark(n.from+l,f,e.type.create(i||{})),o.removeStoredMark(e.type)}}})}function s3(e){return new mm({find:e.find,handler:({state:t,range:n,match:r})=>{const i=we(e.getAttributes,void 0,r)||{},{tr:o}=t,a=n.from;let s=n.to;const l=e.type.create(i);if(r[1]){const u=r[0].lastIndexOf(r[1]);let c=a+u;c>s?c=s:s=c+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,a+r[0].length-1),o.replaceWith(c,s,l)}else if(r[0]){const u=e.type.isInline?a:a-1;o.insert(u,e.type.create(i)).delete(o.mapping.map(a),o.mapping.map(s))}o.scrollIntoView()}})}function oy(e){return new mm({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),o=we(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)}})}function cc(e){return new mm({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const o=we(e.getAttributes,void 0,r)||{},a=t.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),u=l&&ZE(l,e.type,o);if(!u)return null;if(a.wrap(l,u),e.keepMarks&&e.editor){const{selection:d,storedMarks:f}=t,{splittableMarks:p}=e.editor.extensionManager,h=f||d.$to.parentOffset&&d.$from.marks();if(h){const m=h.filter(y=>p.includes(y.type.name));a.ensureMarks(m)}}if(e.keepAttributes){const d=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(d,o).run()}const c=a.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&Ko(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&a.join(n.from-1)}})}let kr=class ay{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=we(ce(this,"addOptions",{name:this.name}))),this.storage=we(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new ay(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>gm(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new ay(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=we(ce(n,"addOptions",{name:n.name})),n.storage=we(ce(n,"addStorage",{name:n.name,options:n.options})),n}};function Bo(e){return new VZ({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const o=we(e.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:a}=t,s=r[r.length-1],l=r[0];let u=n.to;if(s){const c=l.search(/\S/),d=n.from+l.indexOf(s),f=d+s.length;if(mv(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(y=>y===e.type&&y!==h.mark.type)).filter(h=>h.to>d).length)return null;fn.from&&a.delete(n.from+c,d),u=n.from+c+s.length,a.addMark(n.from+c,u,e.type.create(o||{})),a.removeStoredMark(e.type)}}})}function Ote(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l3={exports:{}},Zg={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ww;function Ite(){if(ww)return Zg;ww=1;var e=Et;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(d,f){var p=f(),h=r({inst:{value:p,getSnapshot:f}}),m=h[0].inst,y=h[1];return o(function(){m.value=p,m.getSnapshot=f,l(m)&&y({inst:m})},[d,p,f]),i(function(){return l(m)&&y({inst:m}),d(function(){l(m)&&y({inst:m})})},[d]),a(p),p}function l(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!n(d,p)}catch{return!0}}function u(d,f){return f()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return Zg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Zg}l3.exports=Ite();var bv=l3.exports;const Rte=(...e)=>t=>{e.forEach(n=>{typeof n=="function"?n(t):n&&(n.current=t)})},Mte=({contentComponent:e})=>{const t=bv.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return Et.createElement(Et.Fragment,null,Object.values(t))};function Dte(){const e=new Set;let t={};return{subscribe(n){return e.add(n),()=>{e.delete(n)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(n,r){t={...t,[n]:rN.createPortal(r.reactElement,r.element,n)},e.forEach(i=>i())},removeRenderer(n){const r={...t};delete r[n],t=r,e.forEach(i=>i())}}}class Lte extends Et.Component{constructor(t){var n;super(t),this.editorContentRef=Et.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(!((n=t.editor)===null||n===void 0)&&n.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const t=this.props.editor;if(t&&!t.isDestroyed&&t.options.element){if(t.contentComponent)return;const n=this.editorContentRef.current;n.append(...t.options.element.childNodes),t.setOptions({element:n}),t.contentComponent=Dte(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(r=>r.hasContentComponentInitialized?r:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){const t=this.props.editor;if(!t||(this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null,!t.options.element.firstChild))return;const n=document.createElement("div");n.append(...t.options.element.childNodes),t.setOptions({element:n})}render(){const{editor:t,innerRef:n,...r}=this.props;return Et.createElement(Et.Fragment,null,Et.createElement("div",{ref:Rte(n,this.editorContentRef),...r}),(t==null?void 0:t.contentComponent)&&Et.createElement(Mte,{contentComponent:t.contentComponent}))}}const Pte=S.forwardRef((e,t)=>{const n=Et.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return Et.createElement(Lte,{key:n,innerRef:t,...e})}),Bte=Et.memo(Pte);var zte=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!(a==="_owner"&&t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n},Fte=Ote(zte),u3={exports:{}},e0={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _w;function Hte(){if(_w)return e0;_w=1;var e=Et,t=bv;function n(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return e0.useSyncExternalStoreWithSelector=function(u,c,d,f,p){var h=o(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=s(function(){function b(x){if(!E){if(E=!0,v=x,x=f(x),p!==void 0&&m.hasValue){var I=m.value;if(p(I,x))return k=I}return k=x}if(I=k,r(v,x))return I;var R=f(x);return p!==void 0&&p(I,R)?I:(v=x,k=R)}var E=!1,v,k,_=d===void 0?null:d;return[function(){return b(c())},_===null?void 0:function(){return b(_())}]},[c,d,f,p]);var y=i(u,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=y},[y]),l(y),y},e0}u3.exports=Hte();var Ute=u3.exports;class jte{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){const n=()=>{this.transactionNumber+=1,this.subscribers.forEach(i=>i())},r=this.editor;return r.on("transaction",n),()=>{r.off("transaction",n)}}}}function $te(e){var t;const[n]=S.useState(()=>new jte(e.editor)),r=Ute.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,(t=e.equalityFn)!==null&&t!==void 0?t:Fte);return S.useEffect(()=>n.watch(e.editor),[e.editor,n]),S.useDebugValue(r),r}const Wte=!1,sy=typeof window>"u",Vte=sy||!!(typeof window<"u"&&window.next);class qte{constructor(t){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(t){this.editor=t,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){if(this.options.current.immediatelyRender===void 0)return sy||Vte?null:this.createEditor();if(this.options.current.immediatelyRender&&sy&&Wte)throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){const t={...this.options.current,onBeforeCreate:(...r)=>{var i,o;return(o=(i=this.options.current).onBeforeCreate)===null||o===void 0?void 0:o.call(i,...r)},onBlur:(...r)=>{var i,o;return(o=(i=this.options.current).onBlur)===null||o===void 0?void 0:o.call(i,...r)},onCreate:(...r)=>{var i,o;return(o=(i=this.options.current).onCreate)===null||o===void 0?void 0:o.call(i,...r)},onDestroy:(...r)=>{var i,o;return(o=(i=this.options.current).onDestroy)===null||o===void 0?void 0:o.call(i,...r)},onFocus:(...r)=>{var i,o;return(o=(i=this.options.current).onFocus)===null||o===void 0?void 0:o.call(i,...r)},onSelectionUpdate:(...r)=>{var i,o;return(o=(i=this.options.current).onSelectionUpdate)===null||o===void 0?void 0:o.call(i,...r)},onTransaction:(...r)=>{var i,o;return(o=(i=this.options.current).onTransaction)===null||o===void 0?void 0:o.call(i,...r)},onUpdate:(...r)=>{var i,o;return(o=(i=this.options.current).onUpdate)===null||o===void 0?void 0:o.call(i,...r)},onContentError:(...r)=>{var i,o;return(o=(i=this.options.current).onContentError)===null||o===void 0?void 0:o.call(i,...r)},onDrop:(...r)=>{var i,o;return(o=(i=this.options.current).onDrop)===null||o===void 0?void 0:o.call(i,...r)},onPaste:(...r)=>{var i,o;return(o=(i=this.options.current).onPaste)===null||o===void 0?void 0:o.call(i,...r)}};return new Ate(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(t){return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(t){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=t;return}if(this.previousDeps.length===t.length&&this.previousDeps.every((r,i)=>r===t[i]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=t}scheduleDestroy(){const t=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===t){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===t&&this.setEditor(null))},1)}}function Yte(e={},t=[]){const n=S.useRef(e);n.current=e;const[r]=S.useState(()=>new qte(n)),i=bv.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return S.useDebugValue(i),S.useEffect(r.onRender(t)),$te({editor:i,selector:({transactionNumber:o})=>e.shouldRerenderOnTransaction===!1?null:e.immediatelyRender&&o===0?0:o+1}),i}const Kte=S.createContext({editor:null});Kte.Consumer;const Gte=S.createContext({onDragStart:void 0}),Qte=()=>S.useContext(Gte);Et.forwardRef((e,t)=>{const{onDragStart:n}=Qte(),r=e.as||"div";return Et.createElement(r,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});const Xte=/^\s*>\s$/,Jte=kr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[cc({find:Xte,type:this.type})]}}),Zte=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,ene=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,tne=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,nne=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,rne=si.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ja({find:Zte,type:this.type}),ja({find:tne,type:this.type})]},addPasteRules(){return[Bo({find:ene,type:this.type}),Bo({find:nne,type:this.type})]}}),ine="listItem",Cw="textStyle",Nw=/^\s*([-+*])\s$/,one=kr.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ine,this.editor.getAttributes(Cw)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=cc({find:Nw,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cc({find:Nw,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Cw),editor:this.editor})),[e]}}),ane=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,sne=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,lne=si.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[ja({find:ane,type:this.type})]},addPasteRules(){return[Bo({find:sne,type:this.type})]}}),une=/^```([a-z]+)?[\s\n]$/,cne=/^~~~([a-z]+)?[\s\n]$/,c3=kr.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options,o=[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",Nt(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith(` + +`);return!o||!a?!1:e.chain().command(({tr:s})=>(s.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const s=i.after();return s===void 0?!1:r.nodeAt(s)?e.commands.command(({tr:u})=>(u.setSelection(ke.near(r.resolve(s))),!0)):e.commands.exitCode()}}},addInputRules(){return[oy({find:une,type:this.type,getAttributes:e=>({language:e[1]})}),oy({find:cne,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Qt({key:new Xn("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=i==null?void 0:i.mode;if(!n||!o)return!1;const{tr:a,schema:s}=e.state,l=s.text(n.replace(/\r\n?/g,` +`));return a.replaceSelectionWith(this.type.create({language:o},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(ve.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),dne=kr.create({name:"doc",topNode:!0,content:"block+"});function fne(e={}){return new Qt({view(t){return new pne(t,e)}})}class pne{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=a=>{this[i](a)};return t.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,l=t.nodeAfter;if(s||l){let u=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(u){let c=u.getBoundingClientRect(),d=s?c.bottom:c.top;s&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:c.left,right:c.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let o,a;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,a=-pageYOffset;else{let s=i.getBoundingClientRect();o=s.left-i.scrollLeft,a=s.top-i.scrollTop}this.element.style.left=r.left-o+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!o){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=nR(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const hne=bn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[fne(this.options)]}});class pt extends ke{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return pt.valid(r)?new pt(r):ke.near(r)}content(){return ae.empty}eq(t){return t instanceof pt&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new pt(t.resolve(n.pos))}getBookmark(){return new yv(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!mne(t)||!gne(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&pt.valid(t))return t;let i=t.pos,o=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){o=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;i+=n;let l=t.doc.resolve(i);if(pt.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!me.isSelectable(o)){t=t.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=a,i+=n;let s=t.doc.resolve(i);if(pt.valid(s))return s}return null}}}pt.prototype.visible=!1;pt.findFrom=pt.findGapCursorFrom;ke.jsonID("gapcursor",pt);class yv{constructor(t){this.pos=t}map(t){return new yv(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return pt.valid(n)?new pt(n):ke.near(n)}}function mne(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function gne(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function bne(){return new Qt({props:{decorations:Tne,createSelectionBetween(e,t,n){return t.pos==n.pos&&pt.valid(n)?new pt(n):null},handleClick:Ene,handleKeyDown:yne,handleDOMEvents:{beforeinput:vne}}})}const yne=WR({ArrowLeft:Md("horiz",-1),ArrowRight:Md("horiz",1),ArrowUp:Md("vert",-1),ArrowDown:Md("vert",1)});function Md(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,o){let a=r.selection,s=t>0?a.$to:a.$from,l=a.empty;if(a instanceof ve){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let u=pt.findGapCursorFrom(s,t,l);return u?(i&&i(r.tr.setSelection(new pt(u))),!0):!1}}function Ene(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!pt.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&me.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new pt(r))),!0)}function vne(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof pt))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=ee.empty;for(let a=r.length-1;a>=0;a--)i=ee.from(r[a].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new ae(i,0,0));return o.setSelection(ve.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function Tne(e){if(!(e.selection instanceof pt))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",_t.create(e.doc,[cr.widget(e.selection.head,t,{key:"gapcursor"})])}const kne=bn.create({name:"gapCursor",addProseMirrorPlugins(){return[bne()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=we(ce(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),xne=kr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",Nt(this.options.HTMLAttributes,e)]},renderText(){return` +`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:i,storedMarks:o}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:s}=r.extensionManager,l=o||i.$to.parentOffset&&i.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&a){const d=l.filter(f=>s.includes(f.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Sne=kr.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,Nt(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>oy({find:new RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});var bp=200,Bt=function(){};Bt.prototype.append=function(t){return t.length?(t=Bt.from(t),!this.length&&t||t.length=n?Bt.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Bt.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Bt.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Bt.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,a){return i.push(t(o,a))},n,r),i};Bt.from=function(t){return t instanceof Bt?t:t&&t.length?new d3(t):Bt.empty};var d3=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new t(this.values.slice(i,o))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,o,a,s){for(var l=o;l=a;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=bp)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=bp)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Bt);Bt.empty=new d3([]);var wne=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,o,a){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(o,s)-s,a+s)===!1||o=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Bt);const _ne=500;class Ar{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=t.tr,s,l,u=[],c=[];return this.items.forEach((d,f)=>{if(!d.step){i||(i=this.remapping(r,f+1),o=i.maps.length),o--,c.push(d);return}if(i){c.push(new qr(d.map));let p=d.step.map(i.slice(o)),h;p&&a.maybeStep(p).doc&&(h=a.mapping.maps[a.mapping.maps.length-1],u.push(new qr(h,void 0,void 0,u.length+c.length))),o--,h&&i.appendMap(h,o)}else a.maybeStep(d.step);if(d.selection)return s=i?d.selection.map(i.slice(o)):d.selection,l=new Ar(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(t,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let c=0;cNne&&(s=Cne(s,u),a-=u),new Ar(s.append(o),a)}remapping(t,n){let r=new Ws;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new Ar(this.items.append(t.map(n=>new qr(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(f=>{f.selection&&s--},i);let l=n;this.items.forEach(f=>{let p=o.getMirror(--l);if(p==null)return;a=Math.min(a,p);let h=o.maps[p];if(f.step){let m=t.steps[p].invert(t.docs[p]),y=f.selection&&f.selection.map(o.slice(l+1,p));y&&s++,r.push(new qr(h,m,y))}else r.push(new qr(h))},i);let u=[];for(let f=n;f_ne&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=t)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=a.selection&&a.selection.map(n.slice(r));c&&o++;let d=new qr(u.invert(),l,c),f,p=i.length-1;(f=i.length&&i[p].merge(d))?i[p]=f:i.push(d)}}else a.map&&r--},this.items.length,0),new Ar(Bt.from(i.reverse()),o)}}Ar.empty=new Ar(Bt.empty,0);function Cne(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class qr{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new qr(n.getMap().invert(),n,this.selection)}}}class ro{constructor(t,n,r,i,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const Nne=20;function Ane(e,t,n,r){let i=n.getMeta(Ca),o;if(i)return i.historyState;n.getMeta(Rne)&&(e=new ro(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(Ca))return a.getMeta(Ca).redo?new ro(e.done.addTransform(n,void 0,r,df(t)),e.undone,Aw(n.mapping.maps),e.prevTime,e.prevComposition):new ro(e.done,e.undone.addTransform(n,void 0,r,df(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!One(n,e.prevRanges)),u=a?t0(e.prevRanges,n.mapping):Aw(n.mapping.maps);return new ro(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,df(t)),Ar.empty,u,n.time,s??e.prevComposition)}else return(o=n.getMeta("rebased"))?new ro(e.done.rebased(n,o),e.undone.rebased(n,o),t0(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new ro(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),t0(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function One(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let o=0;o=t[o]&&(n=!0)}),n}function Aw(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((r,i,o,a)=>t.push(o,a));return t}function t0(e,t){if(!e)return null;let n=[];for(let r=0;r{let i=Ca.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let o=Ine(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}const p3=f3(!1,!0),h3=f3(!0,!0),Dne=bn.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>p3(e,t),redo:()=>({state:e,dispatch:t})=>h3(e,t)}},addProseMirrorPlugins(){return[Mne(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Lne=kr.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",Nt(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{const{selection:n}=t,{$from:r,$to:i}=n,o=e();return r.parentOffset===0?o.insertContentAt({from:Math.max(r.pos-1,0),to:i.pos},{type:this.name}):Zee(n)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({tr:a,dispatch:s})=>{var l;if(s){const{$to:u}=a.selection,c=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?a.setSelection(ve.create(a.doc,u.pos+1)):u.nodeAfter.isBlock?a.setSelection(me.create(a.doc,u.pos)):a.setSelection(ve.create(a.doc,u.pos));else{const d=(l=u.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();d&&(a.insert(c,d),a.setSelection(ve.create(a.doc,c+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[s3({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Pne=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Bne=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,zne=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Fne=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Hne=si.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ja({find:Pne,type:this.type}),ja({find:zne,type:this.type})]},addPasteRules(){return[Bo({find:Bne,type:this.type}),Bo({find:Fne,type:this.type})]}}),Une=kr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",Nt(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),jne="listItem",Iw="textStyle",Rw=/^(\d+)\.\s$/,$ne=kr.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",Nt(this.options.HTMLAttributes,n),0]:["ol",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(jne,this.editor.getAttributes(Iw)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=cc({find:Rw,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cc({find:Rw,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(Iw)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),Wne=kr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Vne=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,qne=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Yne=si.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ja({find:Vne,type:this.type})]},addPasteRules(){return[Bo({find:qne,type:this.type})]}}),Kne=kr.create({name:"text",group:"inline"}),Gne=bn.create({name:"starterKit",addExtensions(){var e,t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,y,b;const E=[];return this.options.bold!==!1&&E.push(rne.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.blockquote!==!1&&E.push(Jte.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bulletList!==!1&&E.push(one.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&E.push(lne.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&E.push(c3.configure((i=this.options)===null||i===void 0?void 0:i.codeBlock)),this.options.document!==!1&&E.push(dne.configure((o=this.options)===null||o===void 0?void 0:o.document)),this.options.dropcursor!==!1&&E.push(hne.configure((a=this.options)===null||a===void 0?void 0:a.dropcursor)),this.options.gapcursor!==!1&&E.push(kne.configure((s=this.options)===null||s===void 0?void 0:s.gapcursor)),this.options.hardBreak!==!1&&E.push(xne.configure((l=this.options)===null||l===void 0?void 0:l.hardBreak)),this.options.heading!==!1&&E.push(Sne.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&E.push(Dne.configure((c=this.options)===null||c===void 0?void 0:c.history)),this.options.horizontalRule!==!1&&E.push(Lne.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&E.push(Hne.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&E.push(Une.configure((p=this.options)===null||p===void 0?void 0:p.listItem)),this.options.orderedList!==!1&&E.push($ne.configure((h=this.options)===null||h===void 0?void 0:h.orderedList)),this.options.paragraph!==!1&&E.push(Wne.configure((m=this.options)===null||m===void 0?void 0:m.paragraph)),this.options.strike!==!1&&E.push(Yne.configure((y=this.options)===null||y===void 0?void 0:y.strike)),this.options.text!==!1&&E.push(Kne.configure((b=this.options)===null||b===void 0?void 0:b.text)),E}}),Qne="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Xne="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",pl=(e,t)=>{for(const n in t)e[n]=t[n];return e},ly="numeric",uy="ascii",cy="alpha",ff="asciinumeric",Dd="alphanumeric",dy="domain",m3="emoji",Jne="scheme",Zne="slashscheme",Mw="whitespace";function ere(e,t){return e in t||(t[e]=[]),t[e]}function ma(e,t,n){t[ly]&&(t[ff]=!0,t[Dd]=!0),t[uy]&&(t[ff]=!0,t[cy]=!0),t[ff]&&(t[Dd]=!0),t[cy]&&(t[Dd]=!0),t[Dd]&&(t[dy]=!0),t[m3]&&(t[dy]=!0);for(const r in t){const i=ere(r,n);i.indexOf(e)<0&&i.push(e)}}function tre(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function wn(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}wn.groups={};wn.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;re.ta(t,n,r,i),Zn=(e,t,n,r,i)=>e.tr(t,n,r,i),Dw=(e,t,n,r,i)=>e.ts(t,n,r,i),oe=(e,t,n,r,i)=>e.tt(t,n,r,i),bi="WORD",fy="UWORD",dc="LOCALHOST",py="TLD",hy="UTLD",pf="SCHEME",Es="SLASH_SCHEME",Ev="NUM",g3="WS",vv="NL",_u="OPENBRACE",Cu="CLOSEBRACE",yp="OPENBRACKET",Ep="CLOSEBRACKET",vp="OPENPAREN",Tp="CLOSEPAREN",kp="OPENANGLEBRACKET",xp="CLOSEANGLEBRACKET",Sp="FULLWIDTHLEFTPAREN",wp="FULLWIDTHRIGHTPAREN",_p="LEFTCORNERBRACKET",Cp="RIGHTCORNERBRACKET",Np="LEFTWHITECORNERBRACKET",Ap="RIGHTWHITECORNERBRACKET",Op="FULLWIDTHLESSTHAN",Ip="FULLWIDTHGREATERTHAN",Rp="AMPERSAND",Mp="APOSTROPHE",Dp="ASTERISK",io="AT",Lp="BACKSLASH",Pp="BACKTICK",Bp="CARET",uo="COLON",Tv="COMMA",zp="DOLLAR",Yr="DOT",Fp="EQUALS",kv="EXCLAMATION",Kr="HYPHEN",Hp="PERCENT",Up="PIPE",jp="PLUS",$p="POUND",Wp="QUERY",xv="QUOTE",Sv="SEMI",Gr="SLASH",Nu="TILDE",Vp="UNDERSCORE",b3="EMOJI",qp="SYM";var y3=Object.freeze({__proto__:null,WORD:bi,UWORD:fy,LOCALHOST:dc,TLD:py,UTLD:hy,SCHEME:pf,SLASH_SCHEME:Es,NUM:Ev,WS:g3,NL:vv,OPENBRACE:_u,CLOSEBRACE:Cu,OPENBRACKET:yp,CLOSEBRACKET:Ep,OPENPAREN:vp,CLOSEPAREN:Tp,OPENANGLEBRACKET:kp,CLOSEANGLEBRACKET:xp,FULLWIDTHLEFTPAREN:Sp,FULLWIDTHRIGHTPAREN:wp,LEFTCORNERBRACKET:_p,RIGHTCORNERBRACKET:Cp,LEFTWHITECORNERBRACKET:Np,RIGHTWHITECORNERBRACKET:Ap,FULLWIDTHLESSTHAN:Op,FULLWIDTHGREATERTHAN:Ip,AMPERSAND:Rp,APOSTROPHE:Mp,ASTERISK:Dp,AT:io,BACKSLASH:Lp,BACKTICK:Pp,CARET:Bp,COLON:uo,COMMA:Tv,DOLLAR:zp,DOT:Yr,EQUALS:Fp,EXCLAMATION:kv,HYPHEN:Kr,PERCENT:Hp,PIPE:Up,PLUS:jp,POUND:$p,QUERY:Wp,QUOTE:xv,SEMI:Sv,SLASH:Gr,TILDE:Nu,UNDERSCORE:Vp,EMOJI:b3,SYM:qp});const fs=/[a-z]/,r0=new RegExp("\\p{L}","u"),i0=new RegExp("\\p{Emoji}","u"),o0=/\d/,Lw=/\s/,Pw=` +`,nre="️",rre="‍";let Ld=null,Pd=null;function ire(e){e===void 0&&(e=[]);const t={};wn.groups=t;const n=new wn;Ld==null&&(Ld=Bw(Qne)),Pd==null&&(Pd=Bw(Xne)),oe(n,"'",Mp),oe(n,"{",_u),oe(n,"}",Cu),oe(n,"[",yp),oe(n,"]",Ep),oe(n,"(",vp),oe(n,")",Tp),oe(n,"<",kp),oe(n,">",xp),oe(n,"(",Sp),oe(n,")",wp),oe(n,"「",_p),oe(n,"」",Cp),oe(n,"『",Np),oe(n,"』",Ap),oe(n,"<",Op),oe(n,">",Ip),oe(n,"&",Rp),oe(n,"*",Dp),oe(n,"@",io),oe(n,"`",Pp),oe(n,"^",Bp),oe(n,":",uo),oe(n,",",Tv),oe(n,"$",zp),oe(n,".",Yr),oe(n,"=",Fp),oe(n,"!",kv),oe(n,"-",Kr),oe(n,"%",Hp),oe(n,"|",Up),oe(n,"+",jp),oe(n,"#",$p),oe(n,"?",Wp),oe(n,'"',xv),oe(n,"/",Gr),oe(n,";",Sv),oe(n,"~",Nu),oe(n,"_",Vp),oe(n,"\\",Lp);const r=Zn(n,o0,Ev,{[ly]:!0});Zn(r,o0,r);const i=Zn(n,fs,bi,{[uy]:!0});Zn(i,fs,i);const o=Zn(n,r0,fy,{[cy]:!0});Zn(o,fs),Zn(o,r0,o);const a=Zn(n,Lw,g3,{[Mw]:!0});oe(n,Pw,vv,{[Mw]:!0}),oe(a,Pw),Zn(a,Lw,a);const s=Zn(n,i0,b3,{[m3]:!0});Zn(s,i0,s),oe(s,nre,s);const l=oe(s,rre);Zn(l,i0,s);const u=[[fs,i]],c=[[fs,null],[r0,o]];for(let d=0;dd[0]>f[0]?1:-1);for(let d=0;d=0?h[dy]=!0:fs.test(f)?o0.test(f)?h[ff]=!0:h[uy]=!0:h[ly]=!0,Dw(n,f,f,h)}return Dw(n,"localhost",dc,{ascii:!0}),n.jd=new wn(qp),{start:n,tokens:pl({groups:t},y3)}}function ore(e,t){const n=are(t.replace(/[A-Z]/g,s=>s.toLowerCase())),r=n.length,i=[];let o=0,a=0;for(;a=0&&(d+=n[a].length,f++),u+=n[a].length,o+=n[a].length,a++;o-=d,a-=f,u-=d,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}function are(e){const t=[],n=e.length;let r=0;for(;r56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}function Vi(e,t,n,r,i){let o;const a=t.length;for(let s=0;s=0;)o++;if(o>0){t.push(n.join(""));for(let a=parseInt(e.substring(r,r+o),10);a>0;a--)n.pop();r+=o}else n.push(e[r]),r++}return t}const fc={defaultProtocol:"http",events:null,format:zw,formatHref:zw,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function wv(e,t){t===void 0&&(t=null);let n=pl({},fc);e&&(n=pl(n,e instanceof wv?e.o:e));const r=n.ignoreTags,i=[];for(let o=0;on?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=fc.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),a={},s=e.get("className",n,t),l=e.get("target",n,t),u=e.get("rel",n,t),c=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return a.href=r,s&&(a.class=s),l&&(a.target=l),u&&(a.rel=u),c&&pl(a,c),{tagName:i,attributes:a,content:o,eventListeners:d}}};function ym(e,t){class n extends E3{constructor(i,o){super(i,o),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const Fw=ym("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Hw=ym("text"),sre=ym("nl"),Bd=ym("url",{isLink:!0,toHref(e){return e===void 0&&(e=fc.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==dc&&e[1].t===uo}}),er=e=>new wn(e);function lre(e){let{groups:t}=e;const n=t.domain.concat([Rp,Dp,io,Lp,Pp,Bp,zp,Fp,Kr,Ev,Hp,Up,jp,$p,Gr,qp,Nu,Vp]),r=[Mp,uo,Tv,Yr,kv,Wp,xv,Sv,kp,xp,_u,Cu,Ep,yp,vp,Tp,Sp,wp,_p,Cp,Np,Ap,Op,Ip],i=[Rp,Mp,Dp,Lp,Pp,Bp,zp,Fp,Kr,_u,Cu,Hp,Up,jp,$p,Wp,Gr,qp,Nu,Vp],o=er(),a=oe(o,Nu);xe(a,i,a),xe(a,t.domain,a);const s=er(),l=er(),u=er();xe(o,t.domain,s),xe(o,t.scheme,l),xe(o,t.slashscheme,u),xe(s,i,a),xe(s,t.domain,s);const c=oe(s,io);oe(a,io,c),oe(l,io,c),oe(u,io,c);const d=oe(a,Yr);xe(d,i,a),xe(d,t.domain,a);const f=er();xe(c,t.domain,f),xe(f,t.domain,f);const p=oe(f,Yr);xe(p,t.domain,f);const h=er(Fw);xe(p,t.tld,h),xe(p,t.utld,h),oe(c,dc,h);const m=oe(f,Kr);xe(m,t.domain,f),xe(h,t.domain,f),oe(h,Yr,p),oe(h,Kr,m);const y=oe(h,uo);xe(y,t.numeric,Fw);const b=oe(s,Kr),E=oe(s,Yr);xe(b,t.domain,s),xe(E,i,a),xe(E,t.domain,s);const v=er(Bd);xe(E,t.tld,v),xe(E,t.utld,v),xe(v,t.domain,s),xe(v,i,a),oe(v,Yr,E),oe(v,Kr,b),oe(v,io,c);const k=oe(v,uo),_=er(Bd);xe(k,t.numeric,_);const x=er(Bd),I=er();xe(x,n,x),xe(x,r,I),xe(I,n,x),xe(I,r,I),oe(v,Gr,x),oe(_,Gr,x);const R=oe(l,uo),z=oe(u,uo),A=oe(z,Gr),j=oe(A,Gr);xe(l,t.domain,s),oe(l,Yr,E),oe(l,Kr,b),xe(u,t.domain,s),oe(u,Yr,E),oe(u,Kr,b),xe(R,t.domain,x),oe(R,Gr,x),xe(j,t.domain,x),xe(j,n,x),oe(j,Gr,x);const L=[[_u,Cu],[yp,Ep],[vp,Tp],[kp,xp],[Sp,wp],[_p,Cp],[Np,Ap],[Op,Ip]];for(let U=0;U=0&&f++,i++,c++;if(f<0)i-=c,i0&&(o.push(a0(Hw,t,a)),a=[]),i-=f,c-=f;const p=d.t,h=n.slice(i-c,i);o.push(a0(p,t,h))}}return a.length>0&&o.push(a0(Hw,t,a)),o}function a0(e,t,n){const r=n[0].s,i=n[n.length-1].e,o=t.slice(r,i);return new e(o,n)}const cre=typeof console<"u"&&console&&console.warn||(()=>{}),dre="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",st={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function fre(){wn.groups={},st.scanner=null,st.parser=null,st.tokenQueue=[],st.pluginQueue=[],st.customSchemes=[],st.initialized=!1}function Uw(e,t){if(t===void 0&&(t=!1),st.initialized&&cre(`linkifyjs: already initialized - will not register custom scheme "${e}" ${dre}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format. +1. Must only contain digits, lowercase ASCII letters or "-" +2. Cannot start or end with "-" +3. "-" cannot repeat`);st.customSchemes.push([e,t])}function pre(){st.scanner=ire(st.customSchemes);for(let e=0;e{const i=t.some(u=>u.docChanged)&&!n.doc.eq(r.doc),o=t.some(u=>u.getMeta("preventAutolink"));if(!i||o)return;const{tr:a}=r,s=jee(n.doc,[...t]);if(Xee(s).forEach(({newRange:u})=>{const c=Wee(r.doc,u,p=>p.isTextblock);let d,f;if(c.length>1?(d=c[0],f=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):c.length&&r.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(d=c[0],f=r.doc.textBetween(d.pos,u.to,void 0," ")),d&&f){const p=f.split(" ").filter(b=>b!=="");if(p.length<=0)return!1;const h=p[p.length-1],m=d.pos+f.lastIndexOf(h);if(!h)return!1;const y=v3(h).map(b=>b.toObject(e.defaultProtocol));if(!hre(y))return!1;y.filter(b=>b.isLink).map(b=>({...b,from:m+b.start+1,to:m+b.end+1})).filter(b=>r.schema.marks.code?!r.doc.rangeHasMark(b.from,b.to,r.schema.marks.code):!0).filter(b=>e.validate(b.value)).forEach(b=>{mv(b.from,b.to,r.doc).some(E=>E.mark.type===e.type)||a.addMark(b.from,b.to,e.type.create({href:b.href}))})}}),!!a.steps.length)return a}})}function gre(e){return new Qt({key:new Xn("handleClickLink"),props:{handleClick:(t,n,r)=>{var i,o;if(r.button!==0||!t.editable)return!1;let a=r.target;const s=[];for(;a.nodeName!=="DIV";)s.push(a),a=a.parentNode;if(!s.find(f=>f.nodeName==="A"))return!1;const l=a3(t.state,e.type.name),u=r.target,c=(i=u==null?void 0:u.href)!==null&&i!==void 0?i:l.href,d=(o=u==null?void 0:u.target)!==null&&o!==void 0?o:l.target;return u&&c?(window.open(c,d),!0):!1}}})}function bre(e){return new Qt({key:new Xn("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{state:i}=t,{selection:o}=i,{empty:a}=o;if(a)return!1;let s="";r.content.forEach(u=>{s+=u.textContent});const l=T3(s,{defaultProtocol:e.defaultProtocol}).find(u=>u.isLink&&u.value===s);return!s||!l?!1:(e.editor.commands.setMark(e.type,{href:l.href}),!0)}}})}const yre=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function jw(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!e||e.replace(yre,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Ere=si.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(e=>{if(typeof e=="string"){Uw(e);return}Uw(e.scheme,e.optionalSlashes)})},onDestroy(){fre()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!jw(t,this.options.protocols)?!1:null}}]},renderHTML({HTMLAttributes:e}){return jw(e.href,this.options.protocols)?["a",Nt(this.options.HTMLAttributes,e),0]:["a",Nt(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Bo({find:e=>{const t=[];if(e){const{validate:n}=this.options,r=T3(e).filter(i=>i.isLink&&n(i.value));r.length&&r.forEach(i=>t.push({text:i.value,data:{href:i.href},index:i.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)===null||t===void 0?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[];return this.options.autolink&&e.push(mre({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&e.push(gre({type:this.type})),this.options.linkOnPaste&&e.push(bre({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),vre=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Tre=kr.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",Nt(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[s3({find:vre,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}),kre=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,xre=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,Sre=si.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:e}){return["mark",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ja({find:kre,type:this.type})]},addPasteRules(){return[Bo({find:xre,type:this.type})]}});function wre({content:e,onChange:t}){const n=Yte({extensions:[Gne,Ere.configure({openOnClick:!1}),Tre,c3,Sre],content:e,onUpdate:({editor:r})=>{t(r.getHTML())}});return n?T.jsxs(se,{style:{display:"flex",flexDirection:"column",height:"100%"},children:[T.jsxs(it,{mb:"xs",wrap:"nowrap",children:[T.jsx(Qe,{label:"Bold",children:T.jsx(ze,{variant:n.isActive("bold")?"filled":"subtle",onClick:()=>n.chain().focus().toggleBold().run(),children:T.jsx(eF,{size:16})})}),T.jsx(Qe,{label:"Italic",children:T.jsx(ze,{variant:n.isActive("italic")?"filled":"subtle",onClick:()=>n.chain().focus().toggleItalic().run(),children:T.jsx(cF,{size:16})})}),T.jsx(Qe,{label:"Heading 1",children:T.jsx(ze,{variant:n.isActive("heading",{level:1})?"filled":"subtle",onClick:()=>n.chain().focus().toggleHeading({level:1}).run(),children:T.jsx(sF,{size:16})})}),T.jsx(Qe,{label:"Heading 2",children:T.jsx(ze,{variant:n.isActive("heading",{level:2})?"filled":"subtle",onClick:()=>n.chain().focus().toggleHeading({level:2}).run(),children:T.jsx(lF,{size:16})})}),T.jsx(Qe,{label:"Heading 3",children:T.jsx(ze,{variant:n.isActive("heading",{level:3})?"filled":"subtle",onClick:()=>n.chain().focus().toggleHeading({level:3}).run(),children:T.jsx(uF,{size:16})})}),T.jsx(Qe,{label:"Bullet List",children:T.jsx(ze,{variant:n.isActive("bulletList")?"filled":"subtle",onClick:()=>n.chain().focus().toggleBulletList().run(),children:T.jsx(fF,{size:16})})}),T.jsx(Qe,{label:"Numbered List",children:T.jsx(ze,{variant:n.isActive("orderedList")?"filled":"subtle",onClick:()=>n.chain().focus().toggleOrderedList().run(),children:T.jsx(dF,{size:16})})}),T.jsx(Qe,{label:"Blockquote",children:T.jsx(ze,{variant:n.isActive("blockquote")?"filled":"subtle",onClick:()=>n.chain().focus().toggleBlockquote().run(),children:T.jsx(pF,{size:16})})}),T.jsx(Qe,{label:"Code Block",children:T.jsx(ze,{variant:n.isActive("codeBlock")?"filled":"subtle",onClick:()=>n.chain().focus().toggleCodeBlock().run(),children:T.jsx(oF,{size:16})})}),T.jsx(Qe,{label:"Clear Formatting",children:T.jsx(ze,{variant:"subtle",onClick:()=>n.chain().focus().clearNodes().unsetAllMarks().run(),children:T.jsx(iF,{size:16})})})]}),T.jsx(se,{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",border:"1px solid var(--mantine-color-gray-3)",borderRadius:"var(--mantine-radius-md)",padding:"1rem",overflow:"auto",minHeight:0},children:T.jsx(Bte,{editor:n,style:{flex:"1 1 auto",display:"flex",flexDirection:"column",height:"100%"}})})]}):null}function _re({content:e}){const t=e.trim()?e.trim().split(/\s+/).length:0,n=e.length,r=Math.ceil(t/200);return T.jsxs(it,{gap:"xs",children:[T.jsxs(qt,{size:"xs",c:"dimmed",children:[t," words"]}),T.jsx(qt,{size:"xs",c:"dimmed",children:"·"}),T.jsxs(qt,{size:"xs",c:"dimmed",children:[n," characters"]}),T.jsx(qt,{size:"xs",c:"dimmed",children:"·"}),T.jsxs(qt,{size:"xs",c:"dimmed",children:[r," min read"]})]})}function Cre({content:e,onChange:t,isMobile:n,defaultView:r="edit",editorType:i="markdown"}){const[o,a]=S.useState(n?"edit":r),[s,l]=S.useState(i),u=()=>s==="richtext"?T.jsx(wre,{content:e,onChange:t}):T.jsx(bE,{value:e,onChange:f=>t(f.currentTarget.value),styles:{root:{height:"100%"},wrapper:{height:"100%"},input:{height:"100%",padding:"1rem",fontSize:n?"16px":void 0,borderRadius:"var(--mantine-radius-md)",border:"1px solid var(--mantine-color-gray-3)",backgroundColor:"var(--mantine-color-body)",transition:"border-color 100ms ease","&:focus":{borderColor:"var(--mantine-color-blue-filled)",outline:"none"},"&:hover":{borderColor:"var(--mantine-color-gray-5)"}}}}),c=()=>T.jsx(se,{className:"markdown-preview",p:"md",style:{height:"100%",overflow:"auto"},children:T.jsx(Rj,{remarkPlugins:[$W],rehypePlugins:[tK,CQ],children:e})}),d=()=>{if(n)return o==="edit"?u():c();switch(o){case"preview":return c();case"split":return T.jsxs(it,{grow:!0,style:{height:"100%"},children:[u(),c()]});default:return u()}};return T.jsxs(se,{style:{height:"100%",display:"flex",flexDirection:"column"},children:[T.jsxs(it,{justify:"space-between",mb:"xs",children:[T.jsx(_re,{content:e}),T.jsx(it,{children:n?T.jsx(ze,{variant:o==="edit"?"filled":"subtle",onClick:()=>a(o==="edit"?"preview":"edit"),children:o==="edit"?T.jsx(Fk,{size:16}):T.jsx(zk,{size:16})}):T.jsxs(T.Fragment,{children:[T.jsx(Qe,{label:"Markdown",children:T.jsx(ze,{variant:s==="markdown"&&o==="edit"?"filled":"subtle",onClick:()=>{l("markdown"),a("edit")},children:T.jsx(zk,{size:16})})}),T.jsx(Qe,{label:"Rich Text",children:T.jsx(ze,{variant:s==="richtext"&&o==="edit"?"filled":"subtle",onClick:()=>{l("richtext"),a("edit")},children:T.jsx(hF,{size:16})})}),T.jsx(Qe,{label:"Preview",children:T.jsx(ze,{variant:o==="preview"?"filled":"subtle",onClick:()=>a("preview"),children:T.jsx(Fk,{size:16})})}),T.jsx(Qe,{label:"Split View",children:T.jsx(ze,{variant:o==="split"?"filled":"subtle",onClick:()=>a("split"),children:T.jsx(aF,{size:16})})})]})})]}),d()]})}function Nre(e){let t=e,n=!1;const r=new Set;return{getState(){return t},updateState(i){t=typeof i=="function"?i(t):i},setState(i){this.updateState(i),r.forEach(o=>o(t))},initialize(i){n||(t=i,n=!0)},subscribe(i){return r.add(i),()=>r.delete(i)}}}function Are(e,t,n){const r=[],i=[],o={};for(const a of e){const s=a.position||t;o[s]=o[s]||0,o[s]+=1,o[s]<=n?i.push(a):r.push(a)}return{notifications:i,queue:r}}const Ore=()=>Nre({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),Wc=Ore();function Ol(e,t){const n=e.getState(),r=t([...n.notifications,...n.queue]),i=Are(r,n.defaultPosition,n.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function Ire(e,t=Wc){const n=e.id||g1();return Ol(t,r=>e.id&&r.some(i=>i.id===e.id)?r:[...r,{...e,id:n}]),n}function Rre(e,t=Wc){return Ol(t,n=>n.filter(r=>{var i;return r.id===e?((i=r.onClose)==null||i.call(r,r),!1):!0})),e}function Mre(e,t=Wc){return Ol(t,n=>n.map(r=>r.id===e.id?{...r,...e}:r)),e.id}function Dre(e=Wc){Ol(e,()=>[])}function Lre(e=Wc){Ol(e,t=>t.slice(0,e.getState().limit))}const Qr={show:Ire,hide:Rre,update:Mre,clean:Dre,cleanQueue:Lre,updateState:Ol};var fi={},Oo={},Ci={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.isBytes=x3;Jn.number=Yp;Jn.bool=k3;Jn.bytes=_v;Jn.hash=S3;Jn.exists=w3;Jn.output=_3;function Yp(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function k3(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}function x3(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function _v(e,...t){if(!x3(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function S3(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Yp(e.outputLen),Yp(e.blockLen)}function w3(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function _3(e,t){_v(e);const n=t.outputLen;if(e.lengthnew Uint8Array(L.buffer,L.byteOffset,L.byteLength);e.u8=i;const o=L=>new Uint32Array(L.buffer,L.byteOffset,Math.floor(L.byteLength/4));e.u32=o;const a=L=>new DataView(L.buffer,L.byteOffset,L.byteLength);e.createView=a;const s=(L,U)=>L<<32-U|L>>>U;e.rotr=s;const l=(L,U)=>L<>>32-U>>>0;e.rotl=l,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const u=L=>L<<24&4278190080|L<<8&16711680|L>>>8&65280|L>>>24&255;e.byteSwap=u,e.byteSwapIfBE=e.isLE?L=>L:L=>(0,e.byteSwap)(L);function c(L){for(let U=0;UU.toString(16).padStart(2,"0"));function f(L){(0,n.bytes)(L);let U="";for(let V=0;V=p._0&&L<=p._9)return L-p._0;if(L>=p._A&&L<=p._F)return L-(p._A-10);if(L>=p._a&&L<=p._f)return L-(p._a-10)}function m(L){if(typeof L!="string")throw new Error("hex string expected, got "+typeof L);const U=L.length,V=U/2;if(U%2)throw new Error("padded hex string expected, got unpadded hex of length "+U);const H=new Uint8Array(V);for(let B=0,M=0;B{};e.nextTick=y;async function b(L,U,V){let H=Date.now();for(let B=0;B=0&&ML().update(v(H)).digest(),V=L();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>L(),U}function z(L){const U=(H,B)=>L(B).update(v(H)).digest(),V=L({});return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=H=>L(H),U}function A(L){const U=(H,B)=>L(B).update(v(H)).digest(),V=L({});return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=H=>L(H),U}function j(L=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(L));if(t.crypto&&typeof t.crypto.randomBytes=="function")return t.crypto.randomBytes(L);throw new Error("crypto.getRandomValues must be defined")}})(Ja);Object.defineProperty(Ci,"__esModule",{value:!0});Ci.HashMD=Ci.Maj=Ci.Chi=void 0;const s0=Jn,Ql=Ja;function Bre(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),a=Number(n>>i&o),s=Number(n&o),l=r?4:0,u=r?0:4;e.setUint32(t+l,a,r),e.setUint32(t+u,s,r)}const zre=(e,t,n)=>e&t^~e&n;Ci.Chi=zre;const Fre=(e,t,n)=>e&t^e&n^t&n;Ci.Maj=Fre;class Hre extends Ql.Hash{constructor(t,n,r,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,Ql.createView)(this.buffer)}update(t){(0,s0.exists)(this);const{view:n,buffer:r,blockLen:i}=this;t=(0,Ql.toBytes)(t);const o=t.length;for(let a=0;ai-a&&(this.process(r,0),a=0);for(let d=a;dc.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d>>3,m=(0,tr.rotr)(p,17)^(0,tr.rotr)(p,19)^p>>>10;Yi[d]=m+Yi[d-7]+h+Yi[d-16]|0}let{A:r,B:i,C:o,D:a,E:s,F:l,G:u,H:c}=this;for(let d=0;d<64;d++){const f=(0,tr.rotr)(s,6)^(0,tr.rotr)(s,11)^(0,tr.rotr)(s,25),p=c+f+(0,l0.Chi)(s,l,u)+Ure[d]+Yi[d]|0,m=((0,tr.rotr)(r,2)^(0,tr.rotr)(r,13)^(0,tr.rotr)(r,22))+(0,l0.Maj)(r,i,o)|0;c=u,u=l,l=s,s=a+p|0,a=o,o=i,i=r,r=p+m|0}r=r+this.A|0,i=i+this.B|0,o=o+this.C|0,a=a+this.D|0,s=s+this.E|0,l=l+this.F|0,u=u+this.G|0,c=c+this.H|0,this.set(r,i,o,a,s,l,u,c)}roundClean(){Yi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}Oo.SHA256=Cv;class jre extends Cv{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}Oo.sha256=(0,tr.wrapConstructor)(()=>new Cv);Oo.sha224=(0,tr.wrapConstructor)(()=>new jre);var It={},Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.add5L=Ee.add5H=Ee.add4H=Ee.add4L=Ee.add3H=Ee.add3L=Ee.rotlBL=Ee.rotlBH=Ee.rotlSL=Ee.rotlSH=Ee.rotr32L=Ee.rotr32H=Ee.rotrBL=Ee.rotrBH=Ee.rotrSL=Ee.rotrSH=Ee.shrSL=Ee.shrSH=Ee.toBig=void 0;Ee.fromBig=Nv;Ee.split=C3;Ee.add=U3;const zd=BigInt(2**32-1),my=BigInt(32);function Nv(e,t=!1){return t?{h:Number(e&zd),l:Number(e>>my&zd)}:{h:Number(e>>my&zd)|0,l:Number(e&zd)|0}}function C3(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);Ee.toBig=N3;const A3=(e,t,n)=>e>>>n;Ee.shrSH=A3;const O3=(e,t,n)=>e<<32-n|t>>>n;Ee.shrSL=O3;const I3=(e,t,n)=>e>>>n|t<<32-n;Ee.rotrSH=I3;const R3=(e,t,n)=>e<<32-n|t>>>n;Ee.rotrSL=R3;const M3=(e,t,n)=>e<<64-n|t>>>n-32;Ee.rotrBH=M3;const D3=(e,t,n)=>e>>>n-32|t<<64-n;Ee.rotrBL=D3;const L3=(e,t)=>t;Ee.rotr32H=L3;const P3=(e,t)=>e;Ee.rotr32L=P3;const B3=(e,t,n)=>e<>>32-n;Ee.rotlSH=B3;const z3=(e,t,n)=>t<>>32-n;Ee.rotlSL=z3;const F3=(e,t,n)=>t<>>64-n;Ee.rotlBH=F3;const H3=(e,t,n)=>e<>>64-n;Ee.rotlBL=H3;function U3(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}const j3=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);Ee.add3L=j3;const $3=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;Ee.add3H=$3;const W3=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);Ee.add4L=W3;const V3=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;Ee.add4H=V3;const q3=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);Ee.add5L=q3;const Y3=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;Ee.add5H=Y3;const $re={fromBig:Nv,split:C3,toBig:N3,shrSH:A3,shrSL:O3,rotrSH:I3,rotrSL:R3,rotrBH:M3,rotrBL:D3,rotr32H:L3,rotr32L:P3,rotlSH:B3,rotlSL:z3,rotlBH:F3,rotlBL:H3,add:U3,add3L:j3,add3H:$3,add4L:W3,add4H:V3,add5H:Y3,add5L:q3};Ee.default=$re;Object.defineProperty(It,"__esModule",{value:!0});It.sha384=It.sha512_256=It.sha512_224=It.sha512=It.SHA384=It.SHA512_256=It.SHA512_224=It.SHA512=void 0;const Wre=Ci,Se=Ee,vm=Ja,[Vre,qre]=Se.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Ki=new Uint32Array(80),Gi=new Uint32Array(80);class Vc extends Wre.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:n,Bh:r,Bl:i,Ch:o,Cl:a,Dh:s,Dl:l,Eh:u,El:c,Fh:d,Fl:f,Gh:p,Gl:h,Hh:m,Hl:y}=this;return[t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,y]}set(t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,y){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=o|0,this.Cl=a|0,this.Dh=s|0,this.Dl=l|0,this.Eh=u|0,this.El=c|0,this.Fh=d|0,this.Fl=f|0,this.Gh=p|0,this.Gl=h|0,this.Hh=m|0,this.Hl=y|0}process(t,n){for(let v=0;v<16;v++,n+=4)Ki[v]=t.getUint32(n),Gi[v]=t.getUint32(n+=4);for(let v=16;v<80;v++){const k=Ki[v-15]|0,_=Gi[v-15]|0,x=Se.default.rotrSH(k,_,1)^Se.default.rotrSH(k,_,8)^Se.default.shrSH(k,_,7),I=Se.default.rotrSL(k,_,1)^Se.default.rotrSL(k,_,8)^Se.default.shrSL(k,_,7),R=Ki[v-2]|0,z=Gi[v-2]|0,A=Se.default.rotrSH(R,z,19)^Se.default.rotrBH(R,z,61)^Se.default.shrSH(R,z,6),j=Se.default.rotrSL(R,z,19)^Se.default.rotrBL(R,z,61)^Se.default.shrSL(R,z,6),L=Se.default.add4L(I,j,Gi[v-7],Gi[v-16]),U=Se.default.add4H(L,x,A,Ki[v-7],Ki[v-16]);Ki[v]=U|0,Gi[v]=L|0}let{Ah:r,Al:i,Bh:o,Bl:a,Ch:s,Cl:l,Dh:u,Dl:c,Eh:d,El:f,Fh:p,Fl:h,Gh:m,Gl:y,Hh:b,Hl:E}=this;for(let v=0;v<80;v++){const k=Se.default.rotrSH(d,f,14)^Se.default.rotrSH(d,f,18)^Se.default.rotrBH(d,f,41),_=Se.default.rotrSL(d,f,14)^Se.default.rotrSL(d,f,18)^Se.default.rotrBL(d,f,41),x=d&p^~d&m,I=f&h^~f&y,R=Se.default.add5L(E,_,I,qre[v],Gi[v]),z=Se.default.add5H(R,b,k,x,Vre[v],Ki[v]),A=R|0,j=Se.default.rotrSH(r,i,28)^Se.default.rotrBH(r,i,34)^Se.default.rotrBH(r,i,39),L=Se.default.rotrSL(r,i,28)^Se.default.rotrBL(r,i,34)^Se.default.rotrBL(r,i,39),U=r&o^r&s^o&s,V=i&a^i&l^a&l;b=m|0,E=y|0,m=p|0,y=h|0,p=d|0,h=f|0,{h:d,l:f}=Se.default.add(u|0,c|0,z|0,A|0),u=s|0,c=l|0,s=o|0,l=a|0,o=r|0,a=i|0;const H=Se.default.add3L(A,L,V);r=Se.default.add3H(H,z,j,U),i=H|0}({h:r,l:i}=Se.default.add(this.Ah|0,this.Al|0,r|0,i|0)),{h:o,l:a}=Se.default.add(this.Bh|0,this.Bl|0,o|0,a|0),{h:s,l}=Se.default.add(this.Ch|0,this.Cl|0,s|0,l|0),{h:u,l:c}=Se.default.add(this.Dh|0,this.Dl|0,u|0,c|0),{h:d,l:f}=Se.default.add(this.Eh|0,this.El|0,d|0,f|0),{h:p,l:h}=Se.default.add(this.Fh|0,this.Fl|0,p|0,h|0),{h:m,l:y}=Se.default.add(this.Gh|0,this.Gl|0,m|0,y|0),{h:b,l:E}=Se.default.add(this.Hh|0,this.Hl|0,b|0,E|0),this.set(r,i,o,a,s,l,u,c,d,f,p,h,m,y,b,E)}roundClean(){Ki.fill(0),Gi.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}It.SHA512=Vc;class K3 extends Vc{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}It.SHA512_224=K3;class G3 extends Vc{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}It.SHA512_256=G3;class Q3 extends Vc{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}It.SHA384=Q3;It.sha512=(0,vm.wrapConstructor)(()=>new Vc);It.sha512_224=(0,vm.wrapConstructor)(()=>new K3);It.sha512_256=(0,vm.wrapConstructor)(()=>new G3);It.sha384=(0,vm.wrapConstructor)(()=>new Q3);var Tm={},X3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=Jn,n=Ja;class r extends n.Hash{constructor(a,s){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(a);const l=(0,n.toBytes)(s);if(this.iHash=a.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const u=this.blockLen,c=new Uint8Array(u);c.set(l.length>u?a.create().update(l).digest():l);for(let d=0;dnew r(o,a).update(s).digest();e.hmac=i,e.hmac.create=(o,a)=>new r(o,a)})(X3);Object.defineProperty(Tm,"__esModule",{value:!0});Tm.pbkdf2=Kre;Tm.pbkdf2Async=Gre;const Fd=Jn,Yre=X3,Ks=Ja;function J3(e,t,n,r){(0,Fd.hash)(e);const i=(0,Ks.checkOpts)({dkLen:32,asyncTick:10},r),{c:o,dkLen:a,asyncTick:s}=i;if((0,Fd.number)(o),(0,Fd.number)(a),(0,Fd.number)(s),o<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=(0,Ks.toBytes)(t),u=(0,Ks.toBytes)(n),c=new Uint8Array(a),d=Yre.hmac.create(e,l),f=d._cloneInto().update(u);return{c:o,dkLen:a,asyncTick:s,DK:c,PRF:d,PRFSalt:f}}function Z3(e,t,n,r,i){return e.destroy(),t.destroy(),r&&r.destroy(),i.fill(0),n}function Kre(e,t,n,r){const{c:i,dkLen:o,DK:a,PRF:s,PRFSalt:l}=J3(e,t,n,r);let u;const c=new Uint8Array(4),d=(0,Ks.createView)(c),f=new Uint8Array(s.outputLen);for(let p=1,h=0;h{l._cloneInto(c).update(p).digestInto(p);for(let b=0;brM(t.toString(2),"0",8)).join("")}function aM(e){const n=e.length*8/32,r=aie.sha256(Uint8Array.from(e));return oM(Array.from(r)).slice(0,n)}function sM(e){return"mnemonic"+(e||"")}function uie(e,t){const n=Uint8Array.from(Buffer.from(hc(e),"utf8")),r=Uint8Array.from(Buffer.from(sM(hc(t)),"utf8")),i=tM.pbkdf2(eM.sha512,n,r,{c:2048,dkLen:64});return Buffer.from(i)}var cie=fi.mnemonicToSeedSync=uie;function die(e,t){const n=Uint8Array.from(Buffer.from(hc(e),"utf8")),r=Uint8Array.from(Buffer.from(sM(hc(t)),"utf8"));return tM.pbkdf2Async(eM.sha512,n,r,{c:2048,dkLen:64}).then(i=>Buffer.from(i))}fi.mnemonicToSeed=die;function lM(e,t){if(t=t||pc,!t)throw new Error(nM);const n=hc(e).split(" ");if(n.length%3!==0)throw new Error($w);const r=n.map(c=>{const d=t.indexOf(c);if(d===-1)throw new Error($w);return rM(d.toString(2),"0",11)}).join(""),i=Math.floor(r.length/33)*32,o=r.slice(0,i),a=r.slice(i),s=o.match(/(.{1,8})/g).map(iM);if(s.length<16)throw new Error(Na);if(s.length>32)throw new Error(Na);if(s.length%4!==0)throw new Error(Na);const l=Buffer.from(s);if(aM(l)!==a)throw new Error(lie);return l.toString("hex")}fi.mnemonicToEntropy=lM;function uM(e,t){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"hex")),t=t||pc,!t)throw new Error(nM);if(e.length<16)throw new TypeError(Na);if(e.length>32)throw new TypeError(Na);if(e.length%4!==0)throw new TypeError(Na);const n=oM(Array.from(e)),r=aM(e),a=(n+r).match(/(.{1,11})/g).map(s=>{const l=iM(s);return t[l]});return t[0]==="あいこくしん"?a.join(" "):a.join(" ")}fi.entropyToMnemonic=uM;function fie(e,t,n){if(e=e||128,e%32!==0)throw new TypeError(Na);return t=t||(r=>Buffer.from(sie.randomBytes(r))),uM(t(e/8),n)}fi.generateMnemonic=fie;function pie(e,t){try{lM(e,t)}catch{return!1}return!0}fi.validateMnemonic=pie;function hie(e){const t=Kp.wordlists[e];if(t)pc=t;else throw new Error('Could not find wordlist for language "'+e+'"')}fi.setDefaultWordlist=hie;function mie(){if(!pc)throw new Error("No Default Wordlist set");return Object.keys(Kp.wordlists).filter(e=>e==="JA"||e==="EN"?!1:Kp.wordlists[e].every((t,n)=>t===pc[n]))[0]}fi.getDefaultWordlist=mie;var gie=vn,bie=fi.wordlists=gie.wordlists;const Ww=bie.english;class qc{constructor(t,n,r){Jo(this,"encryptionKey");Jo(this,"signingKey",null);Jo(this,"verifyingKey",null);this.encryptionKey=t,this.signingKey=n,this.verifyingKey=r}static generateNewSeedPhrase(){try{const t=[];for(let n=0;n<12;n++){const r=new Uint8Array(2);crypto.getRandomValues(r);const i=(r[0]<<8|r[1])%Ww.length;t.push(Ww[i])}return t.join(" ")}catch(t){throw console.error("Failed to generate mnemonic:",t),new Error("Failed to generate seed phrase")}}static async new(t){const n=cie(t),r=new Uint8Array(n.slice(0,32)),i=await crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!0,["sign","verify"]),o=await crypto.subtle.digest("SHA-256",n);return localStorage.setItem("user_id",Qi.Buffer.from(o).toString("hex")),new qc(r,i.privateKey,i.publicKey)}async encryptNote(t){if(!t.id)throw new Error("Note must have an ID before encryption");const n=crypto.getRandomValues(new Uint8Array(12)),r=JSON.stringify({title:t.title,content:t.content,created_at:t.created_at,updated_at:t.updated_at,deleted:t.deleted}),i=await crypto.subtle.importKey("raw",this.encryptionKey,{name:"AES-GCM"},!1,["encrypt"]),o=await crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,new TextEncoder().encode(r)),a=await crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},this.signingKey,new Uint8Array(o));return{id:t.id.toString(16).padStart(16,"0"),data:Qi.Buffer.from(o).toString("base64"),nonce:Qi.Buffer.from(n).toString("base64"),timestamp:t.updated_at,signature:Qi.Buffer.from(a).toString("base64")}}async decryptNote(t){const n=Qi.Buffer.from(t.data,"base64"),r=Qi.Buffer.from(t.nonce,"base64"),i=await crypto.subtle.importKey("raw",this.encryptionKey,{name:"AES-GCM"},!1,["decrypt"]),o=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},i,n),a=JSON.parse(new TextDecoder().decode(o));return{id:parseInt(t.id,16),...a}}async getPublicKeyBase64(){const t=await crypto.subtle.exportKey("raw",this.verifyingKey);return Qi.Buffer.from(t).toString("base64")}}class gy{static getEndpoint(t,n){return`${t}/api${n}`}static async healthCheck(t){try{const n=this.getEndpoint(t,"/health"),r=await fetch(n,{headers:{Accept:"application/json"}});if(!r.ok)throw new Error("Health check failed");const i=await r.json();return i.status==="healthy"&&i.database==="connected"}catch(n){return console.error("Health check failed:",n),!1}}static async syncNotes(t,n,r){const i=this.getEndpoint(t,"/sync");console.log("Syncing notes:",{serverUrl:t,endpoint:i,notesCount:r.length,hasPublicKey:!!n});try{const o=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({public_key:n,notes:r,client_version:"0.1.3"})});if(console.log("Server response:",{status:o.status,ok:o.ok,headers:Object.fromEntries(o.headers.entries())}),!o.ok){const s=await o.json().catch(()=>null);throw new Error((s==null?void 0:s.error)||`Sync failed with status ${o.status}`)}const a=await o.json();if(console.log("Sync response data:",a),!a||!Array.isArray(a.notes))throw console.error("Invalid response format:",a),new Error("Invalid server response format");return{notes:a.notes}}catch(o){throw console.error("Sync error:",o),o}}static async validateServer(t){try{const n=this.getEndpoint(t,"/health");console.log("Validate server endpoint:",n);const r=await fetch(n,{headers:{Accept:"application/json"}});if(!r.ok)return!1;const i=await r.json();return i.status==="healthy"&&i.database==="connected"}catch(n){return console.error("Server validation failed:",n),!1}}}class Rt{static async initializeCrypto(t){this.crypto=await qc.new(t)}static async getNotes(){const t=localStorage.getItem(this.NOTES_KEY);return(t?JSON.parse(t):[]).filter(r=>!r.deleted)}static async saveNote(t){const n=await this.getNotes(),r=Date.now(),i={...t,updated_at:r,created_at:t.created_at||r};i.id||(i.id=r);const o=n.findIndex(a=>a.id===i.id);o!==-1?n[o]=i:n.push(i),localStorage.setItem(this.NOTES_KEY,JSON.stringify(n))}static async deleteNote(t){const n=await this.getNotes(),r=n.findIndex(i=>i.id===t);if(r!==-1){const i={...n[r],deleted:!0,updated_at:Date.now()};n[r]=i,localStorage.setItem(this.NOTES_KEY,JSON.stringify(n))}}static async getSyncSettings(){const t=localStorage.getItem(this.SETTINGS_KEY);return t?JSON.parse(t):{auto_sync:!1,sync_interval:300,server_url:"https://notes-sync.toolworks.dev",custom_servers:[],seed_phrase:null}}static async saveSyncSettings(t){const r={...await this.getSyncSettings(),...t};localStorage.setItem(this.SETTINGS_KEY,JSON.stringify(r))}static async syncWithServer(t,n=3){if(!this.crypto)throw new Error("Crypto not initialized");let r=null;for(let i=0;i({...m,id:m.id||Date.now()})),c=await Promise.all(u.map(m=>this.crypto.encryptNote(m)));console.log("Encrypted notes:",c);const d=localStorage.getItem("user_id");if(!d)throw new Error("User ID not found");const f=await gy.syncNotes(t,d,c);console.log("Server response:",f);const p=await Promise.all(f.notes.map(async m=>await this.crypto.decryptNote(m)));console.log("Decrypted server notes:",p);const h=this.mergeNotes(u,p);console.log("Merged notes:",h),localStorage.setItem(this.NOTES_KEY,JSON.stringify(h));return}catch(o){if(console.error(`Sync attempt ${i+1} failed:`,o),r=o,isetTimeout(a,Math.pow(2,i)*1e3));continue}}throw r||new Error("Sync failed after retries")}static async getDeletedNotes(){const t=localStorage.getItem(this.NOTES_KEY);return(t?JSON.parse(t):[]).filter(r=>r.deleted)}static mergeNotes(t,n){const r=new Map;return t.forEach(i=>{i.id&&r.set(i.id,i)}),n.forEach(i=>{if(i.id){const o=r.get(i.id);i.deleted&&(!o||i.updated_at>o.updated_at)?r.delete(i.id):!i.deleted&&(!o||i.updated_at>o.updated_at)&&r.set(i.id,i)}}),Array.from(r.values()).sort((i,o)=>o.updated_at-i.updated_at)}}Jo(Rt,"NOTES_KEY","notes"),Jo(Rt,"SETTINGS_KEY","sync_settings"),Jo(Rt,"crypto",null);const Hd=[{label:"Official Server",value:"https://notes-sync.toolworks.dev"},{label:"Local Server",value:"http://localhost:3222"}];function yie({onSync:e}){const[t,n]=S.useState(""),[r,i]=S.useState(!1),[o,a]=S.useState(!1),[s,l]=S.useState(""),[u,c]=S.useState(!1),[d,f]=S.useState(Hd[0].value),[p,h]=S.useState([]),[m,y]=S.useState(""),[b,E]=S.useState(!1),[v,k]=S.useState(!1),_=H=>{try{return new URL(H),!0}catch{return!1}},x=H=>{y(H),k(_(H))},I=H=>{H.key==="Enter"&&v&&z()};S.useEffect(()=>{(async()=>{try{const B=await Rt.getSyncSettings();i(B.auto_sync),f(B.server_url),h(B.custom_servers||[]),n(B.seed_phrase??"")}catch(B){console.error("Failed to load settings:",B)}})()},[]);const R=async H=>{try{const B=await Rt.getSyncSettings(),M={auto_sync:"auto_sync"in H?H.auto_sync:r,server_url:"server_url"in H?H.server_url:d,custom_servers:"custom_servers"in H?H.custom_servers:p,seed_phrase:"seed_phrase"in H?H.seed_phrase:t,sync_interval:B.sync_interval};await Rt.saveSyncSettings(M)}catch{Qr.show({title:"Error",message:"Failed to save settings",color:"red"})}},z=async()=>{try{if(!v)return;if(p.includes(m)||Hd.some(B=>B.value===m)){Qr.show({title:"Error",message:"Server already exists",color:"red"});return}const H=[...p,m];h(H),f(m),await R({custom_servers:H,server_url:m}),y(""),E(!1),Qr.show({title:"Success",message:"Server added successfully",color:"green"})}catch{Qr.show({title:"Error",message:"Failed to add server",color:"red"})}},A=async H=>{const B=p.filter(M=>M!==H);if(h(B),await R({custom_servers:B}),d===H){const M=Hd[0].value;f(M),await R({server_url:M})}},j=async H=>{H&&(f(H),await R({server_url:H}))},L=async()=>{if(!t){Qr.show({title:"Error",message:"Please enter a seed phrase",color:"red"});return}c(!0);try{if(console.log("Starting sync process..."),await Rt.initializeCrypto(t),console.log("Crypto initialized"),!await gy.healthCheck(d))throw new Error(`Server ${d} is not healthy`);console.log("Server health check passed"),await Rt.syncWithServer(d),console.log("Sync completed"),await Rt.saveSyncSettings({seed_phrase:t}),console.log("Settings saved"),e&&await e(),Qr.show({title:"Success",message:"Notes synced successfully",color:"green"})}catch(H){console.error("Sync error:",H),Qr.show({title:"Error",message:H instanceof Error?H.message:"Failed to sync notes",color:"red",autoClose:!1})}finally{c(!1)}},U=async()=>{try{const H=qc.generateNewSeedPhrase();await Rt.initializeCrypto(H),l(H),n(H),await R({seed_phrase:H}),a(!0)}catch(H){console.error("Failed to generate seed phrase:",H),Qr.show({title:"Error",message:"Failed to generate seed phrase",color:"red"})}},V=[...Hd,...p.map(H=>({label:H,value:H,rightSection:T.jsx(ze,{size:"sm",color:"red",onClick:B=>{B.stopPropagation(),A(H)},children:T.jsx(xE,{size:14})})}))];return T.jsxs(Un,{children:[T.jsx(Pa,{p:"md",withBorder:!0,children:T.jsxs(Un,{children:[T.jsxs(it,{align:"flex-end",children:[T.jsx(TE,{label:"Sync Server",placeholder:"Select a server",data:V,value:d,onChange:j,style:{flex:1}}),T.jsx($t,{variant:"light",onClick:()=>E(!0),leftSection:T.jsx(hu,{size:16}),children:"Add Server"})]}),T.jsx(yE,{label:"Seed Phrase",description:"Enter your seed phrase to sync across devices",value:t,onChange:H=>{n(H.currentTarget.value),R({seed_phrase:H.currentTarget.value})}}),T.jsxs(it,{justify:"space-between",children:[T.jsx($t,{onClick:L,loading:u,children:"Sync Now"}),T.jsx($t,{variant:"light",onClick:U,children:"Generate New Seed Phrase"})]}),T.jsx(qh,{label:"Auto-sync",checked:r,onChange:H=>{i(H.currentTarget.checked),R({auto_sync:H.currentTarget.checked})}})]})}),T.jsx(Yn,{opened:b,onClose:()=>E(!1),title:"Add Custom Server",children:T.jsxs(Un,{children:[T.jsx(Ea,{label:"Server URL",description:"Enter the full URL of your sync server",placeholder:"https://your-server.com",value:m,onChange:H=>x(H.currentTarget.value),onKeyPress:I,error:m&&!v?"Please enter a valid URL":null}),T.jsxs(it,{justify:"flex-end",children:[T.jsx($t,{variant:"light",onClick:()=>E(!1),children:"Cancel"}),T.jsx($t,{onClick:z,disabled:!v,children:"Add Server"})]})]})}),T.jsx(Yn,{opened:o,onClose:()=>a(!1),title:"Your New Seed Phrase",children:T.jsxs(Un,{children:[T.jsx(qt,{fw:500,c:"red",children:"Important: Save this phrase somewhere safe. You'll need it to sync your notes across devices."}),T.jsx(Pa,{p:"md",withBorder:!0,children:T.jsx(qt,{children:s})}),T.jsx(it,{children:T.jsx(j2,{value:s,children:({copied:H,copy:B})=>T.jsx($t,{color:H?"teal":"blue",onClick:B,children:H?"Copied":"Copy"})})})]})})]})}function Eie(e,t){const n=S.useRef(),r=S.useRef(!1);S.useEffect(()=>{async function i(){if(!r.current)try{r.current=!0;const a=await Rt.getSyncSettings();if(!a.seed_phrase)throw new Error("No seed phrase configured");const s=await qc.new(a.seed_phrase),l=await Rt.getNotes(),u=await Promise.all(l.map(d=>s.encryptNote(d))),c=await fetch(`${a.server_url}/api/sync`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({public_key:await s.getPublicKeyBase64(),notes:u,client_version:"0.1.3"})});if(!c.ok)throw new Error(await c.text());Qr.show({title:"Auto-sync Complete",message:"Your notes have been synchronized",color:"green"})}catch(a){console.error("Auto-sync failed:",a),Qr.show({title:"Auto-sync Failed",message:a instanceof Error?a.message:"An unknown error occurred",color:"red"})}finally{r.current=!1}}function o(){e&&(n.current=window.setTimeout(()=>{i().finally(o)},t*60*1e3))}return o(),()=>{n.current&&clearTimeout(n.current)}},[e,t])}function vie({opened:e,onClose:t,onNewNote:n,onSearch:r,searchQuery:i,onToggleTheme:o,colorScheme:a,onShowSyncSettings:s,onExport:l,onImport:u,selectedNote:c,notes:d,onSelectNote:f,onDeleteNote:p}){const h=a==="dark"||a==="auto"&&window.matchMedia("(prefers-color-scheme: dark)").matches;return T.jsx(Fr,{opened:e,onClose:t,size:"100%",padding:"md",title:T.jsxs(it,{children:[T.jsx(Gu,{src:"/trusty.jpg",alt:"Logo",w:30,h:30}),T.jsx(qt,{size:"lg",fw:500,children:"Trusty Notes"})]}),children:T.jsxs(Un,{h:"100%",gap:"md",children:[T.jsx(Ea,{placeholder:"Search notes...",leftSection:T.jsx(rA,{size:16}),value:i,onChange:m=>r(m.currentTarget.value)}),T.jsx($t,{variant:"light",leftSection:T.jsx(hu,{size:16}),onClick:()=>{n(),t()},fullWidth:!0,children:"New Note"}),T.jsx(se,{style:{flex:1,overflowY:"auto"},children:T.jsx(Un,{gap:"xs",children:d.map(m=>T.jsx(Pa,{shadow:"xs",p:"md",onClick:()=>{f(m),t()},style:{cursor:"pointer",backgroundColor:(c==null?void 0:c.id)===m.id?"var(--mantine-color-blue-light)":void 0},children:T.jsxs(it,{justify:"space-between",wrap:"nowrap",children:[T.jsxs(se,{style:{flex:1},children:[T.jsx(qt,{fw:500,truncate:"end",children:m.title||"Untitled"}),T.jsx(qt,{size:"xs",c:"dimmed",children:vb(m.updated_at,"MMM d, yyyy HH:mm")})]}),T.jsx(ze,{variant:"subtle",color:"red",onClick:y=>{y.stopPropagation(),p(m.id)},children:T.jsx(xE,{size:16})})]})},m.id))})}),T.jsxs(Un,{gap:"xs",children:[T.jsx($t,{variant:"light",leftSection:h?T.jsx(xb,{size:16}):T.jsx(kb,{size:16}),onClick:o,fullWidth:!0,children:h?"Light Mode":"Dark Mode"}),T.jsx($t,{variant:"light",leftSection:T.jsx(tA,{size:16}),onClick:()=>{s(),t()},fullWidth:!0,children:"Sync Settings"}),T.jsxs(it,{grow:!0,children:[T.jsx($t,{variant:"light",leftSection:T.jsx(nA,{size:16}),onClick:l,children:"Export"}),T.jsx($t,{variant:"light",leftSection:T.jsx(iA,{size:16}),onClick:u,children:"Import"})]}),T.jsx($t,{variant:"subtle",leftSection:T.jsx(Tb,{size:16}),component:"a",href:"https://github.com/toolworks-dev/trusty-notes",target:"_blank",fullWidth:!0,children:"GitHub"})]})]})})}function Tie(){const[e,t]=S.useState([]),[n,r]=S.useState(null),[i,o]=S.useState(""),[a,s]=S.useState(""),[l,u]=S.useState(null),{colorScheme:c,toggleColorScheme:d}=L6(),[f,p]=S.useState(""),[h,m]=S.useState(!1),[y,b]=S.useState(!1),[E,v]=S.useState(null),k=b1("(max-width: 768px)"),[_,x]=S.useState(!1);S.useEffect(()=>{R()},[]);const I=e.filter(B=>B.title.toLowerCase().includes(f.toLowerCase())||B.content.toLowerCase().includes(f.toLowerCase())),R=async()=>{try{const B=await Rt.getNotes();t(B)}catch(B){console.error("Failed to fetch notes:",B)}},z=Tc(async()=>{if(!(i.trim()===""&&a.trim()==="")){u("saving");try{await L()}catch(B){console.error("Save failed:",B),u(null)}}},1e3);S.useEffect(()=>{(i||a)&&z()},[i,a]);function A(B){r(B),o(B.title),s(B.content)}function j(){r(null),o(""),s("")}S.useEffect(()=>{Rt.getSyncSettings().then(v)},[]),S.useEffect(()=>{(async()=>{if(k){const{initializeMobileApp:M}=await qz(async()=>{const{initializeMobileApp:N}=await import("./mobileInit-BjDn5VWt.js").then(F=>F.m);return{initializeMobileApp:N}},[]);await M()}})()},[k]),Eie((E==null?void 0:E.auto_sync)??!1,(E==null?void 0:E.sync_interval)??5);async function L(){try{const B=Date.now(),M={id:n==null?void 0:n.id,title:i.trim()===""?"Untitled":i,content:a,created_at:(n==null?void 0:n.created_at)||B,updated_at:B};await Rt.saveNote(M),await R(),u("saved"),setTimeout(()=>u(null),2e3)}catch(B){console.error("Failed to save note:",B),u(null),alert(`Failed to save note: ${B}`)}}async function U(B){if(window.confirm("Are you sure you want to delete this note?"))try{await Rt.deleteNote(B),(n==null?void 0:n.id)===B&&j(),await R()}catch(M){console.error("Failed to delete note:",M),alert("Failed to delete note")}}async function V(){const B=await Rt.getNotes(),M=new Blob([JSON.stringify(B)],{type:"application/json"}),N=URL.createObjectURL(M),F=document.createElement("a");F.href=N,F.download=`notes-${vb(new Date,"yyyy-MM-dd")}.json`,document.body.appendChild(F),F.click(),document.body.removeChild(F),URL.revokeObjectURL(N)}async function H(){const B=document.createElement("input");B.type="file",B.accept=".json",B.onchange=async M=>{var w;const N=(w=M.target.files)==null?void 0:w[0];if(!N)return;const F=new FileReader;F.onload=async q=>{var be;const X=(be=q.target)==null?void 0:be.result,D=JSON.parse(X);for(const ge of D)await Rt.saveNote(ge);await R()},F.readAsText(N)},B.click()}return T.jsxs(ur,{header:k?{height:60}:void 0,navbar:{width:k?0:h?80:300,breakpoint:"sm",collapsed:{mobile:!0}},padding:"0",children:[k&&T.jsx(ur.Header,{children:T.jsxs(it,{h:"100%",px:"md",justify:"space-between",children:[T.jsxs(it,{children:[T.jsx(mE,{opened:_,onClick:()=>x(B=>!B),hiddenFrom:"sm",size:"sm"}),T.jsx(Gu,{src:"/trusty.jpg",alt:"Logo",w:30,h:30})]}),T.jsx(Ea,{placeholder:"Note title",value:i,onChange:B=>o(B.currentTarget.value),style:{flex:1}}),T.jsxs(it,{children:[T.jsx(Wf,{href:"https://github.com/toolworks-dev/trusty-notes",target:"_blank",children:T.jsx(ze,{variant:"subtle",children:T.jsx(Tb,{size:20})})}),T.jsx(ze,{variant:"subtle",onClick:j,children:T.jsx(hu,{size:20})})]})]})}),k?T.jsx(vie,{opened:_,onClose:()=>x(!1),onNewNote:j,onSearch:p,searchQuery:f,onToggleTheme:d,colorScheme:c,onShowSyncSettings:()=>b(!0),onExport:V,onImport:H,selectedNote:n,notes:I,onSelectNote:A,onDeleteNote:U}):T.jsx(ur.Navbar,{p:"md",children:T.jsxs(Un,{h:"100%",gap:"sm",children:[T.jsxs(it,{justify:"space-between",children:[T.jsxs(it,{children:[T.jsx(Gu,{src:"/trusty.jpg",alt:"Logo",w:30,h:30}),T.jsx(qt,{size:"lg",fw:500,children:"Trusty Notes"})]}),T.jsxs(it,{children:[!h&&T.jsxs(T.Fragment,{children:[T.jsx(Qe,{label:"GitHub",children:T.jsx(Wf,{href:"https://github.com/toolworks-dev/trusty-notes",target:"_blank",children:T.jsx(ze,{variant:"default",size:30,children:T.jsx(Tb,{size:16})})})}),T.jsx(Qe,{label:"Sync Settings",children:T.jsx(ze,{variant:"default",onClick:()=>b(!0),size:30,children:T.jsx(tA,{size:16})})}),T.jsx(Qe,{label:"Toggle Theme",children:T.jsx(ze,{variant:"default",onClick:()=>d(),size:30,children:c==="dark"?T.jsx(xb,{size:16}):T.jsx(kb,{size:16})})}),T.jsx(Qe,{label:"Export Notes",children:T.jsx(ze,{variant:"default",onClick:V,size:30,children:T.jsx(nA,{size:16})})}),T.jsx(Qe,{label:"Import Notes",children:T.jsx(ze,{variant:"default",onClick:H,size:30,children:T.jsx(iA,{size:16})})})]}),T.jsx(Qe,{label:h?"Expand sidebar":"Collapse sidebar",children:T.jsx(ze,{variant:"default",onClick:()=>m(!h),size:30,children:h?T.jsx(rF,{size:16}):T.jsx(nF,{size:16})})})]})]}),!h&&T.jsxs(T.Fragment,{children:[T.jsx($t,{leftSection:T.jsx(hu,{size:14}),variant:"light",onClick:j,fullWidth:!0,children:"New Note"}),T.jsx(Ea,{placeholder:"Search notes...",leftSection:T.jsx(rA,{size:16}),value:f,onChange:B=>p(B.currentTarget.value)}),T.jsx(Un,{gap:"xs",style:{overflow:"auto",flex:1,minHeight:0},children:I.map(B=>T.jsx(Pa,{shadow:"xs",p:"md",onClick:()=>A(B),style:{cursor:"pointer",backgroundColor:(n==null?void 0:n.id)===B.id?"var(--mantine-color-blue-light)":void 0},children:T.jsxs(it,{justify:"space-between",wrap:"nowrap",children:[T.jsxs(se,{style:{flex:1},children:[T.jsx(qt,{fw:500,truncate:"end",children:B.title||"Untitled"}),T.jsx(qt,{size:"xs",c:"dimmed",children:vb(B.updated_at,"MMM d, yyyy HH:mm")})]}),T.jsx(ze,{variant:"subtle",color:"red",onClick:M=>{M.stopPropagation(),U(B.id)},children:T.jsx(xE,{size:16})})]})},B.id))})]}),h&&T.jsxs(Un,{gap:"xs",align:"center",children:[T.jsx(Qe,{label:"New Note",position:"right",children:T.jsx(ze,{variant:"light",onClick:j,size:"lg",children:T.jsx(hu,{size:20})})}),T.jsx(Qe,{label:"Toggle Theme",position:"right",children:T.jsx(ze,{variant:"light",onClick:()=>d(),size:"lg",children:c==="dark"?T.jsx(xb,{size:20}):T.jsx(kb,{size:20})})})]})]})}),T.jsx(ur.Main,{children:T.jsxs(Un,{h:"100vh",gap:0,children:[!k&&T.jsx(se,{p:"md",style:{borderBottom:"1px solid var(--mantine-color-gray-3)"},children:T.jsxs(it,{justify:"space-between",align:"center",children:[T.jsx(Ea,{placeholder:"Note title",value:i,onChange:B=>o(B.currentTarget.value),size:"lg",style:{flex:1}}),T.jsxs(it,{children:[l&&T.jsxs(it,{gap:"xs",children:[T.jsx(tF,{size:16,style:{color:"var(--mantine-color-green-6)"}}),T.jsx(qt,{size:"sm",c:"dimmed",children:l==="saving"?"Saving...":"Saved"})]}),T.jsx($t,{variant:"light",onClick:j,children:"New Note"})]})]})}),T.jsx(se,{style:{flex:1,position:"relative",minHeight:0,padding:k?"0.5rem":"1rem",paddingTop:k?"0.5rem":"1rem"},children:T.jsx(Cre,{content:a,onChange:s,isMobile:k,defaultView:"edit",editorType:"richtext"})})]})}),T.jsx(Yn,{opened:y,onClose:()=>b(!1),title:"Sync Settings",size:"lg",fullScreen:k,children:T.jsx(yie,{onSync:R})})]})}window.Buffer=Qi.Buffer;const kie={primaryColor:"blue"};u0.createRoot(document.getElementById("root")).render(T.jsx(Et.StrictMode,{children:T.jsx(SN,{theme:kie,defaultColorScheme:"auto",children:T.jsx(Tie,{})})}));export{qz as _}; diff --git a/android/app/src/main/assets/public/assets/mobileInit-BjDn5VWt.js b/android/app/src/main/assets/public/assets/mobileInit-BjDn5VWt.js new file mode 100644 index 0000000..1bbcad4 --- /dev/null +++ b/android/app/src/main/assets/public/assets/mobileInit-BjDn5VWt.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-KEPh1bJr.js","assets/index-DhE_q3AR.js","assets/buffer-Cq5fL-tY.js","assets/index-BHNR0Rya.css","assets/web-BBNafJl7.js"])))=>i.map(i=>d[i]); +import{_ as K}from"./index-DhE_q3AR.js";var _={};/*! Capacitor: https://capacitorjs.com/ - MIT License */const oe=t=>{const e=new Map;e.set("web",{name:"web"});const r=t.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},o=(n,a)=>{r.platforms.set(n,a)},i=n=>{r.platforms.has(n)&&(r.currentPlatform=r.platforms.get(n))};return r.addPlatform=o,r.setPlatform=i,r},ie=t=>t.CapacitorPlatforms=oe(t),V=ie(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof _<"u"?_:{});V.addPlatform;V.setPlatform;var E;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(E||(E={}));class S extends Error{constructor(e,r,o){super(e),this.message=e,this.code=r,this.data=o}}const ae=t=>{var e,r;return t!=null&&t.androidBridge?"android":!((r=(e=t==null?void 0:t.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||r===void 0)&&r.bridge?"ios":"web"},le=t=>{var e,r,o,i,n;const a=t.CapacitorCustomPlatform||null,s=t.Capacitor||{},f=s.Plugins=s.Plugins||{},l=t.CapacitorPlatforms,k=()=>a!==null?a.name:ae(t),P=((e=l==null?void 0:l.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||k,j=()=>P()!=="web",J=((r=l==null?void 0:l.currentPlatform)===null||r===void 0?void 0:r.isNativePlatform)||j,Q=c=>{const d=x.get(c);return!!(d!=null&&d.platforms.has(P())||I(c))},X=((o=l==null?void 0:l.currentPlatform)===null||o===void 0?void 0:o.isPluginAvailable)||Q,Y=c=>{var d;return(d=s.PluginHeaders)===null||d===void 0?void 0:d.find(y=>y.name===c)},I=((i=l==null?void 0:l.currentPlatform)===null||i===void 0?void 0:i.getPluginHeader)||Y,Z=c=>t.console.error(c),N=(c,d,y)=>Promise.reject(`${y} does not have an implementation of "${d}".`),x=new Map,ee=(c,d={})=>{const y=x.get(c);if(y)return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`),y.proxy;const w=P(),L=I(c);let v;const re=async()=>(!v&&w in d?v=typeof d[w]=="function"?v=await d[w]():v=d[w]:a!==null&&!v&&"web"in d&&(v=typeof d.web=="function"?v=await d.web():v=d.web),v),ne=(u,m)=>{var h,p;if(L){const b=L==null?void 0:L.methods.find(g=>m===g.name);if(b)return b.rtype==="promise"?g=>s.nativePromise(c,m.toString(),g):(g,A)=>s.nativeCallback(c,m.toString(),g,A);if(u)return(h=u[m])===null||h===void 0?void 0:h.bind(u)}else{if(u)return(p=u[m])===null||p===void 0?void 0:p.bind(u);throw new S(`"${c}" plugin is not implemented on ${w}`,E.Unimplemented)}},U=u=>{let m;const h=(...p)=>{const b=re().then(g=>{const A=ne(g,u);if(A){const O=A(...p);return m=O==null?void 0:O.remove,O}else throw new S(`"${c}.${u}()" is not implemented on ${w}`,E.Unimplemented)});return u==="addListener"&&(b.remove=async()=>m()),b};return h.toString=()=>`${u.toString()}() { [capacitor code] }`,Object.defineProperty(h,"name",{value:u,writable:!1,configurable:!1}),h},H=U("addListener"),W=U("removeListener"),se=(u,m)=>{const h=H({eventName:u},m),p=async()=>{const g=await h;W({eventName:u,callbackId:g},m)},b=new Promise(g=>h.then(()=>g({remove:p})));return b.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await p()},b},D=new Proxy({},{get(u,m){switch(m){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return L?se:H;case"removeListener":return W;default:return U(m)}}});return f[c]=D,x.set(c,{name:c,proxy:D,platforms:new Set([...Object.keys(d),...L?[w]:[]])}),D},te=((n=l==null?void 0:l.currentPlatform)===null||n===void 0?void 0:n.registerPlugin)||ee;return s.convertFileSrc||(s.convertFileSrc=c=>c),s.getPlatform=P,s.handleError=Z,s.isNativePlatform=J,s.isPluginAvailable=X,s.pluginMethodNoop=N,s.registerPlugin=te,s.Exception=S,s.DEBUG=!!s.DEBUG,s.isLoggingEnabled=!!s.isLoggingEnabled,s.platform=s.getPlatform(),s.isNative=s.isNativePlatform(),s},ce=t=>t.Capacitor=le(t),$=ce(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof _<"u"?_:{}),C=$.registerPlugin;$.Plugins;class z{constructor(e){this.listeners={},this.retainedEventArguments={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,r){let o=!1;this.listeners[e]||(this.listeners[e]=[],o=!0),this.listeners[e].push(r);const n=this.windowListeners[e];n&&!n.registered&&this.addWindowListener(n),o&&this.sendRetainedArgumentsForEvent(e);const a=async()=>this.removeListener(e,r);return Promise.resolve({remove:a})}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,r,o){const i=this.listeners[e];if(!i){if(o){let n=this.retainedEventArguments[e];n||(n=[]),n.push(r),this.retainedEventArguments[e]=n}return}i.forEach(n=>n(r))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,r){this.windowListeners[r]={registered:!1,windowEventName:e,pluginEventName:r,handler:o=>{this.notifyListeners(r,o)}}}unimplemented(e="not implemented"){return new $.Exception(e,E.Unimplemented)}unavailable(e="not available"){return new $.Exception(e,E.Unavailable)}async removeListener(e,r){const o=this.listeners[e];if(!o)return;const i=o.indexOf(r);this.listeners[e].splice(i,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){const r=this.retainedEventArguments[e];r&&(delete this.retainedEventArguments[e],r.forEach(o=>{this.notifyListeners(e,o)}))}}const R=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),F=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class de extends z{async getCookies(){const e=document.cookie,r={};return e.split(";").forEach(o=>{if(o.length<=0)return;let[i,n]=o.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");i=F(i).trim(),n=F(n).trim(),r[i]=n}),r}async setCookie(e){try{const r=R(e.key),o=R(e.value),i=`; expires=${(e.expires||"").replace("expires=","")}`,n=(e.path||"/").replace("path=",""),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${r}=${o||""}${i}; path=${n}; ${a};`}catch(r){return Promise.reject(r)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(r){return Promise.reject(r)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const r of e)document.cookie=r.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}C("CapacitorCookies",{web:()=>new de});const ue=async t=>new Promise((e,r)=>{const o=new FileReader;o.onload=()=>{const i=o.result;e(i.indexOf(",")>=0?i.split(",")[1]:i)},o.onerror=i=>r(i),o.readAsDataURL(t)}),fe=(t={})=>{const e=Object.keys(t);return Object.keys(t).map(i=>i.toLocaleLowerCase()).reduce((i,n,a)=>(i[n]=t[e[a]],i),{})},me=(t,e=!0)=>t?Object.entries(t).reduce((o,i)=>{const[n,a]=i;let s,f;return Array.isArray(a)?(f="",a.forEach(l=>{s=e?encodeURIComponent(l):l,f+=`${n}=${s}&`}),f.slice(0,-1)):(s=e?encodeURIComponent(a):a,f=`${n}=${s}`),`${o}&${f}`},"").substr(1):null,ge=(t,e={})=>{const r=Object.assign({method:t.method||"GET",headers:t.headers},e),i=fe(t.headers)["content-type"]||"";if(typeof t.data=="string")r.body=t.data;else if(i.includes("application/x-www-form-urlencoded")){const n=new URLSearchParams;for(const[a,s]of Object.entries(t.data||{}))n.set(a,s);r.body=n.toString()}else if(i.includes("multipart/form-data")||t.data instanceof FormData){const n=new FormData;if(t.data instanceof FormData)t.data.forEach((s,f)=>{n.append(f,s)});else for(const s of Object.keys(t.data))n.append(s,t.data[s]);r.body=n;const a=new Headers(r.headers);a.delete("content-type"),r.headers=a}else(i.includes("application/json")||typeof t.data=="object")&&(r.body=JSON.stringify(t.data));return r};class he extends z{async request(e){const r=ge(e,e.webFetchExtra),o=me(e.params,e.shouldEncodeUrlParams),i=o?`${e.url}?${o}`:e.url,n=await fetch(i,r),a=n.headers.get("content-type")||"";let{responseType:s="text"}=n.ok?e:{};a.includes("application/json")&&(s="json");let f,l;switch(s){case"arraybuffer":case"blob":l=await n.blob(),f=await ue(l);break;case"json":f=await n.json();break;case"document":case"text":default:f=await n.text()}const k={};return n.headers.forEach((P,j)=>{k[j]=P}),{data:f,headers:k,status:n.status,url:n.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}C("CapacitorHttp",{web:()=>new he});const ve=C("App",{web:()=>K(()=>import("./web-KEPh1bJr.js"),__vite__mapDeps([0,1,2,3])).then(t=>new t.AppWeb)});var T;(function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"})(T||(T={}));var M;(function(t){t.None="NONE",t.Slide="SLIDE",t.Fade="FADE"})(M||(M={}));const pe=C("StatusBar");var B;(function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"})(B||(B={}));var G;(function(t){t.Body="body",t.Ionic="ionic",t.Native="native",t.None="none"})(G||(G={}));const q=C("Keyboard"),be=C("Preferences",{web:()=>K(()=>import("./web-BBNafJl7.js"),__vite__mapDeps([4,1,2,3])).then(t=>new t.PreferencesWeb)}),we=async()=>{try{await pe.setStyle({style:T.Dark}),q.addListener("keyboardWillShow",()=>{document.body.classList.add("keyboard-visible")}),q.addListener("keyboardWillHide",()=>{document.body.classList.remove("keyboard-visible")}),ve.addListener("appStateChange",async({isActive:t})=>{t||await be.set({key:"lastActiveTime",value:new Date().toISOString()})})}catch(t){console.error("Error initializing mobile app:",t)}},ye=Object.freeze(Object.defineProperty({__proto__:null,initializeMobileApp:we},Symbol.toStringTag,{value:"Module"}));export{z as W,ye as m}; diff --git a/android/app/src/main/assets/public/assets/web-BBNafJl7.js b/android/app/src/main/assets/public/assets/web-BBNafJl7.js new file mode 100644 index 0000000..63bd83f --- /dev/null +++ b/android/app/src/main/assets/public/assets/web-BBNafJl7.js @@ -0,0 +1 @@ +import{W as l}from"./mobileInit-BjDn5VWt.js";import"./index-DhE_q3AR.js";import"./buffer-Cq5fL-tY.js";class h extends l{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:p}=await this.get({key:r});typeof p=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}export{h as PreferencesWeb}; diff --git a/android/app/src/main/assets/public/assets/web-KEPh1bJr.js b/android/app/src/main/assets/public/assets/web-KEPh1bJr.js new file mode 100644 index 0000000..bd2a265 --- /dev/null +++ b/android/app/src/main/assets/public/assets/web-KEPh1bJr.js @@ -0,0 +1 @@ +import{W as t}from"./mobileInit-BjDn5VWt.js";import"./index-DhE_q3AR.js";import"./buffer-Cq5fL-tY.js";class r extends t{constructor(){super(),this.handleVisibilityChange=()=>{const e={isActive:document.hidden!==!0};this.notifyListeners("appStateChange",e),document.hidden?this.notifyListeners("pause",null):this.notifyListeners("resume",null)},document.addEventListener("visibilitychange",this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented("Not implemented on web.")}async getInfo(){throw this.unimplemented("Not implemented on web.")}async getLaunchUrl(){return{url:""}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented("Not implemented on web.")}}export{r as AppWeb}; diff --git a/android/app/src/main/assets/public/cordova.js b/android/app/src/main/assets/public/cordova.js new file mode 100644 index 0000000..e69de29 diff --git a/android/app/src/main/assets/public/cordova_plugins.js b/android/app/src/main/assets/public/cordova_plugins.js new file mode 100644 index 0000000..e69de29 diff --git a/android/app/src/main/assets/public/favicon-16x16.png b/android/app/src/main/assets/public/favicon-16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..e65193e08d9177fa4665af0f272e3e1c3281d188 GIT binary patch literal 318 zcmV-E0m1%>P)UGV$&?+HvyOt=63{mTT@tjNmB zT12z~w{PEOS5#D-3bZ)|qzUMfxy;PW=|F@2pc{hK1wVfLPzBna1@y*zpoafIjYxt?48xv_qB{NVUI1s0YA*KuHh zTW}J4a{yds9boXZ&02kaG?~23e(O%)nS4AR@2>-N{z-B^%yNV-gw&+!fj0O5@kYJ# z(lqysu@^)ndFBVV;@iGXfuF;6^NjC{Xg7!Z`Ogqw=)ll{fjjUUSz0hKwyh$+00000 LNkvXXu0mjf&#yuP literal 0 HcmV?d00001 diff --git a/android/app/src/main/assets/public/favicon.ico b/android/app/src/main/assets/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..156eb8975563c924c2478ad3983cbd4ec8a7580a GIT binary patch literal 15406 zcmeI2Yiv|S6vuB%MJ<7%28`lkjY2?$w!~l)Bv_-tpiw~sYF`*4!5F_7l!!6-89@mF z29CuyUv~262wzjru(nr4S(XFEG z56I_^V|T`4`fFgil=hWisC8YZmpPyT)UC(84GXtN!^Uj+M0g|9{b! zbtZt^kI4F@9>suSKrwK+GQfJjnEk2=sW%<7fjy*w{3_Enw?)HY+1Kl&j{UT8czC#` z(0sM*LgNzMmAk@<^IUxJlcw2D^H? z8oG2So*gt`8k)ZEd|m08s9Wed(KTn3bM=#$gM-ZV~(7 z(EI!QYemN||D|s@D8aw)Q@q>u5%L>6Jh9mD@z(CvazE`02Kn~k8xpfJ{{O{-<2q(2 z6j}(TdeJN7L!XVA{qg>>XP=ln$5_0J)HXLaPx8Zm`dpi7pE#H&^ALGZ;?k>=@yXWp z>c*0?rp$_)@#nF782;Def1MeN)niN6ojS^1pze^^?(6HjVJxHKUR z$`&vV5)2jDb%lB#8XB4*>(6NRgL<%1V$x6h^gWsJ9!6GV`^0#xf}1cpld|gy`Ht|gKoE3tw7zp2~dmHCxocPe(i#a@W?Aaa;|gmG!1Zi-)aGy4^eiSuW%y%*U> z{u#e{&$O@diUGxdVxSNV$Tek|C(&zB`rcMigUb$h!zU(;NQ3>=^90`6nC^~-O61;Ut+>06VUEsUdG>so6e$w|6 z)=(%k_;OcQ*VWQyBH@=aWH5i`;ddP;%-T}R7*xaY&w`(G+=OAozZw`AxO1Z62ant@ ztRar{k=QrDy`1=-gI~>_Uz9}#2m3dkJb7|*vH1r}D*lB_c_NX>bztSZI6ariw=suB zoYbTqnb(ZL3HG*X!B5fhbnEf|3#S+07X>2Rd;QkfaL%vDoLQ6}_`8zqm zk9$R1Ke?}}1=B@$MqrZrqzAyal$e=?q}EFrn~X>1`)axO&nO$$EI8$x=M8Y~2g@M>b!#IfkhsZv#zs_1ZZCpW*Vk{I71uV<>35;(E9{egD zP2^h|oo&QYD`Pivl&*?W#9A_2?q40pIw}}*f#42)I=ml~`OI@;F1_(CXP>=8miWBz zJLZJL&pqo+#6$x5BpeQ3n~T5n{$_oOp8S(UPQ6_1{VFHc%b1(8UUrZVKv3-Ca(cY!a* + + + + + + + + Trusty Notes + + + + + + + +
+ + diff --git a/android/app/src/main/assets/public/site.webmanifest b/android/app/src/main/assets/public/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/android/app/src/main/assets/public/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/android/app/src/main/assets/public/tauri.svg b/android/app/src/main/assets/public/tauri.svg new file mode 100644 index 0000000..31b62c9 --- /dev/null +++ b/android/app/src/main/assets/public/tauri.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/android/app/src/main/assets/public/trusty.jpg b/android/app/src/main/assets/public/trusty.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c54ce6265a3f2a28f3579a5750cb67bd052368c9 GIT binary patch literal 36951 zcmeFYWmgeN2_?6a>3B?TGGm&7j-5D+jwyq8o#KtMcy{sFxJz8RWX zi9|r4MED>nuI6sAuaD-BJ3TW>Ki}poUJ(GVR%X@uL1v=`5wFa_%P+)cqHc{uCDBs0 z@yEN7>JCLB$a{~=O356VUFfVuP?xgtG`hcJ{+9Op+pbRxE7zxq@`p=}SAt#MR~cTi zfk9{xN+d~t5EzkKX%q6k@Ra)>N;txQzC%OL&=(E0$d04lZE|2c%#c^Uct z{Hqv>jXwhV-xtsgy#M@jJj??dIO+c!T7if}>r4VlQ2ozRV$f~j|NA789WOxfFk4DV zg@EUac>WeW^XmV(g8yCge}eMA;r-u4`rlXPf5GAZ$Jkq#3vzE=4j%t0(>zmdn5Ctp z^l!Pvqq_OiNc!R5X18V%Uh56(<(9^3#VnE0+l#&C%cGT}j|vLOX`bBN+);})R;ns` zdU}Zo3Ch8moe47J+Noc^s`7lE`JKr85-m&~WsMvW$8%`~2_>7El5&G>eSiFCShHzg ztc;%bNe`x2zsr)H8;!RQ52!VEaz}`oi>s3Uu`K!f_wNBKDv9=Z`1k@RttEMRw1^zo zqbv$?azkT7Lqoj+UdM|BEl-(QS?vc!1wR(_3luVkaTWND`(_ROT7CBCD$#IoaD>zm zX<`#V-GWH8=kD#u{7Pp!tcILqf`gKkH?6V6cTQV@*eKM>a8Gr3D#<`&++;bj6Nzu;Zt*1 z*+=e$9)9x-L*C!??ok2tgP?fRzZI02Z#hJ3BjAmYcEPzTshlzzvtpr0!R1q#Oj;sBl4y?L(*^iQmm;3O4L%jeC^elq7wC zQdaYo5I_(Loq;P!Vn@QFT!z4xTfNpU4;J?>cc=IAhS;0;J>z$hI`Salf)Wktkka@% z%ehl_w0;dQbnz(qGLUY#9@dSnPx4BBDY#i-Zb2Y&-#FJT@7J&73l6_7RzvCY35D51 zIoP({{UdVOU1uadOL7bepB;t>#lJ_dmX(1FKXV!}Xt@pg@vTFYzvY6x(cKtChSWiz zW`9U5^(ka#2|=e?wO^CRQmQ*LRqCgPPTfS?CZ82YFv|ve7%S37wKoUwffpdrJX_;o zRUWRxhO;4bqi|s*q|FmQhI%NEBBD*Lqv271xQ z>vb6e`%YBhSdm+}V9w4AA%`>AqtP!+`i;8RLQZ^>cCY~??Jlute$;2~+y$>7iw5J3TfW^j;&EUUoy_#ZD{ zV+5y)2J$9)@}uk@3DM+)O=_kk8>sBMa9}x|vQs%#X+aWGj?Q}`(Apm&cG}SxI=1&_ zN}H41KoCl#Eg;4CC{!lzfh4a3K&`o-sRGH~dH+*#V(`^mbz)YIp>|tOHKU@bJV-q%zxLGvRv@Ir)psRb zVa|95;RNEln^Z^>u)gtRwO_Zp=sAyP`?fLvP&ky~lj#M~9D`=53pkJF9% zzUbFyB(1CK7lyC4ZQlZstA?2SIYb}`HU6cMiEW{fyrkq&|1ee@l06{O7>Q13^ld<& z&gbMWE_R+v7;-UwFnRbConnSgVPQ8Pvzo#UsIVtO)|)21=~%RmH2Dv%uh~#Cn`Yuv zR|4lE4&oD#U>+9W07h_p>*=h4S1Hz7nGCi1o<8N-t_q42oul$E*LAu-<82`sNd?W+ z)>5g=<5A-_<$wCspu~n89xFw+TW*?nD}z;Fg?-OL&SDXV0~|ezGtsB}$)l3;w%ZoD z6!x2(%T8BGe-LRT&}z7$Lc+lT1Z+CAKs|Z-^SQj$)#ze(nnQ+9C;hEyq`IGem;}7H z4qDZQQr@o@uANZ7KQ`oBN4+OD$!$GTTo_eZs)(2ZQhs;Nv(n9T?Zs!HIPyc-%P|a# z%r(uG%2g6&?G;dWGSD+7d9eeER150bcYb}BrmU1zbqK{(!5h(oAmyg;0KYY^BXG{yJrT-<)ISshVEx==inOG0E?*`?Ni}e%k&6U8=Gf zyVv<{(;KYDGH|u!&STm3U8d#vTFs}WJxx;)(%>>uluF8hE}^Z~o2~Cxly;(%LROUw z)L;tW@vKXXX5@bWbp)_%#tI%b9F#R55+lbQ{xrwd4_6AYVM0KzH2UT%!fD^C-eh>{hRR?&DU zcB@1IdC-g$|CEj)uJYp`-+)Gj98-^>F%hnMmu?XEPsUV!I5{(G$?GlFBESi5sIIOi zd;MCa^ukEr*|c9jZynq92P=8-)bt<8dTaONhpN}ypI$ZG9X9tMFZ)&aR*c>VLc+P9 zqfBqFz~_kaZ^W0O-utDh_&dUKvW81T zdy_lDjTVxFtAA$-Q`}=X+;4qnL1YK{;EygX)<1ppz10cLJZMF-P~Lp;zjD5(&nx%X z8S)PF7zh(2v^x5H%157@(35bF=^b^_hQd1|Xsq~f^uDaiDO{|DN(>su7va=qOhbwF zg^|;d_u~PFX?bG;IC0^NM#zV6GL6hi)Wikt@wN6GWgyar$SurRmH{;FqkvCs1X-eJ z0e)e7HptrB27V70H=s%cJ*Rp8yE%_XS`@ zm#Hp3ml7!Zk^WXs?+;#rxA9j%AVjEK3(@O;29nXPs^G@UFZ61EG&ag3lNk^6Z#g}C zNXRCl>0Mdzx|do=%2&i3KP$za|HKx#HoA!7Xlqzu9&kQd7OvE9c4f$U(jYW&U)?-j zOYuDDGtpzpZ7m^k>lBO8ZBt!;`wosu^3x$s#2?uZQiuC#Bumtf6S`1`vKQBm8{jSt zdur#T~X%>JuP2`ZDsJ@5`%Rswfh20F|!A{ewpr13@TaMr+*>5oCg{ z_b6WDDFJGKp&QWAL2f}cYj z(>b>KrNl@FzTm5yi(|3|WK+A)6#f~j<>TVP^e=E-&ggGX;@RJoDkdj4KIM!kwHOrH zuwG+_g1VUjimH|Ls!zQL5L) zsc=arARr)Uy!=SCs$*)bvoh1@w2ibPd@PHKN*I>k;j>^>Fg-9l+(LeLafSR<^`v&c zmZ6ZEwaO^LL)ONN6N+sv61pKU4W5_nkcsO_sL9GG;;zm6VY9D2R{Y{>6o1G7 z`3WdlWr>?D)KIaEe{J`tLqqmL*lz?-^H8wdtbLf|l|yow3hE-+&0bll4(NRQ#ompj z@B4(mY@p|3nBARwJ+VQfHu`)4l)1~@vS z6vD4d+V1b7h^L1IxM7#A~Ptijc?|XtYj6j_d)h`-**9;^e&@qJ{dIk8Xz#4 z`9qB%(f+gw0bT0fRTTs_<>T$isPGRqnR)Bc-oLtFGde_TS;aK*=WhCgzg)&zL zs09zc>a&B$#z-onH>swvufs!zY$=!3OzQ+{DOK7)s{|FwCx_78>w8F@%pvqfCw*C> zZE_wq3Iz3lRezMt45c^vwbP#p<1T|v^pqgh4D(gB(a5I=P!5Six$}YYnMn$2faO+h zer^ofN@>UPQDG8`rmwl1D%a&qT&QA)M1|`)ibp~5?w7z2u3!!rdGo}C&-#>lOY`BF zJ;Ddq+uAQHk1_G6BcYNVy}+Wjta=J;JSa-zEcu4*zCJm^*is8q&H{2C)@X9>yKEaZa=AS2whC63ctW2y;cmDsFLRfd!G6uBHwnP zi0*d;AioZ;=J-1ZJ6jD?Y3bFB;!6}1Aw=9u={e=Hgi(GF=?VgMvjO1IfG^Cz4x+^P zjxlNCNDSfPpI9g1tr@z@}T5f#7tY z5*#~C=%{3+rOt&fMI8VVM&yM}QHu%uiAatkvf)DW0-eZ5y& z7pM~x`!hxEv5}CXz`q)7H~7kC37b%c{X?vY5EhlICET$v#NV61Nibv8SLVZn*WJ}o z`y7E$8YlWj{uj{a9@Sdw=_Yh{I%W!F`Dz3Q8AnhjMv;V_K>OqEp87~SuP(s{QK2x< z9AZHKBmTVcR))k94X5#+;3$9q3A`qDF*VmAj8U#R6Qegagc4%v3w$ZsHKiL{!757@QLYOy@b5D&#-Iy<9p2AQi z-sXtl1w6y`JKC(YSX3pCJAk)_sHZnLrR@rSJ z9wDB(|C&=x%)K1Le*=Xla?*d3$aj^}xJwjcf!vZEp_M@%f}; z0gc3p*1q2rNW$*k&4W#Ww?JJ+wDl-u|Z-=3p)P z?|_>nPGn*VVcsLmS!XyitzIwPNryDnO)Pw zFurN)~M&Gv+mGC#sz9gl=b0$RP z2`KjM&sUQewY$=j-xIDUWmk2nqr^DG&D4XUY&zGMt`3`z+R$=xj%d3RXpRByZRq(2 zouN%xPtP%M@c?H#Wa5>#dwDnvwgqXrK{W}P zr>Ep1W!I-S!5ER?rhqBG#TE~zdY~t&Udu#3H72Z#10e3wyc?44k6@ih;Wa>)^0A|B z_X3JwpYE7fP=I!zU0z@6p)_Qnu7Dqf$dOU@=mzu%il7B_lHgzjN|#)dg_;+b#7kwY zR9F_-GHOgYQ3Lu|+8IR)yMqE)i!@$80JY7RMmpMEFb}Z;0x4X3zP$znfqNLZVKtN_ z-TQo820&=Je!Z$FCZxhbwAwIsTV5pb-`vn#(&=LLA>C%zgEY!>%$ykiQm8lrlkSn= z-tTIIM_Y#>(>@h-c!|4N-s5a6BcI-OEhSX(QG>mJn3*cllO_y+-Z!ez`g(vi?i=F0 z_=C&d^lxr$S*JJNV{WrxgDeuE-2O4%?b=*W&KDI`#hh*dhAZ8sQ7sFhY z`Or6xwrdmOcuNZOoG8tf;F1Aqu^Q+2(WANT*4IU5vpD)^kn7!&a(0{P;%QQTni&^{ zq~6q_9JVs=rR5+iI6oWq=`PZItK8?vn<|sIN&riQ>oz*awfsA{`bfXNmCH|0&h)VJP@Pp#5DAv^wA;j$RbFk~gNTXLHRnh0)-k@O2hyz_N6-j?_1WEx3O z%X?vQxGMYzd{v)(fJm9MXwaQu1dzH3jWWF(baHrUaJIUQ2V*e1*A}yxd`LN!vu)2a z!1G;x@?&V)qOqTp=gSl^AN)2Sej%C@4TBU?zHB;ze3S@_juPK$6?BGkLZX5v{9VW; zJAMHV)s|UHVUH3C3TM&yt%YEF0F{DwIyRJ4$9Ta{Gk<(?o{!;Mog*pnSqW-(vLbxm%CeD4=vPxQH0iuX-t>{dhhpayN8ec1v^y6pQ#RWSoSbB z=wGkBh#?pD6moi@Ma$_*!u_0r(s-od>L7UVBOT~L=qt#F3A*~u@3<4~qlQTU%;+DpE;=l%-j^uO(5IKdzU=6KUj~mHOd>%kUO@fQ zgYC*P=5+U;MJC}idr5klY~0&f%JXXcoRZcPrAWVPu11c4(B%-~rh&kT=1Fw@kB1{4 zCtx4oGvSe~y+iH+gAvx-F4he#H9GO7 ziRxSyg2)>9xCa?B_?_3u-`&0r4G%7WEE;@tj_}U}aA8rqDdT&nzXDuN3~rGw36Bzk z>jNt-84Ye=QQMKT<;d*|7<6%|3^W75lQ!Gum41$PI3@q9JunR2hY9rXiW@{GdB*#G zn;fT!_YJqI#4Nhc95AMn$NWp|P&rEk1#}>ZKmU||i+8+)%A9^J0|sa(pFT^IuCx|c z@Umv4OPA#A8Gn{o#k+cyxwdxK78y4G6}B!u=pZ6Pbq85q*(zi8JS6Kt0=Jm+Hb ze36&}_IL!;MggIt-ERm6Y`BO?FcF*n$P%r5_E}xX#+9D=~hj`8|QasMV zD325>7jL-?^1n^_P-s7*>*HH=0+X&-H*5GzM6_@p==lwRpoAHdA-&5fN61OB@-AM` z;Sa`&Q6{175A*_#8lob;1z1{n+LDyQ?lGM+Q*sJr(fvKCNU(?!!#OoZ*hpD~SpM_G z(ivipph2TVNPL@hwrv&6K8s@l&V>!;?h>zve=U0&?>~A0HGGBH%5nuOO;~c7)t^<% zSc{B|R0v8wOo4?A%bCB%$pJb6dN&~ZsZGnd0s(ZEM(H%x3iG#w_hYt^Zot$aO@o_< zavP7~`kRh~(Aler*L9yV8%Uoe*GY>X9?~BV3vLYPsdCgzvA@C^!~WloIXi7>dsIJm zs$AaZ3V;EE0CK5%G%Qlfm)Z}8j*h2R))1G9<{LGWc;e%6`%0s*>oXoXc z@Jq!~93Wduf>ZhXEx|x6cH|Cn?k4*mAi-}M_qHp^J$aDO9oa#R9~>M`o)FKf*b*5* zt)MqvpzU@jv|h<_{~i7FD<4e64`P870^(F}mfvIJD;-1b#@Gc3&2&9ZHvNSg@GW#o z!oqkI!WM_MKZ1D3IYQ4NwPCQ zE5x5RdA`l(ZsPv_o*S?WX!|%d{t#8+!x7?r z;7qZkmvro5*?m2xASZtCW4s49g(JbDtN?EFIMXO2UlKQh*^juRyMNt$AK)k6nmv6> zz$evq!;kzQOm-h+We3wJUBcqu)wrPXh#gd)99smY_~=?kD1k+)pHsVKF%lzwF`h%WR9z?!Ki*tP6e{04zwbvjEPgU zat#l_gBq9E;t89h$p8?kq``>orbdyJSONG1j?ml~9(9V3_BbpgJE$j%hCqkAR!-L= zB01KHFftUY`uI~+DCz89>fZMG8mq}=R8RrYI!sR7A=zqU!LUtt_no6>q(Q_ z2Ir!d-XPE%0iYS$N)1IYp&Yh9Jw|W;@Ux4U+$KK% z-KD@rn_b|r0N@nE{w^3=D!&l7Rn?aLgWfQ^L<%x;Jdu`y$b8J!mkiun<$)Tnwg2YV zbIyL_=O2Hq_H{v~jeyHt-eq{qVuzL**hSLy-!q{*;ip_toyG>Vg|3O67?O+doD(z<;>u!%R+?9to|t{_(un~Fj!qq#f3Tew#3}Ho?XHXkaPJ_S?JLO3Uu(HsCe#@4`_4-AX9(*b2y?z2Zm<_*CQ36x?S0I`c{*hP{fFG8xx}C#V3~(B;Uf7Wq&i3>RByr z8HBe&5J{+k`kbS*ZY*nJ5;BwIyjxW83yWN+;qCCh={noRWE9(BRHstHyLBnpXe3O5 z#?JT{P~i=#TIj@_QUK;uk;5Gw|nJhgzS2Z$OSUqLPGCt z-pb%Kji6X>?|@eRdTeL%erdg!F;(WibGEl45o-9pu8vl22KL9rcAMXG{nu#_9OlZk z&~Wlf@egt{(aMlS6G||hH(gfd8e9YLHU&T2T@6_NLWwrB$?le)< zsEQEk_Rq~B7WY7T{oSgz$By6U3>)_dr{r7R@XGz_jFPzgXbw!h(np`cHE{#;Cj(5N zma;EC@#(29s=m$mSv$#wYyI1N7LWD#I~V{y#w>N`BdNDG~>MK?K%2AB#&0FJJ z+-{wJX!wJsgyRh%X0&;14}vGH#}ydedx74x`B~MT7rV>9f3wE1k~`m6MsbpHYdc$Q z``1YMlK0mTy>S6lER!+HnamT8{@ZK`>$l8{SE=)u)+HFeCIo4 zB;I1%Pc`FvD*zLVazE-aW4aS1y6mP)G|Nj)C`BmpmWU*^Bx)@3X@?~AK{_VAyvc0x z4@Fk1us?$p2}hU?gIL-KAmt&qT|KMcDy_0!RIfbV%^Fr;-V~&=5>V3+ zr80LZv_$SSyeJ>lG*!C_Jf}Iu5%`dr>z#ZQeHGE>4{J&}a0gNuV|`|as7&^+5Ftdo*5980EOM0_#l9ODcAMmGPZ5IVm@72Ax%xX?gU(mE z2)fC4qd*QjrA(0s*C*eakj{5d4`#Kciv& z8@kw5M)x04OHkR@#;el1C2@!mSXfihzDa7|^#5c)P*r$KFh98V(O2~~O8yr;iQj~c z{7-zT{}`z1??0w)xSeD%L&D9U3n6PJKgHr`rl2w1NCO)7f-hz8PxB{S6xO>HtW+a1 z&UR~1(YN2HU`?I6;$nJ9YHUj>gxfA1T~L3Q9ta8&f7CF`HJRSbDSxleh80a*kTA?l z-4e9nb)5B`n%Cn>1}?3l8GIOLgP)`6Ttd2EQj?Uh(ZdJhPmUzSM(d-n@oq~-H-u{X zm3(WWR_)Ycn^5B-wPLUhwn_3%l9Iw7Q9f0P;%TglZ@0X#UM=8pPRpuv{1M+sm0unj z$Gq@!MWQN6sR2-XkFtxfJWhCX{0?4?&8 zsY5|pHEb7R$!JZM|J)frV|~W)W3^5aiZ{nrC%@;%*~lp^{>_90$pvq7SVf7{)_MN8 ze52ZAS0@iviN9R4VVEV9;Z`p_fa$H9-_4uPApZ?TuXy!Z=U++=lDr~`I zoX{EF^ADx1qTxNe*($y5hFemzp>1Pf2-(6z%-!iI-?F>u2cf6MjU`h;V1%+iNN*=o z=YF!*1lSOaDdOGTgv{c=6VvEgUjGJzG|4-z*$K-pDAx_e78Vib5FLEGJap!8MVgNj z-C|xHvNX7Cp(RHXz76ZDB*xHj7#6x0X3+%mFNrnb$aaHvQ@Pco3v{oT*69x;m| zAR}~m(mK@jVB1O~;X zKs4J8ZU#?ta4YFGdHI4wgDx{v9H;uq2UIJjxwu7!HoOiz^QFl^_t_WHZ7Fjujmb+4 zOq9C|lqbC%jpziHE?fj30B8i6b>_$jSYkv0KHhS1wVo#$@64c!)~yQ*7Bq(o03BF}}&t(w(2MBQFx~z)xsCUoORk0gyriQVe|?!Sv%M z=wEP1A%}S(1vg!I1MdghQk0ndY|9$fB7*_P@ZH@2#+XG|%M@amU@5lH#*n_^f;S+$ z8mt_-ASJ3YM}}OHc?rawf)DZie9&6R?W5nZQ=EM>z9FeECv0;#LXg&7h1Kaj;mg7}gSJ1B}$n8~Sd8`s0+SBCOl>S$VEY ziFC!C!Z1nR9$(BFKCx|xS5rawUjgk6HgbQ9Bpl=)&e79$^9p>UJZLOywMlvT$M5OE zZ4*$H4L$D;>P4XhTqD0mgFvYf9lO&dBu3-2Xu&IxK_8!`sKgwFYODdoT(o+^k;BOX z#T9g1`f&4bAe{ec;-O%F8LyYaX-9v$J%Wluf06#k=E4u!FTi^JW+Ng3m*G*NJKR4B zB&Mslw^;vW@!76S`|*GwVn=^vT{C5*YX#Z9yv=Nre~u3VLIaYU-?FkaA4Dkxzm?-? zb!NVN^I3MO;nclX${hQ=^|@3%0fW8AI%n{H1_%zKG;GIM6xHnFI#UPVa#d~qB;CwI z|9J5kP}M#E1_7-kwm2YU0vm>e3GzC)_@Di1G!=d#5bV*q#B^2ijNJSvZbH&jg4KGo zljHjcB}hP5gulY>L4wM)KEb_4;V=}rzCRoDGsp#DZ8x~HQUAk6#CdlV zl`8h{*#nK3J~~8sY}$jY9Vd7hIQQgvP&@k=wzAdREhZ4&AdwABrKSx$Hj}70%SFQn z3L9()Cc z#*Kgn!#Kd2>(dp6on`UB=#EOQ#03~Dm#LCs5um?frRL^Qf>HDtDu+!brnrMQy#egi zth1SS^vK7q!a+m8aiC^zp~|Qz1MKl<9}3^Qz6|{uj5?;!QVz8_ZvpJoPobQRDttEN zzi23#!pmDP7tpseoJNHkMCqtvK1n6&fq-XD5#e*`kcifQj!`W^4SoTzUd|2^)z9FL zpwoRtksC95@^FU!WKm zgF}1x_)5t8@ujVA0Q&V88}$v17;TLhWp?eVJUZ)_!^mk2CE&Mz-<>XpLufoDR14-? zt-~kke$wVFYSgG(m^^bqb563cPKm0f_{QRl5T8LS%F5>A(T~GqR(-K#ifByjky0Z9 zl#l_>0&}*nQ0hb*nS2HHAG1*QYi|UN*p&o#3-UT<4gZbVI?M4jLw>gik5pnaJnBGv zCS;6!!||SR$E-n-Ce~vA3t4{0<)GPH#-{BeNlI(r=_*U~W95pAtq|H_P^Y6)D<%pp z6vw{||IG7eR$6M(PhI#5m=RiD_tV5hhq?OF^mi52IN%Q!6lhHUDkun>?w8_m6E3x) z8eK$Zon80o0;ZZl{rxi@jo5hp^|5b4mmY#cwTA)5N>^0!Y!D?`$}u%g~P5XK(eyQraUx7F? zuwRu!6KT*UUVUa*KYP*tk6lZ#4YQoDjvi?XXl3{a6)y?s0hM+Rx9v6dKoP(C;&-)t z#hef<#2it`rxf+Jo4HEU??UG=iSmHxu@oqKF+p>DO{H{0F&2Z@E_BzEF-iI{RBNZo zNiBiIC_QeB1Yt_=`~kD(YQ+e0eFbcF7%AxU?y1N2#^3t$(y^5JlDf1Kev9AW(*0RJ zsr`mOfH?-3JIY3t?_wLIEs2Xw9?Pn3zP}J2?4-P{RQF5H8565u z&%@P9JJUI&Pg9Pc$u|;poVVDy&dU!jz84ogT zQVx&OIOmD(Qrc32LJh%tZ!FL{j!||J6~1b-Y#mMaZ&o5%8p5wF#oKJ{JLXD5!^g#= z^~I}Y3xijl!j2BVSdfa2f|760L^z%RnQyy`r=8T`FPeJ+xgp0^3m-?r3+BD~*x*RtGMl770B>;~4+gEX<)Rb=nHC_R$$R#2%N zU0tFN)a4J;>vD&?boY?7fy-AaE#s9MZYXc$Ia<#r*f%EQ_E1DA&&P}*jZi5Q_|;Cm z)_a#8i(m9u+gql(lMv96Vf#*sMVO=*&G~0%X!)uH963i_1fPQla6<0%ug417VO8)O zf+TpH%-><72H6kj8Gclso{8fK z=rR`xZj)tj4lV7O{tNc{N|)33R1yy%Lh*qf`j20!?cd)Y5I<$jxJkGQ)*j!{n!j{#i_&f)@n5->Ba zq=Hl+0Fn@DcGb`^7$L282EA3IC4H&7s!HLvLF+9G;Shk63B?`uZtMGIIgFzg7n#WwFX zAU`y4n|2NHhaqF0wU|bQn1?+`W}{ zlVWh5mw2LE^2$1h@J|C48@M4T^0++j<0E<6Ghv$2DP+Phh-PaeY$ zs{ia`D4+$Q2J?I@*m?+zYb=Z^xKAuHLY7GOuGB_F)6DLp z@ZO!aEq0;1hcN4C)Xj#N*WZXMQAjM`6~M}F?tyyzgz3ckyLdwZT7KS#il+3u+hUnK zDOODAGn`XyR-Ej*mh$)~UIdBh0LypS<`%fRnX68}#^H5}rzVpn{&-0)9kVXk=!J=& z{-1wX9j1?7S`=H^Be`kZ7KdU2bFAO!OW!P?;)8EnI|2+2lOA~@jt~L=kM1KEmsfmO zt^0L*5Socgl8S2F5gB445iV{}jS*PIwApF4ENFMCNSI!j?XU9Mc;XKK5_`RC?Vntz zOk(p#t1Ceyt1lNKo;<2o^^^h8`F3}2EsuuI9n0Ixw5zxH)It^m8oQmP_*oT1f>772 zH)Sa2*15Z8avMLmmsve0L{K7`RG>e3nTs&U=LLD}>k~;h$y*!#?Nn(@208}%w+{4T zdr42ufzlPJUF#S88RD)z#nd?^can*7Vuv2~HFsz$4>jI5r_M~cg4Srs=6wjhlVlf3~ zYvoAz_{aMTLWDfyiDztL>nAFWc|pPvJ*(Z^T43*l^rRP~B=cItMh3W>*b$dXI!RLI zMl=3TnYc&5*63y6bx=ED&6{Lj*!>2;VuY-eSAZc`m{HQk zhz=N{tk7P-9>7g(T{Hhf8}o#i`}gQM9#JDdl_k{sGC~PeTwk|g)1$4lp1&VH$zewc zjG>!ai6KDU^kx`!@vId_6Nv&Oyt{RZmhynDwrhZ#8^)M0wqp|WFz(rZK16(uvXvvY zI^4$MHITVO+2(yYltwUE2yD{l<6#|*a~elt+0u*Z)4k(V1-B-Ba|Qb_rjI{usAE!%X$WQTDNmUr08e5CyLMz04)eBXXqZixw# z`^<;a^oO)7ajF~&KX=65q!3=z3I%Av8_RhI#%Egavn=QCUC(?hYU)3YSw>KQ@Dax2{8zUr8aBjp3BH1jP&+5guhP2k+EKYmEuU)dwrH08q8pjS znFmQTFOw-)t$k#mzd^chA+enW<^~p*zz(>|4M1OA4qM}z2Lv`8MbAlW@Gar{WT(aj z`UDJk+FBDZt#EFbH%lgY+i&`{FY3Oq7XV8 z=I-++QZXOX(p&ECW)HL6Bo-G_oqbIH!$@`8o%R79_H`=hE&C&~BPc;`**%l7)(!ut zY;8f^$IZ3`iK9rK{bsWgd`)Q93_eKiNIOL9Zuvqg>f4gKDIv*q-Abk4&=8tD^jAhA zh2Pn;5iKm9jTJCt*-#%H^q4*rr`?_g5wO zkL@mCPDK7#$X1dRoMJ_p&07 z`d(J01*;oMC$G+l`_)Sd4IK#50$go7iUy?r24-&jdHu`$w)AOw9K*-d3Nt|QyQ6tX zp^7jUgR30YPX#*0!_tO?Rg^q_{1?b5z-Mpr!W1*>Xcg z{_zLMz>*l;sWQy3^kw}dy3cDKpafamOuZM|6!-^+3zHwV4j}Yn0-opplfR12K4;)5~8jVNMjNG|uBNx_$Y3{5&?!l+??z zhVoxwPGr-`!Q|-HLfiJhEr{y9KYQm3;RH8rIC2c(72w{2gxpJ<9g-QcysLCp+I$$q zNRAkPxtgXXgPT&9V#5A{gkiQ{2#W5it%>fES9s;Z%~pfDNMp-^t;Um^lZv7bEQx-J zZNcn5aO2NQ5^*R>KTLtm6V9ruW)`c|*|<&Jz_j&H4*pXN{K@Z z8OR@&HesL4Rd4y@g|m&Bp&qF?`6ok5e$1YDwOJ&tjczjP+FE30BM8*jIt#^RgTxJS-}-iGN)? zG~c*-Y)HOXl@Z0gaUoi}HRn=NTXUgp*8d^;xb)_>Te>eM!ROp^i`oG`$KJTWph}7^ zOswSb-=$gsu3~HZa#V)>Dv0haVC4~!I!=YIXLPc8e2)tNO#n)>N-L5jbhf#pmtUl zQP=&bBvFnxewG_X4PKrM0^uNjg#e|K4CGTq0hO84u};F!)opY%&vY6Sc0+vszzY7L zEzO0RIUc>gcRYY`;NEm(@-EwelM#fSCOENpT+X(OM z)YJ94;@Icq`{)&tw?exzM#>`Hl)>YjrfnGm`ehPOY()OI0;~XRV`B`ryr)EYMSoRf z8N`3?NbH#e6f|sWSJCi6LsMhp_X($kfPLXf4MMQq=5Z{%7I~Bj>>0fHL}GF!0S^_B zC2zw=eu25Gk@3CRp~FANZJTgYIDW(Nspj)+?4d=LkE>n7(;IPkmJ#;DJ5l1M;L-;i zJ3kvml;LM=rcd8zu|av|0H3_KgojHgmZ~_wLF%7f0b^EcOk+muoJFBO8cWd)&3Ogl znJ^-~1i-QS0jw4NU7laQqqpT7sp8LkF>9boQ2Xl3nUfEQ$wSpK0+L#SHy}D zrZ;On7)S7ld^z6+Q-mD9Xi47LJN}*zyP8zzhFu47|HY<5VgMhJ&dpS@0{p#}iY>6c zFo>&Q*&Y5FRSW0q*Fj^Gss0!puepvQTrs#K3iWa!8-nrSj*L(oSmFHd56&OCzF$$l zd9#a0&L-lFY3>XR2*VD`TeZEujEcmc!P|x(Uhlkq&5=3Rpe)H0qFj7o`ptS8q`w+F zMtct4=%b$j{2cY=`LH#v~wLz=-&?%6?hP8DS1+;mJ zM0mRDY1ro+d3IrucX~!p8xAk{yCR|?59=uOPGy6{OEs)YqW9z;n-7O$L(5lHN%C-M zKjhcnsn3G)4yT}FXQvpXMMeE>nre)Vi>(5U9$6Z4a?R)kv$1zqK<+jb4J5-4N`k8o{d@Kf@0bVyAMvZ+yCdBIH_70Zi*AAwS&y%HA<7!=*!RA!>$4$o^&L1@t{F{v58bEMap4espv6hThGxl1)86|>-}ggf$WqVkODlHitHptM}tSF$$H0=TYZ z0?Egth>-+wZh^&C3Q1p*(#E$VLQV`7{?R@&_4xyY`IW(W?}&n|E|<)DyE70XUK*qd zV*kmO9HbgOOzq~6g`JsHT-#%J@ z{L!=HP;LO!WvPmsQ06P#qy>5Z-~lDEkRFvUujusAaq~O2%-% zmbyU9iG$`$=^b25+BR}+8&hw~8-t^3h%YO(Gj%N@Tu3hjMB=%wt`ep5tU0qu)cn!p z`AzV=0B+_*GMlc;e{!Buob(p33vn1YZX#biZci6*fvz%rU9^`)e}itYIl<|pc>IAP zG!t)@ohYz9kR8^7e-EbKxz_(7`9GDf&}MR-^1dk{ng5*5PV z2*gNB(*f-gZHs7V=x0{ltSdD(-r0|g(~$r01KeJ^sGc23z|mMPmEwyARJ1O|4fNH^ zn&A_Abrx|?JwKP0>m}=fFL$m%zk?N}P4E*Me6GRd-0$8QbKyvUY1!t9oX|dImHgmH}CNQa|q=4qfGbW>2iC@XBF1^aFRf<@*Fd zMam_uKvLyjhN)6fk{oS=!&fC&oFug;!DLeLdt!c9gT&pm>^cyx_P z=+MEV8L+8gVJr%U7BZFWvmBCv%G7^B*B`2$EjEX|e5>{faUeqhgs_NmzbRUeZjjcM z2ZO^?x6h8%_Fhb{fzW`Uyrb-bZou?+{iEoa%eq&B4G-QMlK|`F*#nCC$wKX3*w;qH z%w1cX4$8nwQf}+1G6S;}lHa$^IJX3}E}RozDa@V#4kVwhi3pLcKxDmC^l+>GRI5`w zbYXsa3^MxF5WZxSyH{Vk!(B${`HbvcpI1!cmv>J&9QhkNodgE=+4x}V(&PK`y^hJM z@kLy70x5X`s$$Mlf#-X?y{=NuL|;^J-WIPs8!lGvr=oul+rm1aFUqY3`hXtcSDF8a z7ot}(No91sxMh$sk)6-a&++g`d**!*N6vs9v8>*DJR1$`{JiBiay1#o*V|mSd$rnr zlro~<)XoJTk||7nrnKrjtIa8TI;);js6-PY5j2E^=JEC2;NIfk+~Q3d_8eYpI3%Ge zx#JJof15G`@j^y2@zXGehI1xHMRhuSZraQB8rR+)XIA_EF$BE3S%Be~E6|O-*Y6d& z9+&%~{rr!6%4Vw#>gCQ`{wF3 zjv;E`2CA`o@2Pni8Zii&DxcseVL;k^CpbbT_ZkU3%MoUVH0qc4WWpuz5#rZw0IXhmc-f9D!LG9Sx*3?oACiUSHQU8eRom|@kv5ld~bw^(`ccS)?LW*fie%e z)6y22b#R*8R_zxT+v_{_5flga^?``I!|hxJ^>5Yzac=BgS_{>Z_l$?%GYO*#hU73l zeXc8o>p4KF+_vJS#lSHrYxAWAlTW$w zwX7OKh%q518(Uqe+1+dKSk-H2Puwb?D`m_UeKHZ*Rx{!sELL=>Nj>E?s{Np<+Y+>m zvF3Dtcc;(jQ|rD(;lJ+fHLbp9W@=inM~E++mX+k``7tUoin9<3TkZ7spB_nzpXh1! zUbuDuHks(kj|;CI993mUN;=l+NDzcZUEgVRMly%fTzQPduE`j;u7_u#(v3PzQHP#~ zn^D?Ki$CIRy-Pv+7vpL&DR;rP%1$1{^)Qeye@%Rge`zFnU6xcxI_x?MT(e=$m{=EN zbQsW^O24xmR+Oc>v*V@C$N09D74z83xrFr8OQylQsG$UgP=gbpg|@_@r-p*?rT2&R zt1jr?iPUd-Kp)b|8|esqdeG4(zm`yeQ@JFnDEZM^FoYI&0qbJ5LOk%r$v3eCjqq8q zrDn|_Hg)cJfm5cC7YO<_X~A`Cdi*bO--hmOX>*zlY>xUbtDVU5uYQjn5F_HPf6(fGtkko`Fd?m_w+{*!!rm> zFvVb-J8V1ZaxkrLP!Y)|fB}bwjm2}IL)JLW*;kNsoRGXrG2lIla|=9g)v%Po&hIM} z3Ub3@OQ`vbj#gw_%q)vP9uhzf=ucRGANv2h$EzJXdM7ZADs4`f_t;W`UkdqZq0_9z ze2g{wYX$3z85qN>4w>t?7q>UP^AU)ETube*-rWZWA6?rmU%g){Fg;%7$Bgzlkve$u z#zGl4H2Of_nB`kf6*u$Avum;^v$n&;7eH`O4XPM`{9u%v3J}-6TU+$M5zv8D@_yzak~eSyM{O;cR(y9Zy*V5*xaYMA&Z<|4OnX}W{M_1 z>(}bbH8}XZ2+(1Q^u4hIh#XZa6-pyJEF-R4@6PdUZyc`C+N;P;--efS4YR#_qp6|l z5;lFHeLpGV?B#YaXB(QP{RV+65n98JA9Goh8DDNIU^3(Db__=mu+LVTWT&(BMpy=wu!LhNU zNa5q>X6dP|?kCy*hM6lbr5|ake#E`Gtm$$0gFty5TGd{WQd#WypnM(IM>jOA`6jQR zB)KY3iJ!9wQ+8V2b8AZZgZTLTIoGSg7{=Ou zC|8CZ5=JSwKd4*j z-V`}?I|;IKP6Ha!8?nc$g1*MP4U&}TKpS9#ylE+P0=yptt*U=_ESya&44eb74_`r_ zD1jzcR7;9?^Cru`iYav8sh@I;jjL`M9*ZDcR(+x69aZk}*E~DF4Xv7e*WZ19$GN3I z0Ri6ff>Z<+6NZO$k67nq&VUcuFR1&2U_KR($HjV3V)03L43a2FrV zKtCg5<5Eq6eRifmSa#VvH`ih7d}n0IV76u_By)3f#HqG6bZ>i?9GsZ)2sO&!6~<=w zFTZY`l>sh!2;S|umQl_<-uH0eK)84)(g11_`+OqvGrCLp3n%~GG;`f2OfZnmbr~K zjs^v<-O3EmNUe`MwE1EeGdE-SaiyiP<-`N`4oAReaU}ik-X4o?&E+CDGgyQZa8K49 zrKR1s2TLC%sHwU6e>kbl*7oovf(qqZlKkH8&}VQVG!J{BpH0FIeAGo$U(qHhKT}>> z!hY%RgJUfUdLiz|EBvMaSt1aC;;m4a$f~F3Ic9gHn{mAfa;~Vv&~H1&!VJIcrlZSF zO#FH8fQzsmhmJDD2-VDuI%M{$uIyB_Tdz7oNmh_xr^7duM149yCo_rIt4ORSiw-#PSidJ_g@lWhy>5v_ zGrLNbJrY3D-5;808%~npj@M&c*523fMUU*5XJ%q@q-9{B&cu2<6TcE2(EWv7q;jFv zTm}*Hio^;-D-pwRI4|$86j78P%@lNPSSFA{%KHB*2kmQ zeKO&JjF5YZ`*qNK;Fr@A!YA;SCwpaJN)JcL@#nF(xWBzJ3^w;Z%JROB92thT)aiQN zHss7#bRM0Lus_nwc#lQ8A)%8w!YV3&#|4fV#pILo^@Z@$??@co7a!f#WrheNAB9%E z_@Nt%JrbqZ<+Gi)h0iCw zAG0SF_PSgGtY~|`^+aEL@BX3*wqg%5%nJ4t3?9t_phelm<%$W{T^zcv46qau%2D)X zmIXuIj@?X@o1zt&1sS~mo`^oKTmwy@z6Q^=sMhO44`gho3SI7!&Y1?KWulIUTkC18 zDh-#`Z-62m;ujnf(lLx8p<>1cfB#TWT}<%wd=^Xc4T=2L#i*=!th-6L6ZzbU|1hY- zc@G-##A-pRFwi4k8h*>RjiIwL0hVMB`N$kUJRsViGoYTes zj^(**svP_t9@rSc^Y}2Z`YYROs#SF}X4(1kJZ!UVrBq+;_|=K8P^rrLv9EvCn`6nA zP|j_l(}JcIS(vt0nY>GDtE!~v%G94LAK)gq$o`+bUMkpk(+{E0k_Zj;m;wTy?}{bu zabM{Z7#C}N^WpwNf!ApPJ0~C%e_y{>nIUq&$|mgPBHSyd$g%c{g8$qY)*~6*+o!>f z#Q@GDq)-0SXI7;Vs~+vf;s2o#ExZ<_$qDWO)rA^Z6rL?3NHuj z8*0}T?cU3T_=Hgo9<(WbQwr_m9)CQwDOtua_f(E4FWJRmDaDT7&ro@8I-f(_=^+DC zor(WQu`q;1cE~wvu_a)kVRc|fw{$gItCcUw}@WX!Lo;K1bSdvI$d~D2F zjB{MC-s(yiSpHDKhkmbl1NVZ?vwl4qW33ak^=By-8+o%Po%$DRG8U;Q+-vpHk-bZ$ z2X89PFFkl8CQM0jG2ihiXx3-0_{eZjtoiW|KNo)K*vEIMO!S0@= zD)UVrq~Mr*bFoJOLMu%XV<{Kk_HdS4bBH?p^7oYP^6pMTMprj{VYTzO-+2^p#GbeQ zS^*Lm>CU^Op14OXUCbilgX&IG3;|TLLIw7XhO>%&iwG;&2CnD(R|a%2xo>!+J}_=) z@4RK5I&Y)7M34x=Wud)sJ-d;U^8&gV&}|qj9n1|Niv%f!=}bTJts%^YRh*hh)I0Zs zIxvIQl7PPU)FCr2@J@)!?RQp`6noub2wF{<2o0QIWryaSu)FvCB!B*WHh!qsp}gm) zkNl~~wR;B&{eEk%fj>Fyj>N9>{>S2Uq41uv!`dfp?Znu`MDzqf(n(w)>_)7g zh8o(s?rm?(JXp+T3|lHg?11wqK)fO&Bj;DULK7(=#9AA}+m!7t^kA&|B0pdnT#We#&92*6q zmp$S;o-M4TT5UsJcZPL&W)c7CCt*cuw_FslO;_&iRGpJ6M$4S^%#7cwYRbH(q$Skaklf-_152D{Bm~;#_|( zM*y(b$W_iT4qGSv(LU#7p;d` zG%pZT`g^a1ViOWEv~ORArbd~d@3jGRlIyc53`6{8lQP_@`yCX}r5`|BBl4?64`r^j zah?fyPSNqg8R6=rG}(=ZXOPb8-CTWOd}W5)Vh?a8C5T2%N#(-iqVI6WD-Q2IG`6PDS~>;T_*z^T<02q_`Z+{d$z4XwUDP1J8*|RI+S)uBtx0D*|ueDg4BrCksF# ziz4>odUWuxn*mPw{E%2OsX*Xow>=d(a=;Vlp3z5FCqe!~`YL{gv=861#KR-sjC5aU zjMhaM>|KnKVMzHAXm7dS37g)W@3cSlB~iNiUnF?<#Oy+|HZKL(k{a?>T4R4pt2Jv# z!Agvb612tjJ z3ytQ|&b`W0_rCRnyoI)#3ZfS!fB*qfhgXqoHBd7E4hrG5Ut0yi5sc;7ATNcUxix?_ zd0_|SfZtLc^;>o7D^9*haBJ4zg&=>Xhm0Wi@X^zLkE`Nf?5}YHAaX~l@-FJ{wp#uK zSSxGS!PE~$y`jn1OA^u#SAmwy2@`aott`rF3F>7UpcZO1DNe5ddd z>|6v^7qL3@Cu$W2qSr$>R7#is75dF$WO>81P{to5pPF5`iZ)*fkRQ+u3`XQ7{sRvL zuu-D8*gEZ1{@K()6+#tJ*cKbH&S^ZvxizVxF9VMtBm5jMG#fPg(K*(zZC(H_+pjOW zXNH|>z_j@QyD{e+Itt(Y{o60R&Y4P)r89RTE;C-c7$76;g|Rh))!O{7`%;9*`R^~4 z-oE9oSjkBdM*eFaqo}Nyy_Rd21?g(QFKZF?MFf+Igqm(+8er>|=&n9p>?}~HCe*Hj zf6@SdiQ5J2-jG*bX3 zH`l<_>)$lztCA_nHU4Ze%7zc1gmsU6lm-wFudUZDH^Qm*wc(!9Z~n^rty7`d{eN2^ zYoz3GhvyJ~jJNu`k}yRUJm}b9L-JGH|D~=QDJJqqc6X{L{J{@v{LzgE&t`u)Nnczf2psTDOM*W;RM4g1yQ1}R^fs>xuMTL?gF>GS1!wbnJNN&^leA; zy?rMZmQ<9OrR~VZA9VsA937JOO_YWYeO0Lym)U^h4& zX{Znf_ep%~9@7g=f6T{J{DaB5Bg45*4i*_s|yK$A`}YF3_f!QBS9 zO=6Uqd&i1^w-K|kwTES&PNI4yK~Tk>O->M+gG>QkKL>=l^t<-UKQG}l{XQ6mXzzEc zFso6f8~E(KfIw}!$4CT*QB4g-bqNjWNPxhAj!5J^4yyq_$?(;7Ey;XxnM;iMB=W!uK1#cFHtvV_XeDGFLmiS5$A0fqdKC=X8nqSjn}8G{t`K!Dy(fFYdx zv%5O+o`fF%$ySRl0V~{fO0hOIH8qGXb9f9Ludk=&(Vo(x2V&+^QN%6cf+>ZFKc>R` zoSe>60I}qPx!>ST_@PT=E55h9VIP0kF!(oo#R9#Z`ba;*GZZhIRPC{?H}JA%@NEok z@uI`1_dkSYDSggVo2Lnj?nkquRcFgpFPVoL*YRu-^DLhlmd{`I(Q_e{s9gXghuBLI zgBcr5@|7@lFu8(y#g7R{7Ir9)r7jyBh#<@~1Mpb}lZW|Dq?Z*g0%A@{$}obs7Q(5d z^b#q0T~7?d*3;V;+Yi-;#hw2)BbGPbHG&+MfWz*4HQxQ@iwu!h39SmUnwc9ul_VGt zYu72}1<@1{ZstJ4dS%?fA46myauqkjwNRSSR|mqEi{`cG?sg|>Svl*|nwyLdc30^{ zcFjAzwhIUHzk8P z!k)zMudiK%vw6?qgb*I1VFVUdw6e0&vXJfhwjh9D)-7fa?qVt)oP`YQ<=sZwnr zx-cnhlJ`wN-F%u~lNA1q+NGT@f*k^S4#|ig@m;Jjl>w*$H{+0JgG%p@T0XnYqu11A zZASh<2=olCGtnE?(!-2hCE_J|Is6X86x5P&adsc_Hsf>RS1Rl~5gV ztBkr8EN15s=M4OK`tGH|o$+my=+x6%UJ9Y%MtwgS@*&;$BxjGMm;A|anm$&AbGfR0d znCd&%Z9*vHoSeKa(BXs~^CIl9^@YCQlwGVxwr zwt=D*4#sB9T$Uv6DG>#MkHfp#?%XrL_C0*&1- z{jSz#*Hf3p1&FB@=hTyjY7S|V1CLP7McM0o&Bu;Hcz6X#S^3FHXe3tJQXc=^>lS@= z&-RgSxlsge2|eL=T>GJQcG1VFEMNl|U|M%AwsOEll9CgBFw5vJLO>KEm*tIXOT=Ry zWg=iM7nWq*Qg2x!O4h(&DYecAtE;O;(bq-j-(e5jczV=0|1rn@K-=aL4I-ZOV`7G2JjLar}9yNbkaJ zCk>PE*+geRTvf5*6A%%#S6zqJ=Nq59XFFa48v5SuDwf))QTy(4mu-bLCj+7Ia@0bY zIw`t=b2uKyd_GQcz7iPM>))fYM@Tce)O8()`^!Vt=+^+EPy)6@-XidsBRYJd;F&_F z-#vL(58N*`UpldEOxfYcHNAzd<9kINKaOv1HoXoz)j4h{}3c1M0G^%ThmEoI~IQ3As78KB}DqrSq#5FKXt7B_LvO0GfumNrrF z^d2rM#Bq|KlHCdbgG;kqh8az&{nyvjwd;tq5~H8;S0%%3Ajx(f7OaTRJI%dKwt?PP z%i|)5GEPF;vIat?SQ~Q;z!~vA1;C?}*~-B-)`L2N40l5*qdlah*OfB3nkC`KtGobKcpdDudc22; zb$;-Zo?git092vT@GFm6?**Wv`(mKqQ`11UT4w>^wKGGk0EY10a)@~<0PI|qdcUao z52&5jls6|F-I}ZFEzs`)f4`+K@Gq!H^VGNCP8DSSk-A8UWxavI@EK?-UnY1@2-~6j zgdCTK(ga&59rs(m9WcK;bZZF*`!&{#dzxp#hrgqsSrOqAMD?v*L}A#$?Z<`Aq)yJZ z20}IY*)ng^R<+Q{BDy2E9x;bxVu(8Q0#93&-=+6#vY4SjAG)7vWkP)$8=fbT3k{<3 zAz}jZyigd(jbFrZTv4-m%9Vu$%qz?YJ|i`DmuLW}UNvq!Fe>r>Z3kcRuDQ zle_BH<;y;}HV6BVT_1SpZ&3GN7gB$I4q?}=gUtcYvagt23_>Ofcva|eSeBT@%;nmn z2qx^-n(n#CZ6b_fG@6@mLgsYJ{7WbJF9^wi#`e`Q%i!37VXbbx${$s?6{xTGM{i7p z3Rxuuy^FcTc?$9=f7v9=t8U?|SLpZ1fE01^8Dn1qXm8{w-Vby^e~A4b6E@)193C-v z&Gy6N4LX0B{_zBqMCcZlp8zmyJ?YT(&aa-1cr*mgBT2F((*eo_@cQdorm4G{{SnH_H$AwE+5C)!M z4!3nOenv3|8bBC3mQ#`h*Ysa^5wBR!Oq53A9|=ypd*ojxdILQ?rTn}gnG-O+gFEu4 zOB5e89_!q!U<9=G4p#uD|1U8nnIA96F}glFMN2TJJ4=cS&7rS`DS1@Jk__h)mzL}h z5y;11u=deqqm>pEj6KQ5TPxjddrq~^dbyWN6cJi}iw)MH6>8iS@?vpiq}3?_+AZD2}Gb7xgj6|t$OVAqluJ6s!I zmozFYh+L*Sy03UY2+(dv2+ZTELlj^@g7*=G>DLw#YO62=W|Nkk3FMt=mQfg-%%< zLpf@dkvN>hZTa=)YP-6W>g-OJfUo!89#O7W>GF-eq1H8Pz4iQqot~ecuetJd;^^q8 z+20|?QpnJ?RQmiFWR!buNtRRq-5^3TMY4hDkI#)QP!|a#OqeL?p7E07dfg2P6`Gad zdFi#O3@~f%IHib(WH288M{wI6O{?6Z@($aV2`-fu`0IcnuyP$2%{<|`5${zO#8&KR zdPZyfO#-&q%pbi!TjKq22d@N+<_LCze28(~Pga+m{g1zkzh$)4L4fZ3z0HvgHC>O+ zMrmtOnqHTQeE|o1HdECFU+?G;-!6H$FUcP8td!?_DP}@H?{d4ri`+w`#IC84+~>3l&!xxK^kQt*YpHawo?vyK6r8m_!`pLuW5om`M#shm zvAdJ_R8Xf)7)w++0}?53)~h}+~#5k`yfs9WFSe}rvi6_rPsTCQ*jZ^>uk@cyK+>DXHv2+8-q z)4$+qrKigEc_9ZY7_$V0!?0N{M0@pfVV3^cFm&)5EL_aBxq0gX3oBqFYHo&i{`~RwwTfOc3m81Mdzy(&bpIBP_@G;<_1=aTlo=dIH7R>tV z3CwgPnF^*f>&W_3AKeSf(M6q`lPkn7qjsivWOec1PKpuvBCw0GxUyi1bQV`ra9h_c z)|jjGA9k1ar2-8lo&I3IB0GiliU7N7RPPby*UH}%IGt-m+BVaT9=;4^(oxt$SA=Lq zOaHj{0sNbFo0ZG$K=`_UR)1P;C-aL}j#&;Vty!Yo_EGU42JUXg{R>ChsdAm6R(N6) zrBUG&JgDDQlUwQfW+QU-_<^A=`&znP)}05HogJZe-ICaRf4(`-mI!E+mujpAC0rSl zvGSPc3^zP4TunWyZFk=~wp+@uj%tp)fsIEim{RMe4Wcb>B$cUwDauM|_PGfzVa~** zpQlMo8?D3UM@5Am{v8#U>xt%RZm4xGwp>N$tp*eABQhJc%3J>AT|o8JDcrbs`Sp`q zBapTr@>|45WZ!am3r(8b#GZ*W;1DN$!*i+6B`Tqu4DidhOK#|r&!PZag7TIC=}5&? z7bLP@l&^dOWJ}WRhSB6BZSMc^H8Ms9BW?KWjZsD@U||5DbID} zahJFAZ(j41Wy?qZBUB!V9X`X0`M_-CR?CbcJ^EVVa&9Y-w>|R7gO=tEvE)SQ^s1p| z^U(=G7K2TUk~gQa=X1}KRi7TEz^6^Vd8DJ0UsKCz|ARHmGH0dXXw%40@C<6cH$Gkj zy-L5er-hZ$!tQ%mU08E#%_7N1CGGduE;@bCTOLL1rU*Zx-b;k_`n22c?8eCG4ywCc z*t{191x_+Kp8>NKGa>zVwe8Yh$%2+&Rd;BII>U;{&q-z-5MTqj9<7OmUc9ff!(R1x>QS$M*o) z-=9n8n4GUEEd$sQ&S*UFO&L_*#30M;H3n`itaj>XtpqU{z zFPPZ_%1APJWaj+uFsNKnpG4Osf7~d`FmS0iO3?n_9kJx2)nq_09xyAeX3y=bIh^I) zU>4Kl^c&~DA%IGLf4LdK{$OrfF{=@SVGrG8a@j98W`!5-R}pHlp|%I}w-u)`JN{6& zhJOj0(r;I>kq;nWwVHoHS`IL0XXSWLxuWtx>TrY(?)Cju>zo(8ly05(y~+&}ti~GN zK(@R)(AR5FIp+yYCKI$98eZ^BbHdR*865QalbS7jGG{-0U3sZKN&HgD>O$UGYwFF@NQQ_Z%Eo4Yw1>M2M(; zTFC!Vkwi+Om+Wgq5mOT`vsg&8gkN_!t0fVkj{JG@I5+aTj?u?$btNa7Jl3qR6Jq4*R7xSLp<|wqxVh8y(AZ{SI+@>?hm6@H`^5E z%C?%$;dSu5fE>@|wvA4^NeW?5b7{`%e092dB4iob!aOMqR{ z^G3^vq;Yb`>f!VG^9q0s(pCZm+Sm7;PsSf`sIR>&{8TSstD(VH>&q$Qt zce!-i5fIka|CA~%OZ)s$x04>92fixO+FR;dNe}J}I7VH;@G6_jo+7=VEET2Wm;Pcn z7pSJMae3p4S1EX~5lZnOF@1k)`t_>{JLBT2X3OJsfGA7qihiR^Ig?gRZLLw#i8AL4 zy9mSf4w|@54Zkm}@RDce@E3HzZhB{^Y)J537VCb`YG-shsz!gJT(k6-ZH<$H=AK2k ze`7M@?&d-dh_x0)^g0Ya4LF4K-dn8x6Wp(jY92^(EgnEsfVNb)H6E7L@8)yD@`G1J z4mhrC{B(e;cW(HrUsZT;{itn@^Vpx-?1VCbTMc12m) zwQAb?unhZDuD>cBQCWh6=OYItiLa{1wT3=?teGXuXeJe}+*93l;igwzcMl{c`i7#* zgM=sY`VC{XULKs0-mW64f@GHk;}5$p@ov0wUFx zityEpKf;2ShnoT!-Rt5ksgch2uzKJYNVo6!CtA4FS6IvoBn@`5ic`Q6HYz(Gyt;wG za!WS=iBt4r!-J~9p(HntsOt$uazvvff=Sll3S)C5K4vnZnXJ zFbPbV|L{*B(KS%n-G{u&AZKJ@t0}kQ^}phAO9Yu{1+;Mn1<3aI7@h5E;&=X737Oq9#mR_$QUH?#d+W1*3l?mdFYJ&RT zBw8~`>*Vs`&PmK8R^V$d%ee{z_VH|P>pHjUWk{4=$lmt$n1-RByuQs{0Kc=D(v(_@ zsT>ly$dka91I&j|v6grR|nhW6IWwzfGHwt|#GEgo2(v z>oRMHP$TtT>v6N=SFXQa*Hj@_b+rz~z3ovEMV7~AgpQ6*mXk9UIdo|3EnD@YOV9kl zz$;R|)5`1?hTRUt@xf235SOzzC2yjlZ01ay5p%_AJj!z4n0@NWTGK(mtKjC}@N&Ga zwJR_TFy-=i72)Sv?auMKny_VU`PGH*sv^7Q^*>#EB&oNB)k{C?>godPcy2*`c{%?s z!)Ryf)!prVJl0wi@|>rO4mIYyTv~gY?}y8=*2yv=4o$3!n#r3s>e=Y)cTY{HwmZ&7<>=kd=ref0C!Q_l zl-}~X>aR8MZXpx3S*WtaEyQO~)E(^EHQlpaZMo_KVrua0#&y5tk(c`=u(uQ#3Ql{_ zERgCh!jZUBcm($a9a|P1TQTktU;VI2R*?*r=Ow1A-E0f2*pUac8UlMHFkFLE649v{Ame{K{j=EHVN_CNQJ0oRQzD>y`HUGMOAnY48C!z-Toye1uq$_*cES zX}%mMFO04OR!NsAP8A~{bGu8garlujTnQp@`Wpo#2xM?V<+WePZO42Pw=sfi^+R>x zc5e+DIWtE_v5ELrb_}mO$^Z+G-|RmROGnEy-jfP_=lfi7Q7>IlKDUd8NVJ+So6$$l zo`H_#q{KBi+%jVqm`ty(S(hvKr}t9XeQmO=`R99B8YO#P5~anqN`JR`BS8Rg$&cOC z5Z6cMJo3*RKA~$oy;WG!@t-DCV$XT(=!e}J(@W8_xzWs87whKe0AtK%DQ3rRo`wWG zl-Tl*%+c9)f$)xjqpMN9|8CN%9iCK`L#cc}>vh7$(lF6l-V0tMI7!ZQT|Jt-SY)<< z5Yf}qv+8%)EaH!KLI0UeL&H38_!E}vmByx1Z?`3}|0W;nb>|gs(M1z;?{CM^$QaH8 z*$Ga3f4P3f_#(?mt)hjybs)lX=|wkO|8Lk7>j7@2_5n=z{}wuJZXjJ0zI z%?c{k^~?B;pVL#APzkq8eTVkL8%|uy+Cxm%?+b-?mYHy`f85PMO~?Q6Ez6B%twXK1 zisP)CoIiF7>|YClMR;G0C-t=qA6d?arTkm!XG>n}Y-nKp17MNsb%0T1?xrI-^x}_U zy+TTRhhNOnUa{%fNJrw%~^E4+))AGzuB!pU1)ROx;Uj(eq14 zjvu;ik-q1qERt%399mAFY-iIlz;;L_MKBOlr$#PX9h(rY8p)h2mZoTga^=oNU*7@~ zpX(?N znCL|aVa>b`I=uU5UT#$<`b0j9%BH5%72RP5*BPfx4lac5|4x*@=EcN3C`lhX3^dJG zO&kgnlsScJxg4EVYCb46Q2ns+JqH|<9!H~`gY^p3;4Qq-x^}%~59nnf+Tv(L z(ZOF2R|M9{1mO5#=2dd7bn%+o6yOKn`*IGF{KXL8qv+yD%ewJHxZOfmd6vEU)QbN7 zM15Ve{v@$dd7BCWvpsKiv8}$N{xlU(Mw1z-#$%$(&ZyTpEq#sxujMAsgn2bIBqyzA zu5L13cjW!TGjlhI_Hzv&_j?r)h43>%w&i_W7Gm5kdwB(8pyuauHxe zH(9;Z3DU5^LfO~%t!|zYd11|%j=96v6}o)}<=%q&8{xa8yE>nOnQc@j?kQY6d=LvM zqIrEncg=a7!SG^tb-Hr+K#&2oVHs66nU~Pb6G!(aV}eoq51mqnt=y9z&jKFEzVC9l z(&T;^;n@d94DSWwUgguiAuEfht5H(SlWw7YU1WzcY3_-Uj(nk{JH`jss-8(&|li zkuFMT(qWO-C!ZF>3C+NarE-hb%rF9j9@pa58e;Q4aEBKyPm#?@J78PjOge&kcq)pt!wt#jH7pcBU*|Xb_R=iX@?}8%9vm6yh zQ=cpPM2%dZt?Sf{sh^*rh&%6-!&lMdCr^0iR_kajtYD+}>0THrqKCD1RU(Du^?Z}` zjwjvTHRMD0;Ze)ve92&ktX)V{4^askt$O+8c#>k1Ml;GuQNRUJpI(IiU=dIC?+;Nb z&&2J0C{zQ8ao-!yyVPIr6E^(S2~~LJC95HD5JDcgx?g)0xU3NSiTs9?wtbOvMX5r3 zMs;(R9MLHyf*Ph(?KpglY3M4}ya3bo{Tt0bi$r%@DkygbK>qcQ zj3#QPhu(|!s0-Z?&tjXE^6_Lpd$+|>gPxi;tjk7Q0I`0I(5<&Ic;z_vcdz01*b{+~ zxwb7wIkDuIEv*TLRUd9IuBH_7i@1}KNq(b2WKDE=a4~hpxAsSCVfZkuh#lo@Odi3k&;BKfPtIBtgO&stoT*Uw;2c32ZH77d9P# zRO+q927y9y-io#ROj6X!R^ zyc!1XC(X^qkH%m<5#l z1E^r&zr#|WA^qoX0^jmKU;Ou5{`-mjcftI3zx?;O`0r`?|IcOd{SmDysg2b@&gS$P P@JCKsS*k+fbHM)sgoamZ literal 0 HcmV?d00001 diff --git a/android/app/src/main/assets/public/vite.svg b/android/app/src/main/assets/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/android/app/src/main/assets/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/android/app/src/main/res/xml/config.xml b/android/app/src/main/res/xml/config.xml new file mode 100644 index 0000000..1b1b0e0 --- /dev/null +++ b/android/app/src/main/res/xml/config.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/android/capacitor-cordova-android-plugins/build.gradle b/android/capacitor-cordova-android-plugins/build.gradle new file mode 100644 index 0000000..2d9d0f2 --- /dev/null +++ b/android/capacitor-cordova-android-plugins/build.gradle @@ -0,0 +1,59 @@ +ext { + androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1' + cordovaAndroidVersion = project.hasProperty('cordovaAndroidVersion') ? rootProject.ext.cordovaAndroidVersion : '10.1.1' +} + +buildscript { + repositories { + google() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:8.2.1' + } +} + +apply plugin: 'com.android.library' + +android { + namespace "capacitor.cordova.android.plugins" + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + defaultConfig { + minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 + targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 + versionCode 1 + versionName "1.0" + } + lintOptions { + abortOnError false + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } +} + +repositories { + google() + mavenCentral() + flatDir{ + dirs 'src/main/libs', 'libs' + } +} + +dependencies { + implementation fileTree(dir: 'src/main/libs', include: ['*.jar']) + implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" + implementation "org.apache.cordova:framework:$cordovaAndroidVersion" + // SUB-PROJECT DEPENDENCIES START + + // SUB-PROJECT DEPENDENCIES END +} + +// PLUGIN GRADLE EXTENSIONS START +apply from: "cordova.variables.gradle" +// PLUGIN GRADLE EXTENSIONS END + +for (def func : cdvPluginPostBuildExtras) { + func() +} \ No newline at end of file diff --git a/android/capacitor-cordova-android-plugins/cordova.variables.gradle b/android/capacitor-cordova-android-plugins/cordova.variables.gradle new file mode 100644 index 0000000..5b55884 --- /dev/null +++ b/android/capacitor-cordova-android-plugins/cordova.variables.gradle @@ -0,0 +1,7 @@ +// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN +ext { + cdvMinSdkVersion = project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 + // Plugin gradle extensions can append to this to have code run at the end. + cdvPluginPostBuildExtras = [] + cordovaConfig = [:] +} \ No newline at end of file diff --git a/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml b/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml new file mode 100644 index 0000000..cb9c8aa --- /dev/null +++ b/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/android/capacitor-cordova-android-plugins/src/main/java/.gitkeep b/android/capacitor-cordova-android-plugins/src/main/java/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/android/capacitor-cordova-android-plugins/src/main/res/.gitkeep b/android/capacitor-cordova-android-plugins/src/main/res/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/android/capacitor-cordova-android-plugins/src/main/res/.gitkeep @@ -0,0 +1 @@ + diff --git a/android/capacitor.settings.gradle b/android/capacitor.settings.gradle new file mode 100644 index 0000000..b926ea0 --- /dev/null +++ b/android/capacitor.settings.gradle @@ -0,0 +1,18 @@ +// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN +include ':capacitor-android' +project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor') + +include ':capacitor-preferences' +project(':capacitor-preferences').projectDir = new File('../node_modules/@capacitor/preferences/android') + +include ':capacitor-keyboard' +project(':capacitor-keyboard').projectDir = new File('../node_modules/@capacitor/keyboard/android') + +include ':capacitor-status-bar' +project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android') + +include ':capacitor-splash-screen' +project(':capacitor-splash-screen').projectDir = new File('../node_modules/@capacitor/splash-screen/android') + +include ':capacitor-app' +project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android') diff --git a/capacitor.config.ts b/capacitor.config.ts new file mode 100644 index 0000000..1523e4a --- /dev/null +++ b/capacitor.config.ts @@ -0,0 +1,27 @@ +import { CapacitorConfig } from '@capacitor/cli'; + +const config: CapacitorConfig = { + appId: 'dev.toolworks.trustynotes', + appName: 'Trusty Notes', + webDir: 'dist', + server: { + androidScheme: 'https', + hostname: 'notes.toolworks.dev', + iosScheme: 'https' + }, + plugins: { + LocalNotifications: { + smallIcon: "ic_stat_icon_config_sample", + iconColor: "#488AFF", + }, + }, + ios: { + contentInset: 'automatic', + preferredContentMode: 'mobile' + }, + android: { + backgroundColor: '#ffffff' + } +}; + +export default config; \ No newline at end of file diff --git a/ios/App/App/capacitor.config.json b/ios/App/App/capacitor.config.json new file mode 100644 index 0000000..5253e7d --- /dev/null +++ b/ios/App/App/capacitor.config.json @@ -0,0 +1,30 @@ +{ + "appId": "dev.toolworks.trustynotes", + "appName": "Trusty Notes", + "webDir": "dist", + "server": { + "androidScheme": "https", + "hostname": "notes.toolworks.dev", + "iosScheme": "https" + }, + "plugins": { + "LocalNotifications": { + "smallIcon": "ic_stat_icon_config_sample", + "iconColor": "#488AFF" + } + }, + "ios": { + "contentInset": "automatic", + "preferredContentMode": "mobile" + }, + "android": { + "backgroundColor": "#ffffff" + }, + "packageClassList": [ + "PreferencesPlugin", + "KeyboardPlugin", + "StatusBarPlugin", + "SplashScreenPlugin", + "AppPlugin" + ] +} diff --git a/ios/App/App/config.xml b/ios/App/App/config.xml new file mode 100644 index 0000000..1b1b0e0 --- /dev/null +++ b/ios/App/App/config.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ios/App/App/public/android-chrome-192x192.png b/ios/App/App/public/android-chrome-192x192.png new file mode 100644 index 0000000000000000000000000000000000000000..4968e3f27afd45cf7466b79c750c500e5af80286 GIT binary patch literal 9096 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 AVgLXD literal 0 HcmV?d00001 diff --git a/ios/App/App/public/android-chrome-512x512.png b/ios/App/App/public/android-chrome-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..06dd839a5a2755e9a7c8bbecd8a7e191b92eb452 GIT binary patch literal 41350 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 WsaY&9JpasRfRen5T$PMj=>Guit|}`4 literal 0 HcmV?d00001 diff --git a/ios/App/App/public/assets/buffer-Cq5fL-tY.js b/ios/App/App/public/assets/buffer-Cq5fL-tY.js new file mode 100644 index 0000000..a99332c --- /dev/null +++ b/ios/App/App/public/assets/buffer-Cq5fL-tY.js @@ -0,0 +1,6 @@ +var ur={},$r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof ur<"u"?ur:typeof self<"u"?self:{};function Or(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var _r={},G={};G.byteLength=br;G.toByteArray=Nr;G.fromByteArray=Pr;var _=[],T=[],Sr=typeof Uint8Array<"u"?Uint8Array:Array,H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var k=0,Lr=H.length;k0)throw new Error("Invalid string. Length must be a multiple of 4");var s=f.indexOf("=");s===-1&&(s=c);var x=s===c?0:4-s%4;return[s,x]}function br(f){var c=hr(f),s=c[0],x=c[1];return(s+x)*3/4-x}function Mr(f,c,s){return(c+s)*3/4-s}function Nr(f){var c,s=hr(f),x=s[0],y=s[1],a=new Sr(Mr(f,x,y)),p=0,o=y>0?x-4:x,B;for(B=0;B>16&255,a[p++]=c>>8&255,a[p++]=c&255;return y===2&&(c=T[f.charCodeAt(B)]<<2|T[f.charCodeAt(B+1)]>>4,a[p++]=c&255),y===1&&(c=T[f.charCodeAt(B)]<<10|T[f.charCodeAt(B+1)]<<4|T[f.charCodeAt(B+2)]>>2,a[p++]=c>>8&255,a[p++]=c&255),a}function kr(f){return _[f>>18&63]+_[f>>12&63]+_[f>>6&63]+_[f&63]}function Dr(f,c,s){for(var x,y=[],a=c;ao?o:p+a));return x===1?(c=f[s-1],y.push(_[c>>2]+_[c<<4&63]+"==")):x===2&&(c=(f[s-2]<<8)+f[s-1],y.push(_[c>>10]+_[c>>4&63]+_[c<<2&63]+"=")),y.join("")}var V={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */V.read=function(f,c,s,x,y){var a,p,o=y*8-x-1,B=(1<>1,I=-7,F=s?y-1:0,S=s?-1:1,A=f[c+F];for(F+=S,a=A&(1<<-I)-1,A>>=-I,I+=o;I>0;a=a*256+f[c+F],F+=S,I-=8);for(p=a&(1<<-I)-1,a>>=-I,I+=x;I>0;p=p*256+f[c+F],F+=S,I-=8);if(a===0)a=1-R;else{if(a===B)return p?NaN:(A?-1:1)*(1/0);p=p+Math.pow(2,x),a=a-R}return(A?-1:1)*p*Math.pow(2,a-x)};V.write=function(f,c,s,x,y,a){var p,o,B,R=a*8-y-1,I=(1<>1,S=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=x?0:a-1,D=x?1:-1,P=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(o=isNaN(c)?1:0,p=I):(p=Math.floor(Math.log(c)/Math.LN2),c*(B=Math.pow(2,-p))<1&&(p--,B*=2),p+F>=1?c+=S/B:c+=S*Math.pow(2,1-F),c*B>=2&&(p++,B/=2),p+F>=I?(o=0,p=I):p+F>=1?(o=(c*B-1)*Math.pow(2,y),p=p+F):(o=c*Math.pow(2,F-1)*Math.pow(2,y),p=0));y>=8;f[s+A]=o&255,A+=D,o/=256,y-=8);for(p=p<0;f[s+A]=p&255,A+=D,p/=256,R-=8);f[s+A-D]|=P*128};/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */(function(f){const c=G,s=V,x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;f.Buffer=o,f.SlowBuffer=cr,f.INSPECT_MAX_BYTES=50;const y=2147483647;f.kMaxLength=y,o.TYPED_ARRAY_SUPPORT=a(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const i=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(i,r),i.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function p(i){if(i>y)throw new RangeError('The value "'+i+'" is invalid for option "size"');const r=new Uint8Array(i);return Object.setPrototypeOf(r,o.prototype),r}function o(i,r,t){if(typeof i=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return F(i)}return B(i,r,t)}o.poolSize=8192;function B(i,r,t){if(typeof i=="string")return S(i,r);if(ArrayBuffer.isView(i))return D(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(C(i,ArrayBuffer)||i&&C(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(C(i,SharedArrayBuffer)||i&&C(i.buffer,SharedArrayBuffer)))return P(i,r,t);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const n=i.valueOf&&i.valueOf();if(n!=null&&n!==i)return o.from(n,r,t);const e=fr(i);if(e)return e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return o.from(i[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}o.from=function(i,r,t){return B(i,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function R(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function I(i,r,t){return R(i),i<=0?p(i):r!==void 0?typeof t=="string"?p(i).fill(r,t):p(i).fill(r):p(i)}o.alloc=function(i,r,t){return I(i,r,t)};function F(i){return R(i),p(i<0?0:j(i)|0)}o.allocUnsafe=function(i){return F(i)},o.allocUnsafeSlow=function(i){return F(i)};function S(i,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const t=X(i,r)|0;let n=p(t);const e=n.write(i,r);return e!==t&&(n=n.slice(0,e)),n}function A(i){const r=i.length<0?0:j(i.length)|0,t=p(r);for(let n=0;n=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return i|0}function cr(i){return+i!=i&&(i=0),o.alloc(+i)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(C(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),C(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,e=t.length;for(let u=0,h=Math.min(n,e);ue.length?(o.isBuffer(h)||(h=o.from(h)),h.copy(e,u)):Uint8Array.prototype.set.call(e,h,u);else if(o.isBuffer(h))h.copy(e,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=h.length}return e};function X(i,r){if(o.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||C(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);const t=i.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let e=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return W(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return or(i).length;default:if(e)return n?-1:W(i).length;r=(""+r).toLowerCase(),e=!0}}o.byteLength=X;function pr(i,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(i||(i="utf8");;)switch(i){case"hex":return gr(this,r,t);case"utf8":case"utf-8":return K(this,r,t);case"ascii":return Er(this,r,t);case"latin1":case"binary":return dr(this,r,t);case"base64":return xr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mr(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),n=!0}}o.prototype._isBuffer=!0;function b(i,r,t){const n=i[r];i[r]=i[t],i[t]=n}o.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""},x&&(o.prototype[x]=o.prototype.inspect),o.prototype.compare=function(r,t,n,e,u){if(C(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),e===void 0&&(e=0),u===void 0&&(u=this.length),t<0||n>r.length||e<0||u>this.length)throw new RangeError("out of range index");if(e>=u&&t>=n)return 0;if(e>=u)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,e>>>=0,u>>>=0,this===r)return 0;let h=u-e,l=n-t;const d=Math.min(h,l),E=this.slice(e,u),g=r.slice(t,n);for(let w=0;w2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,q(t)&&(t=e?0:i.length-1),t<0&&(t=i.length+t),t>=i.length){if(e)return-1;t=i.length-1}else if(t<0)if(e)t=0;else return-1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:z(i,r,t,n,e);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?e?Uint8Array.prototype.indexOf.call(i,r,t):Uint8Array.prototype.lastIndexOf.call(i,r,t):z(i,[r],t,n,e);throw new TypeError("val must be string, number or Buffer")}function z(i,r,t,n,e){let u=1,h=i.length,l=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(i.length<2||r.length<2)return-1;u=2,h/=2,l/=2,t/=2}function d(g,w){return u===1?g[w]:g.readUInt16BE(w*u)}let E;if(e){let g=-1;for(E=t;Eh&&(t=h-l),E=t;E>=0;E--){let g=!0;for(let w=0;we&&(n=e)):n=e;const u=r.length;n>u/2&&(n=u/2);let h;for(h=0;h>>0,isFinite(n)?(n=n>>>0,e===void 0&&(e="utf8")):(e=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const u=this.length-t;if((n===void 0||n>u)&&(n=u),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");let h=!1;for(;;)switch(e){case"hex":return lr(this,r,t,n);case"utf8":case"utf-8":return sr(this,r,t,n);case"ascii":case"latin1":case"binary":return ar(this,r,t,n);case"base64":return yr(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wr(this,r,t,n);default:if(h)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),h=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xr(i,r,t){return r===0&&t===i.length?c.fromByteArray(i):c.fromByteArray(i.slice(r,t))}function K(i,r,t){t=Math.min(i.length,t);const n=[];let e=r;for(;e239?4:u>223?3:u>191?2:1;if(e+l<=t){let d,E,g,w;switch(l){case 1:u<128&&(h=u);break;case 2:d=i[e+1],(d&192)===128&&(w=(u&31)<<6|d&63,w>127&&(h=w));break;case 3:d=i[e+1],E=i[e+2],(d&192)===128&&(E&192)===128&&(w=(u&15)<<12|(d&63)<<6|E&63,w>2047&&(w<55296||w>57343)&&(h=w));break;case 4:d=i[e+1],E=i[e+2],g=i[e+3],(d&192)===128&&(E&192)===128&&(g&192)===128&&(w=(u&15)<<18|(d&63)<<12|(E&63)<<6|g&63,w>65535&&w<1114112&&(h=w))}}h===null?(h=65533,l=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|h&1023),n.push(h),e+=l}return Br(n)}const Z=4096;function Br(i){const r=i.length;if(r<=Z)return String.fromCharCode.apply(String,i);let t="",n=0;for(;nn)&&(t=n);let e="";for(let u=r;un&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);let e=this[r],u=1,h=0;for(;++h>>0,t=t>>>0,n||m(r,t,this.length);let e=this[r+--t],u=1;for(;t>0&&(u*=256);)e+=this[r+--t]*u;return e},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=L(function(r){r=r>>>0,N(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&$(r,this.length-8);const e=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,u=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(e)+(BigInt(u)<>>0,N(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&$(r,this.length-8);const e=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],u=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(e)<>>0,t=t>>>0,n||m(r,t,this.length);let e=this[r],u=1,h=0;for(;++h=u&&(e-=Math.pow(2,8*t)),e},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||m(r,t,this.length);let e=t,u=1,h=this[r+--e];for(;e>0&&(u*=256);)h+=this[r+--e]*u;return u*=128,h>=u&&(h-=Math.pow(2,8*t)),h},o.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);const n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);const n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=L(function(r){r=r>>>0,N(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&$(r,this.length-8);const e=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(e)<>>0,N(r,"offset");const t=this[r],n=this[r+7];(t===void 0||n===void 0)&&$(r,this.length-8);const e=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(e)<>>0,t||m(r,4,this.length),s.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),s.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),s.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),s.read(this,r,!1,52,8)};function U(i,r,t,n,e,u){if(!o.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>e||ri.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,e){if(r=+r,t=t>>>0,n=n>>>0,!e){const l=Math.pow(2,8*n)-1;U(this,r,t,n,l,0)}let u=1,h=0;for(this[t]=r&255;++h>>0,n=n>>>0,!e){const l=Math.pow(2,8*n)-1;U(this,r,t,n,l,0)}let u=n-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function Q(i,r,t,n,e){er(r,n,e,i,t,7);let u=Number(r&BigInt(4294967295));i[t++]=u,u=u>>8,i[t++]=u,u=u>>8,i[t++]=u,u=u>>8,i[t++]=u;let h=Number(r>>BigInt(32)&BigInt(4294967295));return i[t++]=h,h=h>>8,i[t++]=h,h=h>>8,i[t++]=h,h=h>>8,i[t++]=h,t}function v(i,r,t,n,e){er(r,n,e,i,t,7);let u=Number(r&BigInt(4294967295));i[t+7]=u,u=u>>8,i[t+6]=u,u=u>>8,i[t+5]=u,u=u>>8,i[t+4]=u;let h=Number(r>>BigInt(32)&BigInt(4294967295));return i[t+3]=h,h=h>>8,i[t+2]=h,h=h>>8,i[t+1]=h,h=h>>8,i[t]=h,t+8}o.prototype.writeBigUInt64LE=L(function(r,t=0){return Q(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=L(function(r,t=0){return v(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,e){if(r=+r,t=t>>>0,!e){const d=Math.pow(2,8*n-1);U(this,r,t,n,d-1,-d)}let u=0,h=1,l=0;for(this[t]=r&255;++u>0)-l&255;return t+n},o.prototype.writeIntBE=function(r,t,n,e){if(r=+r,t=t>>>0,!e){const d=Math.pow(2,8*n-1);U(this,r,t,n,d-1,-d)}let u=n-1,h=1,l=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&l===0&&this[t+u+1]!==0&&(l=1),this[t+u]=(r/h>>0)-l&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||U(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=L(function(r,t=0){return Q(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=L(function(r,t=0){return v(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function rr(i,r,t,n,e,u){if(t+n>i.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function tr(i,r,t,n,e){return r=+r,t=t>>>0,e||rr(i,r,t,4),s.write(i,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return tr(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return tr(this,r,t,!1,n)};function ir(i,r,t,n,e){return r=+r,t=t>>>0,e||rr(i,r,t,8),s.write(i,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return ir(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return ir(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,e){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!e&&e!==0&&(e=this.length),t>=r.length&&(t=r.length),t||(t=0),e>0&&e=this.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),r.length-t>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let u;if(typeof r=="number")for(u=t;u2**32?e=nr(String(t)):typeof t=="bigint"&&(e=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(e=nr(e)),e+="n"),n+=` It must be ${r}. Received ${e}`,n},RangeError);function nr(i){let r="",t=i.length;const n=i[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${i.slice(t-3,t)}${r}`;return`${i.slice(0,t)}${r}`}function Ir(i,r,t){N(r,"offset"),(i[r]===void 0||i[r+t]===void 0)&&$(r,i.length-(t+1))}function er(i,r,t,n,e,u){if(i>t||i= 0${h} and < 2${h} ** ${(u+1)*8}${h}`:l=`>= -(2${h} ** ${(u+1)*8-1}${h}) and < 2 ** ${(u+1)*8-1}${h}`,new M.ERR_OUT_OF_RANGE("value",l,i)}Ir(n,e,u)}function N(i,r){if(typeof i!="number")throw new M.ERR_INVALID_ARG_TYPE(r,"number",i)}function $(i,r,t){throw Math.floor(i)!==i?(N(i,t),new M.ERR_OUT_OF_RANGE("offset","an integer",i)):r<0?new M.ERR_BUFFER_OUT_OF_BOUNDS:new M.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${r}`,i)}const Fr=/[^+/0-9A-Za-z-_]/g;function Ar(i){if(i=i.split("=")[0],i=i.trim().replace(Fr,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function W(i,r){r=r||1/0;let t;const n=i.length;let e=null;const u=[];for(let h=0;h55295&&t<57344){if(!e){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(h+1===n){(r-=3)>-1&&u.push(239,191,189);continue}e=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),e=t;continue}t=(e-55296<<10|t-56320)+65536}else e&&(r-=3)>-1&&u.push(239,191,189);if(e=null,t<128){if((r-=1)<0)break;u.push(t)}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function Ur(i){const r=[];for(let t=0;t>8,e=t%256,u.push(e),u.push(n);return u}function or(i){return c.toByteArray(Ar(i))}function O(i,r,t,n){let e;for(e=0;e=r.length||e>=i.length);++e)r[e+t]=i[e];return e}function C(i,r){return i instanceof r||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===r.name}function q(i){return i!==i}const Rr=function(){const i="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){const n=t*16;for(let e=0;e<16;++e)r[n+e]=i[t]+i[e]}return r}();function L(i){return typeof BigInt>"u"?Cr:i}function Cr(){throw new Error("BigInt not supported")}})(_r);export{_r as b,$r as c,Or as g}; diff --git a/ios/App/App/public/assets/index-BHNR0Rya.css b/ios/App/App/public/assets/index-BHNR0Rya.css new file mode 100644 index 0000000..e7daa9f --- /dev/null +++ b/ios/App/App/public/assets/index-BHNR0Rya.css @@ -0,0 +1,10 @@ +*,*:before,*:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body{margin:0;font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing)}@media screen and (max-device-width: 31.25em){body{-webkit-text-size-adjust:100%}}@media (prefers-reduced-motion: reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root{color-scheme:var(--mantine-color-scheme);--mantine-z-index-app: 100;--mantine-z-index-modal: 200;--mantine-z-index-popover: 300;--mantine-z-index-overlay: 400;--mantine-z-index-max: 9999;--mantine-scale: 1;--mantine-cursor-type: default;--mantine-webkit-font-smoothing: antialiased;--mantine-color-scheme: light dark;--mantine-moz-font-smoothing: grayscale;--mantine-color-white: #fff;--mantine-color-black: #000;--mantine-line-height: 1.55;--mantine-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight: 700;--mantine-radius-default: calc(.25rem * var(--mantine-scale));--mantine-primary-color-0: var(--mantine-color-blue-0);--mantine-primary-color-1: var(--mantine-color-blue-1);--mantine-primary-color-2: var(--mantine-color-blue-2);--mantine-primary-color-3: var(--mantine-color-blue-3);--mantine-primary-color-4: var(--mantine-color-blue-4);--mantine-primary-color-5: var(--mantine-color-blue-5);--mantine-primary-color-6: var(--mantine-color-blue-6);--mantine-primary-color-7: var(--mantine-color-blue-7);--mantine-primary-color-8: var(--mantine-color-blue-8);--mantine-primary-color-9: var(--mantine-color-blue-9);--mantine-primary-color-filled: var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover: var(--mantine-color-blue-filled-hover);--mantine-primary-color-light: var(--mantine-color-blue-light);--mantine-primary-color-light-hover: var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color: var(--mantine-color-blue-light-color);--mantine-breakpoint-xs: 36em;--mantine-breakpoint-sm: 48em;--mantine-breakpoint-md: 62em;--mantine-breakpoint-lg: 75em;--mantine-breakpoint-xl: 88em;--mantine-spacing-xs: calc(.625rem * var(--mantine-scale));--mantine-spacing-sm: calc(.75rem * var(--mantine-scale));--mantine-spacing-md: calc(1rem * var(--mantine-scale));--mantine-spacing-lg: calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl: calc(2rem * var(--mantine-scale));--mantine-font-size-xs: calc(.75rem * var(--mantine-scale));--mantine-font-size-sm: calc(.875rem * var(--mantine-scale));--mantine-font-size-md: calc(1rem * var(--mantine-scale));--mantine-font-size-lg: calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl: calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs: 1.4;--mantine-line-height-sm: 1.45;--mantine-line-height-md: 1.55;--mantine-line-height-lg: 1.6;--mantine-line-height-xl: 1.65;--mantine-shadow-xs: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) rgba(0, 0, 0, .1);--mantine-shadow-sm: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs: calc(.125rem * var(--mantine-scale));--mantine-radius-sm: calc(.25rem * var(--mantine-scale));--mantine-radius-md: calc(.5rem * var(--mantine-scale));--mantine-radius-lg: calc(1rem * var(--mantine-scale));--mantine-radius-xl: calc(2rem * var(--mantine-scale));--mantine-color-dark-0: #c9c9c9;--mantine-color-dark-1: #b8b8b8;--mantine-color-dark-2: #828282;--mantine-color-dark-3: #696969;--mantine-color-dark-4: #424242;--mantine-color-dark-5: #3b3b3b;--mantine-color-dark-6: #2e2e2e;--mantine-color-dark-7: #242424;--mantine-color-dark-8: #1f1f1f;--mantine-color-dark-9: #141414;--mantine-color-gray-0: #f8f9fa;--mantine-color-gray-1: #f1f3f5;--mantine-color-gray-2: #e9ecef;--mantine-color-gray-3: #dee2e6;--mantine-color-gray-4: #ced4da;--mantine-color-gray-5: #adb5bd;--mantine-color-gray-6: #868e96;--mantine-color-gray-7: #495057;--mantine-color-gray-8: #343a40;--mantine-color-gray-9: #212529;--mantine-color-red-0: #fff5f5;--mantine-color-red-1: #ffe3e3;--mantine-color-red-2: #ffc9c9;--mantine-color-red-3: #ffa8a8;--mantine-color-red-4: #ff8787;--mantine-color-red-5: #ff6b6b;--mantine-color-red-6: #fa5252;--mantine-color-red-7: #f03e3e;--mantine-color-red-8: #e03131;--mantine-color-red-9: #c92a2a;--mantine-color-pink-0: #fff0f6;--mantine-color-pink-1: #ffdeeb;--mantine-color-pink-2: #fcc2d7;--mantine-color-pink-3: #faa2c1;--mantine-color-pink-4: #f783ac;--mantine-color-pink-5: #f06595;--mantine-color-pink-6: #e64980;--mantine-color-pink-7: #d6336c;--mantine-color-pink-8: #c2255c;--mantine-color-pink-9: #a61e4d;--mantine-color-grape-0: #f8f0fc;--mantine-color-grape-1: #f3d9fa;--mantine-color-grape-2: #eebefa;--mantine-color-grape-3: #e599f7;--mantine-color-grape-4: #da77f2;--mantine-color-grape-5: #cc5de8;--mantine-color-grape-6: #be4bdb;--mantine-color-grape-7: #ae3ec9;--mantine-color-grape-8: #9c36b5;--mantine-color-grape-9: #862e9c;--mantine-color-violet-0: #f3f0ff;--mantine-color-violet-1: #e5dbff;--mantine-color-violet-2: #d0bfff;--mantine-color-violet-3: #b197fc;--mantine-color-violet-4: #9775fa;--mantine-color-violet-5: #845ef7;--mantine-color-violet-6: #7950f2;--mantine-color-violet-7: #7048e8;--mantine-color-violet-8: #6741d9;--mantine-color-violet-9: #5f3dc4;--mantine-color-indigo-0: #edf2ff;--mantine-color-indigo-1: #dbe4ff;--mantine-color-indigo-2: #bac8ff;--mantine-color-indigo-3: #91a7ff;--mantine-color-indigo-4: #748ffc;--mantine-color-indigo-5: #5c7cfa;--mantine-color-indigo-6: #4c6ef5;--mantine-color-indigo-7: #4263eb;--mantine-color-indigo-8: #3b5bdb;--mantine-color-indigo-9: #364fc7;--mantine-color-blue-0: #e7f5ff;--mantine-color-blue-1: #d0ebff;--mantine-color-blue-2: #a5d8ff;--mantine-color-blue-3: #74c0fc;--mantine-color-blue-4: #4dabf7;--mantine-color-blue-5: #339af0;--mantine-color-blue-6: #228be6;--mantine-color-blue-7: #1c7ed6;--mantine-color-blue-8: #1971c2;--mantine-color-blue-9: #1864ab;--mantine-color-cyan-0: #e3fafc;--mantine-color-cyan-1: #c5f6fa;--mantine-color-cyan-2: #99e9f2;--mantine-color-cyan-3: #66d9e8;--mantine-color-cyan-4: #3bc9db;--mantine-color-cyan-5: #22b8cf;--mantine-color-cyan-6: #15aabf;--mantine-color-cyan-7: #1098ad;--mantine-color-cyan-8: #0c8599;--mantine-color-cyan-9: #0b7285;--mantine-color-teal-0: #e6fcf5;--mantine-color-teal-1: #c3fae8;--mantine-color-teal-2: #96f2d7;--mantine-color-teal-3: #63e6be;--mantine-color-teal-4: #38d9a9;--mantine-color-teal-5: #20c997;--mantine-color-teal-6: #12b886;--mantine-color-teal-7: #0ca678;--mantine-color-teal-8: #099268;--mantine-color-teal-9: #087f5b;--mantine-color-green-0: #ebfbee;--mantine-color-green-1: #d3f9d8;--mantine-color-green-2: #b2f2bb;--mantine-color-green-3: #8ce99a;--mantine-color-green-4: #69db7c;--mantine-color-green-5: #51cf66;--mantine-color-green-6: #40c057;--mantine-color-green-7: #37b24d;--mantine-color-green-8: #2f9e44;--mantine-color-green-9: #2b8a3e;--mantine-color-lime-0: #f4fce3;--mantine-color-lime-1: #e9fac8;--mantine-color-lime-2: #d8f5a2;--mantine-color-lime-3: #c0eb75;--mantine-color-lime-4: #a9e34b;--mantine-color-lime-5: #94d82d;--mantine-color-lime-6: #82c91e;--mantine-color-lime-7: #74b816;--mantine-color-lime-8: #66a80f;--mantine-color-lime-9: #5c940d;--mantine-color-yellow-0: #fff9db;--mantine-color-yellow-1: #fff3bf;--mantine-color-yellow-2: #ffec99;--mantine-color-yellow-3: #ffe066;--mantine-color-yellow-4: #ffd43b;--mantine-color-yellow-5: #fcc419;--mantine-color-yellow-6: #fab005;--mantine-color-yellow-7: #f59f00;--mantine-color-yellow-8: #f08c00;--mantine-color-yellow-9: #e67700;--mantine-color-orange-0: #fff4e6;--mantine-color-orange-1: #ffe8cc;--mantine-color-orange-2: #ffd8a8;--mantine-color-orange-3: #ffc078;--mantine-color-orange-4: #ffa94d;--mantine-color-orange-5: #ff922b;--mantine-color-orange-6: #fd7e14;--mantine-color-orange-7: #f76707;--mantine-color-orange-8: #e8590c;--mantine-color-orange-9: #d9480f;--mantine-h1-font-size: calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height: 1.3;--mantine-h1-font-weight: 700;--mantine-h2-font-size: calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height: 1.35;--mantine-h2-font-weight: 700;--mantine-h3-font-size: calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height: 1.4;--mantine-h3-font-weight: 700;--mantine-h4-font-size: calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height: 1.45;--mantine-h4-font-weight: 700;--mantine-h5-font-size: calc(1rem * var(--mantine-scale));--mantine-h5-line-height: 1.5;--mantine-h5-font-weight: 700;--mantine-h6-font-size: calc(.875rem * var(--mantine-scale));--mantine-h6-line-height: 1.5;--mantine-h6-font-weight: 700}:root[data-mantine-color-scheme=dark]{--mantine-color-scheme: dark;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-white);--mantine-color-text: var(--mantine-color-dark-0);--mantine-color-body: var(--mantine-color-dark-7);--mantine-color-error: var(--mantine-color-red-8);--mantine-color-placeholder: var(--mantine-color-dark-3);--mantine-color-anchor: var(--mantine-color-blue-4);--mantine-color-default: var(--mantine-color-dark-6);--mantine-color-default-hover: var(--mantine-color-dark-5);--mantine-color-default-color: var(--mantine-color-white);--mantine-color-default-border: var(--mantine-color-dark-4);--mantine-color-dimmed: var(--mantine-color-dark-2);--mantine-color-dark-text: var(--mantine-color-dark-4);--mantine-color-dark-filled: var(--mantine-color-dark-8);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(36, 36, 36, .15);--mantine-color-dark-light-hover: rgba(36, 36, 36, .2);--mantine-color-dark-light-color: var(--mantine-color-dark-3);--mantine-color-dark-outline: var(--mantine-color-dark-4);--mantine-color-dark-outline-hover: rgba(36, 36, 36, .05);--mantine-color-gray-text: var(--mantine-color-gray-4);--mantine-color-gray-filled: var(--mantine-color-gray-8);--mantine-color-gray-filled-hover: var(--mantine-color-gray-9);--mantine-color-gray-light: rgba(134, 142, 150, .15);--mantine-color-gray-light-hover: rgba(134, 142, 150, .2);--mantine-color-gray-light-color: var(--mantine-color-gray-3);--mantine-color-gray-outline: var(--mantine-color-gray-4);--mantine-color-gray-outline-hover: rgba(206, 212, 218, .05);--mantine-color-red-text: var(--mantine-color-red-4);--mantine-color-red-filled: var(--mantine-color-red-8);--mantine-color-red-filled-hover: var(--mantine-color-red-9);--mantine-color-red-light: rgba(250, 82, 82, .15);--mantine-color-red-light-hover: rgba(250, 82, 82, .2);--mantine-color-red-light-color: var(--mantine-color-red-3);--mantine-color-red-outline: var(--mantine-color-red-4);--mantine-color-red-outline-hover: rgba(255, 135, 135, .05);--mantine-color-pink-text: var(--mantine-color-pink-4);--mantine-color-pink-filled: var(--mantine-color-pink-8);--mantine-color-pink-filled-hover: var(--mantine-color-pink-9);--mantine-color-pink-light: rgba(230, 73, 128, .15);--mantine-color-pink-light-hover: rgba(230, 73, 128, .2);--mantine-color-pink-light-color: var(--mantine-color-pink-3);--mantine-color-pink-outline: var(--mantine-color-pink-4);--mantine-color-pink-outline-hover: rgba(247, 131, 172, .05);--mantine-color-grape-text: var(--mantine-color-grape-4);--mantine-color-grape-filled: var(--mantine-color-grape-8);--mantine-color-grape-filled-hover: var(--mantine-color-grape-9);--mantine-color-grape-light: rgba(190, 75, 219, .15);--mantine-color-grape-light-hover: rgba(190, 75, 219, .2);--mantine-color-grape-light-color: var(--mantine-color-grape-3);--mantine-color-grape-outline: var(--mantine-color-grape-4);--mantine-color-grape-outline-hover: rgba(218, 119, 242, .05);--mantine-color-violet-text: var(--mantine-color-violet-4);--mantine-color-violet-filled: var(--mantine-color-violet-8);--mantine-color-violet-filled-hover: var(--mantine-color-violet-9);--mantine-color-violet-light: rgba(121, 80, 242, .15);--mantine-color-violet-light-hover: rgba(121, 80, 242, .2);--mantine-color-violet-light-color: var(--mantine-color-violet-3);--mantine-color-violet-outline: var(--mantine-color-violet-4);--mantine-color-violet-outline-hover: rgba(151, 117, 250, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-4);--mantine-color-indigo-filled: var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-9);--mantine-color-indigo-light: rgba(76, 110, 245, .15);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .2);--mantine-color-indigo-light-color: var(--mantine-color-indigo-3);--mantine-color-indigo-outline: var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover: rgba(116, 143, 252, .05);--mantine-color-blue-text: var(--mantine-color-blue-4);--mantine-color-blue-filled: var(--mantine-color-blue-8);--mantine-color-blue-filled-hover: var(--mantine-color-blue-9);--mantine-color-blue-light: rgba(34, 139, 230, .15);--mantine-color-blue-light-hover: rgba(34, 139, 230, .2);--mantine-color-blue-light-color: var(--mantine-color-blue-3);--mantine-color-blue-outline: var(--mantine-color-blue-4);--mantine-color-blue-outline-hover: rgba(77, 171, 247, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-4);--mantine-color-cyan-filled: var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-9);--mantine-color-cyan-light: rgba(21, 170, 191, .15);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .2);--mantine-color-cyan-light-color: var(--mantine-color-cyan-3);--mantine-color-cyan-outline: var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover: rgba(59, 201, 219, .05);--mantine-color-teal-text: var(--mantine-color-teal-4);--mantine-color-teal-filled: var(--mantine-color-teal-8);--mantine-color-teal-filled-hover: var(--mantine-color-teal-9);--mantine-color-teal-light: rgba(18, 184, 134, .15);--mantine-color-teal-light-hover: rgba(18, 184, 134, .2);--mantine-color-teal-light-color: var(--mantine-color-teal-3);--mantine-color-teal-outline: var(--mantine-color-teal-4);--mantine-color-teal-outline-hover: rgba(56, 217, 169, .05);--mantine-color-green-text: var(--mantine-color-green-4);--mantine-color-green-filled: var(--mantine-color-green-8);--mantine-color-green-filled-hover: var(--mantine-color-green-9);--mantine-color-green-light: rgba(64, 192, 87, .15);--mantine-color-green-light-hover: rgba(64, 192, 87, .2);--mantine-color-green-light-color: var(--mantine-color-green-3);--mantine-color-green-outline: var(--mantine-color-green-4);--mantine-color-green-outline-hover: rgba(105, 219, 124, .05);--mantine-color-lime-text: var(--mantine-color-lime-4);--mantine-color-lime-filled: var(--mantine-color-lime-8);--mantine-color-lime-filled-hover: var(--mantine-color-lime-9);--mantine-color-lime-light: rgba(130, 201, 30, .15);--mantine-color-lime-light-hover: rgba(130, 201, 30, .2);--mantine-color-lime-light-color: var(--mantine-color-lime-3);--mantine-color-lime-outline: var(--mantine-color-lime-4);--mantine-color-lime-outline-hover: rgba(169, 227, 75, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-4);--mantine-color-yellow-filled: var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-9);--mantine-color-yellow-light: rgba(250, 176, 5, .15);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .2);--mantine-color-yellow-light-color: var(--mantine-color-yellow-3);--mantine-color-yellow-outline: var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover: rgba(255, 212, 59, .05);--mantine-color-orange-text: var(--mantine-color-orange-4);--mantine-color-orange-filled: var(--mantine-color-orange-8);--mantine-color-orange-filled-hover: var(--mantine-color-orange-9);--mantine-color-orange-light: rgba(253, 126, 20, .15);--mantine-color-orange-light-hover: rgba(253, 126, 20, .2);--mantine-color-orange-light-color: var(--mantine-color-orange-3);--mantine-color-orange-outline: var(--mantine-color-orange-4);--mantine-color-orange-outline-hover: rgba(255, 169, 77, .05)}:root[data-mantine-color-scheme=light]{--mantine-color-scheme: light;--mantine-color-bright: var(--mantine-color-black);--mantine-color-text: var(--mantine-color-black);--mantine-color-body: var(--mantine-color-white);--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-error: var(--mantine-color-red-6);--mantine-color-placeholder: var(--mantine-color-gray-5);--mantine-color-anchor: var(--mantine-primary-color-filled);--mantine-color-default: var(--mantine-color-white);--mantine-color-default-hover: var(--mantine-color-gray-0);--mantine-color-default-color: var(--mantine-color-gray-9);--mantine-color-default-border: var(--mantine-color-gray-4);--mantine-color-dimmed: var(--mantine-color-gray-6);--mantine-color-dark-text: var(--mantine-color-dark-filled);--mantine-color-dark-filled: var(--mantine-color-dark-6);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(56, 56, 56, .1);--mantine-color-dark-light-hover: rgba(56, 56, 56, .12);--mantine-color-dark-light-color: var(--mantine-color-dark-6);--mantine-color-dark-outline: var(--mantine-color-dark-6);--mantine-color-dark-outline-hover: rgba(56, 56, 56, .05);--mantine-color-gray-text: var(--mantine-color-gray-filled);--mantine-color-gray-filled: var(--mantine-color-gray-6);--mantine-color-gray-filled-hover: var(--mantine-color-gray-7);--mantine-color-gray-light: rgba(134, 142, 150, .1);--mantine-color-gray-light-hover: rgba(134, 142, 150, .12);--mantine-color-gray-light-color: var(--mantine-color-gray-6);--mantine-color-gray-outline: var(--mantine-color-gray-6);--mantine-color-gray-outline-hover: rgba(134, 142, 150, .05);--mantine-color-red-text: var(--mantine-color-red-filled);--mantine-color-red-filled: var(--mantine-color-red-6);--mantine-color-red-filled-hover: var(--mantine-color-red-7);--mantine-color-red-light: rgba(250, 82, 82, .1);--mantine-color-red-light-hover: rgba(250, 82, 82, .12);--mantine-color-red-light-color: var(--mantine-color-red-6);--mantine-color-red-outline: var(--mantine-color-red-6);--mantine-color-red-outline-hover: rgba(250, 82, 82, .05);--mantine-color-pink-text: var(--mantine-color-pink-filled);--mantine-color-pink-filled: var(--mantine-color-pink-6);--mantine-color-pink-filled-hover: var(--mantine-color-pink-7);--mantine-color-pink-light: rgba(230, 73, 128, .1);--mantine-color-pink-light-hover: rgba(230, 73, 128, .12);--mantine-color-pink-light-color: var(--mantine-color-pink-6);--mantine-color-pink-outline: var(--mantine-color-pink-6);--mantine-color-pink-outline-hover: rgba(230, 73, 128, .05);--mantine-color-grape-text: var(--mantine-color-grape-filled);--mantine-color-grape-filled: var(--mantine-color-grape-6);--mantine-color-grape-filled-hover: var(--mantine-color-grape-7);--mantine-color-grape-light: rgba(190, 75, 219, .1);--mantine-color-grape-light-hover: rgba(190, 75, 219, .12);--mantine-color-grape-light-color: var(--mantine-color-grape-6);--mantine-color-grape-outline: var(--mantine-color-grape-6);--mantine-color-grape-outline-hover: rgba(190, 75, 219, .05);--mantine-color-violet-text: var(--mantine-color-violet-filled);--mantine-color-violet-filled: var(--mantine-color-violet-6);--mantine-color-violet-filled-hover: var(--mantine-color-violet-7);--mantine-color-violet-light: rgba(121, 80, 242, .1);--mantine-color-violet-light-hover: rgba(121, 80, 242, .12);--mantine-color-violet-light-color: var(--mantine-color-violet-6);--mantine-color-violet-outline: var(--mantine-color-violet-6);--mantine-color-violet-outline-hover: rgba(121, 80, 242, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-filled);--mantine-color-indigo-filled: var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-7);--mantine-color-indigo-light: rgba(76, 110, 245, .1);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .12);--mantine-color-indigo-light-color: var(--mantine-color-indigo-6);--mantine-color-indigo-outline: var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover: rgba(76, 110, 245, .05);--mantine-color-blue-text: var(--mantine-color-blue-filled);--mantine-color-blue-filled: var(--mantine-color-blue-6);--mantine-color-blue-filled-hover: var(--mantine-color-blue-7);--mantine-color-blue-light: rgba(34, 139, 230, .1);--mantine-color-blue-light-hover: rgba(34, 139, 230, .12);--mantine-color-blue-light-color: var(--mantine-color-blue-6);--mantine-color-blue-outline: var(--mantine-color-blue-6);--mantine-color-blue-outline-hover: rgba(34, 139, 230, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-filled);--mantine-color-cyan-filled: var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-7);--mantine-color-cyan-light: rgba(21, 170, 191, .1);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .12);--mantine-color-cyan-light-color: var(--mantine-color-cyan-6);--mantine-color-cyan-outline: var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover: rgba(21, 170, 191, .05);--mantine-color-teal-text: var(--mantine-color-teal-filled);--mantine-color-teal-filled: var(--mantine-color-teal-6);--mantine-color-teal-filled-hover: var(--mantine-color-teal-7);--mantine-color-teal-light: rgba(18, 184, 134, .1);--mantine-color-teal-light-hover: rgba(18, 184, 134, .12);--mantine-color-teal-light-color: var(--mantine-color-teal-6);--mantine-color-teal-outline: var(--mantine-color-teal-6);--mantine-color-teal-outline-hover: rgba(18, 184, 134, .05);--mantine-color-green-text: var(--mantine-color-green-filled);--mantine-color-green-filled: var(--mantine-color-green-6);--mantine-color-green-filled-hover: var(--mantine-color-green-7);--mantine-color-green-light: rgba(64, 192, 87, .1);--mantine-color-green-light-hover: rgba(64, 192, 87, .12);--mantine-color-green-light-color: var(--mantine-color-green-6);--mantine-color-green-outline: var(--mantine-color-green-6);--mantine-color-green-outline-hover: rgba(64, 192, 87, .05);--mantine-color-lime-text: var(--mantine-color-lime-filled);--mantine-color-lime-filled: var(--mantine-color-lime-6);--mantine-color-lime-filled-hover: var(--mantine-color-lime-7);--mantine-color-lime-light: rgba(130, 201, 30, .1);--mantine-color-lime-light-hover: rgba(130, 201, 30, .12);--mantine-color-lime-light-color: var(--mantine-color-lime-6);--mantine-color-lime-outline: var(--mantine-color-lime-6);--mantine-color-lime-outline-hover: rgba(130, 201, 30, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-filled);--mantine-color-yellow-filled: var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-7);--mantine-color-yellow-light: rgba(250, 176, 5, .1);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .12);--mantine-color-yellow-light-color: var(--mantine-color-yellow-6);--mantine-color-yellow-outline: var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover: rgba(250, 176, 5, .05);--mantine-color-orange-text: var(--mantine-color-orange-filled);--mantine-color-orange-filled: var(--mantine-color-orange-6);--mantine-color-orange-filled-hover: var(--mantine-color-orange-7);--mantine-color-orange-light: rgba(253, 126, 20, .1);--mantine-color-orange-light-hover: rgba(253, 126, 20, .12);--mantine-color-orange-light-color: var(--mantine-color-orange-6);--mantine-color-orange-outline: var(--mantine-color-orange-6);--mantine-color-orange-outline-hover: rgba(253, 126, 20, .05)}.m_d57069b5{--scrollarea-scrollbar-size: calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_c0783ff9{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y]){padding-inline-end:var(--scrollarea-scrollbar-size);padding-inline-start:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{-webkit-user-select:none;user-select:none;touch-action:none;box-sizing:border-box;transition:background-color .15s ease,opacity .15s ease;padding:calc(var(--scrollarea-scrollbar-size) / 5);display:flex;background-color:transparent;flex-direction:row}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);flex-direction:column;bottom:0;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_d8b5e363{flex:1;border-radius:var(--scrollarea-scrollbar-size);position:relative;transition:background-color .15s ease;overflow:hidden}.m_d8b5e363:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{position:absolute;opacity:0;transition:opacity .15s ease;display:block;inset-inline-end:0;bottom:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_515a97f8{border:0;clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));overflow:hidden;padding:0;position:absolute;white-space:nowrap}.m_1b7284a3{--paper-radius: var(--mantine-radius-default);outline:0;-webkit-tap-highlight-color:transparent;display:block;touch-action:manipulation;text-decoration:none;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body)}:where([data-mantine-color-scheme=light]) .m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--mantine-color-dark-4)}.m_38a85659{position:absolute;border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow, none);border-radius:var(--popover-radius, var(--mantine-radius-default))}.m_38a85659:where([data-fixed]){position:fixed}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color: var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color: var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_5ae2e3c{--loader-size-xs: calc(1.125rem * var(--mantine-scale));--loader-size-sm: calc(1.375rem * var(--mantine-scale));--loader-size-md: calc(2.25rem * var(--mantine-scale));--loader-size-lg: calc(2.75rem * var(--mantine-scale));--loader-size-xl: calc(3.625rem * var(--mantine-scale));--loader-size: var(--loader-size-md);--loader-color: var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{transform:scale(.6);opacity:0}50%,to{transform:scale(1)}}.m_7a2bd4cd{position:relative;width:var(--loader-size);height:var(--loader-size);display:flex;gap:calc(var(--loader-size) / 5)}.m_870bb79{flex:1;background:var(--loader-color);animation:m_5d2b3b9d 1.2s cubic-bezier(0,.5,.5,1) infinite;border-radius:calc(.125rem * var(--mantine-scale))}.m_870bb79:nth-of-type(1){animation-delay:-.24s}.m_870bb79:nth-of-type(2){animation-delay:-.12s}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.5}}.m_4e3f22d7{display:flex;justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);position:relative;width:var(--loader-size);height:var(--loader-size)}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);border-radius:50%;background:var(--loader-color);animation:m_aac34a1 .8s infinite linear}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{display:inline-block;width:var(--loader-size);height:var(--loader-size)}.m_b34414df:after{content:"";display:block;width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:m_f8e89c4b 1.2s linear infinite}.m_8d3f4000{--ai-size-xs: calc(1.125rem * var(--mantine-scale));--ai-size-sm: calc(1.375rem * var(--mantine-scale));--ai-size-md: calc(1.75rem * var(--mantine-scale));--ai-size-lg: calc(2.125rem * var(--mantine-scale));--ai-size-xl: calc(2.75rem * var(--mantine-scale));--ai-size-input-xs: calc(1.875rem * var(--mantine-scale));--ai-size-input-sm: calc(2.25rem * var(--mantine-scale));--ai-size-input-md: calc(2.625rem * var(--mantine-scale));--ai-size-input-lg: calc(3.125rem * var(--mantine-scale));--ai-size-input-xl: calc(3.75rem * var(--mantine-scale));--ai-size: var(--ai-size-md);--ai-color: var(--mantine-color-white);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;overflow:hidden;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius, var(--mantine-radius-default));background:var(--ai-bg, var(--mantine-primary-color-filled));color:var(--ai-color, var(--mantine-color-white));border:var(--ai-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer}@media (hover: hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}@media (hover: none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){background-color:var(--mantine-color-gray-1);color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) .m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){background-color:var(--mantine-color-dark-6);color:var(--mantine-color-dark-3)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));position:absolute;border-radius:var(--ai-radius, var(--mantine-radius-default));display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{position:relative;z-index:1}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2)}.m_8d3afb97{display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .1s ease;width:100%;height:100%}.m_86a44da5{--cb-size-xs: calc(1.125rem * var(--mantine-scale));--cb-size-sm: calc(1.375rem * var(--mantine-scale));--cb-size-md: calc(1.75rem * var(--mantine-scale));--cb-size-lg: calc(2.125rem * var(--mantine-scale));--cb-size-xl: calc(2.75rem * var(--mantine-scale));--cb-size: var(--cb-size-md);--cb-icon-size: 70%;--cb-radius: var(--mantine-radius-default);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius)}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{display:flex;flex-direction:row;flex-wrap:var(--group-wrap, wrap);justify-content:var(--group-justify, flex-start);align-items:var(--group-align, center);gap:var(--group-gap, var(--mantine-spacing-md))}.m_4081bf90:where([data-grow])>*{flex-grow:1;max-width:var(--group-child-width)}.m_9814e45f{top:0;right:0;bottom:0;left:0;position:absolute;background:var(--overlay-bg, rgba(0, 0, 0, .6));backdrop-filter:var(--overlay-filter);-webkit-backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius, 0);z-index:var(--overlay-z-index)}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){display:flex;align-items:center;justify-content:center}.m_615af6c9{line-height:1;padding:0;margin:0;font-weight:400;font-size:var(--mantine-font-size-md)}.m_b5489c3c{display:flex;justify-content:space-between;align-items:center;padding:var(--mb-padding, var(--mantine-spacing-md));padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));position:sticky;top:0;background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale));transition:padding-inline-end .1s}.m_60c222c7{position:fixed;width:100%;top:0;bottom:0;z-index:var(--mb-z-index);pointer-events:none}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow, var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}.m_fd1ab0aa:has([data-mantine-scrollbar][data-state=visible]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(.3125rem * var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding, var(--mantine-spacing-md));padding-top:var(--mb-padding, var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{position:relative;margin-top:var(--input-margin-top, 0rem);margin-bottom:var(--input-margin-bottom, 0rem);--input-height-xs: calc(1.875rem * var(--mantine-scale));--input-height-sm: calc(2.25rem * var(--mantine-scale));--input-height-md: calc(2.625rem * var(--mantine-scale));--input-height-lg: calc(3.125rem * var(--mantine-scale));--input-height-xl: calc(3.75rem * var(--mantine-scale));--input-padding-y-xs: calc(.3125rem * var(--mantine-scale));--input-padding-y-sm: calc(.375rem * var(--mantine-scale));--input-padding-y-md: calc(.5rem * var(--mantine-scale));--input-padding-y-lg: calc(.625rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-height: var(--input-height-sm);--input-radius: var(--mantine-radius-default);--input-cursor: text;--input-text-align: left;--input-line-height: calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding: calc(var(--input-height) / 3);--input-padding-inline-start: var(--input-padding);--input-padding-inline-end: var(--input-padding);--input-placeholder-color: var(--mantine-color-placeholder);--input-color: var(--mantine-color-text);--input-left-section-size: var(--input-left-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size: var( --input-right-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))) );--input-size: var(--input-height);--section-y: calc(.0625rem * var(--mantine-scale));--left-section-start: calc(.0625rem * var(--mantine-scale));--left-section-border-radius: var(--input-radius) 0 0 var(--input-radius);--right-section-end: calc(.0625rem * var(--mantine-scale));--right-section-border-radius: 0 var(--input-radius) var(--input-radius) 0}.m_6c018570[data-variant=unstyled]{--input-padding: 0;--input-padding-y: 0;--input-padding-inline-start: 0;--input-padding-inline-end: 0}.m_6c018570[data-pointer]{--input-cursor: pointer}.m_6c018570[data-multiline]{--input-padding-y-xs: calc(.28125rem * var(--mantine-scale));--input-padding-y-sm: calc(.34375rem * var(--mantine-scale));--input-padding-y-md: calc(.4375rem * var(--mantine-scale));--input-padding-y-lg: calc(.59375rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-size: auto;--input-line-height: var(--mantine-line-height);--input-padding-y: var(--input-padding-y-sm)}.m_6c018570[data-with-left-section]{--input-padding-inline-start: var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end: var(--input-right-section-size)}[data-mantine-color-scheme=light] .m_6c018570{--input-disabled-bg: var(--mantine-color-gray-1);--input-disabled-color: var(--mantine-color-gray-6)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-gray-4);--input-bg: var(--mantine-color-white);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-gray-1);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme=dark] .m_6c018570{--input-disabled-bg: var(--mantine-color-dark-6);--input-disabled-color: var(--mantine-color-dark-2)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-dark-4);--input-bg: var(--mantine-color-dark-6);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-dark-5);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd: var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color: var(--mantine-color-error);--input-placeholder-color: var(--mantine-color-error);--input-section-color: var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align: right;--left-section-border-radius: 0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius: var(--input-radius) 0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;resize:var(--input-resize, none);display:block;width:100%;transition:border-color .1s ease;text-align:var(--input-text-align);color:var(--input-color);border:calc(.0625rem * var(--mantine-scale)) solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family, var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--input-fz, var(--input-fz, var(--mantine-font-size-sm)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y, 0rem);padding-bottom:var(--input-padding-y, 0rem);cursor:var(--input-cursor);overflow:var(--input-overflow)}.m_8fb7ebe7[data-no-overflow]{--input-overflow: hidden}.m_8fb7ebe7[data-monospace]{--input-font-family: var(--mantine-font-family-monospace);--input-fz: calc(var(--input-fz, var(--mantine-font-size-sm)) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{outline:none;--input-bd: var(--input-bd-focus)}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd: var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_82577fc2{pointer-events:var(--section-pointer-events);position:absolute;z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);display:flex;align-items:center;justify-content:center;width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color, var(--mantine-color-dimmed))}.m_82577fc2[data-position=right]{--section-pointer-events: var(--input-right-section-pointer-events);--section-end: var(--right-section-end);--section-size: var(--input-right-section-size);--section-border-radius: var(--right-section-border-radius)}.m_82577fc2[data-position=left]{--section-pointer-events: var(--input-left-section-pointer-events);--section-start: var(--left-section-start);--section-size: var(--input-left-section-size);--section-border-radius: var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color, var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color: var(--input-color, var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{display:inline-block;font-weight:500;word-break:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size, var(--mantine-font-size-sm))}.m_78a94662{color:var(--input-asterisk-color, var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;line-height:1.2;display:block;margin:0;padding:0}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration: .15s;top:0;left:0;position:absolute;z-index:0;transition-property:transform,width,height;transition-timing-function:ease;transition-duration:0ms}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){background-color:red;display:none}.m_9bdbb667{--accordion-radius: var(--mantine-radius-default)}.m_df78851f{word-break:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{margin:0;padding:0}.m_4ba585b8{width:100%;display:flex;align-items:center;flex-direction:row-reverse;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;background-color:transparent}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}:where([data-mantine-color-scheme=light]) .m_4ba585b8{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_4ba585b8{color:var(--mantine-color-dark-0)}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm)}.m_3f35ae96{display:flex;align-items:center;justify-content:flex-start;transition:transform var(--accordion-transition-duration, .2s) ease;width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-end:var(--mantine-spacing-md);margin-inline-start:var(--mantine-spacing-md)}.m_9bd771fe{display:flex;align-items:center;justify-content:center;margin-inline-end:var(--mantine-spacing-sm)}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-end:0;margin-inline-start:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color: var(--mantine-color-gray-3);--item-filled-color: var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color: var(--mantine-color-dark-4);--item-filled-color: var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s ease}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s ease}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{position:fixed;z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom)}.m_66836ed3{--alert-radius: var(--mantine-radius-default);--alert-bg: var(--mantine-primary-color-light);--alert-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color: var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);position:relative;overflow:hidden;background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color)}.m_a5d60502{display:flex}.m_667c2793{flex:1;display:flex;flex-direction:column;gap:var(--mantine-spacing-xs)}.m_6a03f287{display:flex;align-items:center;justify-content:space-between;font-size:var(--mantine-font-size-sm);font-weight:700}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{display:block;overflow:hidden;text-overflow:ellipsis}.m_667f2a6a{line-height:1;width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));display:flex;align-items:center;justify-content:flex-start;margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale))}.m_7fa78076{text-overflow:ellipsis;overflow:hidden;font-size:var(--mantine-font-size-sm)}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;text-decoration:none;font-size:var(--text-fz, var(--mantine-font-size-md));line-height:var(--text-lh, var(--mantine-line-height-md));font-weight:400;margin:0;padding:0;color:var(--text-color)}.m_b6d8b162:where([data-truncate]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m_b6d8b162:where([data-truncate=start]){direction:rtl;text-align:right}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){direction:ltr;text-align:left}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.m_b6d8b162:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);text-decoration:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;display:inline;padding:0;margin:0;background-color:transparent;cursor:pointer}@media (hover: hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media (hover: none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}.m_48204f9b{width:var(--slider-size);height:var(--slider-size);position:relative;border-radius:100%;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}.m_48204f9b:focus-within{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_48204f9b{--slider-size: calc(3.75rem * var(--mantine-scale));--thumb-size: calc(var(--slider-size) / 5)}:where([data-mantine-color-scheme=light]) .m_48204f9b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_48204f9b{background-color:var(--mantine-color-dark-5)}.m_bb9cdbad{position:absolute;inset:calc(.0625rem * var(--mantine-scale));border-radius:var(--slider-size);pointer-events:none}.m_481dd586{width:calc(.125rem * var(--mantine-scale));position:absolute;top:0;bottom:0;left:calc(50% - 1px);transform:rotate(var(--angle))}.m_481dd586:before{content:"";position:absolute;top:calc(var(--thumb-size) / 3);left:calc(.03125rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));height:calc(var(--thumb-size) / 1.5);transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_481dd586:before{background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_481dd586:before{background-color:var(--mantine-color-dark-3)}.m_481dd586[data-label]:after{min-width:calc(1.125rem * var(--mantine-scale));text-align:center;content:attr(data-label);position:absolute;top:calc(-1.5rem * var(--mantine-scale));left:calc(-.4375rem * var(--mantine-scale));transform:rotate(calc(360deg - var(--angle)));font-size:var(--mantine-font-size-xs)}.m_bc02ba3d{position:absolute;top:0;right:0;bottom:0;left:calc(50% - 1.5px);height:100%;width:calc(.1875rem * var(--mantine-scale));outline:none;pointer-events:none}.m_bc02ba3d:before{content:"";position:absolute;right:0;top:0;height:min(var(--thumb-size),calc(var(--slider-size) / 2));width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_bc02ba3d:before{background-color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_bc02ba3d:before{background-color:var(--mantine-color-dark-1)}.m_bb8e875b{font-size:var(--mantine-font-size-xs)}.m_89ab340[data-resizing]{--app-shell-transition-duration: 0ms !important}.m_89ab340[data-disabled]{--app-shell-header-offset: 0rem !important;--app-shell-navbar-offset: 0rem !important}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color: var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{position:fixed;display:flex;flex-direction:column;top:var(--app-shell-header-offset, 0rem);height:calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));background-color:var(--mantine-color-body);transition-property:transform,top,height}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{top:0rem;height:100dvh}.m_45252eee{inset-inline-start:0;width:var(--app-shell-navbar-width);transition-property:transform,top,height;transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{inset-inline-end:0;width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}.m_3b16f56b,.m_3840c879{position:fixed;inset-inline:0;transition-property:transform,left,right;background-color:var(--mantine-color-body)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{inset-inline-start:var(--app-shell-navbar-offset, 0rem);inset-inline-end:var(--app-shell-aside-offset, 0rem)}.m_3b16f56b{top:0;height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{bottom:0;height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio: 1;max-width:100%}.m_71ac47fc>:where(*:not(style)){aspect-ratio:var(--ar-ratio);width:100%}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding: calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41:has([data-mantine-scrollbar]){padding-inline-end:0}.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8{max-width:calc(100% + var(--combobox-padding))}.m_88b62a41[data-hidden]{display:none}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs: calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm: calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md: calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg: calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl: calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding: var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);background-color:transparent;color:inherit;cursor:pointer;word-break:break-word}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;border-inline-width:0;border-end-start-radius:0;border-end-end-radius:0;margin-bottom:var(--combobox-padding);position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border:0 solid transparent;margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding)}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:500;position:relative;display:flex;align-items:center}.m_2bb2e9e5:after{content:"";flex:1;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));margin-inline-start:var(--mantine-spacing-xs)}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs: calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));--combobox-chevron-size: var(--combobox-chevron-size-sm);width:var(--combobox-chevron-size);height:var(--combobox-chevron-size)}:where([data-mantine-color-scheme=light]) .m_2943220b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_2943220b{color:var(--mantine-color-dark-3)}.m_2943220b:where([data-error]){color:var(--mantine-color-error)}.m_390b5f4{display:flex;align-items:center;gap:calc(.5rem * var(--mantine-scale))}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_5f75b09e{--label-lh-xs: calc(1rem * var(--mantine-scale));--label-lh-sm: calc(1.25rem * var(--mantine-scale));--label-lh-md: calc(1.5rem * var(--mantine-scale));--label-lh-lg: calc(1.875rem * var(--mantine-scale));--label-lh-xl: calc(2.25rem * var(--mantine-scale));--label-lh: var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order: 1;--label-offset-end: var(--mantine-spacing-sm);--label-offset-start: 0}.m_5f75b09e[data-label-position=right]{--label-order: 2;--label-offset-end: 0;--label-offset-start: var(--mantine-spacing-sm)}.m_5f6e695e{display:flex}.m_d3ea56bb{--label-cursor: var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:inline-flex;flex-direction:column;font-size:var(--label-fz, var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);order:var(--label-order)}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor: not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_8ee546b8,:where([data-mantine-color-scheme=light]) .m_8ee546b8:where([data-disabled]){color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_8ee546b8,:where([data-mantine-color-scheme=dark]) .m_8ee546b8:where([data-disabled]){color:var(--mantine-color-dark-3)}.m_328f68c0,.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_26775b0a{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_26775b0a :where(*){cursor:inherit}.m_26775b0a:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_5e5256ee{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled);--checkbox-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);min-width:var(--checkbox-size);height:var(--checkbox-size);min-height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_5e5256ee{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_5e5256ee[data-indeterminate],.m_5e5256ee[data-checked]{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_5e5256ee[data-indeterminate]>.m_1b1c543a,.m_5e5256ee[data-checked]>.m_1b1c543a{opacity:1;transform:none;color:var(--checkbox-icon-color)}.m_5e5256ee[data-disabled]{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_5e5256ee[data-disabled]{background-color:var(--mantine-color-gray-2);border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee[data-disabled]{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-6)}[data-mantine-color-scheme=light] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-dark-3)}.m_76e20374[data-indeterminate]:not([data-disabled]),.m_76e20374[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--checkbox-color)}.m_76e20374[data-indeterminate]:not([data-disabled])>.m_1b1c543a,.m_76e20374[data-checked]:not([data-disabled])>.m_1b1c543a{color:var(--checkbox-color);opacity:1;transform:none}.m_1b1c543a{display:block;width:60%;color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_bf2d988c{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled);--checkbox-icon-color: var(--mantine-color-white)}.m_26062bec{position:relative;width:var(--checkbox-size);height:var(--checkbox-size);order:1}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));padding:0;display:block;margin:0;transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_26063560:disabled{background-color:var(--mantine-color-gray-2);border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26063560:disabled{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-6)}[data-mantine-color-scheme=light] .m_26063560:disabled+.m_bf295423{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_26063560:disabled+.m_bf295423{color:var(--mantine-color-dark-3)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){background-color:transparent;border-color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-color);opacity:1;transform:none}.m_bf295423{position:absolute;top:0;right:0;bottom:0;left:0;width:60%;margin:auto;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;transition:transform .1s ease,opacity .1s ease}.m_11def92b{--ag-spacing: var(--mantine-spacing-sm);--ag-offset: calc(var(--ag-spacing) * -1);display:flex;padding-inline-start:var(--ag-spacing)}.m_f85678b6{--avatar-size-xs: calc(1rem * var(--mantine-scale));--avatar-size-sm: calc(1.625rem * var(--mantine-scale));--avatar-size-md: calc(2.375rem * var(--mantine-scale));--avatar-size-lg: calc(3.5rem * var(--mantine-scale));--avatar-size-xl: calc(5.25rem * var(--mantine-scale));--avatar-size: var(--avatar-size-md);--avatar-radius: calc(62.5rem * var(--mantine-scale));--avatar-bg: var(--mantine-color-gray-light);--avatar-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color: var(--mantine-color-gray-light-color);--avatar-placeholder-fz: calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;position:relative;display:block;-webkit-user-select:none;user-select:none;overflow:hidden;border-radius:var(--avatar-radius);text-decoration:none;padding:0;width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size)}.m_f85678b6:where([data-within-group]){margin-inline-start:var(--ag-offset);border:2px solid var(--mantine-color-body);background:var(--mantine-color-body)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:700;display:flex;align-items:center;justify-content:center;width:100%;height:100%;-webkit-user-select:none;user-select:none;border-radius:var(--avatar-radius);font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color)}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{background-size:cover;background-position:center;display:block;width:100%;border:0;text-decoration:none;border-radius:var(--bi-radius, 0)}.m_347db0ec{--badge-height-xs: calc(1rem * var(--mantine-scale));--badge-height-sm: calc(1.125rem * var(--mantine-scale));--badge-height-md: calc(1.25rem * var(--mantine-scale));--badge-height-lg: calc(1.625rem * var(--mantine-scale));--badge-height-xl: calc(2rem * var(--mantine-scale));--badge-fz-xs: calc(.5625rem * var(--mantine-scale));--badge-fz-sm: calc(.625rem * var(--mantine-scale));--badge-fz-md: calc(.6875rem * var(--mantine-scale));--badge-fz-lg: calc(.8125rem * var(--mantine-scale));--badge-fz-xl: calc(1rem * var(--mantine-scale));--badge-padding-x-xs: calc(.375rem * var(--mantine-scale));--badge-padding-x-sm: calc(.5rem * var(--mantine-scale));--badge-padding-x-md: calc(.625rem * var(--mantine-scale));--badge-padding-x-lg: calc(.75rem * var(--mantine-scale));--badge-padding-x-xl: calc(1rem * var(--mantine-scale));--badge-height: var(--badge-height-md);--badge-fz: var(--badge-fz-md);--badge-padding-x: var(--badge-padding-x-md);--badge-radius: calc(62.5rem * var(--mantine-scale));--badge-lh: calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color: var(--mantine-color-white);--badge-bg: var(--mantine-primary-color-filled);--badge-border-width: calc(.0625rem * var(--mantine-scale));--badge-bd: var(--badge-border-width) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);text-decoration:none;padding:0 var(--badge-padding-x);display:inline-grid;align-items:center;justify-content:center;width:fit-content;text-transform:uppercase;font-weight:700;letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:default;text-overflow:ellipsis;overflow:hidden;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd)}.m_347db0ec:where([data-with-left-section],[data-variant=dot]){grid-template-columns:auto 1fr}.m_347db0ec:where([data-with-right-section]){grid-template-columns:1fr auto}.m_347db0ec:where([data-with-left-section][data-with-right-section],[data-variant=dot][data-with-right-section]){grid-template-columns:auto 1fr auto}.m_347db0ec:where([data-block]){display:flex;width:100%}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));display:flex;width:var(--badge-height)}.m_fbd81e3d{--badge-dot-size: calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";display:block;width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size)}.m_5add502a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;cursor:inherit}.m_91fdda9b{--badge-section-margin: calc(var(--mantine-spacing-xs) / 2);display:inline-flex;justify-content:center;align-items:center;max-height:calc(var(--badge-height) - var(--badge-border-width) * 2)}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border: 3px solid var(--bq-bd);position:relative;margin:0;border-inline-start:var(--blockquote-border);border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);position:absolute;color:var(--bq-bd);background-color:var(--mantine-color-body);display:flex;align-items:center;justify-content:center;top:var(--blockquote-icon-offset);inset-inline-start:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size)}.m_dde51a35{display:block;margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%}.m_8b3717df{display:flex;align-items:center;flex-wrap:wrap}.m_f678d540{line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent}.m_3b8f2208{margin-inline:var(--bc-separator-margin, var(--mantine-spacing-xs));line-height:1;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs: calc(.75rem * var(--mantine-scale));--burger-size-sm: calc(1.125rem * var(--mantine-scale));--burger-size-md: calc(1.5rem * var(--mantine-scale));--burger-size-lg: calc(2.125rem * var(--mantine-scale));--burger-size-xl: calc(2.625rem * var(--mantine-scale));--burger-size: var(--burger-size-md);--burger-line-size: calc(var(--burger-size) / 12);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color: var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color: var(--mantine-color-white)}.m_d4fb9cad{position:relative;-webkit-user-select:none;user-select:none}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{display:block;width:var(--burger-size);height:var(--burger-line-size);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration, .3s);transition-timing-function:var(--burger-transition-timing-function, ease)}.m_d4fb9cad:before,.m_d4fb9cad:after{position:absolute;content:"";inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:transparent}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs: calc(1.875rem * var(--mantine-scale));--button-height-sm: calc(2.25rem * var(--mantine-scale));--button-height-md: calc(2.625rem * var(--mantine-scale));--button-height-lg: calc(3.125rem * var(--mantine-scale));--button-height-xl: calc(3.75rem * var(--mantine-scale));--button-height-compact-xs: calc(1.375rem * var(--mantine-scale));--button-height-compact-sm: calc(1.625rem * var(--mantine-scale));--button-height-compact-md: calc(1.875rem * var(--mantine-scale));--button-height-compact-lg: calc(2.125rem * var(--mantine-scale));--button-height-compact-xl: calc(2.5rem * var(--mantine-scale));--button-padding-x-xs: calc(.875rem * var(--mantine-scale));--button-padding-x-sm: calc(1.125rem * var(--mantine-scale));--button-padding-x-md: calc(1.375rem * var(--mantine-scale));--button-padding-x-lg: calc(1.625rem * var(--mantine-scale));--button-padding-x-xl: calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);-webkit-user-select:none;user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;transform:none}:where([data-mantine-color-scheme=light]) .m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){color:var(--mantine-color-gray-5);background:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){color:var(--mantine-color-dark-3);background:var(--mantine-color-dark-6)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media (hover: hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media (hover: none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_e615b15f{--card-padding: var(--mantine-spacing-md);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:var(--card-padding);color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{display:block;margin-inline:calc(var(--card-padding) * -1)}.m_599a2148:where(:first-child){margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where(:last-child){margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-inherit-padding]){padding-inline:var(--card-padding)}.m_599a2148:where([data-with-border]){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-bottom:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_599a2148{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{border-color:var(--mantine-color-dark-4)}.m_599a2148+.m_599a2148{border-top:none!important}.m_4451eb3a{display:flex;align-items:center;justify-content:center}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs: calc(1.4375rem * var(--mantine-scale));--chip-size-sm: calc(1.75rem * var(--mantine-scale));--chip-size-md: calc(2rem * var(--mantine-scale));--chip-size-lg: calc(2.25rem * var(--mantine-scale));--chip-size-xl: calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs: calc(.625rem * var(--mantine-scale));--chip-icon-size-sm: calc(.75rem * var(--mantine-scale));--chip-icon-size-md: calc(.875rem * var(--mantine-scale));--chip-icon-size-lg: calc(1rem * var(--mantine-scale));--chip-icon-size-xl: calc(1.125rem * var(--mantine-scale));--chip-padding-xs: calc(1rem * var(--mantine-scale));--chip-padding-sm: calc(1.25rem * var(--mantine-scale));--chip-padding-md: calc(1.5rem * var(--mantine-scale));--chip-padding-lg: calc(1.75rem * var(--mantine-scale));--chip-padding-xl: calc(2rem * var(--mantine-scale));--chip-checked-padding-xs: calc(.46875rem * var(--mantine-scale));--chip-checked-padding-sm: calc(.625rem * var(--mantine-scale));--chip-checked-padding-md: calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg: calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl: calc(.98125rem * var(--mantine-scale));--chip-spacing-xs: calc(.625rem * var(--mantine-scale));--chip-spacing-sm: calc(.75rem * var(--mantine-scale));--chip-spacing-md: calc(1rem * var(--mantine-scale));--chip-spacing-lg: calc(1.25rem * var(--mantine-scale));--chip-spacing-xl: calc(1.375rem * var(--mantine-scale));--chip-size: var(--chip-size-sm);--chip-icon-size: var(--chip-icon-size-sm);--chip-padding: var(--chip-padding-sm);--chip-spacing: var(--chip-spacing-sm);--chip-checked-padding: var(--chip-checked-padding-sm);--chip-bg: var(--mantine-primary-color-filled);--chip-hover: var(--mantine-primary-color-filled-hover);--chip-color: var(--mantine-color-white);--chip-bd: calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{display:inline-flex;align-items:center;-webkit-user-select:none;user-select:none;border-radius:var(--chip-radius, 1000rem);height:var(--chip-size);font-size:var(--chip-fz, var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}.m_be049a53:where([data-checked]){padding:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_be049a53:where([data-disabled]){background-color:var(--mantine-color-gray-2);color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) .m_be049a53:where([data-disabled]){background-color:var(--mantine-color-dark-6);color:var(--mantine-color-dark-3)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);border:var(--chip-bd)}@media (hover: hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media (hover: hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);display:flex;align-items:center;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);display:block;color:var(--chip-icon-color, inherit)}.m_bde07329{width:0;height:0;padding:0;opacity:0;margin:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-gray-1));color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-dark-5));color:var(--mantine-color-white)}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size: calc(1.75rem * var(--mantine-scale));--cs-radius: calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;line-height:1;position:relative;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;text-decoration:none}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-gray-3);--alpha-overlay-bg: var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-dark-4);--alpha-overlay-bg: var(--mantine-color-dark-7)}.m_862f3d1b{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius)}.m_98ae7f22{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset,#00000026 0 0 calc(.25rem * var(--mantine-scale)) inset}.m_95709ac0{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0,0 calc(.25rem * var(--mantine-scale)),calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)),calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(-45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--alpha-overlay-color) 75%),linear-gradient(-45deg,var(--alpha-overlay-bg) 75%,var(--alpha-overlay-color) 75%)}.m_93e74e3{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--cs-radius);z-index:2;display:flex;align-items:center;justify-content:center}.m_fee9c77{--cp-width-xs: calc(11.25rem * var(--mantine-scale));--cp-width-sm: calc(12.5rem * var(--mantine-scale));--cp-width-md: calc(15rem * var(--mantine-scale));--cp-width-lg: calc(17.5rem * var(--mantine-scale));--cp-width-xl: calc(20rem * var(--mantine-scale));--cp-preview-size-xs: calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm: calc(2.125rem * var(--mantine-scale));--cp-preview-size-md: calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg: calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl: calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs: calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm: calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md: calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg: calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl: calc(10rem * var(--mantine-scale));--cp-preview-size: var(--cp-preview-size-sm);--cp-thumb-size: var(--cp-thumb-size-sm);--cp-saturation-height: var(--cp-saturation-height-sm);--cp-width: var(--cp-width-sm);--cp-body-spacing: var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{display:flex;padding-top:calc(var(--cp-body-spacing) / 2)}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{overflow:hidden;position:absolute;box-shadow:0 0 1px #0009;border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2)}.m_d8ee6fd8{height:unset!important;width:unset!important;min-width:0!important;min-height:0!important;margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)))}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));display:flex;flex-wrap:wrap}.m_202a296e{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;position:relative;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2)}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{position:absolute;border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)))}.m_d856d47d{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-thumb-size: var(--cp-thumb-size, calc(.75rem * var(--mantine-scale)));position:relative;height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers: var(--mantine-color-dark-4)}.m_8f327113{position:absolute;top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem}.m_b077c2bc{--ci-eye-dropper-icon-size-xs: calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm: calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md: calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg: calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl: calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm)}.m_c5ccdcab{--ci-preview-size-xs: calc(1rem * var(--mantine-scale));--ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));--ci-preview-size-md: calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg: calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl: calc(2.25rem * var(--mantine-scale));--ci-preview-size: var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs: calc(33.75rem * var(--mantine-scale));--container-size-sm: calc(45rem * var(--mantine-scale));--container-size-md: calc(60rem * var(--mantine-scale));--container-size-lg: calc(71.25rem * var(--mantine-scale));--container-size-xl: calc(82.5rem * var(--mantine-scale));--container-size: var(--container-size-md);max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-fluid]){max-width:100%}.m_e2125a27{--dialog-size-xs: calc(10rem * var(--mantine-scale));--dialog-size-sm: calc(12.5rem * var(--mantine-scale));--dialog-size-md: calc(21.25rem * var(--mantine-scale));--dialog-size-lg: calc(25rem * var(--mantine-scale));--dialog-size-xl: calc(31.25rem * var(--mantine-scale));--dialog-size: var(--dialog-size-md);position:relative;width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale))}.m_5abab665{position:absolute;top:calc(var(--mantine-spacing-md) / 2);inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs: calc(.0625rem * var(--mantine-scale));--divider-size-sm: calc(.125rem * var(--mantine-scale));--divider-size-md: calc(.1875rem * var(--mantine-scale));--divider-size-lg: calc(.25rem * var(--mantine-scale));--divider-size-xl: calc(.3125rem * var(--mantine-scale));--divider-size: var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color: var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);height:auto;align-self:stretch}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{display:flex;align-items:center;font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap}.m_9e365f20:where([data-position=left]):before{display:none}.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs: calc(20rem * var(--mantine-scale));--drawer-size-sm: calc(23.75rem * var(--mantine-scale));--drawer-size-md: calc(27.5rem * var(--mantine-scale));--drawer-size-lg: calc(38.75rem * var(--mantine-scale));--drawer-size-xl: calc(48.75rem * var(--mantine-scale));--drawer-size: var(--drawer-size-md);--drawer-offset: 0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex, 0 0 var(--drawer-size));height:var(--drawer-height, calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:calc(100% - var(--drawer-offset) * 2);max-height:calc(100% - var(--drawer-offset) * 2);overflow-y:auto}.m_b8a05bbd[data-hidden]{opacity:0!important;pointer-events:none}.m_31cd769a{display:flex;justify-content:var(--drawer-justify, flex-start);align-items:var(--drawer-align, flex-start)}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius, var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{padding:0;border:0;border-radius:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{padding:0;margin-bottom:var(--mantine-spacing-sm)}.m_8478a6da{container:mantine-grid / inline-size}.m_410352e9{--grid-overflow: visible;--grid-margin: calc(var(--grid-gutter) / -2);--grid-col-padding: calc(var(--grid-gutter) / 2);overflow:var(--grid-overflow)}.m_dee7bd2f{width:calc(100% + var(--grid-gutter));display:flex;flex-wrap:wrap;justify-content:var(--grid-justify);align-items:var(--grid-align);margin:var(--grid-margin)}.m_96bdd299{--col-flex-grow: 0;--col-offset: 0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);margin-inline-start:var(--col-offset);padding:var(--grid-col-padding)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{display:block;flex:0;object-fit:var(--image-object-fit, cover);width:100%;border-radius:var(--image-radius, 0)}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size: calc(.625rem * var(--mantine-scale));--indicator-color: var(--mantine-primary-color-filled);position:relative;display:block}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{position:absolute;top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x),var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius, 1000rem);z-index:var(--indicator-z-index, 200);display:flex;align-items:center;justify-content:center;font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color, var(--mantine-color-white));white-space:nowrap}.m_760d1fb1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-color:var(--indicator-color);border-radius:var(--indicator-radius, 1000rem);z-index:-1}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:m_885901b1 1s linear infinite}.m_dc6f14e2{--kbd-fz-xs: calc(.625rem * var(--mantine-scale));--kbd-fz-sm: calc(.75rem * var(--mantine-scale));--kbd-fz-md: calc(.875rem * var(--mantine-scale));--kbd-fz-lg: calc(1rem * var(--mantine-scale));--kbd-fz-xl: calc(1.25rem * var(--mantine-scale));--kbd-fz: var(--kbd-fz-sm);--kbd-padding-xs: calc(.125rem * var(--mantine-scale)) calc(.25rem * var(--mantine-scale));--kbd-padding-sm: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));--kbd-padding-md: calc(.25rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale));--kbd-padding-lg: calc(.3125rem * var(--mantine-scale)) calc(.5625rem * var(--mantine-scale));--kbd-padding-xl: calc(.5rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--kbd-padding: var(--kbd-padding-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));unicode-bidi:embed}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz: var(--mantine-font-size-md);--list-lh: var(--mantine-line-height-md);list-style-position:inside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0}.m_abbac491:where([data-with-padding]){padding-inline-start:var(--mantine-spacing-md)}.m_abb6bec2{white-space:nowrap;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction: row;--li-align: center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing, 0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{display:inline-flex;flex-direction:var(--li-direction, column);align-items:var(--li-align, flex-start);white-space:normal}.m_60f83e5b{display:inline-block;vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm)}.m_6e45937b{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:var(--lo-z-index)}.m_e8eb006c{position:relative;z-index:calc(var(--lo-z-index) + 1)}.m_df587f17{z-index:var(--lo-z-index)}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:500;font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius, var(--mantine-radius-default));color:var(--menu-item-color, var(--mantine-color-text));display:flex;align-items:center;-webkit-user-select:none;user-select:none}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-dimmed);opacity:.6;pointer-events:none}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where([data-hovered]){background-color:var(--menu-item-hover, var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where([data-hovered]){background-color:var(--menu-item-hover, var(--mantine-color-dark-4))}.m_5476e0d3{flex:1}.m_8b75e504{display:flex;justify-content:center;align-items:center}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_9df02822{--modal-size-xs: calc(20rem * var(--mantine-scale));--modal-size-sm: calc(23.75rem * var(--mantine-scale));--modal-size-md: calc(27.5rem * var(--mantine-scale));--modal-size-lg: calc(38.75rem * var(--mantine-scale));--modal-size-xl: calc(48.75rem * var(--mantine-scale));--modal-size: var(--modal-size-md);--modal-y-offset: 5dvh;--modal-x-offset: 5vw}.m_9df02822[data-full-screen]{--modal-border-radius: 0 !important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex: 0 0 100%;--modal-content-max-height: auto;--modal-content-height: 100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset: 0;--modal-inner-x-offset: 0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align: center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius, var(--mantine-radius-default));border-start-end-radius:var(--modal-radius, var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex, 0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height, calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height, auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{opacity:0!important;pointer-events:none}.m_1f958f16{display:flex;justify-content:center;align-items:var(--modal-inner-align, flex-start);padding-top:var(--modal-inner-y-offset, var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset, var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset, var(--modal-x-offset))}.m_7cda1cd6{--pill-fz-xs: calc(.625rem * var(--mantine-scale));--pill-fz-sm: calc(.75rem * var(--mantine-scale));--pill-fz-md: calc(.875rem * var(--mantine-scale));--pill-fz-lg: calc(1rem * var(--mantine-scale));--pill-fz-xl: calc(1.125rem * var(--mantine-scale));--pill-height-xs: calc(1.125rem * var(--mantine-scale));--pill-height-sm: calc(1.375rem * var(--mantine-scale));--pill-height-md: calc(1.5625rem * var(--mantine-scale));--pill-height-lg: calc(1.75rem * var(--mantine-scale));--pill-height-xl: calc(2rem * var(--mantine-scale));--pill-fz: var(--pill-fz-sm);--pill-height: var(--pill-height-sm);font-size:var(--pill-fz);flex:0;height:var(--pill-height);padding-inline:.8em;display:inline-flex;align-items:center;border-radius:var(--pill-radius, 1000rem);line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;max-width:100%}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-gray-3)}.m_1e0e6180{cursor:inherit;overflow:hidden;height:100%;line-height:var(--pill-height);text-overflow:ellipsis}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;padding-inline-start:.1em;padding-inline-end:.3em;flex:0;border-end-end-radius:var(--pill-radius, 50%);border-start-end-radius:var(--pill-radius, 50%)}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{display:none;background-color:transparent;width:.8em;min-width:.8em;padding:0;cursor:not-allowed}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs: calc(.375rem * var(--mantine-scale));--pg-gap-sm: calc(.5rem * var(--mantine-scale));--pg-gap-md: calc(.625rem * var(--mantine-scale));--pg-gap-lg: calc(.75rem * var(--mantine-scale));--pg-gap-xl: calc(.75rem * var(--mantine-scale));--pg-gap: var(--pg-gap-sm);display:flex;align-items:center;gap:var(--pg-gap);flex-wrap:wrap}.m_45c4369d{background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:calc(6.25rem * var(--mantine-scale));flex:1;border:0;font-size:inherit;height:1.6em;color:inherit;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));top:0;left:0;pointer-events:none;position:absolute;opacity:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){height:1.6em;visibility:visible;opacity:1;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg: var(--mantine-primary-color-light);--nl-hover: var(--mantine-primary-color-light-hover);--nl-color: var(--mantine-primary-color-light-color);display:flex;align-items:center;width:100%;padding:8px var(--mantine-spacing-sm);-webkit-user-select:none;user-select:none}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active],[aria-current=page]){background-color:var(--nl-bg);color:var(--nl-color)}@media (hover: hover){.m_f0824112:where([data-active],[aria-current=page]):hover{background-color:var(--nl-hover)}}@media (hover: none){.m_f0824112:where([data-active],[aria-current=page]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active],[aria-current=page]) .m_57492dcc{--description-opacity: .9;--description-color: var(--nl-color)}.m_690090b5{display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{flex:1;overflow:hidden;text-overflow:ellipsis}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{display:block;font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity, 1);color:var(--description-color, var(--mantine-color-dimmed));overflow:hidden;text-overflow:ellipsis}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset, var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius: var(--mantine-radius-default);--notification-color: var(--mantine-primary-color-filled);overflow:hidden;box-sizing:border-box;position:relative;display:flex;align-items:center;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg)}.m_a513464:before{content:"";display:block;position:absolute;width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);inset-inline-start:calc(.25rem * var(--mantine-scale));border-radius:var(--notification-radius);background-color:var(--notification-color)}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]){padding-inline-start:var(--mantine-spacing-xs)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;margin-inline-end:var(--mantine-spacing-md);width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));display:flex;align-items:center;justify-content:center;background-color:var(--notification-color);color:var(--mantine-color-white)}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;overflow:hidden;margin-inline-end:var(--mantine-spacing-xs)}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));overflow:hidden;text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:500}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);overflow:hidden;text-overflow:ellipsis}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs: calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm: calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md: calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg: calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl: calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs: calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm: calc(.875rem * var(--mantine-scale));--ni-chevron-size-md: calc(1rem * var(--mantine-scale));--ni-chevron-size-lg: calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl: calc(1.25rem * var(--mantine-scale));--ni-chevron-size: var(--ni-chevron-size-sm);display:flex;flex-direction:column;width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);margin-inline-start:auto}.m_80b4b171{--control-border: 1px solid var(--input-bd);--control-radius: calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));flex:0 0 50%;width:100%;padding:0;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text);background-color:transparent;cursor:pointer}.m_80b4b171:where(:disabled){background-color:transparent;cursor:not-allowed;opacity:.6}:where([data-mantine-color-scheme=light]) .m_80b4b171:where(:disabled){color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:where(:disabled){color:var(--mantine-color-dark-3)}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-radius:0;border-end-end-radius:var(--control-radius)}.m_4addd315{--pagination-control-size-xs: calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm: calc(1.625rem * var(--mantine-scale));--pagination-control-size-md: calc(2rem * var(--mantine-scale));--pagination-control-size-lg: calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl: calc(2.75rem * var(--mantine-scale));--pagination-control-size: var(--pagination-control-size-md);--pagination-control-fz: var(--mantine-font-size-md);--pagination-active-bg: var(--mantine-primary-color-filled)}.m_326d024a{display:flex;align-items:center;justify-content:center;border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);line-height:1;border-radius:var(--pagination-control-radius, var(--mantine-radius-default))}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media (hover: hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color, var(--mantine-color-white))}@media (hover: hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media (hover: none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);display:flex;align-items:center;justify-content:center;pointer-events:none}.m_f61ca620{--psi-button-size-xs: calc(1.375rem * var(--mantine-scale));--psi-button-size-sm: calc(1.625rem * var(--mantine-scale));--psi-button-size-md: calc(1.75rem * var(--mantine-scale));--psi-button-size-lg: calc(2rem * var(--mantine-scale));--psi-button-size-xl: calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs: calc(.75rem * var(--mantine-scale));--psi-icon-size-sm: calc(.9375rem * var(--mantine-scale));--psi-icon-size-md: calc(1.0625rem * var(--mantine-scale));--psi-icon-size-lg: calc(1.1875rem * var(--mantine-scale));--psi-icon-size-xl: calc(1.3125rem * var(--mantine-scale));--psi-button-size: var(--psi-button-size-sm);--psi-icon-size: var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);background-color:transparent;border:0;padding-inline-end:var(--input-padding-inline-end);padding-inline-start:var(--input-padding-inline-start);position:absolute;top:0;right:0;bottom:0;left:0;outline:0;font-size:inherit;line-height:var(--mantine-line-height);height:100%;width:100%;color:inherit}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_f2d85dd2::-ms-reveal{display:none}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs: calc(1.875rem * var(--mantine-scale));--pin-input-size-sm: calc(2.25rem * var(--mantine-scale));--pin-input-size-md: calc(2.625rem * var(--mantine-scale));--pin-input-size-lg: calc(3.125rem * var(--mantine-scale));--pin-input-size-xl: calc(3.75rem * var(--mantine-scale));--pin-input-size: var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}.m_db6d6462{--progress-radius: var(--mantine-radius-default);--progress-size: var(--progress-size-md);--progress-size-xs: calc(.1875rem * var(--mantine-scale));--progress-size-sm: calc(.3125rem * var(--mantine-scale));--progress-size-md: calc(.5rem * var(--mantine-scale));--progress-size-lg: calc(.75rem * var(--mantine-scale));--progress-size-xl: calc(1rem * var(--mantine-scale));position:relative;height:var(--progress-size);border-radius:var(--progress-radius);overflow:hidden;display:flex}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-width);display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration, .1s) ease}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_2242eb65:where([data-animated]){animation:m_81a374bd 1s linear infinite}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color, var(--mantine-color-white));font-weight:700;-webkit-user-select:none;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:min(calc(var(--progress-size) * .65),calc(1.125rem * var(--mantine-scale)));line-height:1;padding-inline:calc(.25rem * var(--mantine-scale))}.m_9dc8ae12{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_9dc8ae12 :where(*){cursor:inherit}.m_9dc8ae12:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_717d7ff6{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-size: var(--radio-size-sm);--radio-color: var(--mantine-primary-color-filled);--radio-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--radio-size);min-width:var(--radio-size);height:var(--radio-size);min-height:var(--radio-size);border-radius:var(--radio-radius, 10000px);transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_717d7ff6{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_717d7ff6[data-indeterminate],.m_717d7ff6[data-checked]{background-color:var(--radio-color);border-color:var(--radio-color)}.m_717d7ff6[data-indeterminate]>.m_3e4da632,.m_717d7ff6[data-checked]>.m_3e4da632{opacity:1;transform:none;color:var(--radio-icon-color)}.m_717d7ff6[data-disabled]{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_717d7ff6[data-disabled]{background-color:var(--mantine-color-gray-2);border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6[data-disabled]{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-6)}[data-mantine-color-scheme=light] .m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-dark-3)}.m_2980836c[data-indeterminate]:not([data-disabled]),.m_2980836c[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--radio-color)}.m_2980836c[data-indeterminate]:not([data-disabled])>.m_3e4da632,.m_2980836c[data-checked]:not([data-disabled])>.m_3e4da632{color:var(--radio-color);opacity:1;transform:none}.m_3e4da632{display:block;width:var(--radio-icon-size);height:var(--radio-icon-size);color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_f3f1af94{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-size: var(--radio-size-sm);--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-icon-color: var(--mantine-color-white)}.m_89c4f5e4{position:relative;width:var(--radio-size);height:var(--radio-size);order:1}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity, 0);transform:var(--radio-icon-transform, scale(.2) translateY(calc(.625rem * var(--mantine-scale))));transition:opacity .1s ease,transform .2s ease;pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);position:absolute;top:calc(50% - var(--radio-icon-size) / 2);left:calc(50% - var(--radio-icon-size) / 2)}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius, var(--radio-size));margin:0;display:flex;align-items:center;justify-content:center;transition-property:background-color,border-color;transition-timing-function:ease;transition-duration:.1s;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color, var(--mantine-primary-color-filled));border-color:var(--radio-color, var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity: 1;--radio-icon-transform: scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_8a3dbb89:disabled{background-color:var(--mantine-color-gray-1);border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=light]) .m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89:disabled{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-dark-7)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color: var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){background-color:transparent;border-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color: var(--radio-color);--radio-icon-opacity: 1;--radio-icon-transform: none}.m_f8d312f2{--rating-size-xs: calc(.875rem * var(--mantine-scale));--rating-size-sm: calc(1.125rem * var(--mantine-scale));--rating-size-md: calc(1.25rem * var(--mantine-scale));--rating-size-lg: calc(1.75rem * var(--mantine-scale));--rating-size-xl: calc(2rem * var(--mantine-scale));display:flex;width:max-content}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{position:relative;transition:transform .1s ease}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{display:block;cursor:pointer;position:absolute;top:0;left:0;z-index:var(--rating-item-z-index, 0);-webkit-tap-highlight-color:transparent}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_1b3c8819{--tooltip-radius: var(--mantine-radius-default);position:absolute;padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius)}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-9));color:var(--tooltip-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-2));color:var(--tooltip-color, var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_1b3c8819:where([data-fixed]){position:fixed}.m_f898399f{background-color:inherit;border:0;z-index:1}.m_b32e4812{position:relative;width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size)}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(-90deg)}.m_b1ca1fbf{stroke:var(--curve-color, var(--rp-curve-root-color))}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-dark-4)}.m_b23f9dc4{position:absolute;top:50%;transform:translateY(-50%);inset-inline:var(--rp-label-offset)}.m_cf365364{--sc-padding-xs: calc(.1875rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm: calc(.3125rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md: calc(.4375rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg: calc(.5625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl: calc(.75rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration: .2s;--sc-padding: var(--sc-padding-sm);--sc-transition-timing-function: ease;--sc-font-size: var(--mantine-font-size-sm);position:relative;display:inline-flex;flex-direction:row;width:auto;border-radius:var(--sc-radius, var(--mantine-radius-default));overflow:hidden;padding:calc(.25rem * var(--mantine-scale))}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){display:flex;flex-direction:column;width:max-content}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{position:absolute;display:block;z-index:1;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:500;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;border-radius:var(--sc-radius, var(--mantine-radius-default));font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline, none)}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2,:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-disabled]){color:var(--mantine-color-gray-5)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2,:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-disabled]){color:var(--mantine-color-dark-3)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";top:0;right:0;bottom:0;left:0;z-index:0;position:absolute;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media (hover: hover){:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-gray-5)!important}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-dark-3)!important}}@media (hover: none){:where([data-mantine-color-scheme=light]) fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-gray-5)!important}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-dark-3)!important}}.m_1714d588{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_69686b9b{position:relative;flex:1;z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;bottom:auto;height:calc(.0625rem * var(--mantine-scale));width:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color: var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before{--separator-color: transparent}[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color: transparent}.m_78882f40{position:relative;z-index:2}.m_fa528724{--scp-filled-segment-color: var(--mantine-primary-color-filled);--scp-transition-duration: 0ms;--scp-thickness: calc(.625rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-dark-4)}.m_fa528724{position:relative;width:fit-content}.m_62e9e7e2{display:block;transform:var(--scp-rotation);overflow:hidden}.m_c573fb6f{transition:stroke-dashoffset var(--scp-transition-duration) ease,stroke-dasharray var(--scp-transition-duration) ease,stroke var(--scp-transition-duration)}.m_4fa340f2{position:absolute;margin:0;padding:0;inset-inline:0;text-align:center;z-index:1}.m_4fa340f2:where([data-position=bottom]){bottom:0;padding-inline:calc(var(--scp-thickness) * 2)}.m_4fa340f2:where([data-position=bottom]):where([data-orientation=down]){bottom:auto;top:0}.m_4fa340f2:where([data-position=center]){top:50%;padding-inline:calc(var(--scp-thickness) * 3)}.m_925c2d2c{container:simple-grid / inline-size}.m_2415a157{display:grid;grid-template-columns:repeat(var(--sg-cols),minmax(0,1fr));gap:var(--sg-spacing-y) var(--sg-spacing-x)}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height, auto);width:var(--skeleton-width, 100%);border-radius:var(--skeleton-radius, var(--mantine-radius-default));position:relative;transform:translateZ(0);-webkit-transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:m_299c329c 1.5s linear infinite}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{position:absolute;content:"";top:0;right:0;bottom:0;left:0;z-index:10;background-color:var(--mantine-color-body)}.m_18320242:where([data-visible]):after{position:absolute;content:"";top:0;right:0;bottom:0;left:0;z-index:11}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs: calc(.25rem * var(--mantine-scale));--slider-size-sm: calc(.375rem * var(--mantine-scale));--slider-size-md: calc(.5rem * var(--mantine-scale));--slider-size-lg: calc(.625rem * var(--mantine-scale));--slider-size-xl: calc(.75rem * var(--mantine-scale));--slider-size: var(--slider-size-md);--slider-radius: calc(62.5rem * var(--mantine-scale));--slider-color: var(--mantine-primary-color-filled);-webkit-tap-highlight-color:transparent;outline:none;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);display:flex;flex-direction:column;align-items:center;touch-action:none;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg: var(--mantine-color-gray-2);--slider-track-disabled-bg: var(--mantine-color-gray-4)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg: var(--mantine-color-dark-4);--slider-track-disabled-bg: var(--mantine-color-dark-3)}.m_c9357328{position:absolute;top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;touch-action:none}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}.m_c9a9a60a{position:absolute;display:flex;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;transform:translate(-50%,-50%);color:var(--slider-color);top:50%;cursor:pointer;border-radius:var(--slider-radius);align-items:center;justify-content:center;transition:box-shadow .1s ease,transform .1s ease;z-index:3;-webkit-user-select:none;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));left:var(--slider-thumb-offset)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){transform:translate(-50%,-50%) scale(1.05);box-shadow:var(--mantine-shadow-sm)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{border-color:var(--mantine-color-white);background-color:var(--slider-color)}.m_a8645c2{display:flex;align-items:center;width:100%;height:calc(var(--slider-size) * 2);cursor:pointer}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}.m_c9ade57f{position:relative;width:100%;height:var(--slider-size)}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg: var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg: var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";position:absolute;top:0;bottom:0;border-radius:var(--slider-radius);inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg, var(--slider-track-bg));z-index:0}.m_38aeed47{position:absolute;z-index:1;top:0;bottom:0;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}:where([data-mantine-color-scheme=light]) fieldset:disabled .m_38aeed47:where(:not([data-inverted])),:where([data-mantine-color-scheme=light]) .m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) fieldset:disabled .m_38aeed47:where(:not([data-inverted])),:where([data-mantine-color-scheme=dark]) .m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-dark-3)}.m_b7b0423a{position:absolute;inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);top:0;z-index:2;height:0;pointer-events:none}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}:where([data-mantine-color-scheme=light]) .m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-dark-3)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2),calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{display:flex;flex-direction:column;overflow:hidden;transition:max-height var(--spoiler-transition-duration, .2s) ease}.m_b9131032{position:absolute;inset-inline-start:0;top:100%;height:calc(1.5rem * var(--mantine-scale))}.m_6d731127{display:flex;flex-direction:column;align-items:var(--stack-align, stretch);justify-content:var(--stack-justify, flex-start);gap:var(--stack-gap, var(--mantine-spacing-md))}.m_cbb4ea7e{--stepper-icon-size-xs: calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm: calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md: calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg: calc(3rem * var(--mantine-scale));--stepper-icon-size-xl: calc(3.25rem * var(--mantine-scale));--stepper-icon-size: var(--stepper-icon-size-md);--stepper-color: var(--mantine-primary-color-filled);--stepper-content-padding: var(--mantine-spacing-md);--stepper-spacing: var(--mantine-spacing-md);--stepper-radius: calc(62.5rem * var(--mantine-scale));--stepper-fz: var(--mantine-font-size-md)}.m_aaf89d0b{display:flex;flex-wrap:nowrap;align-items:center}.m_aaf89d0b:where([data-wrap]){flex-wrap:wrap;gap:var(--mantine-spacing-md) 0}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{--separator-offset: calc(var(--stepper-icon-size) / 2 - calc(.0625rem * var(--mantine-scale)));transition:background-color .15s ease;flex:1}:where([data-mantine-color-scheme=light]) .m_2a371ac9{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2a371ac9{background-color:var(--mantine-color-dark-2)}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_2a371ac9:where([data-orientation=horizontal]){height:calc(.125rem * var(--mantine-scale));margin-inline:var(--mantine-spacing-md)}.m_2a371ac9:where([data-orientation=vertical]){width:calc(.125rem * var(--mantine-scale));margin-top:calc(var(--mantine-spacing-xs) / 2);margin-bottom:calc(var(--mantine-spacing-xs) - calc(.125rem * var(--mantine-scale)))}.m_2a371ac9:where([data-orientation=vertical]):where([data-icon-position=left]){margin-inline-start:var(--separator-offset)}.m_2a371ac9:where([data-orientation=vertical]):where([data-icon-position=right]){margin-inline-end:var(--separator-offset)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color: var(--stepper-color);display:flex;cursor:default}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing: calc(var(--mantine-spacing-xs) / 2);justify-content:flex-start;min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));inset-inline-start:calc(var(--stepper-icon-size) / 2);height:100vh;position:absolute;border-inline-start:calc(.125rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_6496b3f3{border-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_6496b3f3{border-color:var(--mantine-color-dark-5)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;transition:background-color .15s ease,border-color .15s ease;border:calc(.125rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_1959ad01{background-color:var(--mantine-color-gray-1);border-color:var(--mantine-color-gray-1);color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color, var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_a79331dc{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--stepper-icon-color, var(--mantine-color-white))}.m_1956aa2a{display:flex;flex-direction:column}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:right;margin-inline-end:var(--mantine-spacing-sm)}:where([dir=rtl]) .m_1956aa2a:where([data-icon-position=right]){text-align:left}.m_12051f6c{font-weight:500;font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));line-height:1;color:var(--mantine-color-dimmed)}.m_5f93f3bb{--switch-height-xs: calc(1rem * var(--mantine-scale));--switch-height-sm: calc(1.25rem * var(--mantine-scale));--switch-height-md: calc(1.5rem * var(--mantine-scale));--switch-height-lg: calc(1.875rem * var(--mantine-scale));--switch-height-xl: calc(2.25rem * var(--mantine-scale));--switch-width-xs: calc(2rem * var(--mantine-scale));--switch-width-sm: calc(2.375rem * var(--mantine-scale));--switch-width-md: calc(2.875rem * var(--mantine-scale));--switch-width-lg: calc(3.5rem * var(--mantine-scale));--switch-width-xl: calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs: calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm: calc(.875rem * var(--mantine-scale));--switch-thumb-size-md: calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg: calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl: calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs: calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm: calc(.375rem * var(--mantine-scale));--switch-label-font-size-md: calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg: calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl: calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs: calc(.0625rem * var(--mantine-scale));--switch-track-label-padding-sm: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-md: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-lg: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl: calc(.1875rem * var(--mantine-scale));--switch-height: var(--switch-height-sm);--switch-width: var(--switch-width-sm);--switch-thumb-size: var(--switch-thumb-size-sm);--switch-label-font-size: var(--switch-label-font-size-sm);--switch-track-label-padding: var(--switch-track-label-padding-sm);--switch-radius: calc(62.5rem * var(--mantine-scale));--switch-color: var(--mantine-primary-color-filled);position:relative}.m_926b4011{height:0;width:0;opacity:0;margin:0;padding:0;position:absolute;overflow:hidden;white-space:nowrap}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor, var(--mantine-cursor-type));overflow:hidden;position:relative;border-radius:var(--switch-radius);background-color:var(--switch-bg);border:1px solid var(--switch-bd);height:var(--switch-height);min-width:var(--switch-width);margin:0;transition:background-color .15s ease,border-color .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;font-size:var(--switch-label-font-size);font-weight:600;order:var(--switch-order, 1);-webkit-user-select:none;user-select:none;z-index:0;line-height:0;color:var(--switch-text-color)}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg: var(--switch-color);--switch-bd: var(--switch-color);--switch-text-color: var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg: var(--switch-disabled-color);--switch-bd: var(--switch-disabled-color);--switch-cursor: not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg: var(--mantine-color-gray-2);--switch-bd: var(--mantine-color-gray-3);--switch-text-color: var(--mantine-color-gray-6);--switch-disabled-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg: var(--mantine-color-dark-6);--switch-bd: var(--mantine-color-dark-4);--switch-text-color: var(--mantine-color-dark-1);--switch-disabled-color: var(--mantine-color-dark-4)}.m_9307d992[data-error]{--switch-bd: var(--mantine-color-error)}.m_9307d992[data-label-position=left]{--switch-order: 2}.m_93039a1d{position:absolute;z-index:1;border-radius:var(--switch-radius);display:flex;background-color:var(--switch-thumb-bg, var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);border:1px solid var(--switch-thumb-bd);inset-inline-start:var(--switch-thumb-start, var(--switch-track-label-padding));transition:inset-inline-start .15s ease}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start: calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding));--switch-thumb-bd: var(--mantine-color-white)}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bd: var(--switch-thumb-bg-disabled);--switch-thumb-bg: var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bd: var(--mantine-color-gray-3);--switch-thumb-bg-disabled: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bd: var(--mantine-color-white);--switch-thumb-bg-disabled: var(--mantine-color-dark-3)}.m_8277e082{height:100%;display:grid;place-content:center;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s ease}.m_926b4011:checked+*>.m_8277e082{margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));margin-inline-start:0}.m_b23fa0ef{width:100%;border-collapse:collapse;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout, auto);caption-side:var(--table-caption-side, bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-gray-1);--table-striped-color: var(--mantine-color-gray-0);--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-dark-5);--table-striped-color: var(--mantine-color-dark-6);--table-border-color: var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4f3{text-align:left}:where([dir=rtl]) .m_4e7aa4f3{text-align:right}.m_4e7aa4fd{border-bottom:none;background-color:transparent}@media (hover: hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media (hover: none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing, var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b2404537 :where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537 :where(tr):where([data-striped=odd]:nth-of-type(odd)){background-color:var(--table-striped-color)}.m_b2404537 :where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537 :where(tr)[data-hover]{--tr-hover-bg: var(--table-highlight-on-hover-color, var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset, 0);z-index:3}.m_b242d975:where([data-sticky]){position:sticky;background-color:var(--mantine-color-body)}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tab-justify: flex-start;--tabs-list-direction: row;--tabs-panel-grow: unset;--tabs-display: block;--tabs-flex-direction: row;--tabs-list-border-width: 0;--tabs-list-border-size: 0 0 var(--tabs-list-border-width) 0;--tabs-list-gap: unset;--tabs-list-line-bottom: 0;--tabs-list-line-top: unset;--tabs-list-line-start: 0;--tabs-list-line-end: 0;--tab-radius: var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width: 0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom: unset;--tabs-list-line-top: 0;--tab-radius: 0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width: var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start: unset;--tabs-list-line-end: 0;--tabs-list-line-top: 0;--tabs-list-line-bottom: 0;--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction: column;--tabs-panel-grow: 1;--tabs-display: flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction: row-reverse;--tabs-list-line-start: 0;--tabs-list-line-end: unset;--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color: var(--mantine-color-dark-4)}.m_89d60db1[data-orientation=horizontal]{--tab-justify: center}.m_89d60db1[data-variant=default]{--tabs-list-border-width: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width: calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap: calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d33d6d{display:flex;flex-wrap:wrap;justify-content:var(--tabs-justify, flex-start);flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap);--tab-grow: unset}.m_89d33d6d[data-grow]{--tab-grow: 1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{position:relative;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;display:flex;align-items:center;line-height:1;-webkit-user-select:none;user-select:none;flex-grow:var(--tab-grow);justify-content:var(--tab-justify)}.m_4ec4dce6:disabled,.m_4ec4dce6[data-disabled]{opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{display:flex;align-items:center;justify-content:center;margin-left:var(--tab-section-margin-left, 0);margin-right:var(--tab-section-margin-right, 0)}.m_fc420b1f[data-position=left]:not(:only-child){--tab-section-margin-right: var(--mantine-spacing-xs)}[dir=rtl] .m_fc420b1f[data-position=left]:not(:only-child){--tab-section-margin-right: 0rem;--tab-section-margin-left: var(--mantine-spacing-xs)}.m_fc420b1f[data-position=right]:not(:only-child){--tab-section-margin-left: var(--mantine-spacing-xs)}[dir=rtl] .m_fc420b1f[data-position=right]:not(:only-child){--tab-section-margin-left: 0rem;--tab-section-margin-right: var(--mantine-spacing-xs)}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);border-style:solid;border-color:transparent;background-color:var(--tab-bg);--tab-bg: transparent}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media (hover: hover){.m_539e827b:hover{--tab-bg: var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: none){.m_539e827b:active{--tab-bg: var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{--tab-bg: transparent}}@media (hover: none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{--tab-bg: transparent}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-right:calc(.0625rem * var(--mantine-scale)) solid transparent;border-left:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);position:relative;--tab-border-bottom-color: transparent;--tab-border-top-color: transparent;--tab-border-inline-end-color: transparent;--tab-border-inline-start-color: transparent}.m_b59ab47c:where([data-active]):before{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-before-bottom, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-before-left, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-before-right, auto);top:var(--tab-before-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]):after{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-after-bottom, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-after-right, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-after-left, auto);top:var(--tab-after-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color: var(--tab-border-color);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color: var(--tab-border-color);--tab-border-top-color: var(--mantine-color-body);--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-bottom: auto;--tab-after-top: calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color: var(--mantine-color-body);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-before-left: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto;--tab-after-right: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-before-right: auto;--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-after-left: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color: var(--mantine-color-body);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-before-right: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto;--tab-after-left: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-before-left: auto;--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-after-right: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg: transparent;--tab-color: inherit}@media (hover: hover){.m_c3381914:not([data-disabled]):hover{--tab-bg: var(--tab-hover-color)}}@media (hover: none){.m_c3381914:not([data-disabled]):active{--tab-bg: var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg: var(--tabs-color);--tab-color: var(--tabs-text-color, var(--mantine-color-white))}@media (hover: hover){.m_c3381914[data-active][data-active]:hover{--tab-bg: var(--tabs-color)}}@media (hover: none){.m_c3381914[data-active][data-active]:active{--tab-bg: var(--tabs-color)}}.m_7341320d{--ti-size-xs: calc(1.125rem * var(--mantine-scale));--ti-size-sm: calc(1.375rem * var(--mantine-scale));--ti-size-md: calc(1.75rem * var(--mantine-scale));--ti-size-lg: calc(2.125rem * var(--mantine-scale));--ti-size-xl: calc(2.75rem * var(--mantine-scale));--ti-size: var(--ti-size-md);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius, var(--mantine-radius-default));background:var(--ti-bg, var(--mantine-primary-color-filled));color:var(--ti-color, var(--mantine-color-white));border:var(--ti-bd, 1px solid transparent)}.m_43657ece{--offset: calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size: calc(1.25rem * var(--mantine-scale));--tl-line-width: calc(.25rem * var(--mantine-scale));--tl-radius: calc(62.5rem * var(--mantine-scale));--tl-color: var(--mantine-primary-color-filled)}.m_43657ece:where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:500;line-height:1;margin-bottom:calc(var(--mantine-spacing-xs) / 2)}.m_436178ff{--item-border: var(--tl-line-width) var(--tli-border-style, solid) var(--item-border-color);position:relative;color:var(--mantine-color-text)}.m_436178ff:before{content:"";pointer-events:none;position:absolute;top:0;left:var(--timeline-line-left, 0);right:var(--timeline-line-right, 0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display, none)}.m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}[dir=rtl] .m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}.m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}[dir=rtl] .m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}.m_43657ece:where([data-align=left]) .m_436178ff{padding-inline-start:var(--offset);text-align:left}.m_43657ece:where([data-align=right]) .m_436178ff{padding-inline-end:var(--offset);text-align:right}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color: var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color, var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display: block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius, var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);position:absolute;top:0;display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where([data-align=left]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-align=right]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color, var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color, var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color, var(--tl-color));color:var(--tl-icon-color, var(--mantine-color-white))}.m_43657ece:where([data-align=left]) .m_540e8f41{padding-inline-start:var(--offset);text-align:left}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_540e8f41{text-align:right}.m_43657ece:where([data-align=right]) .m_540e8f41{padding-inline-end:var(--offset);text-align:right}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_540e8f41{text-align:left}.m_8a5d1357{margin:0;font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap, var(--mantine-heading-text-wrap))}.m_8a5d1357:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical}.m_f698e191{--level-offset: var(--mantine-spacing-lg);margin:0;padding:0;-webkit-user-select:none;user-select:none}.m_75f3ecf{margin:0;padding:0}.m_f6970eb1{cursor:pointer;list-style:none;margin:0;padding:0;outline:0}.m_f6970eb1:focus-visible>.m_dc283425{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_dc283425{padding-inline-start:var(--label-offset)}:where([data-mantine-color-scheme=light]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-dark-5)}.m_d6493fad :first-child{margin-top:0}.m_d6493fad :last-child{margin-bottom:0}.m_d6493fad :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap)}.m_d6493fad :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d6493fad :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d6493fad :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d6493fad :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d6493fad :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d6493fad :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d6493fad :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d6493fad :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d6493fad :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media (hover: hover){.m_d6493fad :where(a):hover{text-decoration:underline}}@media (hover: none){.m_d6493fad :where(a):active{text-decoration:underline}}.m_d6493fad :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(hr){border-color:var(--mantine-color-dark-3)}.m_d6493fad :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);overflow-x:auto;font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(pre){background-color:var(--mantine-color-dark-8)}.m_d6493fad :where(pre) :where(code){background-color:transparent;padding:0;border-radius:0;color:inherit;border:0}.m_d6493fad :where(kbd){--kbd-fz: calc(.75rem * var(--mantine-scale));--kbd-padding: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d6493fad :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d6493fad :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:calc(2.375rem * var(--mantine-scale))}.m_d6493fad :where(ul,ol):not([data-type=taskList]) :where(li){margin-bottom:var(--mantine-spacing-xs)}.m_d6493fad :where(table){width:100%;border-collapse:collapse;caption-side:bottom;margin-bottom:var(--mantine-spacing-md)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(table){--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(table){--table-border-color: var(--mantine-color-dark-4)}.m_d6493fad :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dimmed)}.m_d6493fad :where(table) :where(th){text-align:left;font-weight:700;font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d6493fad :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d6493fad :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d6493fad :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color);font-size:var(--mantine-font-size-sm)}.m_d6493fad :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d6493fad :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d6493fad :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d6493fad :where(blockquote){background-color:var(--mantine-color-dark-8)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! + Theme: GitHub + Description: Light theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + + Outdated base version: https://github.com/primer/github-syntax-light + Current colors taken from GitHub's CSS +*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.ProseMirror{flex:1 1 auto;min-height:0;outline:none;overflow-y:auto}.ProseMirror p{margin:1em 0}.ProseMirror h1{font-size:2em;margin:.67em 0}.ProseMirror h2{font-size:1.5em;margin:.75em 0}.ProseMirror h3{font-size:1.17em;margin:.83em 0}.ProseMirror blockquote{border-left:3px solid var(--mantine-color-gray-4);margin:1em 0;padding-left:1em;color:var(--mantine-color-gray-6)}.ProseMirror pre{background:var(--mantine-color-gray-1);border-radius:var(--mantine-radius-md);padding:.75em 1em;margin:1em 0}.ProseMirror code{background:var(--mantine-color-gray-1);border-radius:var(--mantine-radius-sm);padding:.2em .4em} diff --git a/ios/App/App/public/assets/index-DhE_q3AR.js b/ios/App/App/public/assets/index-DhE_q3AR.js new file mode 100644 index 0000000..f74b732 --- /dev/null +++ b/ios/App/App/public/assets/index-DhE_q3AR.js @@ -0,0 +1,369 @@ +var cM=Object.defineProperty;var dM=(e,t,n)=>t in e?cM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jo=(e,t,n)=>dM(e,typeof t!="symbol"?t+"":t,n);import{g as Gp,c as Av,b as Qi}from"./buffer-Cq5fL-tY.js";function fM(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Vw={exports:{}},Qp={},qw={exports:{}},Ae={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mc=Symbol.for("react.element"),pM=Symbol.for("react.portal"),hM=Symbol.for("react.fragment"),mM=Symbol.for("react.strict_mode"),gM=Symbol.for("react.profiler"),bM=Symbol.for("react.provider"),yM=Symbol.for("react.context"),EM=Symbol.for("react.forward_ref"),vM=Symbol.for("react.suspense"),TM=Symbol.for("react.memo"),kM=Symbol.for("react.lazy"),Ov=Symbol.iterator;function xM(e){return e===null||typeof e!="object"?null:(e=Ov&&e[Ov]||e["@@iterator"],typeof e=="function"?e:null)}var Yw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kw=Object.assign,Gw={};function hl(e,t,n){this.props=e,this.context=t,this.refs=Gw,this.updater=n||Yw}hl.prototype.isReactComponent={};hl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qw(){}Qw.prototype=hl.prototype;function by(e,t,n){this.props=e,this.context=t,this.refs=Gw,this.updater=n||Yw}var yy=by.prototype=new Qw;yy.constructor=by;Kw(yy,hl.prototype);yy.isPureReactComponent=!0;var Iv=Array.isArray,Xw=Object.prototype.hasOwnProperty,Ey={current:null},Jw={key:!0,ref:!0,__self:!0,__source:!0};function Zw(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Xw.call(t,r)&&!Jw.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,X=N[q];if(0>>1;qi(ge,w))lei(Ce,ge)?(N[q]=Ce,N[le]=w,q=le):(N[q]=ge,N[be]=w,q=be);else if(lei(Ce,w))N[q]=Ce,N[le]=w,q=le;else break e}}return F}function i(N,F){var w=N.sortIndex-F.sortIndex;return w!==0?w:N.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(N){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=N)r(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function k(N){if(m=!1,v(N),!h)if(n(l)!==null)h=!0,B(_);else{var F=n(u);F!==null&&M(k,F.startTime-N)}}function _(N,F){h=!1,m&&(m=!1,b(R),R=-1),p=!0;var w=f;try{for(v(F),d=n(l);d!==null&&(!(d.expirationTime>F)||N&&!j());){var q=d.callback;if(typeof q=="function"){d.callback=null,f=d.priorityLevel;var X=q(d.expirationTime<=F);F=e.unstable_now(),typeof X=="function"?d.callback=X:d===n(l)&&r(l),v(F)}else r(l);d=n(l)}if(d!==null)var D=!0;else{var be=n(u);be!==null&&M(k,be.startTime-F),D=!1}return D}finally{d=null,f=w,p=!1}}var x=!1,I=null,R=-1,z=5,A=-1;function j(){return!(e.unstable_now()-AN||125q?(N.sortIndex=w,t(u,N),n(l)===null&&N===n(u)&&(m?(b(R),R=-1):m=!0,M(k,w-q))):(N.sortIndex=X,t(l,N),h||p||(h=!0,B(_))),N},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(N){var F=f;return function(){var w=f;f=F;try{return N.apply(this,arguments)}finally{f=w}}}})(i_);r_.exports=i_;var LM=r_.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var PM=S,Vn=LM;function te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c0=Object.prototype.hasOwnProperty,BM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Mv={},Dv={};function zM(e){return c0.call(Dv,e)?!0:c0.call(Mv,e)?!1:BM.test(e)?Dv[e]=!0:(Mv[e]=!0,!1)}function FM(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function HM(e,t,n,r){if(t===null||typeof t>"u"||FM(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function En(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Gt[e]=new En(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Gt[t]=new En(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Gt[e]=new En(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Gt[e]=new En(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Gt[e]=new En(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Gt[e]=new En(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Gt[e]=new En(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Gt[e]=new En(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Gt[e]=new En(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ty=/[\-:]([a-z])/g;function ky(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ty,ky);Gt[t]=new En(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ty,ky);Gt[t]=new En(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ty,ky);Gt[t]=new En(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Gt[e]=new En(e,1,!1,e.toLowerCase(),null,!1,!1)});Gt.xlinkHref=new En("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Gt[e]=new En(e,1,!1,e.toLowerCase(),null,!0,!0)});function xy(e,t,n,r){var i=Gt.hasOwnProperty(t)?Gt[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` +`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Sm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xl(e):""}function UM(e){switch(e.tag){case 5:return Xl(e.type);case 16:return Xl("Lazy");case 13:return Xl("Suspense");case 19:return Xl("SuspenseList");case 0:case 2:case 15:return e=wm(e.type,!1),e;case 11:return e=wm(e.type.render,!1),e;case 1:return e=wm(e.type,!0),e;default:return""}}function h0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ts:return"Fragment";case vs:return"Portal";case d0:return"Profiler";case Sy:return"StrictMode";case f0:return"Suspense";case p0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case s_:return(e.displayName||"Context")+".Consumer";case a_:return(e._context.displayName||"Context")+".Provider";case wy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _y:return t=e.displayName||null,t!==null?t:h0(e.type)||"Memo";case eo:t=e._payload,e=e._init;try{return h0(e(t))}catch{}}return null}function jM(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return h0(t);case 8:return t===Sy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Io(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function u_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $M(e){var t=u_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gc(e){e._valueTracker||(e._valueTracker=$M(e))}function c_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=u_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function m0(e,t){var n=t.checked;return dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Io(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function d_(e,t){t=t.checked,t!=null&&xy(e,"checked",t,!1)}function g0(e,t){d_(e,t);var n=Io(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?b0(e,t.type,n):t.hasOwnProperty("defaultValue")&&b0(e,t.type,Io(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function b0(e,t,n){(t!=="number"||hf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Jl=Array.isArray;function Ls(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Qc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ou(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ou={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},WM=["Webkit","ms","Moz","O"];Object.keys(ou).forEach(function(e){WM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ou[t]=ou[e]})});function m_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ou.hasOwnProperty(e)&&ou[e]?(""+t).trim():t+"px"}function g_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=m_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var VM=dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function v0(e,t){if(t){if(VM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(te(62))}}function T0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var k0=null;function Cy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var x0=null,Ps=null,Bs=null;function Hv(e){if(e=yc(e)){if(typeof x0!="function")throw Error(te(280));var t=e.stateNode;t&&(t=th(t),x0(e.stateNode,e.type,t))}}function b_(e){Ps?Bs?Bs.push(e):Bs=[e]:Ps=e}function y_(){if(Ps){var e=Ps,t=Bs;if(Bs=Ps=null,Hv(e),t)for(e=0;e>>=0,e===0?32:31-(nD(e)/rD|0)|0}var Xc=64,Jc=4194304;function Zl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function yf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Zl(s):(o&=a,o!==0&&(r=Zl(o)))}else a=n&~i,a!==0?r=Zl(a):o!==0&&(r=Zl(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ir(t),e[t]=n}function sD(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=su),Gv=" ",Qv=!1;function z_(e,t){switch(e){case"keyup":return LD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function F_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ks=!1;function BD(e,t){switch(e){case"compositionend":return F_(t);case"keypress":return t.which!==32?null:(Qv=!0,Gv);case"textInput":return e=t.data,e===Gv&&Qv?null:e;default:return null}}function zD(e,t){if(ks)return e==="compositionend"||!Ly&&z_(e,t)?(e=P_(),Wd=Ry=co=null,ks=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=eT(n)}}function $_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function W_(){for(var e=window,t=hf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hf(e.document)}return t}function Py(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function YD(e){var t=W_(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$_(n.ownerDocument.documentElement,n)){if(r!==null&&Py(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=tT(n,o);var a=tT(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,xs=null,A0=null,uu=null,O0=!1;function nT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;O0||xs==null||xs!==hf(r)||(r=xs,"selectionStart"in r&&Py(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),uu&&Pu(uu,r)||(uu=r,r=Tf(A0,"onSelect"),0_s||(e.current=P0[_s],P0[_s]=null,_s--)}function Xe(e,t){_s++,P0[_s]=e.current,e.current=t}var Ro={},an=Fo(Ro),Cn=Fo(!1),Aa=Ro;function Qs(e,t){var n=e.type.contextTypes;if(!n)return Ro;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Nn(e){return e=e.childContextTypes,e!=null}function xf(){nt(Cn),nt(an)}function uT(e,t,n){if(an.current!==Ro)throw Error(te(168));Xe(an,t),Xe(Cn,n)}function Z_(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(te(108,jM(e)||"Unknown",i));return dt({},n,r)}function Sf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ro,Aa=an.current,Xe(an,e),Xe(Cn,Cn.current),!0}function cT(e,t,n){var r=e.stateNode;if(!r)throw Error(te(169));n?(e=Z_(e,t,Aa),r.__reactInternalMemoizedMergedChildContext=e,nt(Cn),nt(an),Xe(an,e)):nt(Cn),Xe(Cn,n)}var vi=null,nh=!1,Fm=!1;function eC(e){vi===null?vi=[e]:vi.push(e)}function oL(e){nh=!0,eC(e)}function Ho(){if(!Fm&&vi!==null){Fm=!0;var e=0,t=je;try{var n=vi;for(je=1;e>=a,i-=a,ki=1<<32-Ir(t)+i|n<R?(z=I,I=null):z=I.sibling;var A=f(b,I,v[R],k);if(A===null){I===null&&(I=z);break}e&&I&&A.alternate===null&&t(b,I),E=o(A,E,R),x===null?_=A:x.sibling=A,x=A,I=z}if(R===v.length)return n(b,I),ot&&ea(b,R),_;if(I===null){for(;RR?(z=I,I=null):z=I.sibling;var j=f(b,I,A.value,k);if(j===null){I===null&&(I=z);break}e&&I&&j.alternate===null&&t(b,I),E=o(j,E,R),x===null?_=j:x.sibling=j,x=j,I=z}if(A.done)return n(b,I),ot&&ea(b,R),_;if(I===null){for(;!A.done;R++,A=v.next())A=d(b,A.value,k),A!==null&&(E=o(A,E,R),x===null?_=A:x.sibling=A,x=A);return ot&&ea(b,R),_}for(I=r(b,I);!A.done;R++,A=v.next())A=p(I,b,R,A.value,k),A!==null&&(e&&A.alternate!==null&&I.delete(A.key===null?R:A.key),E=o(A,E,R),x===null?_=A:x.sibling=A,x=A);return e&&I.forEach(function(L){return t(b,L)}),ot&&ea(b,R),_}function y(b,E,v,k){if(typeof v=="object"&&v!==null&&v.type===Ts&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Kc:e:{for(var _=v.key,x=E;x!==null;){if(x.key===_){if(_=v.type,_===Ts){if(x.tag===7){n(b,x.sibling),E=i(x,v.props.children),E.return=b,b=E;break e}}else if(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===eo&&pT(_)===x.type){n(b,x.sibling),E=i(x,v.props),E.ref=Bl(b,x,v),E.return=b,b=E;break e}n(b,x);break}else t(b,x);x=x.sibling}v.type===Ts?(E=ba(v.props.children,b.mode,k,v.key),E.return=b,b=E):(k=Jd(v.type,v.key,v.props,null,b.mode,k),k.ref=Bl(b,E,v),k.return=b,b=k)}return a(b);case vs:e:{for(x=v.key;E!==null;){if(E.key===x)if(E.tag===4&&E.stateNode.containerInfo===v.containerInfo&&E.stateNode.implementation===v.implementation){n(b,E.sibling),E=i(E,v.children||[]),E.return=b,b=E;break e}else{n(b,E);break}else t(b,E);E=E.sibling}E=Ym(v,b.mode,k),E.return=b,b=E}return a(b);case eo:return x=v._init,y(b,E,x(v._payload),k)}if(Jl(v))return h(b,E,v,k);if(Rl(v))return m(b,E,v,k);od(b,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,E!==null&&E.tag===6?(n(b,E.sibling),E=i(E,v),E.return=b,b=E):(n(b,E),E=qm(v,b.mode,k),E.return=b,b=E),a(b)):n(b,E)}return y}var Js=iC(!0),oC=iC(!1),Cf=Fo(null),Nf=null,As=null,Hy=null;function Uy(){Hy=As=Nf=null}function jy(e){var t=Cf.current;nt(Cf),e._currentValue=t}function F0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fs(e,t){Nf=e,Hy=As=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_n=!0),e.firstContext=null)}function pr(e){var t=e._currentValue;if(Hy!==e)if(e={context:e,memoizedValue:t,next:null},As===null){if(Nf===null)throw Error(te(308));As=e,Nf.dependencies={lanes:0,firstContext:e}}else As=As.next=e;return t}var la=null;function $y(e){la===null?la=[e]:la.push(e)}function aC(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,$y(t)):(n.next=i.next,i.next=n),t.interleaved=n,Oi(e,r)}function Oi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var to=!1;function Wy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Si(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ko(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Oi(e,n)}return i=r.interleaved,i===null?(t.next=t,$y(r)):(t.next=i.next,i.next=t),r.interleaved=t,Oi(e,n)}function qd(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ay(e,n)}}function hT(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Af(e,t,n,r){var i=e.updateQueue;to=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,c=u=l=null,s=o;do{var f=s.lane,p=s.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if(h=m.payload,typeof h=="function"){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,f=typeof h=="function"?h.call(p,d,f):h,f==null)break e;d=dt({},d,f);break e;case 2:to=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ra|=a,e.lanes=a,e.memoizedState=d}}function mT(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Um.transition;Um.transition={};try{e(!1),t()}finally{je=n,Um.transition=r}}function SC(){return hr().memoizedState}function uL(e,t,n){var r=So(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wC(e))_C(t,n);else if(n=aC(e,t,n,r),n!==null){var i=pn();Rr(n,e,r,i),CC(n,t,r)}}function cL(e,t,n){var r=So(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wC(e))_C(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Lr(s,a)){var l=t.interleaved;l===null?(i.next=i,$y(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=aC(e,t,i,r),n!==null&&(i=pn(),Rr(n,e,r,i),CC(n,t,r))}}function wC(e){var t=e.alternate;return e===ut||t!==null&&t===ut}function _C(e,t){cu=If=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function CC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ay(e,n)}}var Rf={readContext:pr,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useInsertionEffect:Jt,useLayoutEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useMutableSource:Jt,useSyncExternalStore:Jt,useId:Jt,unstable_isNewReconciler:!1},dL={readContext:pr,useCallback:function(e,t){return $r().memoizedState=[e,t===void 0?null:t],e},useContext:pr,useEffect:bT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kd(4194308,4,EC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kd(4,2,e,t)},useMemo:function(e,t){var n=$r();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$r();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uL.bind(null,ut,e),[r.memoizedState,e]},useRef:function(e){var t=$r();return e={current:e},t.memoizedState=e},useState:gT,useDebugValue:Jy,useDeferredValue:function(e){return $r().memoizedState=e},useTransition:function(){var e=gT(!1),t=e[0];return e=lL.bind(null,e[1]),$r().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ut,i=$r();if(ot){if(n===void 0)throw Error(te(407));n=n()}else{if(n=t(),Lt===null)throw Error(te(349));Ia&30||dC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,bT(pC.bind(null,r,o,e),[e]),r.flags|=2048,Wu(9,fC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$r(),t=Lt.identifierPrefix;if(ot){var n=xi,r=ki;n=(r&~(1<<32-Ir(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ju++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Jr]=t,e[Fu]=r,BC(e,t,!1,!1),t.stateNode=e;e:{switch(a=T0(n,r),n){case"dialog":et("cancel",e),et("close",e),i=r;break;case"iframe":case"object":case"embed":et("load",e),i=r;break;case"video":case"audio":for(i=0;itl&&(t.flags|=128,r=!0,zl(o,!1),t.lanes=4194304)}else{if(!r)if(e=Of(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ot)return Zt(t),null}else 2*gt()-o.renderingStartTime>tl&&n!==1073741824&&(t.flags|=128,r=!0,zl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=gt(),t.sibling=null,n=lt.current,Xe(lt,r?n&1|2:n&1),t):(Zt(t),null);case 22:case 23:return i1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zn&1073741824&&(Zt(t),t.subtreeFlags&6&&(t.flags|=8192)):Zt(t),null;case 24:return null;case 25:return null}throw Error(te(156,t.tag))}function EL(e,t){switch(zy(t),t.tag){case 1:return Nn(t.type)&&xf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zs(),nt(Cn),nt(an),Yy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return qy(t),null;case 13:if(nt(lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(te(340));Xs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(lt),null;case 4:return Zs(),null;case 10:return jy(t.type._context),null;case 22:case 23:return i1(),null;case 24:return null;default:return null}}var sd=!1,tn=!1,vL=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Os(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ft(e,t,r)}else n.current=null}function K0(e,t,n){try{n()}catch(r){ft(e,t,r)}}var NT=!1;function TL(e,t){if(I0=Ef,e=W_(),Py(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=a),f===o&&++c===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(R0={focusedElem:e,selectionRange:n},Ef=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,y=h.memoizedState,b=t.stateNode,E=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:wr(t.type,m),y);b.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(te(163))}}catch(k){ft(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return h=NT,NT=!1,h}function du(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&K0(t,n,o)}i=i.next}while(i!==r)}}function oh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function G0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function HC(e){var t=e.alternate;t!==null&&(e.alternate=null,HC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jr],delete t[Fu],delete t[L0],delete t[rL],delete t[iL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function UC(e){return e.tag===5||e.tag===3||e.tag===4}function AT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||UC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Q0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=kf));else if(r!==4&&(e=e.child,e!==null))for(Q0(e,t,n),e=e.sibling;e!==null;)Q0(e,t,n),e=e.sibling}function X0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(X0(e,t,n),e=e.sibling;e!==null;)X0(e,t,n),e=e.sibling}var Ut=null,_r=!1;function ji(e,t,n){for(n=n.child;n!==null;)jC(e,t,n),n=n.sibling}function jC(e,t,n){if(ti&&typeof ti.onCommitFiberUnmount=="function")try{ti.onCommitFiberUnmount(Xp,n)}catch{}switch(n.tag){case 5:tn||Os(n,t);case 6:var r=Ut,i=_r;Ut=null,ji(e,t,n),Ut=r,_r=i,Ut!==null&&(_r?(e=Ut,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ut.removeChild(n.stateNode));break;case 18:Ut!==null&&(_r?(e=Ut,n=n.stateNode,e.nodeType===8?zm(e.parentNode,n):e.nodeType===1&&zm(e,n),Du(e)):zm(Ut,n.stateNode));break;case 4:r=Ut,i=_r,Ut=n.stateNode.containerInfo,_r=!0,ji(e,t,n),Ut=r,_r=i;break;case 0:case 11:case 14:case 15:if(!tn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&K0(n,t,a),i=i.next}while(i!==r)}ji(e,t,n);break;case 1:if(!tn&&(Os(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ft(n,t,s)}ji(e,t,n);break;case 21:ji(e,t,n);break;case 22:n.mode&1?(tn=(r=tn)||n.memoizedState!==null,ji(e,t,n),tn=r):ji(e,t,n);break;default:ji(e,t,n)}}function OT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vL),t.forEach(function(r){var i=OL.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Sr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=gt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xL(r/1960))-r,10e?16:e,fo===null)var r=!1;else{if(e=fo,fo=null,Lf=0,Le&6)throw Error(te(331));var i=Le;for(Le|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lgt()-n1?ga(e,0):t1|=n),An(e,t)}function QC(e,t){t===0&&(e.mode&1?(t=Jc,Jc<<=1,!(Jc&130023424)&&(Jc=4194304)):t=1);var n=pn();e=Oi(e,t),e!==null&&(gc(e,t,n),An(e,n))}function AL(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),QC(e,n)}function OL(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(te(314))}r!==null&&r.delete(t),QC(e,n)}var XC;XC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Cn.current)_n=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _n=!1,bL(e,t,n);_n=!!(e.flags&131072)}else _n=!1,ot&&t.flags&1048576&&tC(t,_f,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gd(e,t),e=t.pendingProps;var i=Qs(t,an.current);Fs(t,n),i=Gy(null,t,r,e,i,n);var o=Qy();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nn(r)?(o=!0,Sf(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Wy(t),i.updater=ih,t.stateNode=i,i._reactInternals=t,U0(t,r,e,n),t=W0(null,t,r,!0,o,n)):(t.tag=0,ot&&o&&By(t),dn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=RL(r),e=wr(r,e),i){case 0:t=$0(null,t,r,e,n);break e;case 1:t=wT(null,t,r,e,n);break e;case 11:t=xT(null,t,r,e,n);break e;case 14:t=ST(null,t,r,wr(r.type,e),n);break e}throw Error(te(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wr(r,i),$0(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wr(r,i),wT(e,t,r,i,n);case 3:e:{if(DC(t),e===null)throw Error(te(387));r=t.pendingProps,o=t.memoizedState,i=o.element,sC(e,t),Af(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=el(Error(te(423)),t),t=_T(e,t,r,n,i);break e}else if(r!==i){i=el(Error(te(424)),t),t=_T(e,t,r,n,i);break e}else for(Hn=To(t.stateNode.containerInfo.firstChild),jn=t,ot=!0,Cr=null,n=oC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xs(),r===i){t=Ii(e,t,n);break e}dn(e,t,r,n)}t=t.child}return t;case 5:return lC(t),e===null&&z0(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,M0(r,i)?a=null:o!==null&&M0(r,o)&&(t.flags|=32),MC(e,t),dn(e,t,a,n),t.child;case 6:return e===null&&z0(t),null;case 13:return LC(e,t,n);case 4:return Vy(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Js(t,null,r,n):dn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wr(r,i),xT(e,t,r,i,n);case 7:return dn(e,t,t.pendingProps,n),t.child;case 8:return dn(e,t,t.pendingProps.children,n),t.child;case 12:return dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Xe(Cf,r._currentValue),r._currentValue=a,o!==null)if(Lr(o.value,a)){if(o.children===i.children&&!Cn.current){t=Ii(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Si(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),F0(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(te(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),F0(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}dn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Fs(t,n),i=pr(i),r=r(i),t.flags|=1,dn(e,t,r,n),t.child;case 14:return r=t.type,i=wr(r,t.pendingProps),i=wr(r.type,i),ST(e,t,r,i,n);case 15:return IC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wr(r,i),Gd(e,t),t.tag=1,Nn(r)?(e=!0,Sf(t)):e=!1,Fs(t,n),NC(t,r,i),U0(t,r,i,n),W0(null,t,r,!0,e,n);case 19:return PC(e,t,n);case 22:return RC(e,t,n)}throw Error(te(156,t.tag))};function JC(e,t){return w_(e,t)}function IL(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lr(e,t,n,r){return new IL(e,t,n,r)}function a1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function RL(e){if(typeof e=="function")return a1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wy)return 11;if(e===_y)return 14}return 2}function wo(e,t){var n=e.alternate;return n===null?(n=lr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Jd(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")a1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ts:return ba(n.children,i,o,t);case Sy:a=8,i|=8;break;case d0:return e=lr(12,n,t,i|2),e.elementType=d0,e.lanes=o,e;case f0:return e=lr(13,n,t,i),e.elementType=f0,e.lanes=o,e;case p0:return e=lr(19,n,t,i),e.elementType=p0,e.lanes=o,e;case l_:return sh(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case a_:a=10;break e;case s_:a=9;break e;case wy:a=11;break e;case _y:a=14;break e;case eo:a=16,r=null;break e}throw Error(te(130,e==null?e:typeof e,""))}return t=lr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ba(e,t,n,r){return e=lr(7,e,r,t),e.lanes=n,e}function sh(e,t,n,r){return e=lr(22,e,r,t),e.elementType=l_,e.lanes=n,e.stateNode={isHidden:!1},e}function qm(e,t,n){return e=lr(6,e,null,t),e.lanes=n,e}function Ym(e,t,n){return t=lr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ML(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cm(0),this.expirationTimes=Cm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cm(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function s1(e,t,n,r,i,o,a,s,l){return e=new ML(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=lr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wy(o),e}function DL(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nN)}catch(e){console.error(e)}}nN(),n_.exports=Gn;var fh=n_.exports;const rN=Gp(fh);var zT=fh;u0.createRoot=zT.createRoot,u0.hydrateRoot=zT.hydrateRoot;var Zr=function(){return Zr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r"u")return tP;var t=nP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},iP=sN(),Us="data-scroll-locked",oP=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(HL,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(s,"px ").concat(r,`; + } + body[`).concat(Us,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(i,`px; + padding-top: `).concat(o,`px; + padding-right: `).concat(a,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Zd,` { + right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(ef,` { + margin-right: `).concat(s,"px ").concat(r,`; + } + + .`).concat(Zd," .").concat(Zd,` { + right: 0 `).concat(r,`; + } + + .`).concat(ef," .").concat(ef,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(Us,`] { + `).concat(UL,": ").concat(s,`px; + } +`)},HT=function(){var e=parseInt(document.body.getAttribute(Us)||"0",10);return isFinite(e)?e:0},aP=function(){S.useEffect(function(){return document.body.setAttribute(Us,(HT()+1).toString()),function(){var e=HT()-1;e<=0?document.body.removeAttribute(Us):document.body.setAttribute(Us,e.toString())}},[])},sP=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;aP();var o=S.useMemo(function(){return rP(i)},[i]);return S.createElement(iP,{styles:oP(o,!t,i,n?"":"!important")})},nb=!1;if(typeof window<"u")try{var cd=Object.defineProperty({},"passive",{get:function(){return nb=!0,!0}});window.addEventListener("test",cd,cd),window.removeEventListener("test",cd,cd)}catch{nb=!1}var ts=nb?{passive:!1}:!1,lP=function(e){return e.tagName==="TEXTAREA"},lN=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lP(e)&&n[t]==="visible")},uP=function(e){return lN(e,"overflowY")},cP=function(e){return lN(e,"overflowX")},UT=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=uN(e,r);if(i){var o=cN(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},uN=function(e,t){return e==="v"?uP(t):cP(t)},cN=function(e,t){return e==="v"?dP(t):fP(t)},pP=function(e,t){return e==="h"&&t==="rtl"?-1:1},hP=function(e,t,n,r,i){var o=pP(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=cN(e,s),h=p[0],m=p[1],y=p[2],b=m-y-o*h;(h||b)&&uN(e,s)&&(d+=b,f+=h),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(Math.abs(d)<1||!i)||!c&&(Math.abs(f)<1||!i))&&(u=!0),u},dd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jT=function(e){return[e.deltaX,e.deltaY]},$T=function(e){return e&&"current"in e?e.current:e},mP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gP=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},bP=0,ns=[];function yP(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),i=S.useState(bP++)[0],o=S.useState(sN)[0],a=S.useRef(e);S.useEffect(function(){a.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=FL([e.lockRef.current],(e.shards||[]).map($T),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var b=dd(m),E=n.current,v="deltaX"in m?m.deltaX:E[0]-b[0],k="deltaY"in m?m.deltaY:E[1]-b[1],_,x=m.target,I=Math.abs(v)>Math.abs(k)?"h":"v";if("touches"in m&&I==="h"&&x.type==="range")return!1;var R=UT(I,x);if(!R)return!0;if(R?_=I:(_=I==="v"?"h":"v",R=UT(I,x)),!R)return!1;if(!r.current&&"changedTouches"in m&&(v||k)&&(r.current=_),!_)return!0;var z=r.current||_;return hP(z,y,m,z==="h"?v:k,!0)},[]),l=S.useCallback(function(m){var y=m;if(!(!ns.length||ns[ns.length-1]!==o)){var b="deltaY"in y?jT(y):dd(y),E=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&mP(_.delta,b)})[0];if(E&&E.should){y.cancelable&&y.preventDefault();return}if(!E){var v=(a.current.shards||[]).map($T).filter(Boolean).filter(function(_){return _.contains(y.target)}),k=v.length>0?s(y,v[0]):!a.current.noIsolation;k&&y.cancelable&&y.preventDefault()}}},[]),u=S.useCallback(function(m,y,b,E){var v={name:m,delta:y,target:b,should:E,shadowParent:EP(b)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(k){return k!==v})},1)},[]),c=S.useCallback(function(m){n.current=dd(m),r.current=void 0},[]),d=S.useCallback(function(m){u(m.type,jT(m),m.target,s(m,e.lockRef.current))},[]),f=S.useCallback(function(m){u(m.type,dd(m),m.target,s(m,e.lockRef.current))},[]);S.useEffect(function(){return ns.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ts),document.addEventListener("touchmove",l,ts),document.addEventListener("touchstart",c,ts),function(){ns=ns.filter(function(m){return m!==o}),document.removeEventListener("wheel",l,ts),document.removeEventListener("touchmove",l,ts),document.removeEventListener("touchstart",c,ts)}},[]);var p=e.removeScrollBar,h=e.inert;return S.createElement(S.Fragment,null,h?S.createElement(o,{styles:gP(i)}):null,p?S.createElement(sP,{gapMode:e.gapMode}):null)}function EP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vP=KL(aN,yP);var hh=S.forwardRef(function(e,t){return S.createElement(ph,Zr({},e,{ref:t,sideCar:vP}))});hh.classNames=ph.classNames;function Kt(e){return Object.keys(e)}function Xm(e){return e&&typeof e=="object"&&!Array.isArray(e)}function d1(e,t){const n={...e},r=t;return Xm(e)&&Xm(t)&&Object.keys(t).forEach(i=>{Xm(r[i])&&i in e?n[i]=d1(n[i],r[i]):n[i]=r[i]}),n}function TP(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function kP(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function rb(e){const t=kP(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function Jm(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function dN(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r==="0")return`0${e}`;if(typeof r=="number"){const i=`${r/16}${e}`;return t?Jm(i):i}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(o=>n(o)).join(",");if(r.includes(" "))return r.split(" ").map(o=>n(o)).join(" ");if(r.includes(e))return t?Jm(r):r;const i=r.replace("px","");if(!Number.isNaN(Number(i))){const o=`${Number(i)/16}${e}`;return t?Jm(o):o}}return r}return n}const Y=dN("rem",{shouldScale:!0}),zf=dN("em");function f1(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function fN(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(r=>t.test(r))}return!1}function Va(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==S.Fragment:!1}function Uo(e){const t=S.createContext(null);return[({children:i,value:o})=>T.jsx(t.Provider,{value:o,children:i}),()=>{const i=S.useContext(t);if(i===null)throw new Error(e);return i}]}function p1(e=null){const t=S.createContext(e);return[({children:i,value:o})=>T.jsx(t.Provider,{value:o,children:i}),()=>S.useContext(t)]}const xP={app:100,modal:200,popover:300,overlay:400,max:9999};function Mn(e){return xP[e]}const SP=()=>{};function wP(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||SP:n=>{var r;n.key==="Escape"&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function Je(e,t="size",n=!0){if(e!==void 0)return fN(e)?n?Y(e):e:`var(--${t}-${e})`}function vc(e){return Je(e,"mantine-spacing")}function gr(e){return e===void 0?"var(--mantine-radius-default)":Je(e,"mantine-radius")}function $n(e){return Je(e,"mantine-font-size")}function _P(e){return Je(e,"mantine-line-height",!1)}function h1(e){if(e)return Je(e,"mantine-shadow",!1)}function m1(e,t){return e in t?rb(t[e]):rb(e)}function WT(e,t){const n=e.map(r=>({value:r,px:m1(r,t)}));return n.sort((r,i)=>r.px-i.px),n}function g1(){return`mantine-${Math.random().toString(36).slice(2,11)}`}function ra(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Tc(e,t){const n=ra(e),r=S.useRef(0);return S.useEffect(()=>()=>window.clearTimeout(r.current),[]),S.useCallback((...i)=>{window.clearTimeout(r.current),r.current=window.setTimeout(()=>n(...i),t)},[n,t])}const VT=["mousedown","touchstart"];function CP(e,t,n){const r=S.useRef();return S.useEffect(()=>{const i=o=>{const{target:a}=o??{};if(Array.isArray(n)){const s=(a==null?void 0:a.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(a)&&a.tagName!=="HTML";n.every(u=>!!u&&!o.composedPath().includes(u))&&!s&&e()}else r.current&&!r.current.contains(a)&&e()};return(t||VT).forEach(o=>document.addEventListener(o,i)),()=>{(t||VT).forEach(o=>document.removeEventListener(o,i))}},[r,e,n]),r}function NP({timeout:e=2e3}={}){const[t,n]=S.useState(null),[r,i]=S.useState(!1),[o,a]=S.useState(null),s=c=>{window.clearTimeout(o),a(window.setTimeout(()=>i(!1),e)),i(c)};return{copy:c=>{"clipboard"in navigator?navigator.clipboard.writeText(c).then(()=>s(!0)).catch(d=>n(d)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{i(!1),n(null),window.clearTimeout(o)},error:t,copied:r}}function AP(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function OP(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function b1(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,i]=S.useState(n?t:OP(e)),o=S.useRef();return S.useEffect(()=>{if("matchMedia"in window)return o.current=window.matchMedia(e),i(o.current.matches),AP(o.current,a=>i(a.matches))},[e]),r}function IP(e,t){return b1("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}const bl=typeof document<"u"?S.useLayoutEffect:S.useEffect;function Da(e,t){const n=S.useRef(!1);S.useEffect(()=>()=>{n.current=!1},[]),S.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function pN({opened:e,shouldReturnFocus:t=!0}){const n=S.useRef(),r=()=>{var i;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((i=n.current)==null||i.focus({preventScroll:!0}))};return Da(()=>{let i=-1;const o=a=>{a.key==="Tab"&&window.clearTimeout(i)};return document.addEventListener("keydown",o),e?n.current=document.activeElement:t&&(i=window.setTimeout(r,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",o)}},[e,t]),r}function RP(e,t="body > :not(script)"){const n=g1(),r=Array.from(document.querySelectorAll(t)).map(i=>{var l;if((l=i==null?void 0:i.shadowRoot)!=null&&l.contains(e)||i.contains(e))return;const o=i.getAttribute("aria-hidden"),a=i.getAttribute("data-hidden"),s=i.getAttribute("data-focus-id");return i.setAttribute("data-focus-id",n),o===null||o==="false"?i.setAttribute("aria-hidden","true"):!a&&!s&&i.setAttribute("data-hidden",o),{node:i,ariaHidden:a||null}});return()=>{r.forEach(i=>{!i||n!==i.node.getAttribute("data-focus-id")||(i.ariaHidden===null?i.node.removeAttribute("aria-hidden"):i.node.setAttribute("aria-hidden",i.ariaHidden),i.node.removeAttribute("data-focus-id"),i.node.removeAttribute("data-hidden"))})}}const MP=/input|select|textarea|button|object/,hN="a, input, select, textarea, button, object, [tabindex]";function DP(e){return e.style.display==="none"}function LP(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(DP(n))return!1;n=n.parentNode}return!0}function mN(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function ib(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(mN(e));return(MP.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&LP(e)}function gN(e){const t=mN(e);return(Number.isNaN(t)||t>=0)&&ib(e)}function PP(e){return Array.from(e.querySelectorAll(hN)).filter(gN)}function BP(e,t){const n=PP(e);if(!n.length){t.preventDefault();return}const r=n[t.shiftKey?0:n.length-1],i=e.getRootNode();let o=r===i.activeElement||e===i.activeElement;const a=i.activeElement;if(a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(o=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===a.getAttribute("name")).includes(r)),!o)return;t.preventDefault();const l=n[t.shiftKey?n.length-1:0];l&&l.focus()}function zP(e=!0){const t=S.useRef(),n=S.useRef(null),r=o=>{let a=o.querySelector("[data-autofocus]");if(!a){const s=Array.from(o.querySelectorAll(hN));a=s.find(gN)||s.find(ib)||null,!a&&ib(o)&&(a=o)}a&&a.focus({preventScroll:!0})},i=S.useCallback(o=>{if(e){if(o===null){n.current&&(n.current(),n.current=null);return}n.current=RP(o),t.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&r(o)}),t.current=o):t.current=null)}},[e]);return S.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));const o=a=>{a.key==="Tab"&&t.current&&BP(t.current,a)};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o),n.current&&n.current()}},[e]),i}const FP=Et.useId||(()=>{});function HP(){const e=FP();return e?`mantine-${e.replace(/:/g,"")}`:""}function jo(e){const t=HP(),[n,r]=S.useState(t);return bl(()=>{r(g1())},[]),typeof e=="string"?e:typeof window>"u"?t:n}function bN(e,t,n){S.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function yN(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function UP(...e){return t=>{e.forEach(n=>yN(n,t))}}function Dn(...e){return S.useCallback(UP(...e),e)}function La({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[i,o]=S.useState(t!==void 0?t:n),a=(s,...l)=>{o(s),r==null||r(s,...l)};return e!==void 0?[e,r,!0]:[i,a,!1]}function EN(e,t){return b1("(prefers-reduced-motion: reduce)",e,t)}function jP(e){const t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var $P={};function WP(){return typeof process<"u"&&$P?"production":"development"}function mh(e){var n;const t=Et.version;return typeof Et.version!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function vN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{Object.entries(n).forEach(([r,i])=>{t[r]?t[r]=kt(t[r],i):t[r]=i})}),t}function gh({theme:e,classNames:t,props:n,stylesCtx:r}){const o=(Array.isArray(t)?t:[t]).map(a=>typeof a=="function"?a(e,n,r):a||VP);return qP(o)}function Ff({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce((o,a)=>typeof a=="function"?{...o,...a(e,n,r)}:{...o,...a},{})}const y1=S.createContext(null);function $o(){const e=S.useContext(y1);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function YP(){return $o().cssVariablesResolver}function KP(){return $o().classNamesPrefix}function bh(){return $o().getStyleNonce}function GP(){return $o().withStaticClasses}function QP(){return $o().headless}function XP(){var e;return(e=$o().stylesTransform)==null?void 0:e.sx}function JP(){var e;return(e=$o().stylesTransform)==null?void 0:e.styles}function ZP(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function e6(e){let t=e.replace("#","");if(t.length===3){const a=t.split("");t=[a[0],a[0],a[1],a[1],a[2],a[2]].join("")}if(t.length===8){const a=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a}}const n=parseInt(t,16),r=n>>16&255,i=n>>8&255,o=n&255;return{r,g:i,b:o,a:1}}function t6(e){const[t,n,r,i]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i||1}}function n6(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(t);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),i=parseInt(n[2],10)/100,o=parseInt(n[3],10)/100,a=n[5]?parseFloat(n[5]):void 0,s=(1-Math.abs(2*o-1))*i,l=r/60,u=s*(1-Math.abs(l%2-1)),c=o-s/2;let d,f,p;return l>=0&&l<1?(d=s,f=u,p=0):l>=1&&l<2?(d=u,f=s,p=0):l>=2&&l<3?(d=0,f=s,p=u):l>=3&&l<4?(d=0,f=u,p=s):l>=4&&l<5?(d=u,f=0,p=s):(d=s,f=0,p=u),{r:Math.round((d+c)*255),g:Math.round((f+c)*255),b:Math.round((p+c)*255),a:a||1}}function E1(e){return ZP(e)?e6(e):e.startsWith("rgb")?t6(e):e.startsWith("hsl")?n6(e):{r:0,g:0,b:0,a:1}}function fd(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:r,b:i,a:o}=E1(e),a=1-t,s=l=>Math.round(l*a);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${o})`}function qu(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function Zm(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function r6(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function i6(e){if(e.startsWith("oklch("))return(r6(e)||0)/100;const{r:t,g:n,b:r}=E1(e),i=t/255,o=n/255,a=r/255,s=Zm(i),l=Zm(o),u=Zm(a);return .2126*s+.7152*l+.0722*u}function Hl(e,t=.179){return e.startsWith("var(")?!1:i6(e)>t}function kc({color:e,theme:t,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Hl(n==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Hl(n==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Hl(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,i]=e.split("."),o=i?Number(i):void 0,a=r in t.colors;if(a){const s=o!==void 0?t.colors[r][o]:t.colors[r][qu(t,n||"light")];return{color:r,value:s,shade:o,isThemeColor:a,isLight:Hl(s,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${o}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:a,isLight:Hl(e,t.luminanceThreshold),shade:o,variable:void 0}}function Mo(e,t){const n=kc({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function ob(e,t){const n={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)||t.defaultGradient.deg||0},r=Mo(n.from,t),i=Mo(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Wr(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const o=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${o}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:r,b:i}=E1(e);return`rgba(${n}, ${r}, ${i}, ${t})`}const rs=Wr,o6=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{const o=kc({color:e,theme:t}),a=typeof i=="boolean"?i:t.autoContrast;if(n==="filled"){const s=a&&o.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return o.isThemeColor?o.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:s,border:`${Y(1)} solid transparent`}:{background:`var(--mantine-color-${o.color}-${o.shade})`,hover:`var(--mantine-color-${o.color}-${o.shade===9?8:o.shade+1})`,color:s,border:`${Y(1)} solid transparent`}:{background:e,hover:fd(e,.1),color:s,border:`${Y(1)} solid transparent`}}if(n==="light"){if(o.isThemeColor){if(o.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Y(1)} solid transparent`};const s=t.colors[o.color][o.shade];return{background:Wr(s,.1),hover:Wr(s,.12),color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${Y(1)} solid transparent`}}return{background:Wr(e,.1),hover:Wr(e,.12),color:e,border:`${Y(1)} solid transparent`}}if(n==="outline")return o.isThemeColor?o.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${Y(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:Wr(t.colors[o.color][o.shade],.05),color:`var(--mantine-color-${o.color}-${o.shade})`,border:`${Y(1)} solid var(--mantine-color-${o.color}-${o.shade})`}:{background:"transparent",hover:Wr(e,.05),color:e,border:`${Y(1)} solid ${e}`};if(n==="subtle"){if(o.isThemeColor){if(o.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Y(1)} solid transparent`};const s=t.colors[o.color][o.shade];return{background:"transparent",hover:Wr(s,.12),color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${Y(1)} solid transparent`}}return{background:"transparent",hover:Wr(e,.12),color:e,border:`${Y(1)} solid transparent`}}return n==="transparent"?o.isThemeColor?o.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${Y(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${o.color}-${Math.min(o.shade,6)})`,border:`${Y(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${Y(1)} solid transparent`}:n==="white"?o.isThemeColor?o.shade===void 0?{background:"var(--mantine-color-white)",hover:fd(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${Y(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:fd(t.white,.01),color:`var(--mantine-color-${o.color}-${o.shade})`,border:`${Y(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:fd(t.white,.01),color:e,border:`${Y(1)} solid transparent`}:n==="gradient"?{background:ob(r,t),hover:ob(r,t),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${Y(1)} solid var(--mantine-color-default-border)`}:{}},a6={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},qT="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",v1={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:a6,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:o6,autoContrast:!1,luminanceThreshold:.3,fontFamily:qT,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:qT,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:Y(34),lineHeight:"1.3"},h2:{fontSize:Y(26),lineHeight:"1.35"},h3:{fontSize:Y(22),lineHeight:"1.4"},h4:{fontSize:Y(18),lineHeight:"1.45"},h5:{fontSize:Y(16),lineHeight:"1.5"},h6:{fontSize:Y(14),lineHeight:"1.5"}}},fontSizes:{xs:Y(12),sm:Y(14),md:Y(16),lg:Y(18),xl:Y(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:Y(2),sm:Y(4),md:Y(8),lg:Y(16),xl:Y(32)},spacing:{xs:Y(10),sm:Y(12),md:Y(16),lg:Y(20),xl:Y(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${Y(1)} ${Y(3)} rgba(0, 0, 0, 0.05), 0 ${Y(1)} ${Y(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${Y(1)} ${Y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Y(10)} ${Y(15)} ${Y(-5)}, rgba(0, 0, 0, 0.04) 0 ${Y(7)} ${Y(7)} ${Y(-5)}`,md:`0 ${Y(1)} ${Y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Y(20)} ${Y(25)} ${Y(-5)}, rgba(0, 0, 0, 0.04) 0 ${Y(10)} ${Y(10)} ${Y(-5)}`,lg:`0 ${Y(1)} ${Y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Y(28)} ${Y(23)} ${Y(-7)}, rgba(0, 0, 0, 0.04) 0 ${Y(12)} ${Y(12)} ${Y(-7)}`,xl:`0 ${Y(1)} ${Y(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Y(36)} ${Y(28)} ${Y(-7)}, rgba(0, 0, 0, 0.04) 0 ${Y(17)} ${Y(17)} ${Y(-7)}`},other:{},components:{}};function YT(e){return e==="auto"||e==="dark"||e==="light"}function s6({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(e);return YT(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{t=r=>{r.storageArea===window.localStorage&&r.key===e&&YT(r.newValue)&&n(r.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const l6="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",KT="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function eg(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function GT(e){if(!(e.primaryColor in e.colors))throw new Error(l6);if(typeof e.primaryShade=="object"&&(!eg(e.primaryShade.dark)||!eg(e.primaryShade.light)))throw new Error(KT);if(typeof e.primaryShade=="number"&&!eg(e.primaryShade))throw new Error(KT)}function u6(e,t){var r;if(!t)return GT(e),e;const n=d1(e,t);return t.fontFamily&&!((r=t.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),GT(n),n}const T1=S.createContext(null),c6=()=>S.useContext(T1)||v1;function li(){const e=S.useContext(T1);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function TN({theme:e,children:t,inherit:n=!0}){const r=c6(),i=S.useMemo(()=>u6(n?r:v1,e),[e,r,n]);return T.jsx(T1.Provider,{value:i,children:t})}TN.displayName="@mantine/core/MantineThemeProvider";function d6(){const e=li(),t=bh(),n=Kt(e.breakpoints).reduce((r,i)=>{const o=e.breakpoints[i].includes("px"),a=rb(e.breakpoints[i]),s=o?`${a-.1}px`:zf(a-.1),l=o?`${a}px`:zf(a);return`${r}@media (max-width: ${s}) {.mantine-visible-from-${i} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${i} {display: none !important;}}`},"");return T.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function tg(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function Ul(e,t){return(Array.isArray(e)?e:[e]).reduce((r,i)=>`${i}{${r}}`,t)}function f6(e,t){const n=tg(e.variables),r=n?Ul(t,n):"",i=tg(e.dark),o=tg(e.light),a=i?Ul(t===":host"?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,i):"",s=o?Ul(t===":host"?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,o):"";return`${r}${a}${s}`}function p6({color:e,theme:t,autoContrast:n}){return(typeof n=="boolean"?n:t.autoContrast)&&kc({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function QT(e,t){return p6({color:e.colors[e.primaryColor][qu(e,t)],theme:e,autoContrast:null})}function pd({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n==="light"){const s=qu(e,"light"),l={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${s===9?8:s+1})`,[`--mantine-color-${r}-light`]:rs(e.colors[t][s],.1),[`--mantine-color-${r}-light-hover`]:rs(e.colors[t][s],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-outline-hover`]:rs(e.colors[t][s],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...l}:l}const o=qu(e,"dark"),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${o===9?8:o+1})`,[`--mantine-color-${r}-light`]:rs(e.colors[t][Math.max(0,o-2)],.15),[`--mantine-color-${r}-light-hover`]:rs(e.colors[t][Math.max(0,o-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(o-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(o-4,0)})`,[`--mantine-color-${r}-outline-hover`]:rs(e.colors[t][Math.max(o-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}function h6(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function is(e,t,n){Kt(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}const kN=e=>{const t=qu(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:Y(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":QT(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":QT(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};is(r.variables,e.breakpoints,"breakpoint"),is(r.variables,e.spacing,"spacing"),is(r.variables,e.fontSizes,"font-size"),is(r.variables,e.lineHeights,"line-height"),is(r.variables,e.shadows,"shadow"),is(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((o,a)=>{r.variables[`--mantine-primary-color-${a}`]=`var(--mantine-color-${e.primaryColor}-${a})`}),Kt(e.colors).forEach(o=>{const a=e.colors[o];if(h6(a)){Object.assign(r.light,pd({theme:e,name:a.name,color:a.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,pd({theme:e,name:a.name,color:a.dark,colorScheme:"dark",withColorValues:!0}));return}a.forEach((s,l)=>{r.variables[`--mantine-color-${o}-${l}`]=s}),Object.assign(r.light,pd({theme:e,color:o,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,pd({theme:e,color:o,colorScheme:"dark",withColorValues:!1}))});const i=e.headings.sizes;return Kt(i).forEach(o=>{r.variables[`--mantine-${o}-font-size`]=i[o].fontSize,r.variables[`--mantine-${o}-line-height`]=i[o].lineHeight,r.variables[`--mantine-${o}-font-weight`]=i[o].fontWeight||e.headings.fontWeight}),r};function m6({theme:e,generator:t}){const n=kN(e),r=t==null?void 0:t(e);return r?d1(n,r):n}const ng=kN(v1);function g6(e){const t={variables:{},light:{},dark:{}};return Kt(e.variables).forEach(n=>{ng.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),Kt(e.light).forEach(n=>{ng.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),Kt(e.dark).forEach(n=>{ng.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function b6(e){return` + ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; } + ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; } +`}function xN({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=li(),r=bh(),i=YP(),o=m6({theme:n,generator:i}),a=e===":root"&&t,s=a?g6(o):o,l=f6(s,e);return l?T.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${l}${a?"":b6(e)}`}}):null}xN.displayName="@mantine/CssVariables";function y6(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function as(e,t){var r;const n=e!=="auto"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";(r=t())==null||r.setAttribute("data-mantine-color-scheme",n)}function E6({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const i=S.useRef(),[o,a]=S.useState(()=>e.get(t)),s=r||o,l=S.useCallback(c=>{r||(as(c,n),a(c),e.set(c))},[e.set,s,r]),u=S.useCallback(()=>{a(t),as(t,n),e.clear()},[e.clear,t]);return S.useEffect(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),bl(()=>{as(e.get(t),n)},[]),S.useEffect(()=>{var d;if(r)return as(r,n),()=>{};r===void 0&&as(o,n),i.current=window.matchMedia("(prefers-color-scheme: dark)");const c=f=>{o==="auto"&&as(f.matches?"dark":"light",n)};return(d=i.current)==null||d.addEventListener("change",c),()=>{var f;return(f=i.current)==null?void 0:f.removeEventListener("change",c)}},[o,r]),{colorScheme:s,setColorScheme:l,clearColorScheme:u}}function v6({respectReducedMotion:e,getRootElement:t}){bl(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}y6();function SN({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:o=!0,withCssVariables:a=!0,cssVariablesSelector:s=":root",classNamesPrefix:l="mantine",colorSchemeManager:u=s6(),defaultColorScheme:c="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:h}){const{colorScheme:m,setColorScheme:y,clearColorScheme:b}=E6({defaultColorScheme:c,forceColorScheme:p,manager:u,getRootElement:d});return v6({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),T.jsx(y1.Provider,{value:{colorScheme:m,setColorScheme:y,clearColorScheme:b,getRootElement:d,classNamesPrefix:l,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s,withStaticClasses:r,stylesTransform:h},children:T.jsxs(TN,{theme:e,children:[a&&T.jsx(xN,{cssVariablesSelector:s,deduplicateCssVariables:o}),i&&T.jsx(d6,{}),t]})})}SN.displayName="@mantine/core/MantineProvider";function wN({classNames:e,styles:t,props:n,stylesCtx:r}){const i=li();return{resolvedClassNames:gh({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:Ff({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}const T6={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function k6({theme:e,options:t,unstyled:n}){return kt((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||T6[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function x6({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return gh({theme:i,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:t})[e]}function XT({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return gh({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function S6({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function w6({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function _6({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(i=>`${t}-${i}-${n}`)}function C6({themeName:e,theme:t,selector:n,props:r,stylesCtx:i}){return e.map(o=>{var a,s;return(s=gh({theme:t,classNames:(a=t.components[o])==null?void 0:a.classNames,props:r,stylesCtx:i}))==null?void 0:s[n]})}function N6({options:e,classes:t,selector:n,unstyled:r}){return e!=null&&e.variant&&!r?t[`${n}--${e.variant}`]:void 0}function A6({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,classNames:o,classes:a,unstyled:s,className:l,rootSelector:u,props:c,stylesCtx:d,withStaticClasses:f,headless:p,transformedStyles:h}){return kt(k6({theme:e,options:t,unstyled:s||p}),C6({theme:e,themeName:n,selector:r,props:c,stylesCtx:d}),N6({options:t,classes:a,selector:r,unstyled:s}),XT({selector:r,stylesCtx:d,theme:e,classNames:o,props:c}),XT({selector:r,stylesCtx:d,theme:e,classNames:h,props:c}),x6({selector:r,stylesCtx:d,options:t,props:c,theme:e}),S6({rootSelector:u,selector:r,className:l}),w6({selector:r,classes:a,unstyled:s||p}),f&&!p&&_6({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function O6({theme:e,themeName:t,props:n,stylesCtx:r,selector:i}){return t.map(o=>{var a;return Ff({theme:e,styles:(a=e.components[o])==null?void 0:a.styles,props:n,stylesCtx:r})[i]}).reduce((o,a)=>({...o,...a}),{})}function ab({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...ab({style:r,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function I6(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{t[r]={...t[r],...f1(n[r])}}),t),{})}function R6({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:i,selector:o,themeName:a,headless:s}){var l;return(l=I6([s?{}:t==null?void 0:t(n,r,i),...a.map(u=>{var c,d,f;return(f=(d=(c=n.components)==null?void 0:c[u])==null?void 0:d.vars)==null?void 0:f.call(d,n,r,i)}),e==null?void 0:e(n,r,i)]))==null?void 0:l[o]}function M6({theme:e,themeName:t,selector:n,options:r,props:i,stylesCtx:o,rootSelector:a,styles:s,style:l,vars:u,varsResolver:c,headless:d,withStylesTransform:f}){return{...!f&&O6({theme:e,themeName:t,props:i,stylesCtx:o,selector:n}),...!f&&Ff({theme:e,styles:s,props:i,stylesCtx:o})[n],...!f&&Ff({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||i,stylesCtx:o})[n],...R6({theme:e,props:i,stylesCtx:o,vars:u,varsResolver:c,selector:n,themeName:t,headless:d}),...a===n?ab({style:l,theme:e}):null,...ab({style:r==null?void 0:r.style,theme:e})}}function D6({props:e,stylesCtx:t,themeName:n}){var a;const r=li(),i=(a=JP())==null?void 0:a();return{getTransformedStyles:s=>i?[...s.map(u=>i(u,{props:e,theme:r,ctx:t})),...n.map(u=>{var c;return i((c=r.components[u])==null?void 0:c.styles,{props:e,theme:r,ctx:t})})].filter(Boolean):[],withStylesTransform:!!i}}function Pe({name:e,classes:t,props:n,stylesCtx:r,className:i,style:o,rootSelector:a="root",unstyled:s,classNames:l,styles:u,vars:c,varsResolver:d}){const f=li(),p=KP(),h=GP(),m=QP(),y=(Array.isArray(e)?e:[e]).filter(v=>v),{withStylesTransform:b,getTransformedStyles:E}=D6({props:n,stylesCtx:r,themeName:y});return(v,k)=>({className:A6({theme:f,options:k,themeName:y,selector:v,classNamesPrefix:p,classNames:l,classes:t,unstyled:s,className:i,rootSelector:a,props:n,stylesCtx:r,withStaticClasses:h,headless:m,transformedStyles:E([k==null?void 0:k.styles,u])}),style:M6({theme:f,themeName:y,selector:v,options:k,props:n,stylesCtx:r,rootSelector:a,styles:u,style:o,vars:c,varsResolver:d,headless:m,withStylesTransform:b})})}function JT(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(r=>r.remove())}function L6({keepTransitions:e}={}){const t=S.useRef(),n=S.useRef(),r=S.useContext(y1),i=bh(),o=S.useRef(i==null?void 0:i());if(!r)throw new Error("[@mantine/core] MantineProvider was not found in tree");const a=d=>{r.setColorScheme(d),t.current=e?()=>{}:JT(o.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var f;(f=t.current)==null||f.call(t)},10)},s=()=>{r.clearColorScheme(),t.current=e?()=>{}:JT(o.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var d;(d=t.current)==null||d.call(t)},10)},l=IP("light",{getInitialValueInEffect:!1}),u=r.colorScheme==="auto"?l:r.colorScheme,c=S.useCallback(()=>a(u==="light"?"dark":"light"),[a,u]);return S.useEffect(()=>()=>{var d;(d=t.current)==null||d.call(t),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:a,clearColorScheme:s,toggleColorScheme:c}}function ie(e,t,n){var a;const r=li(),i=(a=r.components[e])==null?void 0:a.defaultProps,o=typeof i=="function"?i(r):i;return{...t,...o,...f1(n)}}function rg(e){return Kt(e).reduce((t,n)=>e[n]!==void 0?`${t}${TP(n)}:${e[n]};`:t,"").trim()}function P6({selector:e,styles:t,media:n,container:r}){const i=t?rg(t):"",o=Array.isArray(n)?n.map(s=>`@media${s.query}{${e}{${rg(s.styles)}}}`):[],a=Array.isArray(r)?r.map(s=>`@container ${s.query}{${e}{${rg(s.styles)}}}`):[];return`${i?`${e}{${i}}`:""}${o.join("")}${a.join("")}`.trim()}function _N(e){const t=bh();return T.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:P6(e)}})}function xc(e){const{m:t,mx:n,my:r,mt:i,mb:o,ml:a,mr:s,me:l,ms:u,p:c,px:d,py:f,pt:p,pb:h,pl:m,pr:y,pe:b,ps:E,bd:v,bg:k,c:_,opacity:x,ff:I,fz:R,fw:z,lts:A,ta:j,lh:L,fs:U,tt:V,td:H,w:B,miw:M,maw:N,h:F,mih:w,mah:q,bgsz:X,bgp:D,bgr:be,bga:ge,pos:le,top:Ce,left:Ie,bottom:Oe,right:Ke,inset:xt,display:Xt,flex:ye,hiddenFrom:Re,visibleFrom:at,lightHidden:Be,darkHidden:Fe,sx:Ln,...pe}=e;return{styleProps:f1({m:t,mx:n,my:r,mt:i,mb:o,ml:a,mr:s,me:l,ms:u,p:c,px:d,py:f,pt:p,pb:h,pl:m,pr:y,pe:b,ps:E,bd:v,bg:k,c:_,opacity:x,ff:I,fz:R,fw:z,lts:A,ta:j,lh:L,fs:U,tt:V,td:H,w:B,miw:M,maw:N,h:F,mih:w,mah:q,bgsz:X,bgp:D,bgr:be,bga:ge,pos:le,top:Ce,left:Ie,bottom:Oe,right:Ke,inset:xt,display:Xt,flex:ye,hiddenFrom:Re,visibleFrom:at,lightHidden:Be,darkHidden:Fe,sx:Ln}),rest:pe}}const B6={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"identity",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function k1(e,t){const n=kc({color:e,theme:t});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function z6(e,t){const n=kc({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:k1(e,t)}function F6(e,t){if(typeof e=="number")return Y(e);if(typeof e=="string"){const[n,r,...i]=e.split(" ").filter(a=>a.trim()!=="");let o=`${Y(n)}`;return r&&(o+=` ${r}`),i.length>0&&(o+=` ${k1(i.join(" "),t)}`),o.trim()}return e}const ZT={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function H6(e){return typeof e=="string"&&e in ZT?ZT[e]:e}const U6=["h1","h2","h3","h4","h5","h6"];function j6(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&U6.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?Y(e):e}function $6(e){return e}const W6=["h1","h2","h3","h4","h5","h6"];function V6(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&W6.includes(e)?`var(--mantine-${e}-line-height)`:e}function q6(e){return typeof e=="number"?Y(e):e}function Y6(e,t){if(typeof e=="number")return Y(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return Y(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e}const ig={color:k1,textColor:z6,fontSize:j6,spacing:Y6,identity:$6,size:q6,lineHeight:V6,fontFamily:H6,border:F6};function ek(e){return e.replace("(min-width: ","").replace("em)","")}function K6({media:e,...t}){const r=Object.keys(e).sort((i,o)=>Number(ek(i))-Number(ek(o))).map(i=>({query:i,styles:e[i]}));return{...t,media:r}}function G6(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function Q6(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function X6(e){return typeof e=="object"&&e!==null?Kt(e).filter(t=>t!=="base"):[]}function J6(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function Z6({styleProps:e,data:t,theme:n}){return K6(Kt(e).reduce((r,i)=>{if(i==="hiddenFrom"||i==="visibleFrom"||i==="sx")return r;const o=t[i],a=Array.isArray(o.property)?o.property:[o.property],s=Q6(e[i]);if(!G6(e[i]))return a.forEach(u=>{r.inlineStyles[u]=ig[o.type](s,n)}),r;r.hasResponsiveStyles=!0;const l=X6(e[i]);return a.forEach(u=>{s&&(r.styles[u]=ig[o.type](s,n)),l.forEach(c=>{const d=`(min-width: ${n.breakpoints[c]})`;r.media[d]={...r.media[d],[u]:ig[o.type](J6(e[i],c),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function e4(){return`__m__-${S.useId().replace(/:/g,"")}`}function CN(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...CN(r,t)}),{}):typeof e=="function"?e(t):e??{}}function NN(e){return e.startsWith("data-")?e:`data-${e}`}function t4(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r===void 0||r===""||r===!1||r===null||(t[NN(n)]=e[n]),t},{})}function AN(e){return e?typeof e=="string"?{[NN(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...AN(n)}),{}):t4(e):null}function sb(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...sb(r,t)}),{}):typeof e=="function"?e(t):e??{}}function n4({theme:e,style:t,vars:n,styleProps:r}){const i=sb(t,e),o=sb(n,e);return{...i,...o,...r}}const ON=S.forwardRef(({component:e,style:t,__vars:n,className:r,variant:i,mod:o,size:a,hiddenFrom:s,visibleFrom:l,lightHidden:u,darkHidden:c,renderRoot:d,__size:f,...p},h)=>{var R;const m=li(),y=e||"div",{styleProps:b,rest:E}=xc(p),v=XP(),k=(R=v==null?void 0:v())==null?void 0:R(b.sx),_=e4(),x=Z6({styleProps:b,theme:m,data:B6}),I={ref:h,style:n4({theme:m,style:t,vars:n,styleProps:x.inlineStyles}),className:kt(r,k,{[_]:x.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":c,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${l}`]:l}),"data-variant":i,"data-size":fN(a)?void 0:a||void 0,size:f,...AN(o),...E};return T.jsxs(T.Fragment,{children:[x.hasResponsiveStyles&&T.jsx(_N,{selector:`.${_}`,styles:x.styles,media:x.media}),typeof d=="function"?d(I):T.jsx(y,{...I})]})});ON.displayName="@mantine/core/Box";const se=ON;function IN(e){return e}function fe(e){const t=S.forwardRef(e);return t.extend=IN,t.withProps=n=>{const r=S.forwardRef((i,o)=>T.jsx(t,{...n,...i,ref:o}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t}function br(e){const t=S.forwardRef(e);return t.withProps=n=>{const r=S.forwardRef((i,o)=>T.jsx(t,{...n,...i,ref:o}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t.extend=IN,t}const r4=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Sc(){return S.useContext(r4)}const[i4,yr]=Uo("ScrollArea.Root component was not found in tree");function nl(e,t){const n=ra(t);bl(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}const o4=S.forwardRef((e,t)=>{const{style:n,...r}=e,i=yr(),[o,a]=S.useState(0),[s,l]=S.useState(0),u=!!(o&&s);return nl(i.scrollbarX,()=>{var d;const c=((d=i.scrollbarX)==null?void 0:d.offsetHeight)||0;i.onCornerHeightChange(c),l(c)}),nl(i.scrollbarY,()=>{var d;const c=((d=i.scrollbarY)==null?void 0:d.offsetWidth)||0;i.onCornerWidthChange(c),a(c)}),u?T.jsx("div",{...r,ref:t,style:{...n,width:o,height:s}}):null}),a4=S.forwardRef((e,t)=>{const n=yr(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?T.jsx(o4,{...e,ref:t}):null}),s4={scrollHideDelay:1e3,type:"hover"},RN=S.forwardRef((e,t)=>{const n=ie("ScrollAreaRoot",s4,e),{type:r,scrollHideDelay:i,scrollbars:o,...a}=n,[s,l]=S.useState(null),[u,c]=S.useState(null),[d,f]=S.useState(null),[p,h]=S.useState(null),[m,y]=S.useState(null),[b,E]=S.useState(0),[v,k]=S.useState(0),[_,x]=S.useState(!1),[I,R]=S.useState(!1),z=Dn(t,A=>l(A));return T.jsx(i4,{value:{type:r,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:_,onScrollbarXEnabledChange:x,scrollbarY:m,onScrollbarYChange:y,scrollbarYEnabled:I,onScrollbarYEnabledChange:R,onCornerWidthChange:E,onCornerHeightChange:k},children:T.jsx(se,{...a,ref:z,__vars:{"--sa-corner-width":o!=="xy"?"0px":`${b}px`,"--sa-corner-height":o!=="xy"?"0px":`${v}px`}})})});RN.displayName="@mantine/core/ScrollAreaRoot";function MN(e,t){const n=e/t;return Number.isNaN(n)?0:n}function yh(e){const t=MN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function DN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function l4(e,[t,n]){return Math.min(n,Math.max(t,e))}function tk(e,t,n="ltr"){const r=yh(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=o-r,l=n==="ltr"?[0,a]:[a*-1,0],u=l4(e,l);return DN([0,a],[0,s])(u)}function u4(e,t,n,r="ltr"){const i=yh(n),o=i/2,a=t||o,s=i-a,l=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,c=n.content-n.viewport,d=r==="ltr"?[0,c]:[c*-1,0];return DN([l,u],d)(e)}function LN(e,t){return e>0&&e{e==null||e(r),(n===!1||!r.defaultPrevented)&&(t==null||t(r))}}const[c4,PN]=Uo("ScrollAreaScrollbar was not found in tree"),BN=S.forwardRef((e,t)=>{const{sizes:n,hasThumb:r,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:l,onWheelScroll:u,onResize:c,...d}=e,f=yr(),[p,h]=S.useState(null),m=Dn(t,R=>h(R)),y=S.useRef(null),b=S.useRef(""),{viewport:E}=f,v=n.content-n.viewport,k=ra(u),_=ra(s),x=Tc(c,10),I=R=>{if(y.current){const z=R.clientX-y.current.left,A=R.clientY-y.current.top;l({x:z,y:A})}};return S.useEffect(()=>{const R=z=>{const A=z.target;(p==null?void 0:p.contains(A))&&k(z,v)};return document.addEventListener("wheel",R,{passive:!1}),()=>document.removeEventListener("wheel",R,{passive:!1})},[E,p,v,k]),S.useEffect(_,[n,_]),nl(p,x),nl(f.content,x),T.jsx(c4,{value:{scrollbar:p,hasThumb:r,onThumbChange:ra(i),onThumbPointerUp:ra(o),onThumbPositionChange:_,onThumbPointerDown:ra(a)},children:T.jsx("div",{...d,ref:m,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:ya(e.onPointerDown,R=>{R.preventDefault(),R.button===0&&(R.target.setPointerCapture(R.pointerId),y.current=p.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",I(R))}),onPointerMove:ya(e.onPointerMove,I),onPointerUp:ya(e.onPointerUp,R=>{R.preventDefault();const z=R.target;z.hasPointerCapture(R.pointerId)&&z.releasePointerCapture(R.pointerId),document.body.style.webkitUserSelect=b.current,y.current=null})})})}),zN=S.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:i,...o}=e,a=yr(),[s,l]=S.useState(),u=S.useRef(null),c=Dn(t,u,a.onScrollbarXChange);return S.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),T.jsx(BN,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{...i,"--sa-thumb-width":`${yh(n)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(a.viewport){const p=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),LN(p,f)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Hf(s.paddingLeft),paddingEnd:Hf(s.paddingRight)}})}})});zN.displayName="@mantine/core/ScrollAreaScrollbarX";const FN=S.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:i,...o}=e,a=yr(),[s,l]=S.useState(),u=S.useRef(null),c=Dn(t,u,a.onScrollbarYChange);return S.useEffect(()=>{u.current&&l(window.getComputedStyle(u.current))},[]),T.jsx(BN,{...o,"data-orientation":"vertical",ref:c,sizes:n,style:{"--sa-thumb-height":`${yh(n)}px`,...i},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(a.viewport){const p=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),LN(p,f)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Hf(s.paddingTop),paddingEnd:Hf(s.paddingBottom)}})}})});FN.displayName="@mantine/core/ScrollAreaScrollbarY";const Eh=S.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,{dir:i}=Sc(),o=yr(),a=S.useRef(null),s=S.useRef(0),[l,u]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=MN(l.viewport,l.content),d={...r,sizes:l,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:p=>{a.current=p},onThumbPointerUp:()=>{s.current=0},onThumbPointerDown:p=>{s.current=p}},f=(p,h)=>u4(p,s.current,l,h);return n==="horizontal"?T.jsx(zN,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollLeft,h=tk(p,l,i);a.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=f(p,i))}}):n==="vertical"?T.jsx(FN,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const p=o.viewport.scrollTop,h=tk(p,l);l.scrollbar.size===0?a.current.style.opacity="0":a.current.style.opacity="1",a.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=f(p))}}):null});Eh.displayName="@mantine/core/ScrollAreaScrollbarVisible";const x1=S.forwardRef((e,t)=>{const n=yr(),{forceMount:r,...i}=e,[o,a]=S.useState(!1),s=e.orientation==="horizontal",l=Tc(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{forceMount:n,...r}=e,i=yr(),[o,a]=S.useState(!1);return S.useEffect(()=>{const{scrollArea:s}=i;let l=0;if(s){const u=()=>{window.clearTimeout(l),a(!0)},c=()=>{l=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",c)}}},[i.scrollArea,i.scrollHideDelay]),n||o?T.jsx(x1,{"data-state":o?"visible":"hidden",...r,ref:t}):null});HN.displayName="@mantine/core/ScrollAreaScrollbarHover";const d4=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=yr(),o=e.orientation==="horizontal",[a,s]=S.useState("hidden"),l=Tc(()=>s("idle"),100);return S.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,i.scrollHideDelay]),S.useEffect(()=>{const{viewport:u}=i,c=o?"scrollLeft":"scrollTop";if(u){let d=u[c];const f=()=>{const p=u[c];d!==p&&(s("scrolling"),l()),d=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[i.viewport,o,l]),n||a!=="hidden"?T.jsx(Eh,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ya(e.onPointerEnter,()=>s("interacting")),onPointerLeave:ya(e.onPointerLeave,()=>s("idle"))}):null}),lb=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=yr(),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s=e.orientation==="horizontal";return S.useEffect(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),i.type==="hover"?T.jsx(HN,{...r,ref:t,forceMount:n}):i.type==="scroll"?T.jsx(d4,{...r,ref:t,forceMount:n}):i.type==="auto"?T.jsx(x1,{...r,ref:t,forceMount:n}):i.type==="always"?T.jsx(Eh,{...r,ref:t}):null});lb.displayName="@mantine/core/ScrollAreaScrollbar";function f4(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)}const UN=S.forwardRef((e,t)=>{const{style:n,...r}=e,i=yr(),o=PN(),{onThumbPositionChange:a}=o,s=Dn(t,c=>o.onThumbChange(c)),l=S.useRef(),u=Tc(()=>{l.current&&(l.current(),l.current=void 0)},100);return S.useEffect(()=>{const{viewport:c}=i;if(c){const d=()=>{if(u(),!l.current){const f=f4(c,a);l.current=f,a()}};return a(),c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[i.viewport,u,a]),T.jsx("div",{"data-state":o.hasThumb?"visible":"hidden",...r,ref:s,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:ya(e.onPointerDownCapture,c=>{const f=c.target.getBoundingClientRect(),p=c.clientX-f.left,h=c.clientY-f.top;o.onThumbPointerDown({x:p,y:h})}),onPointerUp:ya(e.onPointerUp,o.onThumbPointerUp)})});UN.displayName="@mantine/core/ScrollAreaThumb";const ub=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=PN();return n||i.hasThumb?T.jsx(UN,{ref:t,...r}):null});ub.displayName="@mantine/core/ScrollAreaThumb";const jN=S.forwardRef(({children:e,style:t,...n},r)=>{const i=yr(),o=Dn(r,i.onViewportChange);return T.jsx(se,{...n,ref:o,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...t},children:T.jsx("div",{style:{minWidth:"100%",display:"table"},ref:i.onContentChange,children:e})})});jN.displayName="@mantine/core/ScrollAreaViewport";var S1={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const $N={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},p4=(e,{scrollbarSize:t})=>({root:{"--scrollarea-scrollbar-size":Y(t)}}),wc=fe((e,t)=>{const n=ie("ScrollArea",$N,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,scrollbarSize:l,vars:u,type:c,scrollHideDelay:d,viewportProps:f,viewportRef:p,onScrollPositionChange:h,children:m,offsetScrollbars:y,scrollbars:b,onBottomReached:E,onTopReached:v,...k}=n,[_,x]=S.useState(!1),I=Pe({name:"ScrollArea",props:n,classes:S1,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:u,varsResolver:p4});return T.jsxs(RN,{type:c==="never"?"always":c,scrollHideDelay:d,ref:t,scrollbars:b,...I("root"),...k,children:[T.jsx(jN,{...f,...I("viewport",{style:f==null?void 0:f.style}),ref:p,"data-offset-scrollbars":y===!0?"xy":y||void 0,"data-scrollbars":b||void 0,onScroll:R=>{var L;(L=f==null?void 0:f.onScroll)==null||L.call(f,R),h==null||h({x:R.currentTarget.scrollLeft,y:R.currentTarget.scrollTop});const{scrollTop:z,scrollHeight:A,clientHeight:j}=R.currentTarget;z-(A-j)>=0&&(E==null||E()),z===0&&(v==null||v())},children:m}),(b==="xy"||b==="x")&&T.jsx(lb,{...I("scrollbar"),orientation:"horizontal","data-hidden":c==="never"||void 0,forceMount:!0,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:T.jsx(ub,{...I("thumb")})}),(b==="xy"||b==="y")&&T.jsx(lb,{...I("scrollbar"),orientation:"vertical","data-hidden":c==="never"||void 0,forceMount:!0,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:T.jsx(ub,{...I("thumb")})}),T.jsx(a4,{...I("corner"),"data-hovered":_||void 0,"data-hidden":c==="never"||void 0})]})});wc.displayName="@mantine/core/ScrollArea";const w1=fe((e,t)=>{const{children:n,classNames:r,styles:i,scrollbarSize:o,scrollHideDelay:a,type:s,dir:l,offsetScrollbars:u,viewportRef:c,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,scrollbars:m,style:y,vars:b,onBottomReached:E,onTopReached:v,...k}=ie("ScrollAreaAutosize",$N,e);return T.jsx(se,{...k,ref:t,style:[{display:"flex",overflow:"auto"},y],children:T.jsx(se,{style:{display:"flex",flexDirection:"column",flex:1},children:T.jsx(wc,{classNames:r,styles:i,scrollHideDelay:a,scrollbarSize:o,type:s,dir:l,offsetScrollbars:u,viewportRef:c,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:h,vars:b,scrollbars:m,onBottomReached:E,onTopReached:v,children:n})})})});wc.classes=S1;w1.displayName="@mantine/core/ScrollAreaAutosize";w1.classes=S1;wc.Autosize=w1;var WN={root:"m_87cf2631"};const h4={__staticSelector:"UnstyledButton"},yl=br((e,t)=>{const n=ie("UnstyledButton",h4,e),{className:r,component:i="button",__staticSelector:o,unstyled:a,classNames:s,styles:l,style:u,...c}=n,d=Pe({name:o,props:n,classes:WN,className:r,style:u,classNames:s,styles:l,unstyled:a});return T.jsx(se,{...d("root",{focusable:!0}),component:i,ref:t,type:i==="button"?"button":void 0,...c})});yl.classes=WN;yl.displayName="@mantine/core/UnstyledButton";var VN={root:"m_515a97f8"};const m4={},_1=fe((e,t)=>{const n=ie("VisuallyHidden",m4,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,...u}=n,c=Pe({name:"VisuallyHidden",classes:VN,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s});return T.jsx(se,{component:"span",ref:t,...c("root"),...u})});_1.classes=VN;_1.displayName="@mantine/core/VisuallyHidden";var qN={root:"m_1b7284a3"};const g4={},b4=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:gr(t),"--paper-shadow":h1(n)}}),Pa=br((e,t)=>{const n=ie("Paper",g4,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,withBorder:l,vars:u,radius:c,shadow:d,variant:f,mod:p,...h}=n,m=Pe({name:"Paper",props:n,classes:qN,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:u,varsResolver:b4});return T.jsx(se,{ref:t,mod:[{"data-with-border":l},p],...m("root"),variant:f,...h})});Pa.classes=qN;Pa.displayName="@mantine/core/Paper";function vh(){return typeof window<"u"}function El(e){return YN(e)?(e.nodeName||"").toLowerCase():"#document"}function On(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ui(e){var t;return(t=(YN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function YN(e){return vh()?e instanceof Node||e instanceof On(e).Node:!1}function tt(e){return vh()?e instanceof Element||e instanceof On(e).Element:!1}function qn(e){return vh()?e instanceof HTMLElement||e instanceof On(e).HTMLElement:!1}function cb(e){return!vh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof On(e).ShadowRoot}function _c(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=mr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function y4(e){return["table","td","th"].includes(El(e))}function Th(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function C1(e){const t=kh(),n=tt(e)?mr(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function E4(e){let t=Ri(e);for(;qn(t)&&!Do(t);){if(C1(t))return t;if(Th(t))return null;t=Ri(t)}return null}function kh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Do(e){return["html","body","#document"].includes(El(e))}function mr(e){return On(e).getComputedStyle(e)}function xh(e){return tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ri(e){if(El(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cb(e)&&e.host||ui(e);return cb(t)?t.host:t}function KN(e){const t=Ri(e);return Do(t)?e.ownerDocument?e.ownerDocument.body:e.body:qn(t)&&_c(t)?t:KN(t)}function wi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=KN(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=On(i);if(o){const s=db(a);return t.concat(a,a.visualViewport||[],_c(i)?i:[],s&&n?wi(s):[])}return t.concat(i,wi(i,[],n))}function db(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nk(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Yu(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&cb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function GN(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function QN(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function v4(e){return x4()?!1:!rk()&&e.width===0&&e.height===0||rk()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function T4(){return/apple/i.test(navigator.vendor)}function rk(){const e=/android/i;return e.test(GN())||e.test(QN())}function k4(){return GN().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function x4(){return QN().includes("jsdom/")}function fb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function S4(e){return"nativeEvent"in e}function w4(e){return e.matches("html,body")}function ca(e){return(e==null?void 0:e.ownerDocument)||document}function og(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ps(e){return"composedPath"in e?e.composedPath()[0]:e.target}const _4="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function C4(e){return qn(e)&&e.matches(_4)}const Pr=Math.min,nn=Math.max,Uf=Math.round,hd=Math.floor,ri=e=>({x:e,y:e}),N4={left:"right",right:"left",bottom:"top",top:"bottom"},A4={start:"end",end:"start"};function pb(e,t,n){return nn(e,Pr(t,n))}function Mi(e,t){return typeof e=="function"?e(t):e}function Br(e){return e.split("-")[0]}function vl(e){return e.split("-")[1]}function N1(e){return e==="x"?"y":"x"}function A1(e){return e==="y"?"height":"width"}function Di(e){return["top","bottom"].includes(Br(e))?"y":"x"}function O1(e){return N1(Di(e))}function O4(e,t,n){n===void 0&&(n=!1);const r=vl(e),i=O1(e),o=A1(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=jf(a)),[a,jf(a)]}function I4(e){const t=jf(e);return[hb(e),t,hb(t)]}function hb(e){return e.replace(/start|end/g,t=>A4[t])}function R4(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function M4(e,t,n,r){const i=vl(e);let o=R4(Br(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(hb)))),o}function jf(e){return e.replace(/left|right|bottom|top/g,t=>N4[t])}function D4(e){return{top:0,right:0,bottom:0,left:0,...e}}function I1(e){return typeof e!="number"?D4(e):{top:e,right:e,bottom:e,left:e}}function rl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ik(e,t,n){let{reference:r,floating:i}=e;const o=Di(t),a=O1(t),s=A1(a),l=Br(t),u=o==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(vl(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1);break}return p}const L4=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=ik(u,r,l),f=r,p={},h=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Mi(e,t)||{};if(u==null)return{};const d=I1(c),f={x:n,y:r},p=O1(i),h=A1(p),m=await a.getDimensions(u),y=p==="y",b=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",k=o.reference[h]+o.reference[p]-f[p]-o.floating[h],_=f[p]-o.reference[p],x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let I=x?x[v]:0;(!I||!await(a.isElement==null?void 0:a.isElement(x)))&&(I=s.floating[v]||o.floating[h]);const R=k/2-_/2,z=I/2-m[h]/2-1,A=Pr(d[b],z),j=Pr(d[E],z),L=A,U=I-m[h]-j,V=I/2-m[h]/2+R,H=pb(L,V,U),B=!l.arrow&&vl(i)!=null&&V!==H&&o.reference[h]/2-(VV<=0)){var j,L;const V=(((j=o.flip)==null?void 0:j.index)||0)+1,H=I[V];if(H)return{data:{index:V,overflows:A},reset:{placement:H}};let B=(L=A.filter(M=>M.overflows[0]<=0).sort((M,N)=>M.overflows[1]-N.overflows[1])[0])==null?void 0:L.placement;if(!B)switch(p){case"bestFit":{var U;const M=(U=A.filter(N=>{if(x){const F=Di(N.placement);return F===E||F==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(F=>F>0).reduce((F,w)=>F+w,0)]).sort((N,F)=>N[1]-F[1])[0])==null?void 0:U[0];M&&(B=M);break}case"initialPlacement":B=s;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function XN(e){const t=Pr(...e.map(o=>o.left)),n=Pr(...e.map(o=>o.top)),r=nn(...e.map(o=>o.right)),i=nn(...e.map(o=>o.bottom));return{x:t,y:n,width:r-t,height:i-n}}function z4(e){const t=e.slice().sort((i,o)=>i.y-o.y),n=[];let r=null;for(let i=0;ir.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(i=>rl(XN(i)))}const F4=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:i,platform:o,strategy:a}=t,{padding:s=2,x:l,y:u}=Mi(e,t),c=Array.from(await(o.getClientRects==null?void 0:o.getClientRects(r.reference))||[]),d=z4(c),f=rl(XN(c)),p=I1(s);function h(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&u!=null)return d.find(y=>l>y.left-p.left&&ly.top-p.top&&u=2){if(Di(n)==="y"){const A=d[0],j=d[d.length-1],L=Br(n)==="top",U=A.top,V=j.bottom,H=L?A.left:j.left,B=L?A.right:j.right,M=B-H,N=V-U;return{top:U,bottom:V,left:H,right:B,width:M,height:N,x:H,y:U}}const y=Br(n)==="left",b=nn(...d.map(A=>A.right)),E=Pr(...d.map(A=>A.left)),v=d.filter(A=>y?A.left===E:A.right===b),k=v[0].top,_=v[v.length-1].bottom,x=E,I=b,R=I-x,z=_-k;return{top:k,bottom:_,left:x,right:I,width:R,height:z,x,y:k}}return f}const m=await o.getElementRects({reference:{getBoundingClientRect:h},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}};async function H4(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Br(n),s=vl(n),l=Di(n)==="y",u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=Mi(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}const U4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await H4(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},j4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:y=>{let{x:b,y:E}=y;return{x:b,y:E}}},...l}=Mi(e,t),u={x:n,y:r},c=await R1(t,l),d=Di(Br(i)),f=N1(d);let p=u[f],h=u[d];if(o){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",E=p+c[y],v=p-c[b];p=pb(E,p,v)}if(a){const y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",E=h+c[y],v=h-c[b];h=pb(E,h,v)}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:o,[d]:a}}}}}},$4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Mi(e,t),c={x:n,y:r},d=Di(i),f=N1(d);let p=c[f],h=c[d];const m=Mi(s,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const v=f==="y"?"height":"width",k=o.reference[f]-o.floating[v]+y.mainAxis,_=o.reference[f]+o.reference[v]-y.mainAxis;p_&&(p=_)}if(u){var b,E;const v=f==="y"?"width":"height",k=["top","left"].includes(Br(i)),_=o.reference[d]-o.floating[v]+(k&&((b=a.offset)==null?void 0:b[d])||0)+(k?0:y.crossAxis),x=o.reference[d]+o.reference[v]+(k?0:((E=a.offset)==null?void 0:E[d])||0)-(k?y.crossAxis:0);h<_?h=_:h>x&&(h=x)}return{[f]:p,[d]:h}}}},W4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...u}=Mi(e,t),c=await R1(t,u),d=Br(i),f=vl(i),p=Di(i)==="y",{width:h,height:m}=o.floating;let y,b;d==="top"||d==="bottom"?(y=d,b=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,y=f==="end"?"top":"bottom");const E=m-c.top-c.bottom,v=h-c.left-c.right,k=Pr(m-c[y],E),_=Pr(h-c[b],v),x=!t.middlewareData.shift;let I=k,R=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=E),x&&!f){const A=nn(c.left,0),j=nn(c.right,0),L=nn(c.top,0),U=nn(c.bottom,0);p?R=h-2*(A!==0||j!==0?A+j:nn(c.left,c.right)):I=m-2*(L!==0||U!==0?L+U:nn(c.top,c.bottom))}await l({...t,availableWidth:R,availableHeight:I});const z=await a.getDimensions(s.floating);return h!==z.width||m!==z.height?{reset:{rects:!0}}:{}}}};function JN(e){const t=mr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=qn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Uf(n)!==o||Uf(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function M1(e){return tt(e)?e:e.contextElement}function js(e){const t=M1(e);if(!qn(t))return ri(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=JN(t);let a=(o?Uf(n.width):n.width)/r,s=(o?Uf(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const V4=ri(0);function ZN(e){const t=On(e);return!kh()||!t.visualViewport?V4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function q4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==On(e)?!1:t}function Ba(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=M1(e);let a=ri(1);t&&(r?tt(r)&&(a=js(r)):a=js(e));const s=q4(o,n,r)?ZN(o):ri(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const f=On(o),p=r&&tt(r)?On(r):r;let h=f,m=db(h);for(;m&&r&&p!==h;){const y=js(m),b=m.getBoundingClientRect(),E=mr(m),v=b.left+(m.clientLeft+parseFloat(E.paddingLeft))*y.x,k=b.top+(m.clientTop+parseFloat(E.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,d*=y.y,l+=v,u+=k,h=On(m),m=db(h)}}return rl({width:c,height:d,x:l,y:u})}function D1(e,t){const n=xh(e).scrollLeft;return t?t.left+n:Ba(ui(e)).left+n}function e2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:D1(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Y4(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=ui(r),s=t?Th(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=ri(1);const c=ri(0),d=qn(r);if((d||!d&&!o)&&((El(r)!=="body"||_c(a))&&(l=xh(r)),qn(r))){const p=Ba(r);u=js(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const f=a&&!d&&!o?e2(a,l,!0):ri(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function K4(e){return Array.from(e.getClientRects())}function G4(e){const t=ui(e),n=xh(e),r=e.ownerDocument.body,i=nn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=nn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+D1(e);const s=-n.scrollTop;return mr(r).direction==="rtl"&&(a+=nn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function Q4(e,t){const n=On(e),r=ui(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=kh();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function X4(e,t){const n=Ba(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=qn(e)?js(e):ri(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function ok(e,t,n){let r;if(t==="viewport")r=Q4(e,n);else if(t==="document")r=G4(ui(e));else if(tt(t))r=X4(t,n);else{const i=ZN(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return rl(r)}function t2(e,t){const n=Ri(e);return n===t||!tt(n)||Do(n)?!1:mr(n).position==="fixed"||t2(n,t)}function J4(e,t){const n=t.get(e);if(n)return n;let r=wi(e,[],!1).filter(s=>tt(s)&&El(s)!=="body"),i=null;const o=mr(e).position==="fixed";let a=o?Ri(e):e;for(;tt(a)&&!Do(a);){const s=mr(a),l=C1(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||_c(a)&&!l&&t2(e,a))?r=r.filter(c=>c!==a):i=s,a=Ri(a)}return t.set(e,r),r}function Z4(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Th(t)?[]:J4(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,c)=>{const d=ok(t,c,i);return u.top=nn(d.top,u.top),u.right=Pr(d.right,u.right),u.bottom=Pr(d.bottom,u.bottom),u.left=nn(d.left,u.left),u},ok(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function e5(e){const{width:t,height:n}=JN(e);return{width:t,height:n}}function t5(e,t,n){const r=qn(t),i=ui(t),o=n==="fixed",a=Ba(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=ri(0);if(r||!r&&!o)if((El(t)!=="body"||_c(i))&&(s=xh(t)),r){const f=Ba(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&(l.x=D1(i));const u=i&&!r&&!o?e2(i,s):ri(0),c=a.left+s.scrollLeft-l.x-u.x,d=a.top+s.scrollTop-l.y-u.y;return{x:c,y:d,width:a.width,height:a.height}}function ag(e){return mr(e).position==="static"}function ak(e,t){if(!qn(e)||mr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ui(e)===n&&(n=n.ownerDocument.body),n}function n2(e,t){const n=On(e);if(Th(e))return n;if(!qn(e)){let i=Ri(e);for(;i&&!Do(i);){if(tt(i)&&!ag(i))return i;i=Ri(i)}return n}let r=ak(e,t);for(;r&&y4(r)&&ag(r);)r=ak(r,t);return r&&Do(r)&&ag(r)&&!C1(r)?n:r||E4(e)||n}const n5=async function(e){const t=this.getOffsetParent||n2,n=this.getDimensions,r=await n(e.floating);return{reference:t5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function r5(e){return mr(e).direction==="rtl"}const i5={convertOffsetParentRelativeRectToViewportRelativeRect:Y4,getDocumentElement:ui,getClippingRect:Z4,getOffsetParent:n2,getElementRects:n5,getClientRects:K4,getDimensions:e5,getScale:js,isElement:tt,isRTL:r5};function o5(e,t){let n=null,r;const i=ui(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p=hd(c),h=hd(i.clientWidth-(u+d)),m=hd(i.clientHeight-(c+f)),y=hd(u),E={rootMargin:-p+"px "+-h+"px "+-m+"px "+-y+"px",threshold:nn(0,Pr(1,l))||1};let v=!0;function k(_){const x=_[0].intersectionRatio;if(x!==l){if(!v)return a();x?a(!1,x):r=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(k,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,E)}n.observe(e)}return a(!0),o}function a5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=M1(e),c=i||o?[...u?wi(u):[],...wi(t)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const d=u&&s?o5(u,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(b=>{let[E]=b;E&&E.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let h,m=l?Ba(e):null;l&&y();function y(){const b=Ba(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&n(),m=b,h=requestAnimationFrame(y)}return n(),()=>{var b;c.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const s5=U4,l5=j4,u5=B4,c5=W4,sk=P4,d5=F4,f5=$4,p5=(e,t,n)=>{const r=new Map,i={platform:i5,...n},o={...i.platform,_c:r};return L4(e,t,{...i,platform:o})};var tf=typeof document<"u"?S.useLayoutEffect:S.useEffect;function $f(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!$f(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!$f(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function r2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lk(e,t){const n=r2(e);return Math.round(t*n)/n}function sg(e){const t=S.useRef(e);return tf(()=>{t.current=e}),t}function h5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=S.useState(r);$f(f,r)||p(r);const[h,m]=S.useState(null),[y,b]=S.useState(null),E=S.useCallback(N=>{N!==x.current&&(x.current=N,m(N))},[]),v=S.useCallback(N=>{N!==I.current&&(I.current=N,b(N))},[]),k=o||h,_=a||y,x=S.useRef(null),I=S.useRef(null),R=S.useRef(c),z=l!=null,A=sg(l),j=sg(i),L=sg(u),U=S.useCallback(()=>{if(!x.current||!I.current)return;const N={placement:t,strategy:n,middleware:f};j.current&&(N.platform=j.current),p5(x.current,I.current,N).then(F=>{const w={...F,isPositioned:L.current!==!1};V.current&&!$f(R.current,w)&&(R.current=w,fh.flushSync(()=>{d(w)}))})},[f,t,n,j,L]);tf(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(N=>({...N,isPositioned:!1})))},[u]);const V=S.useRef(!1);tf(()=>(V.current=!0,()=>{V.current=!1}),[]),tf(()=>{if(k&&(x.current=k),_&&(I.current=_),k&&_){if(A.current)return A.current(k,_,U);U()}},[k,_,U,A,z]);const H=S.useMemo(()=>({reference:x,floating:I,setReference:E,setFloating:v}),[E,v]),B=S.useMemo(()=>({reference:k,floating:_}),[k,_]),M=S.useMemo(()=>{const N={position:n,left:0,top:0};if(!B.floating)return N;const F=lk(B.floating,c.x),w=lk(B.floating,c.y);return s?{...N,transform:"translate("+F+"px, "+w+"px)",...r2(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:w}},[n,s,B.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:U,refs:H,elements:B,floatingStyles:M}),[c,U,H,B,M])}const m5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?sk({element:r.current,padding:i}).fn(n):{}:r?sk({element:r,padding:i}).fn(n):{}}}},i2=(e,t)=>({...s5(e),options:[e,t]}),L1=(e,t)=>({...l5(e),options:[e,t]}),uk=(e,t)=>({...f5(e),options:[e,t]}),mb=(e,t)=>({...u5(e),options:[e,t]}),g5=(e,t)=>({...c5(e),options:[e,t]}),gb=(e,t)=>({...d5(e),options:[e,t]}),o2=(e,t)=>({...m5(e),options:[e,t]}),a2={...NM},b5=a2.useInsertionEffect,y5=b5||(e=>e());function so(e){const t=S.useRef(()=>{});return y5(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i"floating-ui-"+Math.random().toString(36).slice(2,6)+E5++;function v5(){const[e,t]=S.useState(()=>ck?dk():void 0);return ii(()=>{e==null&&t(dk())},[]),S.useEffect(()=>{ck=!0},[]),e}const T5=a2.useId,s2=T5||v5;function k5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const x5=S.createContext(null),S5=S.createContext(null),P1=()=>{var e;return((e=S.useContext(x5))==null?void 0:e.id)||null},B1=()=>S.useContext(S5);function z1(e){return"data-floating-ui-"+e}function lg(e){const t=S.useRef(e);return ii(()=>{t.current=e}),t}const fk=z1("safe-polygon");function nf(e,t,n){return n&&!fb(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function w5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:u=null,mouseOnly:c=!1,restMs:d=0,move:f=!0}=t,p=B1(),h=P1(),m=lg(u),y=lg(l),b=lg(n),E=S.useRef(),v=S.useRef(-1),k=S.useRef(),_=S.useRef(-1),x=S.useRef(!0),I=S.useRef(!1),R=S.useRef(()=>{}),z=S.useRef(!1),A=S.useCallback(()=>{var B;const M=(B=i.current.openEvent)==null?void 0:B.type;return(M==null?void 0:M.includes("mouse"))&&M!=="mousedown"},[i]);S.useEffect(()=>{if(!s)return;function B(M){let{open:N}=M;N||(clearTimeout(v.current),clearTimeout(_.current),x.current=!0,z.current=!1)}return o.on("openchange",B),()=>{o.off("openchange",B)}},[s,o]),S.useEffect(()=>{if(!s||!m.current||!n)return;function B(N){A()&&r(!1,N,"hover")}const M=ca(a.floating).documentElement;return M.addEventListener("mouseleave",B),()=>{M.removeEventListener("mouseleave",B)}},[a.floating,n,r,s,m,A]);const j=S.useCallback(function(B,M,N){M===void 0&&(M=!0),N===void 0&&(N="hover");const F=nf(y.current,"close",E.current);F&&!k.current?(clearTimeout(v.current),v.current=window.setTimeout(()=>r(!1,B,N),F)):M&&(clearTimeout(v.current),r(!1,B,N))},[y,r]),L=so(()=>{R.current(),k.current=void 0}),U=so(()=>{if(I.current){const B=ca(a.floating).body;B.style.pointerEvents="",B.removeAttribute(fk),I.current=!1}});S.useEffect(()=>{if(!s)return;function B(){return i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1}function M(q){if(clearTimeout(v.current),x.current=!1,c&&!fb(E.current)||d>0&&!nf(y.current,"open"))return;const X=nf(y.current,"open",E.current);X?v.current=window.setTimeout(()=>{b.current||r(!0,q,"hover")},X):r(!0,q,"hover")}function N(q){if(B())return;R.current();const X=ca(a.floating);if(clearTimeout(_.current),z.current=!1,m.current&&i.current.floatingContext){n||clearTimeout(v.current),k.current=m.current({...i.current.floatingContext,tree:p,x:q.clientX,y:q.clientY,onClose(){U(),L(),j(q,!0,"safe-polygon")}});const be=k.current;X.addEventListener("mousemove",be),R.current=()=>{X.removeEventListener("mousemove",be)};return}(E.current==="touch"?!Yu(a.floating,q.relatedTarget):!0)&&j(q)}function F(q){B()||i.current.floatingContext&&(m.current==null||m.current({...i.current.floatingContext,tree:p,x:q.clientX,y:q.clientY,onClose(){U(),L(),j(q)}})(q))}if(tt(a.domReference)){var w;const q=a.domReference;return n&&q.addEventListener("mouseleave",F),(w=a.floating)==null||w.addEventListener("mouseleave",F),f&&q.addEventListener("mousemove",M,{once:!0}),q.addEventListener("mouseenter",M),q.addEventListener("mouseleave",N),()=>{var X;n&&q.removeEventListener("mouseleave",F),(X=a.floating)==null||X.removeEventListener("mouseleave",F),f&&q.removeEventListener("mousemove",M),q.removeEventListener("mouseenter",M),q.removeEventListener("mouseleave",N)}}},[a,s,e,c,d,f,j,L,U,r,n,b,p,y,m,i]),ii(()=>{var B;if(s&&n&&(B=m.current)!=null&&B.__options.blockPointerEvents&&A()){I.current=!0;const N=a.floating;if(tt(a.domReference)&&N){var M;const F=ca(a.floating).body;F.setAttribute(fk,"");const w=a.domReference,q=p==null||(M=p.nodesRef.current.find(X=>X.id===h))==null||(M=M.context)==null?void 0:M.elements.floating;return q&&(q.style.pointerEvents=""),F.style.pointerEvents="none",w.style.pointerEvents="auto",N.style.pointerEvents="auto",()=>{F.style.pointerEvents="",w.style.pointerEvents="",N.style.pointerEvents=""}}}},[s,n,h,a,p,m,A]),ii(()=>{n||(E.current=void 0,z.current=!1,L(),U())},[n,L,U]),S.useEffect(()=>()=>{L(),clearTimeout(v.current),clearTimeout(_.current),U()},[s,a.domReference,L,U]);const V=S.useMemo(()=>{function B(M){E.current=M.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(M){const{nativeEvent:N}=M;function F(){!x.current&&!b.current&&r(!0,N,"hover")}c&&!fb(E.current)||n||d===0||z.current&&M.movementX**2+M.movementY**2<2||(clearTimeout(_.current),E.current==="touch"?F():(z.current=!0,_.current=window.setTimeout(F,d)))}}},[c,r,n,b,d]),H=S.useMemo(()=>({onMouseEnter(){clearTimeout(v.current)},onMouseLeave(B){j(B.nativeEvent,!1)}}),[j]);return S.useMemo(()=>s?{reference:V,floating:H}:{},[s,V,H])}const bb=()=>{},l2=S.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:bb,setState:bb,isInstantPhase:!1}),u2=()=>S.useContext(l2);function _5(e){const{children:t,delay:n,timeoutMs:r=0}=e,[i,o]=S.useReducer((l,u)=>({...l,...u}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),a=S.useRef(null),s=S.useCallback(l=>{o({currentId:l})},[]);return ii(()=>{i.currentId?a.current===null?a.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),a.current=null)},[i.currentId,i.isInstantPhase]),S.createElement(l2.Provider,{value:S.useMemo(()=>({...i,setState:o,setCurrentId:s}),[i,s])},t)}function C5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:i}=e,{id:o,enabled:a=!0}=t,s=o??i,l=u2(),{currentId:u,setCurrentId:c,initialDelay:d,setState:f,timeoutMs:p}=l;return ii(()=>{a&&u&&(f({delay:{open:1,close:nf(d,"close")}}),u!==s&&r(!1))},[a,s,r,f,u,d]),ii(()=>{function h(){r(!1),f({delay:d,currentId:null})}if(a&&u&&!n&&u===s){if(p){const m=window.setTimeout(h,p);return()=>{clearTimeout(m)}}h()}},[a,n,f,u,s,r,d,p]),ii(()=>{a&&(c===bb||!n||c(s))},[a,n,c,s]),l}function ug(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var s;return i.parentId===a.id&&((s=i.context)==null?void 0:s.open)})}),n=n.concat(r);return n}const N5="data-floating-ui-focusable",A5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},O5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},pk=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function I5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:h}=t,m=B1(),y=so(typeof l=="function"?l:()=>!1),b=typeof l=="function"?y:l,E=S.useRef(!1),v=S.useRef(!1),{escapeKey:k,outsidePress:_}=pk(p),{escapeKey:x,outsidePress:I}=pk(h),R=S.useRef(!1),z=so(H=>{var B;if(!n||!a||!s||H.key!=="Escape"||R.current)return;const M=(B=o.current.floatingContext)==null?void 0:B.nodeId,N=m?ug(m.nodesRef.current,M):[];if(!k&&(H.stopPropagation(),N.length>0)){let F=!0;if(N.forEach(w=>{var q;if((q=w.context)!=null&&q.open&&!w.context.dataRef.current.__escapeKeyBubbles){F=!1;return}}),!F)return}r(!1,S4(H)?H.nativeEvent:H,"escape-key")}),A=so(H=>{var B;const M=()=>{var N;z(H),(N=ps(H))==null||N.removeEventListener("keydown",M)};(B=ps(H))==null||B.addEventListener("keydown",M)}),j=so(H=>{var B;const M=E.current;E.current=!1;const N=v.current;if(v.current=!1,u==="click"&&N||M||typeof b=="function"&&!b(H))return;const F=ps(H),w="["+z1("inert")+"]",q=ca(i.floating).querySelectorAll(w);let X=tt(F)?F:null;for(;X&&!Do(X);){const le=Ri(X);if(Do(le)||!tt(le))break;X=le}if(q.length&&tt(F)&&!w4(F)&&!Yu(F,i.floating)&&Array.from(q).every(le=>!Yu(X,le)))return;if(qn(F)&&V){const le=F.clientWidth>0&&F.scrollWidth>F.clientWidth,Ce=F.clientHeight>0&&F.scrollHeight>F.clientHeight;let Ie=Ce&&H.offsetX>F.clientWidth;if(Ce&&mr(F).direction==="rtl"&&(Ie=H.offsetX<=F.offsetWidth-F.clientWidth),Ie||le&&H.offsetY>F.clientHeight)return}const D=(B=o.current.floatingContext)==null?void 0:B.nodeId,be=m&&ug(m.nodesRef.current,D).some(le=>{var Ce;return og(H,(Ce=le.context)==null?void 0:Ce.elements.floating)});if(og(H,i.floating)||og(H,i.domReference)||be)return;const ge=m?ug(m.nodesRef.current,D):[];if(ge.length>0){let le=!0;if(ge.forEach(Ce=>{var Ie;if((Ie=Ce.context)!=null&&Ie.open&&!Ce.context.dataRef.current.__outsidePressBubbles){le=!1;return}}),!le)return}r(!1,H,"outside-press")}),L=so(H=>{var B;const M=()=>{var N;j(H),(N=ps(H))==null||N.removeEventListener(u,M)};(B=ps(H))==null||B.addEventListener(u,M)});S.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=k,o.current.__outsidePressBubbles=_;let H=-1;function B(q){r(!1,q,"ancestor-scroll")}function M(){window.clearTimeout(H),R.current=!0}function N(){H=window.setTimeout(()=>{R.current=!1},kh()?5:0)}const F=ca(i.floating);s&&(F.addEventListener("keydown",x?A:z,x),F.addEventListener("compositionstart",M),F.addEventListener("compositionend",N)),b&&F.addEventListener(u,I?L:j,I);let w=[];return f&&(tt(i.domReference)&&(w=wi(i.domReference)),tt(i.floating)&&(w=w.concat(wi(i.floating))),!tt(i.reference)&&i.reference&&i.reference.contextElement&&(w=w.concat(wi(i.reference.contextElement)))),w=w.filter(q=>{var X;return q!==((X=F.defaultView)==null?void 0:X.visualViewport)}),w.forEach(q=>{q.addEventListener("scroll",B,{passive:!0})}),()=>{s&&(F.removeEventListener("keydown",x?A:z,x),F.removeEventListener("compositionstart",M),F.removeEventListener("compositionend",N)),b&&F.removeEventListener(u,I?L:j,I),w.forEach(q=>{q.removeEventListener("scroll",B)}),window.clearTimeout(H)}},[o,i,s,b,u,n,r,f,a,k,_,z,x,A,j,I,L]),S.useEffect(()=>{E.current=!1},[b,u]);const U=S.useMemo(()=>({onKeyDown:z,[A5[d]]:H=>{c&&r(!1,H.nativeEvent,"reference-press")}}),[z,r,c,d]),V=S.useMemo(()=>({onKeyDown:z,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[O5[u]]:()=>{E.current=!0}}),[z,u]);return S.useMemo(()=>a?{reference:U,floating:V}:{},[a,U,V])}function R5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=s2(),o=S.useRef({}),[a]=S.useState(()=>k5()),s=P1()!=null,[l,u]=S.useState(r.reference),c=so((p,h,m)=>{o.current.openEvent=p?h:void 0,a.emit("openchange",{open:p,event:h,reason:m,nested:s}),n==null||n(p,h,m)}),d=S.useMemo(()=>({setPositionReference:u}),[]),f=S.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return S.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:f,events:a,floatingId:i,refs:d}),[t,c,f,a,i,d])}function F1(e){e===void 0&&(e={});const{nodeId:t}=e,n=R5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=S.useState(null),[s,l]=S.useState(null),c=(i==null?void 0:i.domReference)||o,d=S.useRef(null),f=B1();ii(()=>{c&&(d.current=c)},[c]);const p=h5({...e,elements:{...i,...s&&{reference:s}}}),h=S.useCallback(v=>{const k=tt(v)?{getBoundingClientRect:()=>v.getBoundingClientRect(),contextElement:v}:v;l(k),p.refs.setReference(k)},[p.refs]),m=S.useCallback(v=>{(tt(v)||v===null)&&(d.current=v,a(v)),(tt(p.refs.reference.current)||p.refs.reference.current===null||v!==null&&!tt(v))&&p.refs.setReference(v)},[p.refs]),y=S.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d}),[p.refs,m,h]),b=S.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),E=S.useMemo(()=>({...p,...r,refs:y,elements:b,nodeId:t}),[p,y,b,t,r]);return ii(()=>{r.dataRef.current.floatingContext=E;const v=f==null?void 0:f.nodesRef.current.find(k=>k.id===t);v&&(v.context=E)}),S.useMemo(()=>({...p,context:E,refs:y,elements:b}),[p,y,b,E])}function M5(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,u=S.useRef(!1),c=S.useRef(),d=S.useRef(!0);S.useEffect(()=>{if(!s)return;const p=On(a.domReference);function h(){!n&&qn(a.domReference)&&a.domReference===nk(ca(a.domReference))&&(u.current=!0)}function m(){d.current=!0}return p.addEventListener("blur",h),p.addEventListener("keydown",m,!0),()=>{p.removeEventListener("blur",h),p.removeEventListener("keydown",m,!0)}},[a.domReference,n,s]),S.useEffect(()=>{if(!s)return;function p(h){let{reason:m}=h;(m==="reference-press"||m==="escape-key")&&(u.current=!0)}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,s]),S.useEffect(()=>()=>{clearTimeout(c.current)},[]);const f=S.useMemo(()=>({onPointerDown(p){v4(p.nativeEvent)||(d.current=!1)},onMouseLeave(){u.current=!1},onFocus(p){if(u.current)return;const h=ps(p.nativeEvent);if(l&&tt(h))try{if(T4()&&k4())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!d.current&&!C4(h))return}r(!0,p.nativeEvent,"focus")},onBlur(p){u.current=!1;const h=p.relatedTarget,m=p.nativeEvent,y=tt(h)&&h.hasAttribute(z1("focus-guard"))&&h.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var b;const E=nk(a.domReference?a.domReference.ownerDocument:document);!h&&E===a.domReference||Yu((b=o.current.floatingContext)==null?void 0:b.refs.floating.current,E)||Yu(a.domReference,E)||y||r(!1,m,"focus")})}}),[o,a.domReference,r,l]);return S.useMemo(()=>s?{reference:f}:{},[s,f])}const hk="active",mk="selected";function cg(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[hk]:a,[mk]:s,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[N5]:""},...o,...t.map(a=>{const s=a?a[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((a,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(i&&[hk,mk].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),a[u]=function(){for(var f,p=arguments.length,h=new Array(p),m=0;my(...h)).find(y=>y!==void 0)}}}else a[u]=c}),a),{})}}function D5(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=S.useCallback(s=>cg(s,e,"reference"),t),o=S.useCallback(s=>cg(s,e,"floating"),n),a=S.useCallback(s=>cg(s,e,"item"),r);return S.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const L5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function P5(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,s=(n=L5.get(a))!=null?n:a,l=s2(),c=P1()!=null,d=S.useMemo(()=>s==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:l},...s==="menu"&&c&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[s,i,c,r,l,a]),f=S.useMemo(()=>{const h={id:i,...s&&{role:s}};return s==="tooltip"||a==="label"?h:{...h,...s==="menu"&&{"aria-labelledby":l}}},[s,i,l,a]),p=S.useCallback(h=>{let{active:m,selected:y}=h;const b={role:"option",...m&&{id:i+"-option"}};switch(a){case"select":return{...b,"aria-selected":m&&y};case"combobox":return{...b,...m&&{"aria-selected":!0}}}return{}},[i,a]);return S.useMemo(()=>o?{reference:d,floating:f,item:p}:{},[o,d,f,p])}function c2(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),i=n==="right"?"left":"right";return r===void 0?i:`${i}-${r}`}return t}function gk(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function bk(e,t,n,r,i){return e==="center"||r==="center"?{left:t}:e==="end"?{[i==="ltr"?"right":"left"]:n}:e==="start"?{[i==="ltr"?"left":"right"]:n}:{}}const B5={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function z5({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:o,arrowY:a,dir:s}){const[l,u="center"]=e.split("-"),c={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[B5[l]]:r},d=-t/2;return l==="left"?{...c,...gk(u,a,n,i),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent"}:l==="right"?{...c,...gk(u,a,n,i),left:d,borderRightColor:"transparent",borderTopColor:"transparent"}:l==="top"?{...c,...bk(u,o,n,i,s),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent"}:l==="bottom"?{...c,...bk(u,o,n,i,s),top:d,borderBottomColor:"transparent",borderRightColor:"transparent"}:{}}const H1=S.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:o,arrowX:a,arrowY:s,style:l,...u},c)=>{const{dir:d}=Sc();return o?T.jsx("div",{...u,ref:c,style:{...l,...z5({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:d,arrowX:a,arrowY:s})}}):null});H1.displayName="@mantine/core/FloatingArrow";const[F5,d2]=Uo("Popover component was not found in the tree");function Sh({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const i=zP(t),o=Dn(i,r);return Va(e)?S.cloneElement(e,{[n]:o}):e}function f2(e){return T.jsx(_1,{tabIndex:-1,"data-autofocus":!0,...e})}Sh.displayName="@mantine/core/FocusTrap";f2.displayName="@mantine/core/FocusTrapInitialFocus";Sh.InitialFocus=f2;function H5(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}const U5={},p2=S.forwardRef((e,t)=>{const{children:n,target:r,...i}=ie("Portal",U5,e),[o,a]=S.useState(!1),s=S.useRef(null);return bl(()=>(a(!0),s.current=r?typeof r=="string"?document.querySelector(r):r:H5(i),yN(t,s.current),!r&&s.current&&document.body.appendChild(s.current),()=>{!r&&s.current&&document.body.removeChild(s.current)}),[r]),!o||!s.current?null:fh.createPortal(T.jsx(T.Fragment,{children:n}),s.current)});p2.displayName="@mantine/core/Portal";function Cc({withinPortal:e=!0,children:t,...n}){return e?T.jsx(p2,{...n,children:t}):T.jsx(T.Fragment,{children:t})}Cc.displayName="@mantine/core/OptionalPortal";const jl=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${Y(e==="bottom"?10:-10)})`},transitionProperty:"transform, opacity"}),md={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${Y(30)}`},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:`translateY(${Y(-30)}`},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${Y(30)}`},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:`translateX(${Y(-30)}`},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${Y(-20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:`translateY(${Y(20)}) skew(-10deg, -5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${Y(20)}) rotate(-5deg)`},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:`translateY(${Y(20)}) rotate(5deg)`},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...jl("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...jl("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...jl("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...jl("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...jl("top"),common:{transformOrigin:"top right"}}},yk={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function j5({transition:e,state:t,duration:n,timingFunction:r}){const i={transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in md?{transitionProperty:md[e].transitionProperty,...i,...md[e].common,...md[e][yk[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[yk[t]]}}function $5({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:o,onEntered:a,onExited:s,enterDelay:l,exitDelay:u}){const c=li(),d=EN(),f=c.respectReducedMotion?d:!1,[p,h]=S.useState(f?0:e),[m,y]=S.useState(r?"entered":"exited"),b=S.useRef(-1),E=S.useRef(-1),v=S.useRef(-1),k=x=>{const I=x?i:o,R=x?a:s;window.clearTimeout(b.current);const z=f?0:x?e:t;h(z),z===0?(typeof I=="function"&&I(),typeof R=="function"&&R(),y(x?"entered":"exited")):v.current=requestAnimationFrame(()=>{rN.flushSync(()=>{y(x?"pre-entering":"pre-exiting")}),v.current=requestAnimationFrame(()=>{typeof I=="function"&&I(),y(x?"entering":"exiting"),b.current=window.setTimeout(()=>{typeof R=="function"&&R(),y(x?"entered":"exited")},z)})})},_=x=>{if(window.clearTimeout(E.current),typeof(x?l:u)!="number"){k(x);return}E.current=window.setTimeout(()=>{k(x)},x?l:u)};return Da(()=>{_(r)},[r]),S.useEffect(()=>()=>{window.clearTimeout(b.current),cancelAnimationFrame(v.current)},[]),{transitionDuration:p,transitionStatus:m,transitionTimingFunction:n||"ease"}}function qa({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:i,children:o,timingFunction:a="ease",onExit:s,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f}){const{transitionDuration:p,transitionStatus:h,transitionTimingFunction:m}=$5({mounted:i,exitDuration:r,duration:n,timingFunction:a,onExit:s,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f});return p===0?i?T.jsx(T.Fragment,{children:o({})}):e?o({display:"none"}):null:h==="exited"?e?o({display:"none"}):null:T.jsx(T.Fragment,{children:o(j5({transition:t,duration:p,state:h,timingFunction:m}))})}qa.displayName="@mantine/core/Transition";var h2={dropdown:"m_38a85659",arrow:"m_a31dc6c1"};const W5={},U1=fe((e,t)=>{var y,b,E,v;const n=ie("PopoverDropdown",W5,e),{className:r,style:i,vars:o,children:a,onKeyDownCapture:s,variant:l,classNames:u,styles:c,...d}=n,f=d2(),p=pN({opened:f.opened,shouldReturnFocus:f.returnFocus}),h=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},m=Dn(t,f.floating);return f.disabled?null:T.jsx(Cc,{...f.portalProps,withinPortal:f.withinPortal,children:T.jsx(qa,{mounted:f.opened,...f.transitionProps,transition:((y=f.transitionProps)==null?void 0:y.transition)||"fade",duration:((b=f.transitionProps)==null?void 0:b.duration)??150,keepMounted:f.keepMounted,exitDuration:typeof((E=f.transitionProps)==null?void 0:E.exitDuration)=="number"?f.transitionProps.exitDuration:(v=f.transitionProps)==null?void 0:v.duration,children:k=>T.jsx(Sh,{active:f.trapFocus&&f.opened,innerRef:m,children:T.jsxs(se,{...h,...d,variant:l,onKeyDownCapture:wP(f.onClose,{active:f.closeOnEscape,onTrigger:p,onKeyDown:s}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:r,props:n,classNames:u,styles:c,style:[{...k,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:Y(f.width)},i]}),children:[a,T.jsx(H1,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:u,styles:c})})]})})})})});U1.classes=h2;U1.displayName="@mantine/core/PopoverDropdown";const V5={refProp:"ref",popupType:"dialog"},m2=fe((e,t)=>{const{children:n,refProp:r,popupType:i,...o}=ie("PopoverTarget",V5,e);if(!Va(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=o,s=d2(),l=Dn(s.reference,mh(n),t),u=s.withRoles?{"aria-haspopup":i,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return S.cloneElement(n,{...a,...u,...s.targetProps,className:kt(s.targetProps.className,a.className,n.props.className),[r]:l,...s.controlled?null:{onClick:s.onToggle}})});m2.displayName="@mantine/core/PopoverTarget";function g2({opened:e,floating:t,position:n,positionDependencies:r}){const[i,o]=S.useState(0);S.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return a5(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,i,n]),Da(()=>{t.update()},r),Da(()=>{o(a=>a+1)},[e])}function q5(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function Y5(e,t){const n=q5(e.middlewares),r=[i2(e.offset)];return n.shift&&r.push(L1(typeof n.shift=="boolean"?{limiter:uk(),padding:5}:{limiter:uk(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?mb():mb(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?gb():gb(n.inline)),r.push(o2({element:e.arrowRef,padding:e.arrowOffset})),(n.size||e.width==="target")&&r.push(g5({...typeof n.size=="boolean"?{}:n.size,apply({rects:i,availableWidth:o,availableHeight:a,...s}){var c;const u=((c=t().refs.floating.current)==null?void 0:c.style)??{};n.size&&(typeof n.size=="object"&&n.size.apply?n.size.apply({rects:i,availableWidth:o,availableHeight:a,...s}):Object.assign(u,{maxWidth:`${o}px`,maxHeight:`${a}px`})),e.width==="target"&&Object.assign(u,{width:`${i.reference.width}px`})}})),r}function K5(e){const[t,n]=La({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=()=>{t&&n(!1)},i=()=>n(!t),o=F1({strategy:e.strategy,placement:e.position,middleware:Y5(e,()=>o)});return g2({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:o}),Da(()=>{var a;(a=e.onPositionChange)==null||a.call(e,o.placement)},[o.placement]),Da(()=>{var a,s;t?(s=e.onOpen)==null||s.call(e):(a=e.onClose)==null||a.call(e)},[t,e.onClose,e.onOpen]),{floating:o,controlled:typeof e.opened=="boolean",opened:t,onClose:r,onToggle:i}}const G5={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:Mn("popover"),__staticSelector:"Popover",width:"max-content"},Q5=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:gr(t),"--popover-shadow":h1(n)}});function Wo(e){var Fe,Ln,pe,ht,He,Me;const t=ie("Popover",G5,e),{children:n,position:r,offset:i,onPositionChange:o,positionDependencies:a,opened:s,transitionProps:l,width:u,middlewares:c,withArrow:d,arrowSize:f,arrowOffset:p,arrowRadius:h,arrowPosition:m,unstyled:y,classNames:b,styles:E,closeOnClickOutside:v,withinPortal:k,portalProps:_,closeOnEscape:x,clickOutsideEvents:I,trapFocus:R,onClose:z,onOpen:A,onChange:j,zIndex:L,radius:U,shadow:V,id:H,defaultOpened:B,__staticSelector:M,withRoles:N,disabled:F,returnFocus:w,variant:q,keepMounted:X,vars:D,floatingStrategy:be,...ge}=t,le=Pe({name:M,props:t,classes:h2,classNames:b,styles:E,unstyled:y,rootSelector:"dropdown",vars:D,varsResolver:Q5}),Ce=S.useRef(null),[Ie,Oe]=S.useState(null),[Ke,xt]=S.useState(null),{dir:Xt}=Sc(),ye=jo(H),Re=K5({middlewares:c,width:u,position:c2(Xt,r),offset:typeof i=="number"?i+(d?f/2:0):i,arrowRef:Ce,arrowOffset:p,onPositionChange:o,positionDependencies:a,opened:s,defaultOpened:B,onChange:j,onOpen:A,onClose:z,strategy:be});CP(()=>v&&Re.onClose(),I,[Ie,Ke]);const at=S.useCallback(St=>{Oe(St),Re.floating.refs.setReference(St)},[Re.floating.refs.setReference]),Be=S.useCallback(St=>{xt(St),Re.floating.refs.setFloating(St)},[Re.floating.refs.setFloating]);return T.jsx(F5,{value:{returnFocus:w,disabled:F,controlled:Re.controlled,reference:at,floating:Be,x:Re.floating.x,y:Re.floating.y,arrowX:(pe=(Ln=(Fe=Re.floating)==null?void 0:Fe.middlewareData)==null?void 0:Ln.arrow)==null?void 0:pe.x,arrowY:(Me=(He=(ht=Re.floating)==null?void 0:ht.middlewareData)==null?void 0:He.arrow)==null?void 0:Me.y,opened:Re.opened,arrowRef:Ce,transitionProps:l,width:u,withArrow:d,arrowSize:f,arrowOffset:p,arrowRadius:h,arrowPosition:m,placement:Re.floating.placement,trapFocus:R,withinPortal:k,portalProps:_,zIndex:L,radius:U,shadow:V,closeOnEscape:x,onClose:Re.onClose,onToggle:Re.onToggle,getTargetId:()=>`${ye}-target`,getDropdownId:()=>`${ye}-dropdown`,withRoles:N,targetProps:ge,__staticSelector:M,classNames:b,styles:E,unstyled:y,variant:q,keepMounted:X,getStyles:le,floatingStrategy:be},children:n})}Wo.Target=m2;Wo.Dropdown=U1;Wo.displayName="@mantine/core/Popover";Wo.extend=e=>e;var Or={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const b2=S.forwardRef(({className:e,...t},n)=>T.jsxs(se,{component:"span",className:kt(Or.barsLoader,e),...t,ref:n,children:[T.jsx("span",{className:Or.bar}),T.jsx("span",{className:Or.bar}),T.jsx("span",{className:Or.bar})]}));b2.displayName="@mantine/core/Bars";const y2=S.forwardRef(({className:e,...t},n)=>T.jsxs(se,{component:"span",className:kt(Or.dotsLoader,e),...t,ref:n,children:[T.jsx("span",{className:Or.dot}),T.jsx("span",{className:Or.dot}),T.jsx("span",{className:Or.dot})]}));y2.displayName="@mantine/core/Dots";const E2=S.forwardRef(({className:e,...t},n)=>T.jsx(se,{component:"span",className:kt(Or.ovalLoader,e),...t,ref:n}));E2.displayName="@mantine/core/Oval";const v2={bars:b2,oval:E2,dots:y2},X5={loaders:v2,type:"oval"},J5=(e,{size:t,color:n})=>({root:{"--loader-size":Je(t,"loader-size"),"--loader-color":n?Mo(n,e):void 0}}),Nc=fe((e,t)=>{const n=ie("Loader",X5,e),{size:r,color:i,type:o,vars:a,className:s,style:l,classNames:u,styles:c,unstyled:d,loaders:f,variant:p,children:h,...m}=n,y=Pe({name:"Loader",props:n,classes:Or,className:s,style:l,classNames:u,styles:c,unstyled:d,vars:a,varsResolver:J5});return h?T.jsx(se,{...y("root"),ref:t,...m,children:h}):T.jsx(se,{...y("root"),ref:t,component:f[o],variant:p,size:r,...m})});Nc.defaultLoaders=v2;Nc.classes=Or;Nc.displayName="@mantine/core/Loader";var wh={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21"};const Ek={orientation:"horizontal"},Z5=(e,{borderWidth:t})=>({group:{"--ai-border-width":Y(t)}}),j1=fe((e,t)=>{const n=ie("ActionIconGroup",Ek,e),{className:r,style:i,classNames:o,styles:a,unstyled:s,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...p}=ie("ActionIconGroup",Ek,e),h=Pe({name:"ActionIconGroup",props:n,classes:wh,className:r,style:i,classNames:o,styles:a,unstyled:s,vars:u,varsResolver:Z5,rootSelector:"group"});return T.jsx(se,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...p})});j1.classes=wh;j1.displayName="@mantine/core/ActionIconGroup";const e8={},t8=(e,{size:t,radius:n,variant:r,gradient:i,color:o,autoContrast:a})=>{const s=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:i,variant:r||"filled",autoContrast:a});return{root:{"--ai-size":Je(t,"ai-size"),"--ai-radius":n===void 0?void 0:gr(n),"--ai-bg":o||r?s.background:void 0,"--ai-hover":o||r?s.hover:void 0,"--ai-hover-color":o||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":o||r?s.border:void 0}}},ze=br((e,t)=>{const n=ie("ActionIcon",e8,e),{className:r,unstyled:i,variant:o,classNames:a,styles:s,style:l,loading:u,loaderProps:c,size:d,color:f,radius:p,__staticSelector:h,gradient:m,vars:y,children:b,disabled:E,"data-disabled":v,autoContrast:k,mod:_,...x}=n,I=Pe({name:["ActionIcon",h],props:n,className:r,style:l,classes:wh,classNames:a,styles:s,unstyled:i,vars:y,varsResolver:t8});return T.jsxs(yl,{...I("root",{active:!E&&!u&&!v}),...x,unstyled:i,variant:o,size:d,disabled:E||u,ref:t,mod:[{loading:u,disabled:E||v},_],children:[T.jsx(qa,{mounted:!!u,transition:"slide-down",duration:150,children:R=>T.jsx(se,{component:"span",...I("loader",{style:R}),"aria-hidden":!0,children:T.jsx(Nc,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...c})})}),T.jsx(se,{component:"span",mod:{loading:u},...I("icon"),children:b})]})});ze.classes=wh;ze.displayName="@mantine/core/ActionIcon";ze.Group=j1;const T2=S.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...n},r)=>T.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...n,children:T.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));T2.displayName="@mantine/core/CloseIcon";var k2={root:"m_86a44da5","root--subtle":"m_220c80f2"};const n8={variant:"subtle"},r8=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Je(t,"cb-size"),"--cb-radius":n===void 0?void 0:gr(n),"--cb-icon-size":Y(r)}}),_h=br((e,t)=>{const n=ie("CloseButton",n8,e),{iconSize:r,children:i,vars:o,radius:a,className:s,classNames:l,style:u,styles:c,unstyled:d,"data-disabled":f,disabled:p,variant:h,icon:m,mod:y,...b}=n,E=Pe({name:"CloseButton",props:n,className:s,style:u,classes:k2,classNames:l,styles:c,unstyled:d,vars:o,varsResolver:r8});return T.jsxs(yl,{ref:t,...b,unstyled:d,variant:h,disabled:p,mod:[{disabled:p||f},y],...E("root",{variant:h,active:!p&&!f}),children:[m||T.jsx(T2,{}),i]})});_h.classes=k2;_h.displayName="@mantine/core/CloseButton";function i8(e){return S.Children.toArray(e).filter(Boolean)}var x2={root:"m_4081bf90"};const o8={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},a8=(e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:o,wrap:a},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":vc(r),"--group-align":i,"--group-justify":o,"--group-wrap":a}}),it=fe((e,t)=>{const n=ie("Group",o8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,children:l,gap:u,align:c,justify:d,wrap:f,grow:p,preventGrowOverflow:h,vars:m,variant:y,__size:b,mod:E,...v}=n,k=i8(l),_=k.length,x=vc(u??"md"),R={childWidth:`calc(${100/_}% - (${x} - ${x} / ${_}))`},z=Pe({name:"Group",props:n,stylesCtx:R,className:i,style:o,classes:x2,classNames:r,styles:a,unstyled:s,vars:m,varsResolver:a8});return T.jsx(se,{...z("root"),ref:t,variant:y,mod:[{grow:p},E],size:b,...v,children:k})});it.classes=x2;it.displayName="@mantine/core/Group";var S2={root:"m_9814e45f"};const s8={zIndex:Mn("modal")},l8=(e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:o,zIndex:a})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Wr(n||"#000",r??.6)||void 0,"--overlay-filter":i?`blur(${Y(i)})`:void 0,"--overlay-radius":o===void 0?void 0:gr(o),"--overlay-z-index":a==null?void 0:a.toString()}}),$1=br((e,t)=>{const n=ie("Overlay",s8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,fixed:u,center:c,children:d,radius:f,zIndex:p,gradient:h,blur:m,color:y,backgroundOpacity:b,mod:E,...v}=n,k=Pe({name:"Overlay",props:n,classes:S2,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:l8});return T.jsx(se,{ref:t,...k("root"),mod:[{center:c,fixed:u},E],...v,children:d})});$1.classes=S2;$1.displayName="@mantine/core/Overlay";const[u8,Pi]=Uo("ModalBase component was not found in tree");function c8({opened:e,transitionDuration:t}){const[n,r]=S.useState(e),i=S.useRef(),a=EN()?0:t;return S.useEffect(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function d8({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:o,returnFocus:a}){const s=jo(e),[l,u]=S.useState(!1),[c,d]=S.useState(!1),f=typeof(t==null?void 0:t.duration)=="number"?t==null?void 0:t.duration:200,p=c8({opened:n,transitionDuration:f});return bN("keydown",h=>{var m;h.key==="Escape"&&i&&n&&((m=h.target)==null?void 0:m.getAttribute("data-mantine-stop-propagation"))!=="true"&&o()},{capture:!0}),pN({opened:n,shouldReturnFocus:r&&a}),{_id:s,titleMounted:l,bodyMounted:c,shouldLockScroll:p,setTitleMounted:u,setBodyMounted:d}}const W1=S.forwardRef(({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:i,trapFocus:o,closeOnEscape:a,returnFocus:s,closeOnClickOutside:l,withinPortal:u,portalProps:c,lockScroll:d,children:f,zIndex:p,shadow:h,padding:m,__vars:y,unstyled:b,removeScrollProps:E,...v},k)=>{const{_id:_,titleMounted:x,bodyMounted:I,shouldLockScroll:R,setTitleMounted:z,setBodyMounted:A}=d8({id:r,transitionProps:i,opened:t,trapFocus:o,closeOnEscape:a,onClose:n,returnFocus:s}),{key:j,...L}=E||{};return T.jsx(Cc,{...c,withinPortal:u,children:T.jsx(u8,{value:{opened:t,onClose:n,closeOnClickOutside:l,transitionProps:{...i,keepMounted:e},getTitleId:()=>`${_}-title`,getBodyId:()=>`${_}-body`,titleMounted:x,bodyMounted:I,setTitleMounted:z,setBodyMounted:A,trapFocus:o,closeOnEscape:a,zIndex:p,unstyled:b},children:T.jsx(hh,{enabled:R&&d,...L,children:T.jsx(se,{ref:k,...v,__vars:{...y,"--mb-z-index":(p||Mn("modal")).toString(),"--mb-shadow":h1(h),"--mb-padding":vc(m)},children:f})},j)})})});W1.displayName="@mantine/core/ModalBase";function f8(){const e=Pi();return S.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var il={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const V1=S.forwardRef(({className:e,...t},n)=>{const r=f8(),i=Pi();return T.jsx(se,{ref:n,...t,id:r,className:kt({[il.body]:!i.unstyled},e)})});V1.displayName="@mantine/core/ModalBaseBody";const q1=S.forwardRef(({className:e,onClick:t,...n},r)=>{const i=Pi();return T.jsx(_h,{ref:r,...n,onClick:o=>{i.onClose(),t==null||t(o)},className:kt({[il.close]:!i.unstyled},e),unstyled:i.unstyled})});q1.displayName="@mantine/core/ModalBaseCloseButton";const Y1=S.forwardRef(({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,...o},a)=>{const s=Pi();return T.jsx(qa,{mounted:s.opened,transition:"pop",...s.transitionProps,...e,children:l=>T.jsx("div",{...n,className:kt({[il.inner]:!s.unstyled},n.className),children:T.jsx(Sh,{active:s.opened&&s.trapFocus,innerRef:a,children:T.jsx(Pa,{...o,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,l],className:kt({[il.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})});Y1.displayName="@mantine/core/ModalBaseContent";const K1=S.forwardRef(({className:e,...t},n)=>{const r=Pi();return T.jsx(se,{component:"header",ref:n,className:kt({[il.header]:!r.unstyled},e),...t})});K1.displayName="@mantine/core/ModalBaseHeader";const p8={duration:200,timingFunction:"ease",transition:"fade"};function h8(e){const t=Pi();return{...p8,...t.transitionProps,...e}}const G1=S.forwardRef(({onClick:e,transitionProps:t,style:n,visible:r,...i},o)=>{const a=Pi(),s=h8(t);return T.jsx(qa,{mounted:r!==void 0?r:a.opened,...s,transition:"fade",children:l=>T.jsx($1,{ref:o,fixed:!0,style:[n,l],zIndex:a.zIndex,unstyled:a.unstyled,onClick:u=>{e==null||e(u),a.closeOnClickOutside&&a.onClose()},...i})})});G1.displayName="@mantine/core/ModalBaseOverlay";function m8(){const e=Pi();return S.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const Q1=S.forwardRef(({className:e,...t},n)=>{const r=m8(),i=Pi();return T.jsx(se,{component:"h2",ref:n,className:kt({[il.title]:!i.unstyled},e),...t,id:r})});Q1.displayName="@mantine/core/ModalBaseTitle";function w2({children:e}){return T.jsx(T.Fragment,{children:e})}const[g8,Ac]=p1({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Er={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const vk={},b8=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`}}),Ch=fe((e,t)=>{const n=ie("InputDescription",vk,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...p}=ie("InputDescription",vk,n),h=Ac(),m=Pe({name:["InputWrapper",c],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"description",vars:l,varsResolver:b8}),y=d&&(h==null?void 0:h.getStyles)||m;return T.jsx(se,{component:"p",ref:t,variant:f,size:u,...y("description",h!=null&&h.getStyles?{className:i,style:o}:void 0),...p})});Ch.classes=Er;Ch.displayName="@mantine/core/InputDescription";const y8={},E8=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`}}),Nh=fe((e,t)=>{const n=ie("InputError",y8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...p}=n,h=Pe({name:["InputWrapper",c],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"error",vars:l,varsResolver:E8}),m=Ac(),y=d&&(m==null?void 0:m.getStyles)||h;return T.jsx(se,{component:"p",ref:t,variant:f,size:u,...y("error",m!=null&&m.getStyles?{className:i,style:o}:void 0),...p})});Nh.classes=Er;Nh.displayName="@mantine/core/InputError";const Tk={labelElement:"label"},v8=(e,{size:t})=>({label:{"--input-label-size":$n(t),"--input-asterisk-color":void 0}}),Ah=fe((e,t)=>{const n=ie("InputLabel",Tk,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,labelElement:u,size:c,required:d,htmlFor:f,onMouseDown:p,children:h,__staticSelector:m,variant:y,mod:b,...E}=ie("InputLabel",Tk,n),v=Pe({name:["InputWrapper",m],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"label",vars:l,varsResolver:v8}),k=Ac(),_=(k==null?void 0:k.getStyles)||v;return T.jsxs(se,{..._("label",k!=null&&k.getStyles?{className:i,style:o}:void 0),component:u,variant:y,size:c,ref:t,htmlFor:u==="label"?f:void 0,mod:[{required:d},b],onMouseDown:x=>{p==null||p(x),!x.defaultPrevented&&x.detail>1&&x.preventDefault()},...E,children:[h,d&&T.jsx("span",{..._("required"),"aria-hidden":!0,children:" *"})]})});Ah.classes=Er;Ah.displayName="@mantine/core/InputLabel";const kk={},X1=fe((e,t)=>{const n=ie("InputPlaceholder",kk,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,__staticSelector:u,variant:c,error:d,mod:f,...p}=ie("InputPlaceholder",kk,n),h=Pe({name:["InputPlaceholder",u],props:n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,rootSelector:"placeholder"});return T.jsx(se,{...h("placeholder"),mod:[{error:!!d},f],component:"span",variant:c,ref:t,...p})});X1.classes=Er;X1.displayName="@mantine/core/InputPlaceholder";function T8(e,{hasDescription:t,hasError:n}){const r=e.findIndex(l=>l==="input"),i=e.slice(0,r),o=e.slice(r+1),a=t&&i.includes("description")||n&&i.includes("error");return{offsetBottom:t&&o.includes("description")||n&&o.includes("error"),offsetTop:a}}const k8={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},x8=(e,{size:t})=>({label:{"--input-label-size":$n(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${$n(t)} - ${Y(2)})`}}),J1=fe((e,t)=>{const n=ie("InputWrapper",k8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,size:u,variant:c,__staticSelector:d,inputContainer:f,inputWrapperOrder:p,label:h,error:m,description:y,labelProps:b,descriptionProps:E,errorProps:v,labelElement:k,children:_,withAsterisk:x,id:I,required:R,__stylesApiProps:z,mod:A,...j}=n,L=Pe({name:["InputWrapper",d],props:z||n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:x8}),U={size:u,variant:c,__staticSelector:d},V=jo(I),H=typeof x=="boolean"?x:R,B=(v==null?void 0:v.id)||`${V}-error`,M=(E==null?void 0:E.id)||`${V}-description`,N=V,F=!!m&&typeof m!="boolean",w=!!y,q=`${F?B:""} ${w?M:""}`,X=q.trim().length>0?q.trim():void 0,D=(b==null?void 0:b.id)||`${V}-label`,be=h&&T.jsx(Ah,{labelElement:k,id:D,htmlFor:N,required:H,...U,...b,children:h},"label"),ge=w&&T.jsx(Ch,{...E,...U,size:(E==null?void 0:E.size)||U.size,id:(E==null?void 0:E.id)||M,children:y},"description"),le=T.jsx(S.Fragment,{children:f(_)},"input"),Ce=F&&S.createElement(Nh,{...v,...U,size:(v==null?void 0:v.size)||U.size,key:"error",id:(v==null?void 0:v.id)||B},m),Ie=p.map(Oe=>{switch(Oe){case"label":return be;case"input":return le;case"description":return ge;case"error":return Ce;default:return null}});return T.jsx(g8,{value:{getStyles:L,describedBy:X,inputId:N,labelId:D,...T8(p,{hasDescription:w,hasError:F})},children:T.jsx(se,{ref:t,variant:c,size:u,mod:[{error:!!m},A],...L("root"),...j,children:Ie})})});J1.classes=Er;J1.displayName="@mantine/core/InputWrapper";const S8={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},w8=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Je(t.size,"input-height"),"--input-fz":$n(t.size),"--input-radius":t.radius===void 0?void 0:gr(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?Y(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?Y(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Je(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),zt=br((e,t)=>{const n=ie("Input",S8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,required:l,__staticSelector:u,__stylesApiProps:c,size:d,wrapperProps:f,error:p,disabled:h,leftSection:m,leftSectionProps:y,leftSectionWidth:b,rightSection:E,rightSectionProps:v,rightSectionWidth:k,rightSectionPointerEvents:_,leftSectionPointerEvents:x,variant:I,vars:R,pointer:z,multiline:A,radius:j,id:L,withAria:U,withErrorStyles:V,mod:H,inputSize:B,...M}=n,{styleProps:N,rest:F}=xc(M),w=Ac(),q={offsetBottom:w==null?void 0:w.offsetBottom,offsetTop:w==null?void 0:w.offsetTop},X=Pe({name:["Input",u],props:c||n,classes:Er,className:i,style:o,classNames:r,styles:a,unstyled:s,stylesCtx:q,rootSelector:"wrapper",vars:R,varsResolver:w8}),D=U?{required:l,disabled:h,"aria-invalid":!!p,"aria-describedby":w==null?void 0:w.describedBy,id:(w==null?void 0:w.inputId)||L}:{};return T.jsxs(se,{...X("wrapper"),...N,...f,mod:[{error:!!p&&V,pointer:z,disabled:h,multiline:A,"data-with-right-section":!!E,"data-with-left-section":!!m},H],variant:I,size:d,children:[m&&T.jsx("div",{...y,"data-position":"left",...X("section",{className:y==null?void 0:y.className,style:y==null?void 0:y.style}),children:m}),T.jsx(se,{component:"input",...F,...D,ref:t,required:l,mod:{disabled:h,error:!!p&&V},variant:I,__size:B,...X("input")}),E&&T.jsx("div",{...v,"data-position":"right",...X("section",{className:v==null?void 0:v.className,style:v==null?void 0:v.style}),children:E})]})});zt.classes=Er;zt.Wrapper=J1;zt.Label=Ah;zt.Error=Nh;zt.Description=Ch;zt.Placeholder=X1;zt.displayName="@mantine/core/Input";function _8(e,t,n){const r=ie(e,t,n),{label:i,description:o,error:a,required:s,classNames:l,styles:u,className:c,unstyled:d,__staticSelector:f,__stylesApiProps:p,errorProps:h,labelProps:m,descriptionProps:y,wrapperProps:b,id:E,size:v,style:k,inputContainer:_,inputWrapperOrder:x,withAsterisk:I,variant:R,vars:z,mod:A,...j}=r,{styleProps:L,rest:U}=xc(j),V={label:i,description:o,error:a,required:s,classNames:l,className:c,__staticSelector:f,__stylesApiProps:p||r,errorProps:h,labelProps:m,descriptionProps:y,unstyled:d,styles:u,size:v,style:k,inputContainer:_,inputWrapperOrder:x,withAsterisk:I,variant:R,id:E,mod:A,...b};return{...U,classNames:l,styles:u,unstyled:d,wrapperProps:{...V,...L},inputProps:{required:s,classNames:l,styles:u,unstyled:d,size:v,__staticSelector:f,__stylesApiProps:p||r,error:a,variant:R,id:E}}}const C8={__staticSelector:"InputBase",withAria:!0},Bi=br((e,t)=>{const{inputProps:n,wrapperProps:r,...i}=_8("InputBase",C8,e);return T.jsx(zt.Wrapper,{...r,children:T.jsx(zt,{...n,...i,ref:t})})});Bi.classes={...zt.classes,...zt.Wrapper.classes};Bi.displayName="@mantine/core/InputBase";var _2={root:"m_b6d8b162"};function N8(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const A8={inherit:!1},O8=(e,{variant:t,lineClamp:n,gradient:r,size:i,color:o})=>({root:{"--text-fz":$n(i),"--text-lh":_P(i),"--text-gradient":t==="gradient"?ob(r,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":o?Mo(o,e):void 0}}),qt=br((e,t)=>{const n=ie("Text",A8,e),{lineClamp:r,truncate:i,inline:o,inherit:a,gradient:s,span:l,__staticSelector:u,vars:c,className:d,style:f,classNames:p,styles:h,unstyled:m,variant:y,mod:b,size:E,...v}=n,k=Pe({name:["Text",u],props:n,classes:_2,className:d,style:f,classNames:p,styles:h,unstyled:m,vars:c,varsResolver:O8});return T.jsx(se,{...k("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:y,mod:[{"data-truncate":N8(i),"data-line-clamp":typeof r=="number","data-inline":o,"data-inherit":a},b],size:E,...v})});qt.classes=_2;qt.displayName="@mantine/core/Text";var C2={root:"m_849cf0da"};const I8={underline:"hover"},Wf=br((e,t)=>{const{underline:n,className:r,unstyled:i,mod:o,...a}=ie("Anchor",I8,e);return T.jsx(qt,{component:"a",ref:t,className:kt({[C2.root]:!i},r),...a,mod:[{underline:n},o],__staticSelector:"Anchor",unstyled:i})});Wf.classes=C2;Wf.displayName="@mantine/core/Anchor";const[R8,Tl]=Uo("AppShell was not found in tree");var Vo={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const M8={},Z1=fe((e,t)=>{const n=ie("AppShellAside",M8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"aside",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("aside",{className:i,classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-aside-z-index":`calc(${c??p.zIndex} + 1)`}})});Z1.classes=Vo;Z1.displayName="@mantine/core/AppShellAside";const D8={},eE=fe((e,t)=>{var h;const n=ie("AppShellFooter",D8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"footer",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("footer",{className:kt({[hh.classNames.zeroRight]:p.offsetScrollbars},i),classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-footer-z-index":(h=c??p.zIndex)==null?void 0:h.toString()}})});eE.classes=Vo;eE.displayName="@mantine/core/AppShellFooter";const L8={},tE=fe((e,t)=>{var h;const n=ie("AppShellHeader",L8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"header",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("header",{className:kt({[hh.classNames.zeroRight]:p.offsetScrollbars},i),classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-header-z-index":(h=c??p.zIndex)==null?void 0:h.toString()}})});tE.classes=Vo;tE.displayName="@mantine/core/AppShellHeader";const P8={},nE=fe((e,t)=>{const n=ie("AppShellMain",P8,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=Tl();return T.jsx(se,{component:"main",ref:t,...u.getStyles("main",{className:i,style:o,classNames:r,styles:a}),...l})});nE.classes=Vo;nE.displayName="@mantine/core/AppShellMain";function Oc(e){return typeof e=="object"?e.base:e}function Ic(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}function Rc(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}function B8({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i}){var l,u,c;const o=r==null?void 0:r.width,a="translateX(var(--app-shell-aside-width))",s="translateX(calc(var(--app-shell-aside-width) * -1))";if(r!=null&&r.breakpoint&&!((l=r==null?void 0:r.collapsed)!=null&&l.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-aside-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-aside-offset"]="0px"),Ic(o)){const d=Y(Oc(o));e["--app-shell-aside-width"]=d,e["--app-shell-aside-offset"]=d}if(Rc(o)&&(typeof o.base<"u"&&(e["--app-shell-aside-width"]=Y(o.base),e["--app-shell-aside-offset"]=Y(o.base)),Kt(o).forEach(d=>{d!=="base"&&(t[d]=t[d]||{},t[d]["--app-shell-aside-width"]=Y(o[d]),t[d]["--app-shell-aside-offset"]=Y(o[d]))})),(u=r==null?void 0:r.collapsed)!=null&&u.desktop){const d=r.breakpoint;t[d]=t[d]||{},t[d]["--app-shell-aside-transform"]=a,t[d]["--app-shell-aside-transform-rtl"]=s,t[d]["--app-shell-aside-offset"]="0px !important"}if((c=r==null?void 0:r.collapsed)!=null&&c.mobile){const d=m1(r.breakpoint,i.breakpoints)-.1;n[d]=n[d]||{},n[d]["--app-shell-aside-width"]="100%",n[d]["--app-shell-aside-offset"]="0px",n[d]["--app-shell-aside-transform"]=a,n[d]["--app-shell-aside-transform-rtl"]=s}}function z8({baseStyles:e,minMediaStyles:t,footer:n}){const r=n==null?void 0:n.height,i="translateY(var(--app-shell-footer-height))",o=(n==null?void 0:n.offset)??!0;if(Ic(r)){const a=Y(Oc(r));e["--app-shell-footer-height"]=a,o&&(e["--app-shell-footer-offset"]=a)}Rc(r)&&(typeof r.base<"u"&&(e["--app-shell-footer-height"]=Y(r.base),o&&(e["--app-shell-footer-offset"]=Y(r.base))),Kt(r).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-footer-height"]=Y(r[a]),o&&(t[a]["--app-shell-footer-offset"]=Y(r[a])))})),n!=null&&n.collapsed&&(e["--app-shell-footer-transform"]=i,e["--app-shell-footer-offset"]="0px !important")}function F8({baseStyles:e,minMediaStyles:t,header:n}){const r=n==null?void 0:n.height,i="translateY(calc(var(--app-shell-header-height) * -1))",o=(n==null?void 0:n.offset)??!0;if(Ic(r)){const a=Y(Oc(r));e["--app-shell-header-height"]=a,o&&(e["--app-shell-header-offset"]=a)}Rc(r)&&(typeof r.base<"u"&&(e["--app-shell-header-height"]=Y(r.base),o&&(e["--app-shell-header-offset"]=Y(r.base))),Kt(r).forEach(a=>{a!=="base"&&(t[a]=t[a]||{},t[a]["--app-shell-header-height"]=Y(r[a]),o&&(t[a]["--app-shell-header-offset"]=Y(r[a])))})),n!=null&&n.collapsed&&(e["--app-shell-header-transform"]=i,e["--app-shell-header-offset"]="0px !important")}function H8({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i}){var l,u,c;const o=r==null?void 0:r.width,a="translateX(calc(var(--app-shell-navbar-width) * -1))",s="translateX(var(--app-shell-navbar-width))";if(r!=null&&r.breakpoint&&!((l=r==null?void 0:r.collapsed)!=null&&l.mobile)&&(n[r==null?void 0:r.breakpoint]=n[r==null?void 0:r.breakpoint]||{},n[r==null?void 0:r.breakpoint]["--app-shell-navbar-width"]="100%",n[r==null?void 0:r.breakpoint]["--app-shell-navbar-offset"]="0px"),Ic(o)){const d=Y(Oc(o));e["--app-shell-navbar-width"]=d,e["--app-shell-navbar-offset"]=d}if(Rc(o)&&(typeof o.base<"u"&&(e["--app-shell-navbar-width"]=Y(o.base),e["--app-shell-navbar-offset"]=Y(o.base)),Kt(o).forEach(d=>{d!=="base"&&(t[d]=t[d]||{},t[d]["--app-shell-navbar-width"]=Y(o[d]),t[d]["--app-shell-navbar-offset"]=Y(o[d]))})),(u=r==null?void 0:r.collapsed)!=null&&u.desktop){const d=r.breakpoint;t[d]=t[d]||{},t[d]["--app-shell-navbar-transform"]=a,t[d]["--app-shell-navbar-transform-rtl"]=s,t[d]["--app-shell-navbar-offset"]="0px !important"}if((c=r==null?void 0:r.collapsed)!=null&&c.mobile){const d=m1(r.breakpoint,i.breakpoints)-.1;n[d]=n[d]||{},n[d]["--app-shell-navbar-width"]="100%",n[d]["--app-shell-navbar-offset"]="0px",n[d]["--app-shell-navbar-transform"]=a,n[d]["--app-shell-navbar-transform-rtl"]=s}}function dg(e){return Number(e)===0?"0px":vc(e)}function U8({padding:e,baseStyles:t,minMediaStyles:n}){Ic(e)&&(t["--app-shell-padding"]=dg(Oc(e))),Rc(e)&&(e.base&&(t["--app-shell-padding"]=dg(e.base)),Kt(e).forEach(r=>{r!=="base"&&(n[r]=n[r]||{},n[r]["--app-shell-padding"]=dg(e[r]))}))}function j8({navbar:e,header:t,footer:n,aside:r,padding:i,theme:o}){const a={},s={},l={};H8({baseStyles:l,minMediaStyles:a,maxMediaStyles:s,navbar:e,theme:o}),B8({baseStyles:l,minMediaStyles:a,maxMediaStyles:s,aside:r,theme:o}),F8({baseStyles:l,minMediaStyles:a,header:t}),z8({baseStyles:l,minMediaStyles:a,footer:n}),U8({baseStyles:l,minMediaStyles:a,padding:i});const u=WT(Kt(a),o.breakpoints).map(f=>({query:`(min-width: ${zf(f.px)})`,styles:a[f.value]})),c=WT(Kt(s),o.breakpoints).map(f=>({query:`(max-width: ${zf(f.px)})`,styles:s[f.value]})),d=[...u,...c];return{baseStyles:l,media:d}}function $8({navbar:e,header:t,aside:n,footer:r,padding:i}){const o=li(),a=$o(),{media:s,baseStyles:l}=j8({navbar:e,header:t,footer:r,aside:n,padding:i,theme:o});return T.jsx(_N,{media:s,styles:l,selector:a.cssVariablesSelector})}const W8={},rE=fe((e,t)=>{const n=ie("AppShellNavbar",W8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,withBorder:u,zIndex:c,mod:d,...f}=n,p=Tl();return p.disabled?null:T.jsx(se,{component:"nav",ref:t,mod:[{"with-border":u??p.withBorder},d],...p.getStyles("navbar",{className:i,classNames:r,styles:a,style:o}),...f,__vars:{"--app-shell-navbar-z-index":`calc(${c??p.zIndex} + 1)`}})});rE.classes=Vo;rE.displayName="@mantine/core/AppShellNavbar";const V8={},iE=br((e,t)=>{const n=ie("AppShellSection",V8,e),{classNames:r,className:i,style:o,styles:a,vars:s,grow:l,mod:u,...c}=n,d=Tl();return T.jsx(se,{ref:t,mod:[{grow:l},u],...d.getStyles("section",{className:i,style:o,classNames:r,styles:a}),...c})});iE.classes=Vo;iE.displayName="@mantine/core/AppShellSection";function q8({transitionDuration:e,disabled:t}){const[n,r]=S.useState(!0),i=S.useRef(),o=S.useRef();return bN("resize",()=>{r(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>S.startTransition(()=>{r(!1)}),200)}),bl(()=>{r(!0),clearTimeout(o.current),o.current=window.setTimeout(()=>S.startTransition(()=>{r(!1)}),e||0)},[t,e]),n}const Y8={withBorder:!0,offsetScrollbars:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Mn("app")},K8=(e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}}),ur=fe((e,t)=>{const n=ie("AppShell",Y8,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,navbar:u,withBorder:c,padding:d,transitionDuration:f,transitionTimingFunction:p,header:h,zIndex:m,layout:y,disabled:b,aside:E,footer:v,offsetScrollbars:k,mod:_,...x}=n,I=Pe({name:"AppShell",classes:Vo,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:K8}),R=q8({disabled:b,transitionDuration:f});return T.jsxs(R8,{value:{getStyles:I,withBorder:c,zIndex:m,disabled:b,offsetScrollbars:k},children:[T.jsx($8,{navbar:u,header:h,aside:E,footer:v,padding:d}),T.jsx(se,{ref:t,...I("root"),mod:[{resizing:R,layout:y,disabled:b},_],...x})]})});ur.classes=Vo;ur.displayName="@mantine/core/AppShell";ur.Navbar=rE;ur.Header=tE;ur.Main=nE;ur.Aside=Z1;ur.Footer=eE;ur.Section=iE;function N2(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(t=>N2(t))}:e}function G8(e){return e?e.map(t=>N2(t)):[]}function A2(e){return e.reduce((t,n)=>"group"in n?{...t,...A2(n.items)}:(t[n.value]=n,t),{})}var Rn={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const Q8={error:null},X8=(e,{size:t})=>({chevron:{"--combobox-chevron-size":Je(t,"combobox-chevron-size")}}),oE=fe((e,t)=>{const n=ie("ComboboxChevron",Q8,e),{size:r,error:i,style:o,className:a,classNames:s,styles:l,unstyled:u,vars:c,mod:d,...f}=n,p=Pe({name:"ComboboxChevron",classes:Rn,props:n,style:o,className:a,classNames:s,styles:l,unstyled:u,vars:c,varsResolver:X8,rootSelector:"chevron"});return T.jsx(se,{component:"svg",...f,...p("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},d],ref:t,children:T.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});oE.classes=Rn;oE.displayName="@mantine/core/ComboboxChevron";const[J8,vr]=Uo("Combobox component was not found in tree"),O2=S.forwardRef(({size:e,onMouseDown:t,onClick:n,onClear:r,...i},o)=>T.jsx(_h,{ref:o,size:e||"sm",variant:"transparent",tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:a=>{a.preventDefault(),t==null||t(a)},onClick:a=>{r(),n==null||n(a)}}));O2.displayName="@mantine/core/ComboboxClearButton";const Z8={},aE=fe((e,t)=>{const{classNames:n,styles:r,className:i,style:o,hidden:a,...s}=ie("ComboboxDropdown",Z8,e),l=vr();return T.jsx(Wo.Dropdown,{...s,ref:t,role:"presentation","data-hidden":a||void 0,...l.getStyles("dropdown",{className:i,style:o,classNames:n,styles:r})})});aE.classes=Rn;aE.displayName="@mantine/core/ComboboxDropdown";const eB={refProp:"ref"},I2=fe((e,t)=>{const{children:n,refProp:r}=ie("ComboboxDropdownTarget",eB,e);if(vr(),!Va(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return T.jsx(Wo.Target,{ref:t,refProp:r,children:n})});I2.displayName="@mantine/core/ComboboxDropdownTarget";const tB={},sE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=ie("ComboboxEmpty",tB,e),l=vr();return T.jsx(se,{ref:t,...l.getStyles("empty",{className:r,classNames:n,styles:o,style:i}),...s})});sE.classes=Rn;sE.displayName="@mantine/core/ComboboxEmpty";function lE({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:i,autoComplete:o}){const a=vr(),[s,l]=S.useState(null),u=d=>{if(e==null||e(d),!a.readOnly&&t){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectNextOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),a.store.dropdownOpened?l(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const f=a.store.getSelectedOptionIndex();a.store.dropdownOpened&&f!==-1?(d.preventDefault(),a.store.clickSelectedOption()):i==="button"&&(d.preventDefault(),a.store.openDropdown("keyboard"))}d.nativeEvent.code==="Escape"&&a.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&i==="button"&&(d.preventDefault(),a.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!!(a.store.listId&&a.store.dropdownOpened)||void 0,"aria-controls":a.store.listId,"aria-activedescendant":a.store.dropdownOpened&&s||void 0,autoComplete:o,"data-expanded":a.store.dropdownOpened||void 0,"data-mantine-stop-propagation":a.store.dropdownOpened||void 0}:{},onKeyDown:u}}const nB={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},R2=fe((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=ie("ComboboxEventsTarget",nB,e);if(!Va(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const c=vr(),d=lE({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:n.props.onKeyDown,autoComplete:l});return S.cloneElement(n,{...d,...u,[r]:Dn(t,c.store.targetRef,mh(n))})});R2.displayName="@mantine/core/ComboboxEventsTarget";const rB={},uE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=ie("ComboboxFooter",rB,e),l=vr();return T.jsx(se,{ref:t,...l.getStyles("footer",{className:r,classNames:n,style:i,styles:o}),...s,onMouseDown:u=>{u.preventDefault()}})});uE.classes=Rn;uE.displayName="@mantine/core/ComboboxFooter";const iB={},cE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,children:s,label:l,...u}=ie("ComboboxGroup",iB,e),c=vr();return T.jsxs(se,{ref:t,...c.getStyles("group",{className:r,classNames:n,style:i,styles:o}),...u,children:[l&&T.jsx("div",{...c.getStyles("groupLabel",{classNames:n,styles:o}),children:l}),s]})});cE.classes=Rn;cE.displayName="@mantine/core/ComboboxGroup";const oB={},dE=fe((e,t)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=ie("ComboboxHeader",oB,e),l=vr();return T.jsx(se,{ref:t,...l.getStyles("header",{className:r,classNames:n,style:i,styles:o}),...s,onMouseDown:u=>{u.preventDefault()}})});dE.classes=Rn;dE.displayName="@mantine/core/ComboboxHeader";function M2({value:e,valuesDivider:t=",",...n}){return T.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}M2.displayName="@mantine/core/ComboboxHiddenInput";const aB={},fE=fe((e,t)=>{const n=ie("ComboboxOption",aB,e),{classNames:r,className:i,style:o,styles:a,vars:s,onClick:l,id:u,active:c,onMouseDown:d,onMouseOver:f,disabled:p,selected:h,mod:m,...y}=n,b=vr(),E=S.useId(),v=u||E;return T.jsx(se,{...b.getStyles("option",{className:i,classNames:r,styles:a,style:o}),...y,ref:t,id:v,mod:["combobox-option",{"combobox-active":c,"combobox-disabled":p,"combobox-selected":h},m],role:"option",onClick:k=>{var _;p?k.preventDefault():((_=b.onOptionSubmit)==null||_.call(b,n.value,n),l==null||l(k))},onMouseDown:k=>{k.preventDefault(),d==null||d(k)},onMouseOver:k=>{b.resetSelectionOnOptionHover&&b.store.resetSelectedOption(),f==null||f(k)}})});fE.classes=Rn;fE.displayName="@mantine/core/ComboboxOption";const sB={},pE=fe((e,t)=>{const n=ie("ComboboxOptions",sB,e),{classNames:r,className:i,style:o,styles:a,id:s,onMouseDown:l,labelledBy:u,...c}=n,d=vr(),f=jo(s);return S.useEffect(()=>{d.store.setListId(f)},[f]),T.jsx(se,{ref:t,...d.getStyles("options",{className:i,style:o,classNames:r,styles:a}),...c,id:f,role:"listbox","aria-labelledby":u,onMouseDown:p=>{p.preventDefault(),l==null||l(p)}})});pE.classes=Rn;pE.displayName="@mantine/core/ComboboxOptions";const lB={withAriaAttributes:!0,withKeyboardNavigation:!0},hE=fe((e,t)=>{const n=ie("ComboboxSearch",lB,e),{classNames:r,styles:i,unstyled:o,vars:a,withAriaAttributes:s,onKeyDown:l,withKeyboardNavigation:u,size:c,...d}=n,f=vr(),p=f.getStyles("search"),h=lE({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return T.jsx(zt,{ref:Dn(t,f.store.searchRef),classNames:[{input:p.className},r],styles:[{input:p.style},i],size:c||f.size,...h,...d,__staticSelector:"Combobox"})});hE.classes=Rn;hE.displayName="@mantine/core/ComboboxSearch";const uB={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},D2=fe((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=ie("ComboboxTarget",uB,e);if(!Va(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const c=vr(),d=lE({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:n.props.onKeyDown,autoComplete:l}),f=S.cloneElement(n,{...d,...u});return T.jsx(Wo.Target,{ref:Dn(t,c.store.targetRef),children:f})});D2.displayName="@mantine/core/ComboboxTarget";function cB(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r}return e}function dB(e,t,n){for(let r=e+1;r{s||(l(!0),i==null||i(B))},[l,i,s]),b=S.useCallback((B="unknown")=>{s&&(l(!1),r==null||r(B))},[l,r,s]),E=S.useCallback((B="unknown")=>{s?b(B):y(B)},[b,y,s]),v=S.useCallback(()=>{const B=document.querySelector(`#${u.current} [data-combobox-selected]`);B==null||B.removeAttribute("data-combobox-selected"),B==null||B.removeAttribute("aria-selected")},[]),k=S.useCallback(B=>{const M=document.getElementById(u.current),N=M==null?void 0:M.querySelectorAll("[data-combobox-option]");if(!N)return null;const F=B>=N.length?0:B<0?N.length-1:B;return c.current=F,N!=null&&N[F]&&!N[F].hasAttribute("data-combobox-disabled")?(v(),N[F].setAttribute("data-combobox-selected","true"),N[F].setAttribute("aria-selected","true"),N[F].scrollIntoView({block:"nearest",behavior:a}),N[F].id):null},[a,v]),_=S.useCallback(()=>{const B=document.querySelector(`#${u.current} [data-combobox-active]`);if(B){const M=document.querySelectorAll(`#${u.current} [data-combobox-option]`),N=Array.from(M).findIndex(F=>F===B);return k(N)}return k(0)},[k]),x=S.useCallback(()=>k(dB(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),o)),[k,o]),I=S.useCallback(()=>k(cB(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),o)),[k,o]),R=S.useCallback(()=>k(fB(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[k]),z=S.useCallback((B="selected",M)=>{m.current=window.setTimeout(()=>{var w;const N=document.querySelectorAll(`#${u.current} [data-combobox-option]`),F=Array.from(N).findIndex(q=>q.hasAttribute(`data-combobox-${B}`));c.current=F,M!=null&&M.scrollIntoView&&((w=N[F])==null||w.scrollIntoView({block:"nearest",behavior:a}))},0)},[]),A=S.useCallback(()=>{c.current=-1,v()},[v]),j=S.useCallback(()=>{const B=document.querySelectorAll(`#${u.current} [data-combobox-option]`),M=B==null?void 0:B[c.current];M==null||M.click()},[]),L=S.useCallback(B=>{u.current=B},[]),U=S.useCallback(()=>{p.current=window.setTimeout(()=>d.current.focus(),0)},[]),V=S.useCallback(()=>{h.current=window.setTimeout(()=>f.current.focus(),0)},[]),H=S.useCallback(()=>c.current,[]);return S.useEffect(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(h.current),window.clearTimeout(m.current)},[]),{dropdownOpened:s,openDropdown:y,closeDropdown:b,toggleDropdown:E,selectedOptionIndex:c.current,getSelectedOptionIndex:H,selectOption:k,selectFirstOption:R,selectActiveOption:_,selectNextOption:x,selectPreviousOption:I,resetSelectedOption:A,updateSelectedOptionIndex:z,listId:u.current,setListId:L,clickSelectedOption:j,searchRef:d,focusSearchInput:U,targetRef:f,focusTarget:V}}const pB={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},hB=(e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":$n(t),"--combobox-option-padding":Je(t,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Y(n),"--combobox-option-fz":$n(t),"--combobox-option-padding":Je(t,"combobox-option-padding")}});function Ve(e){const t=ie("Combobox",pB,e),{classNames:n,styles:r,unstyled:i,children:o,store:a,vars:s,onOptionSubmit:l,onClose:u,size:c,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:h,...m}=t,y=L2(),b=a||y,E=Pe({name:p||"Combobox",classes:Rn,props:t,classNames:n,styles:r,unstyled:i,vars:s,varsResolver:hB}),v=()=>{u==null||u(),b.closeDropdown()};return T.jsx(J8,{value:{getStyles:E,store:b,onOptionSubmit:l,size:c,resetSelectionOnOptionHover:f,readOnly:h},children:T.jsx(Wo,{opened:b.dropdownOpened,...m,onChange:k=>!k&&v(),withRoles:!1,unstyled:i,children:o})})}const mB=e=>e;Ve.extend=mB;Ve.classes=Rn;Ve.displayName="@mantine/core/Combobox";Ve.Target=D2;Ve.Dropdown=aE;Ve.Options=pE;Ve.Option=fE;Ve.Search=hE;Ve.Empty=sE;Ve.Chevron=oE;Ve.Footer=uE;Ve.Header=dE;Ve.EventsTarget=R2;Ve.DropdownTarget=I2;Ve.Group=cE;Ve.ClearButton=O2;Ve.HiddenInput=M2;var P2={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const gB=P2,B2=S.forwardRef(({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:i,unstyled:o,children:a,label:s,description:l,id:u,disabled:c,error:d,size:f,labelPosition:p="left",bodyElement:h="div",labelElement:m="label",variant:y,style:b,vars:E,mod:v,...k},_)=>{const x=Pe({name:e,props:t,className:n,style:b,classes:P2,classNames:r,styles:i,unstyled:o});return T.jsx(se,{...x("root"),ref:_,__vars:{"--label-fz":$n(f),"--label-lh":Je(f,"label-lh")},mod:[{"label-position":p},v],variant:y,size:f,...k,children:T.jsxs(se,{component:h,htmlFor:h==="label"?u:void 0,...x("body"),children:[a,T.jsxs("div",{...x("labelWrapper"),"data-disabled":c||void 0,children:[s&&T.jsx(se,{component:m,htmlFor:m==="label"?u:void 0,...x("label"),"data-disabled":c||void 0,children:s}),l&&T.jsx(zt.Description,{size:f,__inheritStyles:!1,...x("description"),children:l}),d&&typeof d!="boolean"&&T.jsx(zt.Error,{size:f,__inheritStyles:!1,...x("error"),children:d})]})]})})});B2.displayName="@mantine/core/InlineInput";function bB({children:e,role:t}){const n=Ac();return n?T.jsx("div",{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):T.jsx(T.Fragment,{children:e})}function yB({size:e,style:t,...n}){const r=e!==void 0?{width:Y(e),height:Y(e),...t}:t;return T.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:T.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ku(e){return"group"in e}function z2({options:e,search:t,limit:n}){const r=t.trim().toLowerCase(),i=[];for(let o=0;o0)return!1;return!0}function F2(e,t=new Set){if(Array.isArray(e))for(const n of e)if(Ku(n))F2(n.items,t);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(t.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function vB(e,t){return Array.isArray(e)?e.includes(t):e===t}function H2({data:e,withCheckIcon:t,value:n,checkIconPosition:r,unstyled:i,renderOption:o}){if(!Ku(e)){const s=vB(n,e.value),l=t&&s&&T.jsx(yB,{className:Rn.optionsDropdownCheckIcon}),u=T.jsxs(T.Fragment,{children:[r==="left"&&l,T.jsx("span",{children:e.label}),r==="right"&&l]});return T.jsx(Ve.Option,{value:e.value,disabled:e.disabled,className:kt({[Rn.optionsDropdownOption]:!i}),"data-reverse":r==="right"||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o=="function"?o({option:e,checked:s}):u})}const a=e.items.map(s=>T.jsx(H2,{data:s,value:n,unstyled:i,withCheckIcon:t,checkIconPosition:r,renderOption:o},s.value));return T.jsx(Ve.Group,{label:e.group,children:a})}function TB({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:o,maxDropdownHeight:a,withScrollArea:s=!0,filterOptions:l=!0,withCheckIcon:u=!1,value:c,checkIconPosition:d,nothingFoundMessage:f,unstyled:p,labelId:h,renderOption:m,scrollAreaProps:y,"aria-label":b}){F2(e);const v=typeof i=="string"?(r||z2)({options:e,search:l?i:"",limit:o??1/0}):e,k=EB(v),_=v.map(x=>T.jsx(H2,{data:x,withCheckIcon:u,value:c,checkIconPosition:d,unstyled:p,renderOption:m},Ku(x)?x.group:x.value));return T.jsx(Ve.Dropdown,{hidden:t||n&&k,children:T.jsxs(Ve.Options,{labelledBy:h,"aria-label":b,children:[s?T.jsx(wc.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...y,children:_}):_,k&&f&&T.jsx(Ve.Empty,{children:f})]})})}var U2={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const kB={},xB=(e,{color:t,size:n,lineSize:r,transitionDuration:i,transitionTimingFunction:o})=>({root:{"--burger-color":t?Mo(t,e):void 0,"--burger-size":Je(n,"burger-size"),"--burger-line-size":r?Y(r):void 0,"--burger-transition-duration":i===void 0?void 0:`${i}ms`,"--burger-transition-timing-function":o}}),mE=fe((e,t)=>{const n=ie("Burger",kB,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,opened:u,children:c,transitionDuration:d,transitionTimingFunction:f,lineSize:p,...h}=n,m=Pe({name:"Burger",classes:U2,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:xB});return T.jsxs(yl,{...m("root"),ref:t,...h,children:[T.jsx(se,{mod:["reduce-motion",{opened:u}],...m("burger")}),c]})});mE.classes=U2;mE.displayName="@mantine/core/Burger";var Oh={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844"};const xk={orientation:"horizontal"},SB=(e,{borderWidth:t})=>({group:{"--button-border-width":Y(t)}}),gE=fe((e,t)=>{const n=ie("ButtonGroup",xk,e),{className:r,style:i,classNames:o,styles:a,unstyled:s,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...p}=ie("ButtonGroup",xk,e),h=Pe({name:"ButtonGroup",props:n,classes:Oh,className:r,style:i,classNames:o,styles:a,unstyled:s,vars:u,varsResolver:SB,rootSelector:"group"});return T.jsx(se,{...h("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...p})});gE.classes=Oh;gE.displayName="@mantine/core/ButtonGroup";const wB={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Y(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},_B={},CB=(e,{radius:t,color:n,gradient:r,variant:i,size:o,justify:a,autoContrast:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||"filled",autoContrast:s});return{root:{"--button-justify":a,"--button-height":Je(o,"button-height"),"--button-padding-x":Je(o,"button-padding-x"),"--button-fz":o!=null&&o.includes("compact")?$n(o.replace("compact-","")):$n(o),"--button-radius":t===void 0?void 0:gr(t),"--button-bg":n||i?l.background:void 0,"--button-hover":n||i?l.hover:void 0,"--button-color":l.color,"--button-bd":n||i?l.border:void 0,"--button-hover-color":n||i?l.hoverColor:void 0}}},$t=br((e,t)=>{const n=ie("Button",_B,e),{style:r,vars:i,className:o,color:a,disabled:s,children:l,leftSection:u,rightSection:c,fullWidth:d,variant:f,radius:p,loading:h,loaderProps:m,gradient:y,classNames:b,styles:E,unstyled:v,"data-disabled":k,autoContrast:_,mod:x,...I}=n,R=Pe({name:"Button",props:n,classes:Oh,className:o,style:r,classNames:b,styles:E,unstyled:v,vars:i,varsResolver:CB}),z=!!u,A=!!c;return T.jsxs(yl,{ref:t,...R("root",{active:!s&&!h&&!k}),unstyled:v,variant:f,disabled:s||h,mod:[{disabled:s||k,loading:h,block:d,"with-left-section":z,"with-right-section":A},x],...I,children:[T.jsx(qa,{mounted:!!h,transition:wB,duration:150,children:j=>T.jsx(se,{component:"span",...R("loader",{style:j}),"aria-hidden":!0,children:T.jsx(Nc,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...m})})}),T.jsxs("span",{...R("inner"),children:[u&&T.jsx(se,{component:"span",...R("section"),mod:{position:"left"},children:u}),T.jsx(se,{component:"span",mod:{loading:h},...R("label"),children:l}),c&&T.jsx(se,{component:"span",...R("section"),mod:{position:"right"},children:c})]})]})});$t.classes=Oh;$t.displayName="@mantine/core/Button";$t.Group=gE;const NB={timeout:1e3};function j2(e){const{children:t,timeout:n,value:r,...i}=ie("CopyButton",NB,e),o=NP({timeout:n}),a=()=>o.copy(r);return T.jsx(T.Fragment,{children:t({copy:a,copied:o.copied,...i})})}j2.displayName="@mantine/core/CopyButton";const[AB,kl]=Uo("Drawer component was not found in tree");var zi={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const OB={},Ih=fe((e,t)=>{const n=ie("DrawerBody",OB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(V1,{ref:t,...u.getStyles("body",{classNames:r,style:o,styles:a,className:i}),...l})});Ih.classes=zi;Ih.displayName="@mantine/core/DrawerBody";const IB={},Rh=fe((e,t)=>{const n=ie("DrawerCloseButton",IB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(q1,{ref:t,...u.getStyles("close",{classNames:r,style:o,styles:a,className:i}),...l})});Rh.classes=zi;Rh.displayName="@mantine/core/DrawerCloseButton";const RB={},Mh=fe((e,t)=>{const n=ie("DrawerContent",RB,e),{classNames:r,className:i,style:o,styles:a,vars:s,children:l,radius:u,__hidden:c,...d}=n,f=kl(),p=f.scrollAreaComponent||w2;return T.jsx(Y1,{...f.getStyles("content",{className:i,style:o,styles:a,classNames:r}),innerProps:f.getStyles("inner",{className:i,style:o,styles:a,classNames:r}),ref:t,...d,radius:u||f.radius||0,"data-hidden":c||void 0,children:T.jsx(p,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:l})})});Mh.classes=zi;Mh.displayName="@mantine/core/DrawerContent";const MB={},Dh=fe((e,t)=>{const n=ie("DrawerHeader",MB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(K1,{ref:t,...u.getStyles("header",{classNames:r,style:o,styles:a,className:i}),...l})});Dh.classes=zi;Dh.displayName="@mantine/core/DrawerHeader";const DB={},Lh=fe((e,t)=>{const n=ie("DrawerOverlay",DB,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(G1,{ref:t,...u.getStyles("overlay",{classNames:r,style:o,styles:a,className:i}),...l})});Lh.classes=zi;Lh.displayName="@mantine/core/DrawerOverlay";function LB(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function PB(e){if(e==="top"||e==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const BB={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},zB={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},FB={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),position:"left"},HB=(e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":Je(n,"drawer-size"),"--drawer-flex":PB(t),"--drawer-height":t==="left"||t==="right"?void 0:"var(--drawer-size)","--drawer-align":LB(t),"--drawer-justify":t==="right"?"flex-end":void 0,"--drawer-offset":Y(r)}}),Ph=fe((e,t)=>{const n=ie("DrawerRoot",FB,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,scrollAreaComponent:u,position:c,transitionProps:d,radius:f,...p}=n,{dir:h}=Sc(),m=Pe({name:"Drawer",classes:zi,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:HB}),y=(h==="rtl"?zB:BB)[c];return T.jsx(AB,{value:{scrollAreaComponent:u,getStyles:m,radius:f},children:T.jsx(W1,{ref:t,...m("root"),transitionProps:{transition:y,...d},unstyled:s,...p})})});Ph.classes=zi;Ph.displayName="@mantine/core/DrawerRoot";const[UB,jB]=p1();function $2({children:e}){const[t,n]=S.useState([]),[r,i]=S.useState(Mn("modal"));return T.jsx(UB,{value:{stack:t,addModal:(o,a)=>{n(s=>[...new Set([...s,o])]),i(s=>typeof a=="number"&&typeof s=="number"?Math.max(s,a):s)},removeModal:o=>n(a=>a.filter(s=>s!==o)),getZIndex:o=>`calc(${r} + ${t.indexOf(o)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}$2.displayName="@mantine/core/DrawerStack";const $B={},Bh=fe((e,t)=>{const n=ie("DrawerTitle",$B,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=kl();return T.jsx(Q1,{ref:t,...u.getStyles("title",{classNames:r,style:o,styles:a,className:i}),...l})});Bh.classes=zi;Bh.displayName="@mantine/core/DrawerTitle";const WB={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),withOverlay:!0,withCloseButton:!0},Fr=fe((e,t)=>{const{title:n,withOverlay:r,overlayProps:i,withCloseButton:o,closeButtonProps:a,children:s,opened:l,stackId:u,zIndex:c,...d}=ie("Drawer",WB,e),f=jB(),p=!!n||o,h=f&&u?{closeOnEscape:f.currentId===u,trapFocus:f.currentId===u,zIndex:f.getZIndex(u)}:{},m=r===!1?!1:u&&f?f.currentId===u:l;return S.useEffect(()=>{f&&u&&(l?f.addModal(u,c||Mn("modal")):f.removeModal(u))},[l,u,c]),T.jsxs(Ph,{ref:t,opened:l,zIndex:f&&u?f.getZIndex(u):c,...d,...h,children:[r&&T.jsx(Lh,{visible:m,transitionProps:f&&u?{duration:0}:void 0,...i}),T.jsxs(Mh,{__hidden:f&&u&&l?u!==f.currentId:!1,children:[p&&T.jsxs(Dh,{children:[n&&T.jsx(Bh,{children:n}),o&&T.jsx(Rh,{...a})]}),T.jsx(Ih,{children:s})]})]})});Fr.classes=zi;Fr.displayName="@mantine/core/Drawer";Fr.Root=Ph;Fr.Overlay=Lh;Fr.Content=Mh;Fr.Body=Ih;Fr.Header=Dh;Fr.Title=Bh;Fr.CloseButton=Rh;Fr.Stack=$2;var W2={root:"m_9e117634"};const VB={},qB=(e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:gr(t),"--image-object-fit":n}}),Gu=br((e,t)=>{const n=ie("Image",VB,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,onError:u,src:c,radius:d,fit:f,fallbackSrc:p,mod:h,...m}=n,[y,b]=S.useState(!c);S.useEffect(()=>b(!c),[c]);const E=Pe({name:"Image",classes:W2,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:qB});return y&&p?T.jsx(se,{component:"img",ref:t,src:p,...E("root"),onError:u,mod:["fallback",h],...m}):T.jsx(se,{component:"img",ref:t,...E("root"),src:c,onError:v=>{u==null||u(v),b(!0)},mod:h,...m})});Gu.classes=W2;Gu.displayName="@mantine/core/Image";function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{autosize:n,maxRows:r,minRows:i,__staticSelector:o,resize:a,...s}=ie("Textarea",uz,e),l=n&&WP()!=="test",u=l?{maxRows:r,minRows:i}:{};return T.jsx(Bi,{component:l?lz:"textarea",ref:t,...s,__staticSelector:o||"Textarea",multiline:!0,"data-no-overflow":n&&r===void 0||void 0,__vars:{"--input-resize":a},...u})});bE.classes=Bi.classes;bE.displayName="@mantine/core/Textarea";const[cz,xl]=Uo("Modal component was not found in tree");var Fi={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const dz={},zh=fe((e,t)=>{const n=ie("ModalBody",dz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(V1,{ref:t,...u.getStyles("body",{classNames:r,style:o,styles:a,className:i}),...l})});zh.classes=Fi;zh.displayName="@mantine/core/ModalBody";const fz={},Fh=fe((e,t)=>{const n=ie("ModalCloseButton",fz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(q1,{ref:t,...u.getStyles("close",{classNames:r,style:o,styles:a,className:i}),...l})});Fh.classes=Fi;Fh.displayName="@mantine/core/ModalCloseButton";const pz={},Hh=fe((e,t)=>{const n=ie("ModalContent",pz,e),{classNames:r,className:i,style:o,styles:a,vars:s,children:l,__hidden:u,...c}=n,d=xl(),f=d.scrollAreaComponent||w2;return T.jsx(Y1,{...d.getStyles("content",{className:i,style:o,styles:a,classNames:r}),innerProps:d.getStyles("inner",{className:i,style:o,styles:a,classNames:r}),"data-full-screen":d.fullScreen||void 0,"data-modal-content":!0,"data-hidden":u||void 0,ref:t,...c,children:T.jsx(f,{style:{maxHeight:d.fullScreen?"100dvh":`calc(100dvh - (${Y(d.yOffset)} * 2))`},children:l})})});Hh.classes=Fi;Hh.displayName="@mantine/core/ModalContent";const hz={},Uh=fe((e,t)=>{const n=ie("ModalHeader",hz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(K1,{ref:t,...u.getStyles("header",{classNames:r,style:o,styles:a,className:i}),...l})});Uh.classes=Fi;Uh.displayName="@mantine/core/ModalHeader";const mz={},jh=fe((e,t)=>{const n=ie("ModalOverlay",mz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(G1,{ref:t,...u.getStyles("overlay",{classNames:r,style:o,styles:a,className:i}),...l})});jh.classes=Fi;jh.displayName="@mantine/core/ModalOverlay";const gz={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},bz=(e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:gr(t),"--modal-size":Je(n,"modal-size"),"--modal-y-offset":Y(r),"--modal-x-offset":Y(i)}}),$h=fe((e,t)=>{const n=ie("ModalRoot",gz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,yOffset:u,scrollAreaComponent:c,radius:d,fullScreen:f,centered:p,xOffset:h,__staticSelector:m,...y}=n,b=Pe({name:m,classes:Fi,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:bz});return T.jsx(cz,{value:{yOffset:u,scrollAreaComponent:c,getStyles:b,fullScreen:f},children:T.jsx(W1,{ref:t,...b("root"),"data-full-screen":f||void 0,"data-centered":p||void 0,unstyled:s,...y})})});$h.classes=Fi;$h.displayName="@mantine/core/ModalRoot";const[yz,Ez]=p1();function q2({children:e}){const[t,n]=S.useState([]),[r,i]=S.useState(Mn("modal"));return T.jsx(yz,{value:{stack:t,addModal:(o,a)=>{n(s=>[...new Set([...s,o])]),i(s=>typeof a=="number"&&typeof s=="number"?Math.max(s,a):s)},removeModal:o=>n(a=>a.filter(s=>s!==o)),getZIndex:o=>`calc(${r} + ${t.indexOf(o)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}q2.displayName="@mantine/core/ModalStack";const vz={},Wh=fe((e,t)=>{const n=ie("ModalTitle",vz,e),{classNames:r,className:i,style:o,styles:a,vars:s,...l}=n,u=xl();return T.jsx(Q1,{ref:t,...u.getStyles("title",{classNames:r,style:o,styles:a,className:i}),...l})});Wh.classes=Fi;Wh.displayName="@mantine/core/ModalTitle";const Tz={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Mn("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Yn=fe((e,t)=>{const{title:n,withOverlay:r,overlayProps:i,withCloseButton:o,closeButtonProps:a,children:s,radius:l,opened:u,stackId:c,zIndex:d,...f}=ie("Modal",Tz,e),p=Ez(),h=!!n||o,m=p&&c?{closeOnEscape:p.currentId===c,trapFocus:p.currentId===c,zIndex:p.getZIndex(c)}:{},y=r===!1?!1:c&&p?p.currentId===c:u;return S.useEffect(()=>{p&&c&&(u?p.addModal(c,d||Mn("modal")):p.removeModal(c))},[u,c,d]),T.jsxs($h,{ref:t,radius:l,opened:u,zIndex:p&&c?p.getZIndex(c):d,...f,...m,children:[r&&T.jsx(jh,{visible:y,transitionProps:p&&c?{duration:0}:void 0,...i}),T.jsxs(Hh,{radius:l,__hidden:p&&c&&u?c!==p.currentId:!1,children:[h&&T.jsxs(Uh,{children:[n&&T.jsx(Wh,{children:n}),o&&T.jsx(Fh,{...a})]}),T.jsx(zh,{children:s})]})]})});Yn.classes=Fi;Yn.displayName="@mantine/core/Modal";Yn.Root=$h;Yn.Overlay=jh;Yn.Content=Hh;Yn.Body=zh;Yn.Header=Uh;Yn.Title=Wh;Yn.CloseButton=Fh;Yn.Stack=q2;const kz=({reveal:e})=>T.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:T.jsx("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})});var Eb={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const xz={visibilityToggleIcon:kz},Sz=(e,{size:t})=>({root:{"--psi-icon-size":Je(t,"psi-icon-size"),"--psi-button-size":Je(t,"psi-button-size")}}),yE=fe((e,t)=>{const n=ie("PasswordInput",xz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,required:u,error:c,leftSection:d,disabled:f,id:p,variant:h,inputContainer:m,description:y,label:b,size:E,errorProps:v,descriptionProps:k,labelProps:_,withAsterisk:x,inputWrapperOrder:I,wrapperProps:R,radius:z,rightSection:A,rightSectionWidth:j,rightSectionPointerEvents:L,leftSectionWidth:U,visible:V,defaultVisible:H,onVisibilityChange:B,visibilityToggleIcon:M,visibilityToggleButtonProps:N,rightSectionProps:F,leftSectionProps:w,leftSectionPointerEvents:q,withErrorStyles:X,mod:D,...be}=n,ge=jo(p),[le,Ce]=La({value:V,defaultValue:H,finalValue:!1,onChange:B}),Ie=()=>Ce(!le),Oe=Pe({name:"PasswordInput",classes:Eb,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:Sz}),{resolvedClassNames:Ke,resolvedStyles:xt}=wN({classNames:r,styles:a,props:n}),{styleProps:Xt,rest:ye}=xc(be),Re=M,at=T.jsx(ze,{...Oe("visibilityToggle"),disabled:f,radius:z,"aria-hidden":!N,tabIndex:-1,...N,variant:"subtle",color:"gray",unstyled:s,onTouchEnd:Be=>{var Fe;Be.preventDefault(),(Fe=N==null?void 0:N.onTouchEnd)==null||Fe.call(N,Be),Ie()},onMouseDown:Be=>{var Fe;Be.preventDefault(),(Fe=N==null?void 0:N.onMouseDown)==null||Fe.call(N,Be),Ie()},onKeyDown:Be=>{var Fe;(Fe=N==null?void 0:N.onKeyDown)==null||Fe.call(N,Be),Be.key===" "&&(Be.preventDefault(),Ie())},children:T.jsx(Re,{reveal:le})});return T.jsx(zt.Wrapper,{required:u,id:ge,label:b,error:c,description:y,size:E,classNames:Ke,styles:xt,__staticSelector:"PasswordInput",errorProps:v,descriptionProps:k,unstyled:s,withAsterisk:x,inputWrapperOrder:I,inputContainer:m,variant:h,labelProps:{..._,htmlFor:ge},mod:D,...Oe("root"),...Xt,...R,children:T.jsx(zt,{component:"div",error:c,leftSection:d,size:E,classNames:{...Ke,input:kt(Eb.input,Ke.input)},styles:xt,radius:z,disabled:f,__staticSelector:"PasswordInput",rightSectionWidth:j,rightSection:A??at,variant:h,unstyled:s,leftSectionWidth:U,rightSectionPointerEvents:L||"all",rightSectionProps:F,leftSectionProps:w,leftSectionPointerEvents:q,withAria:!1,withErrorStyles:X,children:T.jsx("input",{required:u,"data-invalid":!!c||void 0,"data-with-left-section":!!d||void 0,...Oe("innerInput"),disabled:f,id:ge,ref:t,...ye,autoComplete:ye.autoComplete||"off",type:le?"text":"password"})})})});yE.classes={...Bi.classes,...Eb};yE.displayName="@mantine/core/PasswordInput";const wz={duration:100,transition:"fade"};function _z(e,t){return{...wz,...t,...e}}function Cz({offset:e,position:t,defaultOpened:n}){const[r,i]=S.useState(n),o=S.useRef(),{x:a,y:s,elements:l,refs:u,update:c,placement:d}=F1({placement:t,middleware:[L1({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=d.includes("right")?e:t.includes("left")?e*-1:0,p=d.includes("bottom")?e:t.includes("top")?e*-1:0,h=S.useCallback(({clientX:m,clientY:y})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:m,y,left:m+f,top:y+p,right:m,bottom:y}}})},[l.reference]);return S.useEffect(()=>{if(u.floating.current){const m=o.current;m.addEventListener("mousemove",h);const y=wi(u.floating.current);return y.forEach(b=>{b.addEventListener("scroll",c)}),()=>{m.removeEventListener("mousemove",h),y.forEach(b=>{b.removeEventListener("scroll",c)})}}},[l.reference,u.floating.current,c,h,r]),{handleMouseMove:h,x:a,y:s,opened:r,setOpened:i,boundaryRef:o,floating:u.setFloating}}var Vh={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const Nz={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:Mn("popover")},Az=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:gr(t),"--tooltip-bg":n?Mo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),EE=fe((e,t)=>{const n=ie("TooltipFloating",Nz,e),{children:r,refProp:i,withinPortal:o,style:a,className:s,classNames:l,styles:u,unstyled:c,radius:d,color:f,label:p,offset:h,position:m,multiline:y,zIndex:b,disabled:E,defaultOpened:v,variant:k,vars:_,portalProps:x,...I}=n,R=li(),z=Pe({name:"TooltipFloating",props:n,classes:Vh,className:s,style:a,classNames:l,styles:u,unstyled:c,rootSelector:"tooltip",vars:_,varsResolver:Az}),{handleMouseMove:A,x:j,y:L,opened:U,boundaryRef:V,floating:H,setOpened:B}=Cz({offset:h,position:m,defaultOpened:v});if(!Va(r))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const M=Dn(V,mh(r),t),N=w=>{var q,X;(X=(q=r.props).onMouseEnter)==null||X.call(q,w),A(w),B(!0)},F=w=>{var q,X;(X=(q=r.props).onMouseLeave)==null||X.call(q,w),B(!1)};return T.jsxs(T.Fragment,{children:[T.jsx(Cc,{...x,withinPortal:o,children:T.jsx(se,{...I,...z("tooltip",{style:{...CN(a,R),zIndex:b,display:!E&&U?"block":"none",top:(L&&Math.round(L))??"",left:(j&&Math.round(j))??""}}),variant:k,ref:H,mod:{multiline:y},children:p})}),S.cloneElement(r,{...r.props,[i]:M,onMouseEnter:N,onMouseLeave:F})]})});EE.classes=Vh;EE.displayName="@mantine/core/TooltipFloating";const Y2=S.createContext(!1),Oz=Y2.Provider,Iz=()=>S.useContext(Y2),Rz={openDelay:0,closeDelay:0};function vE(e){const{openDelay:t,closeDelay:n,children:r}=ie("TooltipGroup",Rz,e);return T.jsx(Oz,{value:!0,children:T.jsx(_5,{delay:{open:t,close:n},children:r})})}vE.displayName="@mantine/core/TooltipGroup";vE.extend=e=>e;function Mz(e){var x,I,R;const[t,n]=S.useState(e.defaultOpened),i=typeof e.opened=="boolean"?e.opened:t,o=Iz(),a=jo(),{delay:s,currentId:l,setCurrentId:u}=u2(),c=S.useCallback(z=>{n(z),z&&u(a)},[u,a]),{x:d,y:f,context:p,refs:h,update:m,placement:y,middlewareData:{arrow:{x:b,y:E}={}}}=F1({strategy:e.strategy,placement:e.position,open:i,onOpenChange:c,middleware:[i2(e.offset),L1({padding:8}),mb(),o2({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[gb()]:[]]});C5(p,{id:a});const{getReferenceProps:v,getFloatingProps:k}=D5([w5(p,{enabled:(x=e.events)==null?void 0:x.hover,delay:o?s:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((I=e.events)!=null&&I.touch)}),M5(p,{enabled:(R=e.events)==null?void 0:R.focus,visibleOnly:!0}),P5(p,{role:"tooltip"}),I5(p,{enabled:typeof e.opened>"u"})]);g2({opened:i,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:h,update:m}}),Da(()=>{var z;(z=e.onPositionChange)==null||z.call(e,y)},[y]);const _=i&&l&&l!==a;return{x:d,y:f,arrowX:b,arrowY:E,reference:h.setReference,floating:h.setFloating,getFloatingProps:k,getReferenceProps:v,isGroupPhase:_,opened:i,placement:y}}const Ak={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Mn("popover"),positionDependencies:[]},Dz=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:gr(t),"--tooltip-bg":n?Mo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),Qe=fe((e,t)=>{const n=ie("Tooltip",Ak,e),{children:r,position:i,refProp:o,label:a,openDelay:s,closeDelay:l,onPositionChange:u,opened:c,defaultOpened:d,withinPortal:f,radius:p,color:h,classNames:m,styles:y,unstyled:b,style:E,className:v,withArrow:k,arrowSize:_,arrowOffset:x,arrowRadius:I,arrowPosition:R,offset:z,transitionProps:A,multiline:j,events:L,zIndex:U,disabled:V,positionDependencies:H,onClick:B,onMouseEnter:M,onMouseLeave:N,inline:F,variant:w,keepMounted:q,vars:X,portalProps:D,mod:be,floatingStrategy:ge,...le}=ie("Tooltip",Ak,n),{dir:Ce}=Sc(),Ie=S.useRef(null),Oe=Mz({position:c2(Ce,i),closeDelay:l,openDelay:s,onPositionChange:u,opened:c,defaultOpened:d,events:L,arrowRef:Ie,arrowOffset:x,offset:typeof z=="number"?z+(k?_/2:0):z,positionDependencies:[...H,r],inline:F,strategy:ge}),Ke=Pe({name:"Tooltip",props:n,classes:Vh,className:v,style:E,classNames:m,styles:y,unstyled:b,rootSelector:"tooltip",vars:X,varsResolver:Dz});if(!Va(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const xt=Dn(Oe.reference,mh(r),t),Xt=_z(A,{duration:100,transition:"fade"});return T.jsxs(T.Fragment,{children:[T.jsx(Cc,{...D,withinPortal:f,children:T.jsx(qa,{...Xt,keepMounted:q,mounted:!V&&!!Oe.opened,duration:Oe.isGroupPhase?10:Xt.duration,children:ye=>T.jsxs(se,{...le,"data-fixed":ge==="fixed"||void 0,variant:w,mod:[{multiline:j},be],...Oe.getFloatingProps({ref:Oe.floating,className:Ke("tooltip").className,style:{...Ke("tooltip").style,...ye,zIndex:U,top:Oe.y??0,left:Oe.x??0}}),children:[a,T.jsx(H1,{ref:Ie,arrowX:Oe.arrowX,arrowY:Oe.arrowY,visible:k,position:Oe.placement,arrowSize:_,arrowOffset:x,arrowRadius:I,arrowPosition:R,...Ke("arrow")})]})})}),S.cloneElement(r,Oe.getReferenceProps({onClick:B,onMouseEnter:M,onMouseLeave:N,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,[o]:xt,className:kt(v,r.props.className),...r.props}))]})});Qe.classes=Vh;Qe.displayName="@mantine/core/Tooltip";Qe.Floating=EE;Qe.Group=vE;const Lz={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},TE=fe((e,t)=>{const n=ie("Select",Lz,e),{classNames:r,styles:i,unstyled:o,vars:a,dropdownOpened:s,defaultDropdownOpened:l,onDropdownClose:u,onDropdownOpen:c,onFocus:d,onBlur:f,onClick:p,onChange:h,data:m,value:y,defaultValue:b,selectFirstOptionOnChange:E,onOptionSubmit:v,comboboxProps:k,readOnly:_,disabled:x,filter:I,limit:R,withScrollArea:z,maxDropdownHeight:A,size:j,searchable:L,rightSection:U,checkIconPosition:V,withCheckIcon:H,nothingFoundMessage:B,name:M,form:N,searchValue:F,defaultSearchValue:w,onSearchChange:q,allowDeselect:X,error:D,rightSectionPointerEvents:be,id:ge,clearable:le,clearButtonProps:Ce,hiddenInputProps:Ie,renderOption:Oe,onClear:Ke,autoComplete:xt,scrollAreaProps:Xt,...ye}=n,Re=S.useMemo(()=>G8(m),[m]),at=S.useMemo(()=>A2(Re),[Re]),Be=jo(ge),[Fe,Ln,pe]=La({value:y,defaultValue:b,finalValue:null,onChange:h}),ht=typeof Fe=="string"?at[Fe]:void 0,He=jP(ht),[Me,St]=La({value:F,defaultValue:w,finalValue:ht?ht.label:"",onChange:q}),mt=L2({opened:s,defaultOpened:l,onDropdownOpen:()=>{c==null||c(),mt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u==null||u(),mt.resetSelectedOption()}}),{resolvedClassNames:Ui,resolvedStyles:G}=wN({props:n,styles:i,classNames:r});S.useEffect(()=>{E&&mt.selectFirstOption()},[E,Fe]),S.useEffect(()=>{y===null&&St(""),typeof y=="string"&&ht&&((He==null?void 0:He.value)!==ht.value||(He==null?void 0:He.label)!==ht.label)&&St(ht.label)},[y,ht]);const W=le&&!!Fe&&!x&&!_&&T.jsx(Ve.ClearButton,{size:j,...Ce,onClear:()=>{Ln(null,null),St(""),Ke==null||Ke()}});return T.jsxs(T.Fragment,{children:[T.jsxs(Ve,{store:mt,__staticSelector:"Select",classNames:Ui,styles:G,unstyled:o,readOnly:_,onOptionSubmit:Q=>{v==null||v(Q);const re=X&&at[Q].value===Fe?null:at[Q],de=re?re.value:null;de!==Fe&&Ln(de,re),!pe&&St(typeof de=="string"&&(re==null?void 0:re.label)||""),mt.closeDropdown()},size:j,...k,children:[T.jsx(Ve.Target,{targetType:L?"input":"button",autoComplete:xt,children:T.jsx(Bi,{id:Be,ref:t,rightSection:U||W||T.jsx(Ve.Chevron,{size:j,error:D,unstyled:o}),rightSectionPointerEvents:be||(W?"all":"none"),...ye,size:j,__staticSelector:"Select",disabled:x,readOnly:_||!L,value:Me,onChange:Q=>{St(Q.currentTarget.value),mt.openDropdown(),E&&mt.selectFirstOption()},onFocus:Q=>{L&&mt.openDropdown(),d==null||d(Q)},onBlur:Q=>{var re;L&&mt.closeDropdown(),St(Fe!=null&&((re=at[Fe])==null?void 0:re.label)||""),f==null||f(Q)},onClick:Q=>{L?mt.openDropdown():mt.toggleDropdown(),p==null||p(Q)},classNames:Ui,styles:G,unstyled:o,pointer:!L,error:D})}),T.jsx(TB,{data:Re,hidden:_||x,filter:I,search:Me,limit:R,hiddenWhenEmpty:!B,withScrollArea:z,maxDropdownHeight:A,filterOptions:L&&(ht==null?void 0:ht.label)!==Me,value:Fe,checkIconPosition:V,withCheckIcon:H,nothingFoundMessage:B,unstyled:o,labelId:ye.label?`${Be}-label`:void 0,"aria-label":ye.label?void 0:ye["aria-label"],renderOption:Oe,scrollAreaProps:Xt})]}),T.jsx(Ve.HiddenInput,{value:Fe,name:M,form:N,disabled:x,...Ie})]})});TE.classes={...Bi.classes,...Ve.classes};TE.displayName="@mantine/core/Select";var K2={root:"m_6d731127"};const Pz={gap:"md",align:"stretch",justify:"flex-start"},Bz=(e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":vc(t),"--stack-align":n,"--stack-justify":r}}),Un=fe((e,t)=>{const n=ie("Stack",Pz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,align:u,justify:c,gap:d,variant:f,...p}=n,h=Pe({name:"Stack",props:n,classes:K2,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:Bz});return T.jsx(se,{ref:t,...h("root"),variant:f,...p})});Un.classes=K2;Un.displayName="@mantine/core/Stack";const G2=S.createContext(null),zz=G2.Provider,Fz=()=>S.useContext(G2),Hz={},kE=fe((e,t)=>{const{value:n,defaultValue:r,onChange:i,size:o,wrapperProps:a,children:s,readOnly:l,...u}=ie("SwitchGroup",Hz,e),[c,d]=La({value:n,defaultValue:r,finalValue:[],onChange:i}),f=p=>{const h=p.currentTarget.value;!l&&d(c.includes(h)?c.filter(m=>m!==h):[...c,h])};return T.jsx(zz,{value:{value:c,onChange:f,size:o},children:T.jsx(zt.Wrapper,{size:o,ref:t,...a,...u,labelElement:"div",__staticSelector:"SwitchGroup",children:T.jsx(bB,{role:"group",children:s})})})});kE.classes=zt.Wrapper.classes;kE.displayName="@mantine/core/SwitchGroup";var Q2={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const Uz={labelPosition:"right"},jz=(e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:gr(t),"--switch-height":Je(r,"switch-height"),"--switch-width":Je(r,"switch-width"),"--switch-thumb-size":Je(r,"switch-thumb-size"),"--switch-label-font-size":Je(r,"switch-label-font-size"),"--switch-track-label-padding":Je(r,"switch-track-label-padding"),"--switch-color":n?Mo(n,e):void 0}}),qh=fe((e,t)=>{const n=ie("Switch",Uz,e),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:l,color:u,label:c,offLabel:d,onLabel:f,id:p,size:h,radius:m,wrapperProps:y,thumbIcon:b,checked:E,defaultChecked:v,onChange:k,labelPosition:_,description:x,error:I,disabled:R,variant:z,rootRef:A,mod:j,...L}=n,U=Fz(),V=h||(U==null?void 0:U.size),H=Pe({name:"Switch",props:n,classes:Q2,className:i,style:o,classNames:r,styles:a,unstyled:s,vars:l,varsResolver:jz}),{styleProps:B,rest:M}=xc(L),N=jo(p),F=U?{checked:U.value.includes(M.value),onChange:U.onChange}:{},[w,q]=La({value:F.checked??E,defaultValue:v,finalValue:!1});return T.jsxs(B2,{...H("root"),__staticSelector:"Switch",__stylesApiProps:n,id:N,size:V,labelPosition:_,label:c,description:x,error:I,disabled:R,bodyElement:"label",labelElement:"span",classNames:r,styles:a,unstyled:s,"data-checked":F.checked||void 0,variant:z,ref:A,mod:j,...B,...y,children:[T.jsx("input",{...M,disabled:R,checked:w,onChange:X=>{var D;U?(D=F.onChange)==null||D.call(F,X):k==null||k(X),q(X.currentTarget.checked)},id:N,ref:t,type:"checkbox",role:"switch",...H("input")}),T.jsxs(se,{"aria-hidden":"true",mod:{error:I,"label-position":_,"without-labels":!f&&!d},...H("track"),children:[T.jsx(se,{component:"span",mod:"reduce-motion",...H("thumb"),children:b}),T.jsx("span",{...H("trackLabel"),children:w?f:d})]})]})});qh.classes={...Q2,...gB};qh.displayName="@mantine/core/Switch";qh.Group=kE;const $z={},Ea=fe((e,t)=>{const n=ie("TextInput",$z,e);return T.jsx(Bi,{component:"input",ref:t,...n,__staticSelector:"TextInput"})});Ea.classes=Bi.classes;Ea.displayName="@mantine/core/TextInput";const Wz="modulepreload",Vz=function(e){return"/"+e},Ok={},qz=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=Vz(l),l in Ok)return;Ok[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Wz,u||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},X2=6048e5,Yz=864e5,Ik=Symbol.for("constructDateFrom");function Lo(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ik in e?e[Ik](t):e instanceof Date?new e.constructor(t):new Date(t)}function Hr(e,t){return Lo(t||e,e)}let Kz={};function Yh(){return Kz}function Qu(e,t){var s,l,u,c;const n=Yh(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=Hr(e,t==null?void 0:t.in),o=i.getDay(),a=(o=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Rk(e){const t=Hr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Gz(e,...t){const n=Lo.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Mk(e,t){const n=Hr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Qz(e,t,n){const[r,i]=Gz(n==null?void 0:n.in,e,t),o=Mk(r),a=Mk(i),s=+o-Rk(o),l=+a-Rk(a);return Math.round((s-l)/Yz)}function Xz(e,t){const n=J2(e,t),r=Lo(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Vf(r)}function Jz(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zz(e){return!(!Jz(e)&&typeof e!="number"||isNaN(+Hr(e)))}function e9(e,t){const n=Hr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const t9={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n9=(e,t,n)=>{let r;const i=t9[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function fg(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const r9={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i9={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o9={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a9={date:fg({formats:r9,defaultWidth:"full"}),time:fg({formats:i9,defaultWidth:"full"}),dateTime:fg({formats:o9,defaultWidth:"full"})},s9={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l9=(e,t,n,r)=>s9[e];function $l(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const u9={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},f9={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},p9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},h9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},m9=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},g9={ordinalNumber:m9,era:$l({values:u9,defaultWidth:"wide"}),quarter:$l({values:c9,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$l({values:d9,defaultWidth:"wide"}),day:$l({values:f9,defaultWidth:"wide"}),dayPeriod:$l({values:p9,defaultWidth:"wide",formattingValues:h9,defaultFormattingWidth:"wide"})};function Wl(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?y9(s,d=>d.test(a)):b9(s,d=>d.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(a.length);return{value:u,rest:c}}}function b9(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function y9(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const v9=/^(\d+)(th|st|nd|rd)?/i,T9=/\d+/i,k9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},x9={any:[/^b/i,/^(a|c)/i]},S9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},w9={any:[/1/i,/2/i,/3/i,/4/i]},_9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},C9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},N9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},A9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},O9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},I9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},R9={ordinalNumber:E9({matchPattern:v9,parsePattern:T9,valueCallback:e=>parseInt(e,10)}),era:Wl({matchPatterns:k9,defaultMatchWidth:"wide",parsePatterns:x9,defaultParseWidth:"any"}),quarter:Wl({matchPatterns:S9,defaultMatchWidth:"wide",parsePatterns:w9,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Wl({matchPatterns:_9,defaultMatchWidth:"wide",parsePatterns:C9,defaultParseWidth:"any"}),day:Wl({matchPatterns:N9,defaultMatchWidth:"wide",parsePatterns:A9,defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:O9,defaultMatchWidth:"any",parsePatterns:I9,defaultParseWidth:"any"})},M9={code:"en-US",formatDistance:n9,formatLong:a9,formatRelative:l9,localize:g9,match:R9,options:{weekStartsOn:0,firstWeekContainsDate:1}};function D9(e,t){const n=Hr(e,t==null?void 0:t.in);return Qz(n,e9(n))+1}function L9(e,t){const n=Hr(e,t==null?void 0:t.in),r=+Vf(n)-+Xz(n);return Math.round(r/X2)+1}function Z2(e,t){var c,d,f,p;const n=Hr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Yh(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(f=i.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=Lo((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Qu(a,t),l=Lo((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const u=Qu(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function P9(e,t){var s,l,u,c;const n=Yh(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=Z2(e,t),o=Lo((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Qu(o,t)}function B9(e,t){const n=Hr(e,t==null?void 0:t.in),r=+Qu(n,t)-+P9(n,t);return Math.round(r/X2)+1}function Ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const $i={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ue(n+1,2)},d(e,t){return Ue(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ue(e.getHours()%12||12,t.length)},H(e,t){return Ue(e.getHours(),t.length)},m(e,t){return Ue(e.getMinutes(),t.length)},s(e,t){return Ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ue(i,t.length)}},ss={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Dk={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return $i.y(e,t)},Y:function(e,t,n,r){const i=Z2(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Ue(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ue(o,t.length)},R:function(e,t){const n=J2(e);return Ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ue(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return $i.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=B9(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ue(i,t.length)},I:function(e,t,n){const r=L9(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):$i.d(e,t)},D:function(e,t,n){const r=D9(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ue(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ue(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ue(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Ue(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ss.noon:r===0?i=ss.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ss.evening:r>=12?i=ss.afternoon:r>=4?i=ss.morning:i=ss.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return $i.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):$i.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):$i.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):$i.s(e,t)},S:function(e,t){return $i.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Pk(r);case"XXXX":case"XX":return na(r);case"XXXXX":case"XXX":default:return na(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Pk(r);case"xxxx":case"xx":return na(r);case"xxxxx":case"xxx":default:return na(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Lk(r,":");case"OOOO":default:return"GMT"+na(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Lk(r,":");case"zzzz":default:return"GMT"+na(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ue(r,t.length)},T:function(e,t,n){return Ue(+e,t.length)}};function Lk(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ue(o,2)}function Pk(e,t){return e%60===0?(e>0?"-":"+")+Ue(Math.abs(e)/60,2):na(e,t)}function na(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ue(Math.trunc(r/60),2),o=Ue(r%60,2);return n+i+t+o}const Bk=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},eA=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},z9=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Bk(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Bk(r,t)).replace("{{time}}",eA(i,t))},F9={p:eA,P:z9},H9=/^D+$/,U9=/^Y+$/,j9=["D","DD","YY","YYYY"];function $9(e){return H9.test(e)}function W9(e){return U9.test(e)}function V9(e,t,n){const r=q9(e,t,n);if(console.warn(r),j9.includes(e))throw new RangeError(r)}function q9(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Y9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,K9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G9=/^'([^]*?)'?$/,Q9=/''/g,X9=/[a-zA-Z]/;function vb(e,t,n){var c,d,f,p;const r=Yh(),i=r.locale??M9,o=r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,a=r.weekStartsOn??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??0,s=Hr(e,n==null?void 0:n.in);if(!Zz(s))throw new RangeError("Invalid time value");let l=t.match(K9).map(h=>{const m=h[0];if(m==="p"||m==="P"){const y=F9[m];return y(h,i.formatLong)}return h}).join("").match(Y9).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const m=h[0];if(m==="'")return{isToken:!1,value:J9(h)};if(Dk[m])return{isToken:!0,value:h};if(m.match(X9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:h}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(h=>{if(!h.isToken)return h.value;const m=h.value;(W9(m)||$9(m))&&V9(m,t,String(e));const y=Dk[m[0]];return y(s,m,i.localize,u)}).join("")}function J9(e){const t=e.match(G9);return t?t[1].replace(Q9,"'"):e}/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var Z9={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Ze=(e,t,n,r)=>{const i=S.forwardRef(({color:o="currentColor",size:a=24,stroke:s=2,title:l,className:u,children:c,...d},f)=>S.createElement("svg",{ref:f,...Z9[e],width:a,height:a,className:["tabler-icon",`tabler-icon-${t}`,u].join(" "),strokeWidth:s,stroke:o,...d},[l&&S.createElement("title",{key:"svg-title"},l),...r.map(([p,h])=>S.createElement(p,h)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i};/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var eF=Ze("outline","bold","IconBold",[["path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z",key:"svg-0"}],["path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var Tb=Ze("outline","brand-github","IconBrandGithub",[["path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var tF=Ze("outline","check","IconCheck",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var nF=Ze("outline","chevron-left","IconChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var rF=Ze("outline","chevron-right","IconChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var iF=Ze("outline","clear-formatting","IconClearFormatting",[["path",{d:"M17 15l4 4m0 -4l-4 4",key:"svg-0"}],["path",{d:"M7 6v-1h11v1",key:"svg-1"}],["path",{d:"M7 19l4 0",key:"svg-2"}],["path",{d:"M13 5l-4 14",key:"svg-3"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var tA=Ze("outline","cloud","IconCloud",[["path",{d:"M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-11.878",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var oF=Ze("outline","code","IconCode",[["path",{d:"M7 8l-4 4l4 4",key:"svg-0"}],["path",{d:"M17 8l4 4l-4 4",key:"svg-1"}],["path",{d:"M14 4l-4 16",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var aF=Ze("outline","columns","IconColumns",[["path",{d:"M4 6l5.5 0",key:"svg-0"}],["path",{d:"M4 10l5.5 0",key:"svg-1"}],["path",{d:"M4 14l5.5 0",key:"svg-2"}],["path",{d:"M4 18l5.5 0",key:"svg-3"}],["path",{d:"M14.5 6l5.5 0",key:"svg-4"}],["path",{d:"M14.5 10l5.5 0",key:"svg-5"}],["path",{d:"M14.5 14l5.5 0",key:"svg-6"}],["path",{d:"M14.5 18l5.5 0",key:"svg-7"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var nA=Ze("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var zk=Ze("outline","edit","IconEdit",[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var Fk=Ze("outline","eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var sF=Ze("outline","h-1","IconH1",[["path",{d:"M19 18v-8l-2 2",key:"svg-0"}],["path",{d:"M4 6v12",key:"svg-1"}],["path",{d:"M12 6v12",key:"svg-2"}],["path",{d:"M11 18h2",key:"svg-3"}],["path",{d:"M3 18h2",key:"svg-4"}],["path",{d:"M4 12h8",key:"svg-5"}],["path",{d:"M3 6h2",key:"svg-6"}],["path",{d:"M11 6h2",key:"svg-7"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var lF=Ze("outline","h-2","IconH2",[["path",{d:"M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0",key:"svg-0"}],["path",{d:"M4 6v12",key:"svg-1"}],["path",{d:"M12 6v12",key:"svg-2"}],["path",{d:"M11 18h2",key:"svg-3"}],["path",{d:"M3 18h2",key:"svg-4"}],["path",{d:"M4 12h8",key:"svg-5"}],["path",{d:"M3 6h2",key:"svg-6"}],["path",{d:"M11 6h2",key:"svg-7"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var uF=Ze("outline","h-3","IconH3",[["path",{d:"M19 14a2 2 0 1 0 -2 -2",key:"svg-0"}],["path",{d:"M17 16a2 2 0 1 0 2 -2",key:"svg-1"}],["path",{d:"M4 6v12",key:"svg-2"}],["path",{d:"M12 6v12",key:"svg-3"}],["path",{d:"M11 18h2",key:"svg-4"}],["path",{d:"M3 18h2",key:"svg-5"}],["path",{d:"M4 12h8",key:"svg-6"}],["path",{d:"M3 6h2",key:"svg-7"}],["path",{d:"M11 6h2",key:"svg-8"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var cF=Ze("outline","italic","IconItalic",[["path",{d:"M11 5l6 0",key:"svg-0"}],["path",{d:"M7 19l6 0",key:"svg-1"}],["path",{d:"M14 5l-4 14",key:"svg-2"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var dF=Ze("outline","list-numbers","IconListNumbers",[["path",{d:"M11 6h9",key:"svg-0"}],["path",{d:"M11 12h9",key:"svg-1"}],["path",{d:"M12 18h8",key:"svg-2"}],["path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4",key:"svg-3"}],["path",{d:"M6 10v-6l-2 2",key:"svg-4"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var fF=Ze("outline","list","IconList",[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var kb=Ze("outline","moon","IconMoon",[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z",key:"svg-0"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var hu=Ze("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var pF=Ze("outline","quote","IconQuote",[["path",{d:"M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5",key:"svg-0"}],["path",{d:"M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var rA=Ze("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var xb=Ze("outline","sun","IconSun",[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var xE=Ze("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var hF=Ze("outline","typography","IconTypography",[["path",{d:"M4 20l3 0",key:"svg-0"}],["path",{d:"M14 20l7 0",key:"svg-1"}],["path",{d:"M6.9 15l6.9 0",key:"svg-2"}],["path",{d:"M10.2 6.3l5.8 13.7",key:"svg-3"}],["path",{d:"M5 20l6 -16l2 0l7 16",key:"svg-4"}]]);/** + * @license @tabler/icons-react v3.22.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var iA=Ze("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);function Hk(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function oA(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const mF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bF={};function Uk(e,t){return(bF.jsx?gF:mF).test(e)}const yF=/[ \t\n\f\r]/g;function EF(e){return typeof e=="object"?e.type==="text"?jk(e.value):!1:jk(e)}function jk(e){return e.replace(yF,"")===""}let Mc=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};Mc.prototype.property={};Mc.prototype.normal={};Mc.prototype.space=null;function aA(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&SF.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Wk,CF);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Wk.test(o)){let a=o.replace(wF,_F);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=SE}return new i(r,t)}function _F(e){return"-"+e.toLowerCase()}function CF(e){return e.charAt(1).toUpperCase()}const NF={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Dc=aA([uA,lA,fA,pA,kF],"html"),qo=aA([uA,lA,fA,pA,xF],"svg");function Vk(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function hA(e){return e.join(" ").trim()}var mA={},qk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,AF=/\n/g,OF=/^\s*/,IF=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,RF=/^:\s*/,MF=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,DF=/^[;\s]*/,LF=/^\s+|\s+$/g,PF=` +`,Yk="/",Kk="*",ia="",BF="comment",zF="declaration",FF=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var m=h.match(AF);m&&(n+=m.length);var y=h.lastIndexOf(PF);r=~y?h.length-y:r+h.length}function o(){var h={line:n,column:r};return function(m){return m.position=new a(h),u(),m}}function a(h){this.start=h,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(h){var m=new Error(t.source+":"+n+":"+r+": "+h);if(m.reason=h,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function l(h){var m=h.exec(e);if(m){var y=m[0];return i(y),e=e.slice(y.length),m}}function u(){l(OF)}function c(h){var m;for(h=h||[];m=d();)m!==!1&&h.push(m);return h}function d(){var h=o();if(!(Yk!=e.charAt(0)||Kk!=e.charAt(1))){for(var m=2;ia!=e.charAt(m)&&(Kk!=e.charAt(m)||Yk!=e.charAt(m+1));)++m;if(m+=2,ia===e.charAt(m-1))return s("End of comment missing");var y=e.slice(2,m-2);return r+=2,i(y),e=e.slice(m),r+=2,h({type:BF,comment:y})}}function f(){var h=o(),m=l(IF);if(m){if(d(),!l(RF))return s("property missing ':'");var y=l(MF),b=h({type:zF,property:Gk(m[0].replace(qk,ia)),value:y?Gk(y[0].replace(qk,ia)):ia});return l(DF),b}}function p(){var h=[];c(h);for(var m;m=f();)m!==!1&&(h.push(m),c(h));return h}return u(),p()};function Gk(e){return e?e.replace(LF,ia):ia}var HF=Av&&Av.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mA,"__esModule",{value:!0});var Qk=mA.default=jF,UF=HF(FF);function jF(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,UF.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}const $F=Qk.default||Qk,Gh=gA("end"),ci=gA("start");function gA(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function WF(e){const t=ci(e),n=Gh(e);if(t&&n)return{start:t,end:n}}function mu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Xk(e.position):"start"in e||"end"in e?Xk(e):"line"in e||"column"in e?wb(e):""}function wb(e){return Jk(e&&e.line)+":"+Jk(e&&e.column)}function Xk(e){return wb(e&&e.start)+"-"+wb(e&&e.end)}function Jk(e){return e&&typeof e=="number"?e:1}class sn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=mu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}sn.prototype.file="";sn.prototype.name="";sn.prototype.reason="";sn.prototype.message="";sn.prototype.stack="";sn.prototype.column=void 0;sn.prototype.line=void 0;sn.prototype.ancestors=void 0;sn.prototype.cause=void 0;sn.prototype.fatal=void 0;sn.prototype.place=void 0;sn.prototype.ruleId=void 0;sn.prototype.source=void 0;const wE={}.hasOwnProperty,VF=new Map,qF=/[A-Z]/g,YF=/-([a-z])/g,KF=new Set(["table","tbody","thead","tfoot","tr"]),GF=new Set(["td","th"]),bA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function QF(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=i7(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=r7(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?qo:Dc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=yA(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function yA(e,t,n){if(t.type==="element")return XF(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return JF(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return e7(e,t,n);if(t.type==="mdxjsEsm")return ZF(e,t);if(t.type==="root")return t7(e,t,n);if(t.type==="text")return n7(e,t)}function XF(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=qo,e.schema=i),e.ancestors.push(t);const o=vA(e,t.tagName,!1),a=o7(e,t);let s=CE(e,t);return KF.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!EF(l):!0})),EA(e,a,o,t),_E(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function JF(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ju(e,t.position)}function ZF(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ju(e,t.position)}function e7(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=qo,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:vA(e,t.name,!0),a=a7(e,t),s=CE(e,t);return EA(e,a,o,t),_E(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function t7(e,t,n){const r={};return _E(r,CE(e,t)),e.create(t,e.Fragment,r,n)}function n7(e,t){return t.value}function EA(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function _E(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function r7(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function i7(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=ci(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function o7(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&wE.call(t.properties,i)){const o=s7(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&GF.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function a7(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Ju(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Ju(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function CE(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:VF;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(Wn(e,e.length,0,t),e):t}const tx={}.hasOwnProperty;function kA(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Mr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fn=Yo(/[A-Za-z]/),rn=Yo(/[\dA-Za-z]/),b7=Yo(/[#-'*+\--9=?A-Z^-~]/);function qf(e){return e!==null&&(e<32||e===127)}const _b=Yo(/\d/),y7=Yo(/[\dA-Fa-f]/),E7=Yo(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const Qh=Yo(new RegExp("\\p{P}|\\p{S}","u")),za=Yo(/\s/);function Yo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function wl(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function De(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Ne(l)?(e.enter(n),s(l)):t(l)}function s(l){return Ne(l)&&o++a))return;const I=t.events.length;let R=I,z,A;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(z){A=t.events[R][1].end;break}z=!0}for(b(r),x=I;xv;){const _=n[k];t.containerState=_[1],_[0].exit.call(t,e)}n.length=v}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function S7(e,t,n){return De(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ol(e){if(e===null||Ye(e)||za(e))return 1;if(Qh(e))return 2}function Xh(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};rx(d,-l),rx(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=or(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=or(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=or(u,Xh(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=or(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=or(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Wn(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Ne(x)?De(e,E,"linePrefix",o+1)(x):E(x)}function E(x){return x===null||he(x)?e.check(ix,m,k)(x):(e.enter("codeFlowValue"),v(x))}function v(x){return x===null||he(x)?(e.exit("codeFlowValue"),E(x)):(e.consume(x),v)}function k(x){return e.exit("codeFenced"),t(x)}function _(x,I,R){let z=0;return A;function A(H){return x.enter("lineEnding"),x.consume(H),x.exit("lineEnding"),j}function j(H){return x.enter("codeFencedFence"),Ne(H)?De(x,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):L(H)}function L(H){return H===s?(x.enter("codeFencedFenceSequence"),U(H)):R(H)}function U(H){return H===s?(z++,x.consume(H),U):z>=a?(x.exit("codeFencedFenceSequence"),Ne(H)?De(x,V,"whitespace")(H):V(H)):R(H)}function V(H){return H===null||he(H)?(x.exit("codeFencedFence"),I(H)):R(H)}}}function P7(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const mg={name:"codeIndented",tokenize:z7},B7={partial:!0,tokenize:F7};function z7(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),De(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):he(u)?e.attempt(B7,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||he(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function F7(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):he(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):De(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):he(a)?i(a):n(a)}}const H7={name:"codeText",previous:j7,resolve:U7,tokenize:$7};function U7(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length)return this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse();const i=this.left.slice(t);return i.push(...this.right.slice(this.right.length-r+this.left.length).reverse()),i}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Vl(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Vl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Vl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function NA(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(b){return b===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(b),e.exit(o),f):b===null||b===32||b===41||qf(b)?n(b):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(b))}function f(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(s),f(b)):b===null||b===60||he(b)?n(b):(e.consume(b),b===92?h:p)}function h(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function m(b){return!c&&(b===null||b===41||Ye(b))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):c999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):he(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||he(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!Ne(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function OA(e,t,n,r,i,o){let a;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l):n(f)}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===a?(e.exit(o),l(a)):f===null?n(f):he(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),De(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||he(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===a||f===92?(e.consume(f),c):c(f)}}function gu(e,t){let n;return r;function r(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ne(i)?De(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const X7={name:"definition",tokenize:Z7},J7={partial:!0,tokenize:eH};function Z7(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return AA.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=Mr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Ye(p)?gu(e,u)(p):u(p)}function u(p){return NA(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(J7,d,d)(p)}function d(p){return Ne(p)?De(e,f,"whitespace")(p):f(p)}function f(p){return p===null||he(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function eH(e,t,n){return r;function r(s){return Ye(s)?gu(e,i)(s):n(s)}function i(s){return OA(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Ne(s)?De(e,a,"whitespace")(s):a(s)}function a(s){return s===null||he(s)?t(s):n(s)}}const tH={name:"hardBreakEscape",tokenize:nH};function nH(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return he(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const rH={name:"headingAtx",resolve:iH,tokenize:oH};function iH(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Wn(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function oH(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||Ye(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Ne(c)?De(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||Ye(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const aH=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ax=["pre","script","style","textarea"],sH={concrete:!0,name:"htmlFlow",resolveTo:cH,tokenize:dH},lH={partial:!0,tokenize:pH},uH={partial:!0,tokenize:fH};function cH(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function dH(e,t,n){const r=this;let i,o,a,s,l;return u;function u(D){return c(D)}function c(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),f):D===47?(e.consume(D),o=!0,m):D===63?(e.consume(D),i=3,r.interrupt?t:w):fn(D)?(e.consume(D),a=String.fromCharCode(D),y):n(D)}function f(D){return D===45?(e.consume(D),i=2,p):D===91?(e.consume(D),i=5,s=0,h):fn(D)?(e.consume(D),i=4,r.interrupt?t:w):n(D)}function p(D){return D===45?(e.consume(D),r.interrupt?t:w):n(D)}function h(D){const be="CDATA[";return D===be.charCodeAt(s++)?(e.consume(D),s===be.length?r.interrupt?t:L:h):n(D)}function m(D){return fn(D)?(e.consume(D),a=String.fromCharCode(D),y):n(D)}function y(D){if(D===null||D===47||D===62||Ye(D)){const be=D===47,ge=a.toLowerCase();return!be&&!o&&ax.includes(ge)?(i=1,r.interrupt?t(D):L(D)):aH.includes(a.toLowerCase())?(i=6,be?(e.consume(D),b):r.interrupt?t(D):L(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):o?E(D):v(D))}return D===45||rn(D)?(e.consume(D),a+=String.fromCharCode(D),y):n(D)}function b(D){return D===62?(e.consume(D),r.interrupt?t:L):n(D)}function E(D){return Ne(D)?(e.consume(D),E):A(D)}function v(D){return D===47?(e.consume(D),A):D===58||D===95||fn(D)?(e.consume(D),k):Ne(D)?(e.consume(D),v):A(D)}function k(D){return D===45||D===46||D===58||D===95||rn(D)?(e.consume(D),k):_(D)}function _(D){return D===61?(e.consume(D),x):Ne(D)?(e.consume(D),_):v(D)}function x(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),l=D,I):Ne(D)?(e.consume(D),x):R(D)}function I(D){return D===l?(e.consume(D),l=null,z):D===null||he(D)?n(D):(e.consume(D),I)}function R(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Ye(D)?_(D):(e.consume(D),R)}function z(D){return D===47||D===62||Ne(D)?v(D):n(D)}function A(D){return D===62?(e.consume(D),j):n(D)}function j(D){return D===null||he(D)?L(D):Ne(D)?(e.consume(D),j):n(D)}function L(D){return D===45&&i===2?(e.consume(D),B):D===60&&i===1?(e.consume(D),M):D===62&&i===4?(e.consume(D),q):D===63&&i===3?(e.consume(D),w):D===93&&i===5?(e.consume(D),F):he(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lH,X,U)(D)):D===null||he(D)?(e.exit("htmlFlowData"),U(D)):(e.consume(D),L)}function U(D){return e.check(uH,V,X)(D)}function V(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),H}function H(D){return D===null||he(D)?U(D):(e.enter("htmlFlowData"),L(D))}function B(D){return D===45?(e.consume(D),w):L(D)}function M(D){return D===47?(e.consume(D),a="",N):L(D)}function N(D){if(D===62){const be=a.toLowerCase();return ax.includes(be)?(e.consume(D),q):L(D)}return fn(D)&&a.length<8?(e.consume(D),a+=String.fromCharCode(D),N):L(D)}function F(D){return D===93?(e.consume(D),w):L(D)}function w(D){return D===62?(e.consume(D),q):D===45&&i===2?(e.consume(D),w):L(D)}function q(D){return D===null||he(D)?(e.exit("htmlFlowData"),X(D)):(e.consume(D),q)}function X(D){return e.exit("htmlFlow"),t(D)}}function fH(e,t,n){const r=this;return i;function i(a){return he(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function pH(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Lc,t,n)}}const hH={name:"htmlText",tokenize:mH};function mH(e,t,n){const r=this;let i,o,a;return s;function s(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),l}function l(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),_):w===63?(e.consume(w),v):fn(w)?(e.consume(w),R):n(w)}function u(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),o=0,h):fn(w)?(e.consume(w),E):n(w)}function c(w){return w===45?(e.consume(w),p):n(w)}function d(w){return w===null?n(w):w===45?(e.consume(w),f):he(w)?(a=d,M(w)):(e.consume(w),d)}function f(w){return w===45?(e.consume(w),p):d(w)}function p(w){return w===62?B(w):w===45?f(w):d(w)}function h(w){const q="CDATA[";return w===q.charCodeAt(o++)?(e.consume(w),o===q.length?m:h):n(w)}function m(w){return w===null?n(w):w===93?(e.consume(w),y):he(w)?(a=m,M(w)):(e.consume(w),m)}function y(w){return w===93?(e.consume(w),b):m(w)}function b(w){return w===62?B(w):w===93?(e.consume(w),b):m(w)}function E(w){return w===null||w===62?B(w):he(w)?(a=E,M(w)):(e.consume(w),E)}function v(w){return w===null?n(w):w===63?(e.consume(w),k):he(w)?(a=v,M(w)):(e.consume(w),v)}function k(w){return w===62?B(w):v(w)}function _(w){return fn(w)?(e.consume(w),x):n(w)}function x(w){return w===45||rn(w)?(e.consume(w),x):I(w)}function I(w){return he(w)?(a=I,M(w)):Ne(w)?(e.consume(w),I):B(w)}function R(w){return w===45||rn(w)?(e.consume(w),R):w===47||w===62||Ye(w)?z(w):n(w)}function z(w){return w===47?(e.consume(w),B):w===58||w===95||fn(w)?(e.consume(w),A):he(w)?(a=z,M(w)):Ne(w)?(e.consume(w),z):B(w)}function A(w){return w===45||w===46||w===58||w===95||rn(w)?(e.consume(w),A):j(w)}function j(w){return w===61?(e.consume(w),L):he(w)?(a=j,M(w)):Ne(w)?(e.consume(w),j):z(w)}function L(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,U):he(w)?(a=L,M(w)):Ne(w)?(e.consume(w),L):(e.consume(w),V)}function U(w){return w===i?(e.consume(w),i=void 0,H):w===null?n(w):he(w)?(a=U,M(w)):(e.consume(w),U)}function V(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||Ye(w)?z(w):(e.consume(w),V)}function H(w){return w===47||w===62||Ye(w)?z(w):n(w)}function B(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function M(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),N}function N(w){return Ne(w)?De(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):F(w)}function F(w){return e.enter("htmlTextData"),a(w)}}const OE={name:"labelEnd",resolveAll:EH,resolveTo:vH,tokenize:TH},gH={tokenize:kH},bH={tokenize:xH},yH={tokenize:SH};function EH(e){let t=-1;const n=[];for(;++t=3&&(u===null||he(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Ne(u)?De(e,s,"whitespace")(u):s(u))}}const kn={continuation:{tokenize:DH},exit:PH,name:"list",tokenize:MH},IH={partial:!0,tokenize:BH},RH={partial:!0,tokenize:LH};function MH(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:_b(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(rf,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return _b(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Lc,r.interrupt?n:c,e.attempt(IH,f,d))}function c(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return Ne(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function DH(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Lc,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,De(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Ne(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(RH,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,De(e,e.attempt(kn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function LH(e,t,n){const r=this;return De(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function PH(e){e.exit(this.containerState.type)}function BH(e,t,n){const r=this;return De(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Ne(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const sx={name:"setextUnderline",resolveTo:zH,tokenize:FH};function zH(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function FH(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Ne(u)?De(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||he(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const HH={tokenize:UH};function UH(e){const t=this,n=e.attempt(Lc,r,e.attempt(this.parser.constructs.flowInitial,i,De(e,e.attempt(this.parser.constructs.flow,i,e.attempt(q7,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const jH={resolveAll:RA()},$H=IA("string"),WH=IA("text");function IA(e){return{resolveAll:RA(e==="text"?VH:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let f=-1;if(d)for(;++f-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function iU(e,t){let n=-1;const r=[];let i;for(;++n0){const $e=Q.tokenStack[Q.tokenStack.length-1];($e[1]||ux).call(Q,void 0,$e[0])}for(W.position={start:Wi(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Wi(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function TU(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kU(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function LA(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function xU(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return LA(e,t);const i={src:wl(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function SU(e,t){const n={src:wl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function wU(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function _U(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return LA(e,t);const i={href:wl(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function CU(e,t){const n={href:wl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function NU(e,t,n){const r=e.all(t),i=n?AU(n):PA(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s1}function OU(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=ci(t.children[1]),l=Gh(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function LU(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(fx(t.slice(i),i>0,!1)),o.join("")}function fx(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===cx||o===dx;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===cx||o===dx;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function zU(e,t){const n={type:"text",value:BU(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function FU(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const HU={blockquote:mU,break:gU,code:bU,delete:yU,emphasis:EU,footnoteReference:vU,heading:TU,html:kU,imageReference:xU,image:SU,inlineCode:wU,linkReference:_U,link:CU,listItem:NU,list:OU,paragraph:IU,root:RU,strong:MU,table:DU,tableCell:PU,tableRow:LU,text:zU,thematicBreak:FU,toml:gd,yaml:gd,definition:gd,footnoteDefinition:gd};function gd(){}const BA=-1,Jh=0,Yf=1,Kf=2,IE=3,RE=4,ME=5,DE=6,zA=7,FA=8,px=typeof self=="object"?self:globalThis,UU=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case Jh:case BA:return n(a,i);case Yf:{const s=n([],i);for(const l of a)s.push(r(l));return s}case Kf:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case IE:return n(new Date(a),i);case RE:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case ME:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case DE:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case zA:{const{name:s,message:l}=a;return n(new px[s](l),i)}case FA:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new px[o](a),i)};return r},hx=e=>UU(new Map,e)(0),ls="",{toString:jU}={},{keys:$U}=Object,ql=e=>{const t=typeof e;if(t!=="object"||!e)return[Jh,t];const n=jU.call(e).slice(8,-1);switch(n){case"Array":return[Yf,ls];case"Object":return[Kf,ls];case"Date":return[IE,ls];case"RegExp":return[RE,ls];case"Map":return[ME,ls];case"Set":return[DE,ls]}return n.includes("Array")?[Yf,n]:n.includes("Error")?[zA,n]:[Kf,n]},bd=([e,t])=>e===Jh&&(t==="function"||t==="symbol"),WU=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=ql(a);switch(s){case Jh:{let c=a;switch(l){case"bigint":s=FA,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([BA],a)}return i([s,c],a)}case Yf:{if(l)return i([l,[...a]],a);const c=[],d=i([s,c],a);for(const f of a)c.push(o(f));return d}case Kf:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const c=[],d=i([s,c],a);for(const f of $U(a))(e||!bd(ql(a[f])))&&c.push([o(f),o(a[f])]);return d}case IE:return i([s,a.toISOString()],a);case RE:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case ME:{const c=[],d=i([s,c],a);for(const[f,p]of a)(e||!(bd(ql(f))||bd(ql(p))))&&c.push([o(f),o(p)]);return d}case DE:{const c=[],d=i([s,c],a);for(const f of a)(e||!bd(ql(f)))&&c.push(o(f));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},mx=(e,{json:t,lossy:n}={})=>{const r=[];return WU(!(t||n),!!t,new Map,r)(e),r},al=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?hx(mx(e,t)):structuredClone(e):(e,t)=>hx(mx(e,t));function VU(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function qU(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function YU(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||VU,r=e.options.footnoteBackLabel||qU,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&h.push({type:"text",value:" "});let E=typeof n=="string"?n:n(l,p);typeof E=="string"&&(E={type:"text",value:E}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const E=y.children[y.children.length-1];E&&E.type==="text"?E.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...h)}else c.push(...h);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,b),s.push(b)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...al(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const Pc=function(e){if(e==null)return XU;if(typeof e=="function")return Zh(e);if(typeof e=="object")return Array.isArray(e)?KU(e):GU(e);if(typeof e=="string")return QU(e);throw new Error("Expected function, string, or object as test")};function KU(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=HA,h,m,y;if((!t||o(l,u,c[c.length-1]||void 0))&&(p=tj(n(l,c)),p[0]===Nb))return p;if("children"in l&&l.children){const b=l;if(b.children&&p[0]!==ej)for(m=(r?b.children.length:-1)+a,y=c.concat(b);m>-1&&m0&&n.push({type:"text",value:` +`}),n}function gx(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function bx(e,t){const n=rj(e,t),r=n.one(e,void 0),i=YU(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` +`},i),o}function lj(e,t){return e&&"run"in e?async function(n,r){const i=bx(n,{file:r,...t});await e.run(i,r)}:function(n,r){return bx(n,{file:r,...e||t})}}function yx(e){if(e)throw e}var of=Object.prototype.hasOwnProperty,jA=Object.prototype.toString,Ex=Object.defineProperty,vx=Object.getOwnPropertyDescriptor,Tx=function(t){return typeof Array.isArray=="function"?Array.isArray(t):jA.call(t)==="[object Array]"},kx=function(t){if(!t||jA.call(t)!=="[object Object]")return!1;var n=of.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&of.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||of.call(t,i)},xx=function(t,n){Ex&&n.name==="__proto__"?Ex(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Sx=function(t,n){if(n==="__proto__")if(of.call(t,n)){if(vx)return vx(t,n).value}else return;return t[n]},uj=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});la.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const Vr={basename:fj,dirname:pj,extname:hj,join:mj,sep:"/"};function fj(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zc(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function pj(e){if(zc(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function hj(e){zc(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function mj(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function bj(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function zc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yj={cwd:Ej};function Ej(){return"/"}function Ib(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function vj(e){if(typeof e=="string")e=new URL(e);else if(!Ib(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Tj(e)}function Tj(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...h]=c;const m=r[f][1];Ob(m)&&Ob(p)&&(p=bg(!0,m,p)),r[f]=[u,p,...h]}}}}const wj=new LE().freeze();function Tg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xg(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _x(e){if(!Ob(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Cx(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yd(e){return _j(e)?e:new $A(e)}function _j(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Cj(e){return typeof e=="string"||Nj(e)}function Nj(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Aj="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nx=[],Ax={allowDangerousHtml:!0},Oj=/^(https?|ircs?|mailto|xmpp)$/i,Ij=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Rj(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Nx,l=e.remarkPlugins||Nx,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ax}:Ax,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Mj,p=wj().use(hU).use(l).use(lj,u).use(s),h=new $A;typeof r=="string"&&(h.value=r);for(const E of Ij)Object.hasOwn(e,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+Aj+E.id,void 0);const m=p.parse(h);let y=p.runSync(m,h);return i&&(y={type:"element",tagName:"div",properties:{className:i},children:y.type==="root"?y.children:[y]}),Bc(y,b),QF(y,{Fragment:T.Fragment,components:o,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function b(E,v,k){if(E.type==="raw"&&k&&typeof v=="number")return c?k.children.splice(v,1):k.children[v]={type:"text",value:E.value},v;if(E.type==="element"){let _;for(_ in hg)if(Object.hasOwn(hg,_)&&Object.hasOwn(E.properties,_)){const x=E.properties[_],I=hg[_];(I===null||I.includes(E.tagName))&&(E.properties[_]=f(String(x||""),_,E))}}if(E.type==="element"){let _=t?!t.includes(E.tagName):a?a.includes(E.tagName):!1;if(!_&&n&&typeof v=="number"&&(_=!n(E,v,k)),_&&k&&typeof v=="number")return d&&E.children?k.children.splice(v,1,...E.children):k.children.splice(v,1),v}}}function Mj(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||Oj.test(e.slice(0,t))?e:""}function Ox(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Dj(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Lj(e,t,n){const i=Pc((n||{}).ignore||[]),o=Pj(t);let a=-1;for(;++a0?{type:"text",value:x}:void 0),x===!1?f.lastIndex=k+1:(h!==k&&E.push({type:"text",value:u.value.slice(h,k)}),Array.isArray(x)?E.push(...x):x&&E.push(x),h=k+v[0].length,b=!0),!f.global)break;v=f.exec(u.value)}return b?(h?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Ox(e,"(");let o=Ox(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function WA(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||za(n)||Qh(n))&&(!t||n!==47)}VA.peek=s$;function Xj(){return{enter:{gfmFootnoteDefinition:Zj,gfmFootnoteDefinitionLabelString:e$,gfmFootnoteCall:r$,gfmFootnoteCallString:i$},exit:{gfmFootnoteDefinition:n$,gfmFootnoteDefinitionLabelString:t$,gfmFootnoteCall:a$,gfmFootnoteCallString:o$}}}function Jj(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:l$,footnoteReference:VA}}}function Zj(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function e$(){this.buffer()}function t$(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Mr(this.sliceSerialize(e)).toLowerCase()}function n$(e){this.exit(e)}function r$(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i$(){this.buffer()}function o$(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Mr(this.sliceSerialize(e)).toLowerCase()}function a$(e){this.exit(e)}function VA(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function s$(){return"["}function l$(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),u$)),a(),o}function u$(e,t,n){return t===0?e:(n?"":" ")+e}const c$=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qA.peek=m$;function d$(){return{canContainEols:["delete"],enter:{strikethrough:p$},exit:{strikethrough:h$}}}function f$(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:c$}],handlers:{delete:qA}}}function p$(e){this.enter({type:"delete",children:[]},e)}function h$(e){this.exit(e)}function qA(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function m$(){return"~"}function g$(e){return e.length}function b$(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||g$,o=[],a=[],s=[],l=[];let u=0,c=-1;for(;++cu&&(u=e[c].length);++bl[b])&&(l[b]=v)}m.push(E)}a[c]=m,s[c]=y}let d=-1;if(typeof r=="object"&&"length"in r)for(;++dl[d]&&(l[d]=E),p[d]=E),f[d]=v}a.splice(1,0,f),s.splice(1,0,p),c=-1;const h=[];for(;++c "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),v$);return i(),a}function v$(e,t,n){return">"+(n?"":" ")+e}function T$(e,t){return Mx(e,t.inConstruct,!0)&&!Mx(e,t.notInConstruct,!1)}function Mx(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ra&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function x$(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function S$(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function w$(e,t,n,r){const i=S$(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(x$(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(o,_$);return d(),f}const s=n.createTracker(r),l=i.repeat(Math.max(k$(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:` +`,encode:["`"],...s.current()})),d()}return c+=s.move(` +`),o&&(c+=s.move(o+` +`)),c+=s.move(l),u(),c}function _$(e,t,n){return(n?"":" ")+e}function PE(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function C$(e,t,n,r){const i=PE(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function N$(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Zu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Gf(e,t,n){const r=ol(e),i=ol(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}KA.peek=A$;function KA(e,t,n,r){const i=N$(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),c=Gf(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Zu(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Gf(r.after.charCodeAt(0),d,i);f.inside&&(l=l.slice(0,-1)+Zu(d));const p=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+p}function A$(e,t,n){return n.options.emphasis||"*"}function O$(e,t){let n=!1;return Bc(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Nb}),!!((!e.depth||e.depth<3)&&NE(e)&&(t.options.setext||n))}function I$(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(O$(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...o.current(),before:` +`,after:` +`});return d(),c(),f+` +`+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(` +`))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:` +`,...o.current()});return/^[\t ]/.test(u)&&(u=Zu(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}GA.peek=R$;function GA(e){return e.value||""}function R$(){return"<"}QA.peek=M$;function QA(e,t,n,r){const i=PE(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function M$(){return"!"}XA.peek=D$;function XA(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function D$(){return"!"}JA.peek=L$;function JA(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}eO.peek=P$;function eO(e,t,n,r){const i=PE(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(ZA(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=c,d}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function P$(e,t,n){return ZA(e,n)?"<":"["}tO.peek=B$;function tO(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function B$(){return"["}function BE(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function z$(e){const t=BE(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function F$(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nO(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function H$(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?F$(n):BE(n);const s=e.ordered?a==="."?")":".":z$(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),nO(n)===a&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(d,f,p){return f?(p?"":" ".repeat(a))+d:(p?o:o+" ".repeat(a-o.length))+d}}function $$(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const W$=Pc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function V$(e,t,n,r){return(e.children.some(function(a){return W$(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function q$(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}rO.peek=Y$;function rO(e,t,n,r){const i=q$(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),c=Gf(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Zu(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Gf(r.after.charCodeAt(0),d,i);f.inside&&(l=l.slice(0,-1)+Zu(d));const p=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+p}function Y$(e,t,n){return n.options.strong||"*"}function K$(e,t,n,r){return n.safe(e.value,r)}function G$(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Q$(e,t,n){const r=(nO(n)+(n.options.ruleSpaces?" ":"")).repeat(G$(n));return n.options.ruleSpaces?r.slice(0,-1):r}const iO={blockquote:E$,break:Dx,code:w$,definition:C$,emphasis:KA,hardBreak:Dx,heading:I$,html:GA,image:QA,imageReference:XA,inlineCode:JA,link:eO,linkReference:tO,list:H$,listItem:j$,paragraph:$$,root:V$,strong:rO,text:K$,thematicBreak:Q$};function X$(){return{enter:{table:J$,tableData:Lx,tableHeader:Lx,tableRow:eW},exit:{codeText:tW,table:Z$,tableData:Cg,tableHeader:Cg,tableRow:Cg}}}function J$(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Z$(e){this.exit(e),this.data.inTable=void 0}function eW(e){this.enter({type:"tableRow",children:[]},e)}function Cg(e){this.exit(e)}function Lx(e){this.enter({type:"tableCell",children:[]},e)}function tW(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nW));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function nW(e,t){return t==="|"?t:e}function rW(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:a,tableCell:l,tableRow:s}};function a(p,h,m,y){return u(c(p,m,y),p.align)}function s(p,h,m,y){const b=d(p,m,y),E=u([b]);return E.slice(0,E.indexOf(` +`))}function l(p,h,m,y){const b=m.enter("tableCell"),E=m.enter("phrasing"),v=m.containerPhrasing(p,{...y,before:o,after:o});return E(),b(),v}function u(p,h){return b$(p,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(p,h,m){const y=p.children;let b=-1;const E=[],v=h.enter("table");for(;++b0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const TW={tokenize:AW,partial:!0};function kW(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:_W,continuation:{tokenize:CW},exit:NW}},text:{91:{name:"gfmFootnoteCall",tokenize:wW},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xW,resolveTo:SW}}}}function xW(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Mr(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function SW(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function wW(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||Ye(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Mr(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ye(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function _W(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(a>999||h===93&&!s||h===null||h===91||Ye(h))return n(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return o=Mr(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Ye(h)||(s=!0),a++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),De(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function CW(e,t,n){return e.check(Lc,t,e.attempt(TW,t,n))}function NW(e){e.exit("gfmFootnoteDefinition")}function AW(e,t,n){const r=this;return De(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function OW(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l1?l(h):(a.consume(h),d++,p);if(d<2&&!n)return l(h);const y=a.exit("strikethroughSequenceTemporary"),b=ol(h);return y._open=!b||b===2&&!!m,y._close=!m||m===2&&!!b,s(h)}}}class IW{constructor(){this.map=[]}add(t,n,r){RW(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function RW(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const V=r.events[j][1].type;if(V==="lineEnding"||V==="linePrefix")j--;else break}const L=j>-1?r.events[j][1].type:null,U=L==="tableHead"||L==="tableRow"?x:l;return U===x&&r.parser.lazy[r.now().line]?n(A):U(A)}function l(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(a=!0,o+=1),c(A)}function c(A){return A===null?n(A):he(A)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),p):n(A):Ne(A)?De(e,c,"whitespace")(A):(o+=1,a&&(a=!1,i+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(A)))}function d(A){return A===null||A===124||Ye(A)?(e.exit("data"),c(A)):(e.consume(A),A===92?f:d)}function f(A){return A===92||A===124?(e.consume(A),d):d(A)}function p(A){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(A):(e.enter("tableDelimiterRow"),a=!1,Ne(A)?De(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):h(A))}function h(A){return A===45||A===58?y(A):A===124?(a=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),m):_(A)}function m(A){return Ne(A)?De(e,y,"whitespace")(A):y(A)}function y(A){return A===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):A===45?(o+=1,b(A)):A===null||he(A)?k(A):_(A)}function b(A){return A===45?(e.enter("tableDelimiterFiller"),E(A)):_(A)}function E(A){return A===45?(e.consume(A),E):A===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(A))}function v(A){return Ne(A)?De(e,k,"whitespace")(A):k(A)}function k(A){return A===124?h(A):A===null||he(A)?!a||i!==o?_(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):_(A)}function _(A){return n(A)}function x(A){return e.enter("tableRow"),I(A)}function I(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),I):A===null||he(A)?(e.exit("tableRow"),t(A)):Ne(A)?De(e,I,"whitespace")(A):(e.enter("data"),R(A))}function R(A){return A===null||A===124||Ye(A)?(e.exit("data"),I(A)):(e.consume(A),A===92?z:R)}function z(A){return A===92||A===124?(e.consume(A),R):R(A)}}function PW(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,d;const f=new IW;for(;++nn[2]+1){const h=n[2]+1,m=n[3]-n[2]-1;e.add(h,m,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},hs(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Bx(e,t,n,r,i){const o=[],a=hs(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function hs(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const BW={name:"tasklistCheck",tokenize:FW};function zW(){return{text:{91:BW}}}function FW(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Ye(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return he(l)?t(l):Ne(l)?e.check({tokenize:HW},t,n)(l):n(l)}}function HW(e,t,n){return De(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function UW(e){return kA([fW(),kW(),OW(e),DW(),zW()])}const jW={};function $W(e){const t=this,n=e||jW,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(UW(n)),o.push(lW()),a.push(uW(n))}const zx=/[#.]/g;function WW(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&o<=t.length){let a=0;for(;;){let s=n[a];if(s===void 0){const l=Hx(t,n[a-1]);s=l===-1?t.length+1:l+1,n[a]=s}if(s>o)return{line:a+1,column:o-(a>0?n[a-1]:0)+1,offset:o};a++}}}function i(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length1?n[o.line-2]:0)+o.column-1;if(a=55296&&e<=57343}function gV(e){return e>=56320&&e<=57343}function bV(e,t){return(e-55296)*1024+9216+t}function yO(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function EO(e){return e>=64976&&e<=65007||mV.has(e)}var K;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(K||(K={}));const yV=65536;class EV{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=yV,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:o}=this,a=i+n,s=o+n;return{code:t,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(gV(n))return this.pos++,this._addGap(),bV(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,C.EOF;return this._err(K.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;const r=this.html.charCodeAt(n);return r===C.CARRIAGE_RETURN?C.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;let t=this.html.charCodeAt(this.pos);return t===C.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,C.LINE_FEED):t===C.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,bO(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===C.LINE_FEED||t===C.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){yO(t)?this._err(K.controlCharacterInInputStream):EO(t)&&this._err(K.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const TO=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),vV=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ng;const TV=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),kV=(Ng=String.fromCodePoint)!==null&&Ng!==void 0?Ng:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function xV(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=TV.get(e))!==null&&t!==void 0?t:e}var Dt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Dt||(Dt={}));const SV=32;var po;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(po||(po={}));function Lb(e){return e>=Dt.ZERO&&e<=Dt.NINE}function wV(e){return e>=Dt.UPPER_A&&e<=Dt.UPPER_F||e>=Dt.LOWER_A&&e<=Dt.LOWER_F}function _V(e){return e>=Dt.UPPER_A&&e<=Dt.UPPER_Z||e>=Dt.LOWER_A&&e<=Dt.LOWER_Z||Lb(e)}function CV(e){return e===Dt.EQUALS||_V(e)}var At;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(At||(At={}));var Ti;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ti||(Ti={}));class kO{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=At.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ti.Strict}startEntity(t){this.decodeMode=t,this.state=At.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case At.EntityStart:return t.charCodeAt(n)===Dt.NUM?(this.state=At.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=At.NamedEntity,this.stateNamedEntity(t,n));case At.NumericStart:return this.stateNumericStart(t,n);case At.NumericDecimal:return this.stateNumericDecimal(t,n);case At.NumericHex:return this.stateNumericHex(t,n);case At.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|SV)===Dt.LOWER_X?(this.state=At.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=At.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===Dt.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Ti.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&po.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~po.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case At.NamedEntity:return this.result!==0&&(this.decodeMode!==Ti.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case At.NumericDecimal:return this.emitNumericEntity(0,2);case At.NumericHex:return this.emitNumericEntity(0,3);case At.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case At.EntityStart:return 0}}}function xO(e){let t="";const n=new kO(e,r=>t+=kV(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),n.startEntity(o);const u=n.write(i,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const l=t+i.slice(a);return t="",l}}function NV(e,t,n,r){const i=(t&po.BRANCH_LENGTH)>>7,o=t&po.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+i]}return-1}xO(TO);xO(vV);var J;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(J||(J={}));var va;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(va||(va={}));var ar;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ar||(ar={}));var $;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})($||($={}));var g;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(g||(g={}));const AV=new Map([[$.A,g.A],[$.ADDRESS,g.ADDRESS],[$.ANNOTATION_XML,g.ANNOTATION_XML],[$.APPLET,g.APPLET],[$.AREA,g.AREA],[$.ARTICLE,g.ARTICLE],[$.ASIDE,g.ASIDE],[$.B,g.B],[$.BASE,g.BASE],[$.BASEFONT,g.BASEFONT],[$.BGSOUND,g.BGSOUND],[$.BIG,g.BIG],[$.BLOCKQUOTE,g.BLOCKQUOTE],[$.BODY,g.BODY],[$.BR,g.BR],[$.BUTTON,g.BUTTON],[$.CAPTION,g.CAPTION],[$.CENTER,g.CENTER],[$.CODE,g.CODE],[$.COL,g.COL],[$.COLGROUP,g.COLGROUP],[$.DD,g.DD],[$.DESC,g.DESC],[$.DETAILS,g.DETAILS],[$.DIALOG,g.DIALOG],[$.DIR,g.DIR],[$.DIV,g.DIV],[$.DL,g.DL],[$.DT,g.DT],[$.EM,g.EM],[$.EMBED,g.EMBED],[$.FIELDSET,g.FIELDSET],[$.FIGCAPTION,g.FIGCAPTION],[$.FIGURE,g.FIGURE],[$.FONT,g.FONT],[$.FOOTER,g.FOOTER],[$.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[$.FORM,g.FORM],[$.FRAME,g.FRAME],[$.FRAMESET,g.FRAMESET],[$.H1,g.H1],[$.H2,g.H2],[$.H3,g.H3],[$.H4,g.H4],[$.H5,g.H5],[$.H6,g.H6],[$.HEAD,g.HEAD],[$.HEADER,g.HEADER],[$.HGROUP,g.HGROUP],[$.HR,g.HR],[$.HTML,g.HTML],[$.I,g.I],[$.IMG,g.IMG],[$.IMAGE,g.IMAGE],[$.INPUT,g.INPUT],[$.IFRAME,g.IFRAME],[$.KEYGEN,g.KEYGEN],[$.LABEL,g.LABEL],[$.LI,g.LI],[$.LINK,g.LINK],[$.LISTING,g.LISTING],[$.MAIN,g.MAIN],[$.MALIGNMARK,g.MALIGNMARK],[$.MARQUEE,g.MARQUEE],[$.MATH,g.MATH],[$.MENU,g.MENU],[$.META,g.META],[$.MGLYPH,g.MGLYPH],[$.MI,g.MI],[$.MO,g.MO],[$.MN,g.MN],[$.MS,g.MS],[$.MTEXT,g.MTEXT],[$.NAV,g.NAV],[$.NOBR,g.NOBR],[$.NOFRAMES,g.NOFRAMES],[$.NOEMBED,g.NOEMBED],[$.NOSCRIPT,g.NOSCRIPT],[$.OBJECT,g.OBJECT],[$.OL,g.OL],[$.OPTGROUP,g.OPTGROUP],[$.OPTION,g.OPTION],[$.P,g.P],[$.PARAM,g.PARAM],[$.PLAINTEXT,g.PLAINTEXT],[$.PRE,g.PRE],[$.RB,g.RB],[$.RP,g.RP],[$.RT,g.RT],[$.RTC,g.RTC],[$.RUBY,g.RUBY],[$.S,g.S],[$.SCRIPT,g.SCRIPT],[$.SEARCH,g.SEARCH],[$.SECTION,g.SECTION],[$.SELECT,g.SELECT],[$.SOURCE,g.SOURCE],[$.SMALL,g.SMALL],[$.SPAN,g.SPAN],[$.STRIKE,g.STRIKE],[$.STRONG,g.STRONG],[$.STYLE,g.STYLE],[$.SUB,g.SUB],[$.SUMMARY,g.SUMMARY],[$.SUP,g.SUP],[$.TABLE,g.TABLE],[$.TBODY,g.TBODY],[$.TEMPLATE,g.TEMPLATE],[$.TEXTAREA,g.TEXTAREA],[$.TFOOT,g.TFOOT],[$.TD,g.TD],[$.TH,g.TH],[$.THEAD,g.THEAD],[$.TITLE,g.TITLE],[$.TR,g.TR],[$.TRACK,g.TRACK],[$.TT,g.TT],[$.U,g.U],[$.UL,g.UL],[$.SVG,g.SVG],[$.VAR,g.VAR],[$.WBR,g.WBR],[$.XMP,g.XMP]]);function Cl(e){var t;return(t=AV.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const Z=g,OV={[J.HTML]:new Set([Z.ADDRESS,Z.APPLET,Z.AREA,Z.ARTICLE,Z.ASIDE,Z.BASE,Z.BASEFONT,Z.BGSOUND,Z.BLOCKQUOTE,Z.BODY,Z.BR,Z.BUTTON,Z.CAPTION,Z.CENTER,Z.COL,Z.COLGROUP,Z.DD,Z.DETAILS,Z.DIR,Z.DIV,Z.DL,Z.DT,Z.EMBED,Z.FIELDSET,Z.FIGCAPTION,Z.FIGURE,Z.FOOTER,Z.FORM,Z.FRAME,Z.FRAMESET,Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6,Z.HEAD,Z.HEADER,Z.HGROUP,Z.HR,Z.HTML,Z.IFRAME,Z.IMG,Z.INPUT,Z.LI,Z.LINK,Z.LISTING,Z.MAIN,Z.MARQUEE,Z.MENU,Z.META,Z.NAV,Z.NOEMBED,Z.NOFRAMES,Z.NOSCRIPT,Z.OBJECT,Z.OL,Z.P,Z.PARAM,Z.PLAINTEXT,Z.PRE,Z.SCRIPT,Z.SECTION,Z.SELECT,Z.SOURCE,Z.STYLE,Z.SUMMARY,Z.TABLE,Z.TBODY,Z.TD,Z.TEMPLATE,Z.TEXTAREA,Z.TFOOT,Z.TH,Z.THEAD,Z.TITLE,Z.TR,Z.TRACK,Z.UL,Z.WBR,Z.XMP]),[J.MATHML]:new Set([Z.MI,Z.MO,Z.MN,Z.MS,Z.MTEXT,Z.ANNOTATION_XML]),[J.SVG]:new Set([Z.TITLE,Z.FOREIGN_OBJECT,Z.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},Pb=new Set([Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6]);$.STYLE,$.SCRIPT,$.XMP,$.IFRAME,$.NOEMBED,$.NOFRAMES,$.PLAINTEXT;var O;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(O||(O={}));const bt={DATA:O.DATA,RCDATA:O.RCDATA,RAWTEXT:O.RAWTEXT,SCRIPT_DATA:O.SCRIPT_DATA,PLAINTEXT:O.PLAINTEXT,CDATA_SECTION:O.CDATA_SECTION};function IV(e){return e>=C.DIGIT_0&&e<=C.DIGIT_9}function tu(e){return e>=C.LATIN_CAPITAL_A&&e<=C.LATIN_CAPITAL_Z}function RV(e){return e>=C.LATIN_SMALL_A&&e<=C.LATIN_SMALL_Z}function Xi(e){return RV(e)||tu(e)}function jx(e){return Xi(e)||IV(e)}function vd(e){return e+32}function SO(e){return e===C.SPACE||e===C.LINE_FEED||e===C.TABULATION||e===C.FORM_FEED}function $x(e){return SO(e)||e===C.SOLIDUS||e===C.GREATER_THAN_SIGN}function MV(e){return e===C.NULL?K.nullCharacterReference:e>1114111?K.characterReferenceOutsideUnicodeRange:bO(e)?K.surrogateCharacterReference:EO(e)?K.noncharacterCharacterReference:yO(e)||e===C.CARRIAGE_RETURN?K.controlCharacterReference:null}class DV{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=O.DATA,this.returnState=O.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new EV(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kO(TO,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(K.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(K.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=MV(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(K.endTagWithAttributes),t.selfClosing&&this._err(K.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case _e.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case _e.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case _e.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:_e.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=SO(t)?_e.WHITESPACE_CHARACTER:t===C.NULL?_e.NULL_CHARACTER:_e.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(_e.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=O.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ti.Attribute:Ti.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===O.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case O.DATA:{this._stateData(t);break}case O.RCDATA:{this._stateRcdata(t);break}case O.RAWTEXT:{this._stateRawtext(t);break}case O.SCRIPT_DATA:{this._stateScriptData(t);break}case O.PLAINTEXT:{this._statePlaintext(t);break}case O.TAG_OPEN:{this._stateTagOpen(t);break}case O.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case O.TAG_NAME:{this._stateTagName(t);break}case O.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case O.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case O.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case O.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case O.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case O.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case O.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case O.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case O.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case O.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case O.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case O.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case O.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case O.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case O.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case O.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case O.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case O.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case O.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case O.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case O.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case O.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case O.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case O.BOGUS_COMMENT:{this._stateBogusComment(t);break}case O.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case O.COMMENT_START:{this._stateCommentStart(t);break}case O.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case O.COMMENT:{this._stateComment(t);break}case O.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case O.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case O.COMMENT_END:{this._stateCommentEnd(t);break}case O.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case O.DOCTYPE:{this._stateDoctype(t);break}case O.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case O.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case O.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case O.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case O.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case O.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case O.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case O.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case O.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case O.CDATA_SECTION:{this._stateCdataSection(t);break}case O.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case O.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case O.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case O.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.TAG_OPEN;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitCodePoint(t);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case C.AMPERSAND:{this._startCharacterReference();break}case C.LESS_THAN_SIGN:{this.state=O.RCDATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.RAWTEXT_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(rt);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Xi(t))this._createStartTagToken(),this.state=O.TAG_NAME,this._stateTagName(t);else switch(t){case C.EXCLAMATION_MARK:{this.state=O.MARKUP_DECLARATION_OPEN;break}case C.SOLIDUS:{this.state=O.END_TAG_OPEN;break}case C.QUESTION_MARK:{this._err(K.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=O.BOGUS_COMMENT,this._stateBogusComment(t);break}case C.EOF:{this._err(K.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(K.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=O.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Xi(t))this._createEndTagToken(),this.state=O.TAG_NAME,this._stateTagName(t);else switch(t){case C.GREATER_THAN_SIGN:{this._err(K.missingEndTagName),this.state=O.DATA;break}case C.EOF:{this._err(K.eofBeforeTagName),this._emitChars("");break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_ESCAPED,this._emitChars(rt);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===C.SOLIDUS?this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Xi(t)?(this._emitChars("<"),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Xi(t)?(this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(rt);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===C.SOLIDUS?(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Tn.SCRIPT,!1)&&$x(this.preprocessor.peek(Tn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==J.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(FV,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(zV,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(BV,J.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===g.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===g.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case J.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case J.SVG:{if(qx.has(i))return!1;break}case J.MATHML:{if(Vx.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Qf)}hasInListItemScope(t){return this.hasInDynamicScope(t,LV)}hasInButtonScope(t){return this.hasInDynamicScope(t,PV)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case J.HTML:{if(Pb.has(n))return!0;if(Qf.has(n))return!1;break}case J.SVG:{if(qx.has(n))return!1;break}case J.MATHML:{if(Vx.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===J.HTML)switch(this.tagIDs[n]){case t:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===J.HTML)switch(this.tagIDs[n]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;wO.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Wx.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Wx.has(this.currentTagId);)this.pop()}}const Ag=3;var Xr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Xr||(Xr={}));const Yx={type:Xr.Marker};class jV{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let s=0;s[a.name,a.value]));let o=0;for(let a=0;ai.get(l.name)===l.value)&&(o+=1,o>=Ag&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Yx)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Xr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Xr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Yx);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Xr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Xr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Xr.Element&&n.element===t)}}const Ji={createDocument(){return{nodeName:"#document",mode:ar.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ji.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ji.isTextNode(n)){n.value+=t;return}}Ji.appendChild(e,Ji.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ji.isTextNode(r)?r.value+=t:Ji.insertBefore(e,Ji.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function KV(e){return e.name===_O&&e.publicId===null&&(e.systemId===null||e.systemId===$V)}function GV(e){if(e.name!==_O)return ar.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===WV)return ar.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),qV.has(n))return ar.QUIRKS;let r=t===null?VV:CO;if(Kx(n,r))return ar.QUIRKS;if(r=t===null?NO:YV,Kx(n,r))return ar.LIMITED_QUIRKS}return ar.NO_QUIRKS}const Gx={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},QV="definitionurl",XV="definitionURL",JV=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),ZV=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:J.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:J.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:J.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:J.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:J.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:J.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:J.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:J.XML}],["xml:space",{prefix:"xml",name:"space",namespace:J.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:J.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:J.XMLNS}]]),eq=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),tq=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function nq(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:r})=>r===va.COLOR||r===va.SIZE||r===va.FACE)||tq.has(t)}function AO(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let o,a;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,a=this.fragmentContextID):{current:o,currentTagId:a}=this.openElements,this._setContextModes(o,a)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===J.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,J.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=P.TEXT}switchToPlaintextParsing(){this.insertionMode=P.TEXT,this.originalInsertionMode=P.IN_BODY,this.tokenizer.state=bt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===$.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=bt.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=bt.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=bt.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=bt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,J.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,J.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement($.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,g.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),o=r?i.lastIndexOf(r):i.length,a=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),o=n.type===_e.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===g.SVG&&this.treeAdapter.getTagName(n)===$.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===J.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&!this._isIntegrationPoint(r,n,J.HTML)}_processToken(t){switch(t.type){case _e.CHARACTER:{this.onCharacter(t);break}case _e.NULL_CHARACTER:{this.onNullCharacter(t);break}case _e.COMMENT:{this.onComment(t);break}case _e.DOCTYPE:{this.onDoctype(t);break}case _e.START_TAG:{this._processStartTag(t);break}case _e.END_TAG:{this.onEndTag(t);break}case _e.EOF:{this.onEof(t);break}case _e.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return aq(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Xr.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const o=this.activeFormattingElements.entries[i];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=P.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case g.TR:{this.insertionMode=P.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=P.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=P.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=P.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=P.IN_TABLE;return}case g.BODY:{this.insertionMode=P.IN_BODY;return}case g.FRAMESET:{this.insertionMode=P.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(t);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?P.AFTER_HEAD:P.BEFORE_HEAD;return}case g.TD:case g.TH:{if(t>0){this.insertionMode=P.IN_CELL;return}break}case g.HEAD:{if(t>0){this.insertionMode=P.IN_HEAD;return}break}}this.insertionMode=P.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===g.TEMPLATE)break;if(r===g.TABLE){this.insertionMode=P.IN_SELECT_IN_TABLE;return}}this.insertionMode=P.IN_SELECT}_isElementCausesFosterParenting(t){return IO.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case g.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return OV[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){HY(this,t);return}switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{bu(this,t);break}case P.BEFORE_HEAD:{yu(this,t);break}case P.IN_HEAD:{Eu(this,t);break}case P.IN_HEAD_NO_SCRIPT:{vu(this,t);break}case P.AFTER_HEAD:{Tu(this,t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:{MO(this,t);break}case P.TEXT:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{Og(this,t);break}case P.IN_TABLE_TEXT:{FO(this,t);break}case P.IN_COLUMN_GROUP:{Xf(this,t);break}case P.AFTER_BODY:{Jf(this,t);break}case P.AFTER_AFTER_BODY:{sf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){FY(this,t);return}switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{bu(this,t);break}case P.BEFORE_HEAD:{yu(this,t);break}case P.IN_HEAD:{Eu(this,t);break}case P.IN_HEAD_NO_SCRIPT:{vu(this,t);break}case P.AFTER_HEAD:{Tu(this,t);break}case P.TEXT:{this._insertCharacters(t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{Og(this,t);break}case P.IN_COLUMN_GROUP:{Xf(this,t);break}case P.AFTER_BODY:{Jf(this,t);break}case P.AFTER_AFTER_BODY:{sf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Bb(this,t);return}switch(this.insertionMode){case P.INITIAL:case P.BEFORE_HTML:case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_TEMPLATE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{Bb(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.AFTER_BODY:{bq(this,t);break}case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{yq(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case P.INITIAL:{Eq(this,t);break}case P.BEFORE_HEAD:case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:{this._err(t,K.misplacedDoctype);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,K.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?UY(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{vq(this,t);break}case P.BEFORE_HEAD:{kq(this,t);break}case P.IN_HEAD:{Ur(this,t);break}case P.IN_HEAD_NO_SCRIPT:{wq(this,t);break}case P.AFTER_HEAD:{Cq(this,t);break}case P.IN_BODY:{ln(this,t);break}case P.IN_TABLE:{sl(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.IN_CAPTION:{xY(this,t);break}case P.IN_COLUMN_GROUP:{WE(this,t);break}case P.IN_TABLE_BODY:{nm(this,t);break}case P.IN_ROW:{rm(this,t);break}case P.IN_CELL:{_Y(this,t);break}case P.IN_SELECT:{jO(this,t);break}case P.IN_SELECT_IN_TABLE:{NY(this,t);break}case P.IN_TEMPLATE:{OY(this,t);break}case P.AFTER_BODY:{RY(this,t);break}case P.IN_FRAMESET:{MY(this,t);break}case P.AFTER_FRAMESET:{LY(this,t);break}case P.AFTER_AFTER_BODY:{BY(this,t);break}case P.AFTER_AFTER_FRAMESET:{zY(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?jY(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{Tq(this,t);break}case P.BEFORE_HEAD:{xq(this,t);break}case P.IN_HEAD:{Sq(this,t);break}case P.IN_HEAD_NO_SCRIPT:{_q(this,t);break}case P.AFTER_HEAD:{Nq(this,t);break}case P.IN_BODY:{tm(this,t);break}case P.TEXT:{pY(this,t);break}case P.IN_TABLE:{ec(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.IN_CAPTION:{SY(this,t);break}case P.IN_COLUMN_GROUP:{wY(this,t);break}case P.IN_TABLE_BODY:{zb(this,t);break}case P.IN_ROW:{UO(this,t);break}case P.IN_CELL:{CY(this,t);break}case P.IN_SELECT:{$O(this,t);break}case P.IN_SELECT_IN_TABLE:{AY(this,t);break}case P.IN_TEMPLATE:{IY(this,t);break}case P.AFTER_BODY:{VO(this,t);break}case P.IN_FRAMESET:{DY(this,t);break}case P.AFTER_FRAMESET:{PY(this,t);break}case P.AFTER_AFTER_BODY:{sf(this,t);break}}}onEof(t){switch(this.insertionMode){case P.INITIAL:{Yl(this,t);break}case P.BEFORE_HTML:{bu(this,t);break}case P.BEFORE_HEAD:{yu(this,t);break}case P.IN_HEAD:{Eu(this,t);break}case P.IN_HEAD_NO_SCRIPT:{vu(this,t);break}case P.AFTER_HEAD:{Tu(this,t);break}case P.IN_BODY:case P.IN_TABLE:case P.IN_CAPTION:case P.IN_COLUMN_GROUP:case P.IN_TABLE_BODY:case P.IN_ROW:case P.IN_CELL:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:{BO(this,t);break}case P.TEXT:{hY(this,t);break}case P.IN_TABLE_TEXT:{Kl(this,t);break}case P.IN_TEMPLATE:{WO(this,t);break}case P.AFTER_BODY:case P.IN_FRAMESET:case P.AFTER_FRAMESET:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{$E(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===C.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case P.IN_HEAD:case P.IN_HEAD_NO_SCRIPT:case P.AFTER_HEAD:case P.TEXT:case P.IN_COLUMN_GROUP:case P.IN_SELECT:case P.IN_SELECT_IN_TABLE:case P.IN_FRAMESET:case P.AFTER_FRAMESET:{this._insertCharacters(t);break}case P.IN_BODY:case P.IN_CAPTION:case P.IN_CELL:case P.IN_TEMPLATE:case P.AFTER_BODY:case P.AFTER_AFTER_BODY:case P.AFTER_AFTER_FRAMESET:{RO(this,t);break}case P.IN_TABLE:case P.IN_TABLE_BODY:case P.IN_ROW:{Og(this,t);break}case P.IN_TABLE_TEXT:{zO(this,t);break}}}}function dq(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):PO(e,t),n}function fq(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function pq(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=uq;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=hq(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function hq(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function mq(e,t,n){const r=e.treeAdapter.getTagName(t),i=Cl(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===g.TEMPLATE&&o===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function gq(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function jE(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(o);a&&!a.endTag&&e._setEndLocation(o,t)}}}}function Eq(e,t){e._setDocumentType(t);const n=t.forceQuirks?ar.QUIRKS:GV(t);KV(t)||e._err(t,K.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=P.BEFORE_HTML}function Yl(e,t){e._err(t,K.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ar.QUIRKS),e.insertionMode=P.BEFORE_HTML,e._processToken(t)}function vq(e,t){t.tagID===g.HTML?(e._insertElement(t,J.HTML),e.insertionMode=P.BEFORE_HEAD):bu(e,t)}function Tq(e,t){const n=t.tagID;(n===g.HTML||n===g.HEAD||n===g.BODY||n===g.BR)&&bu(e,t)}function bu(e,t){e._insertFakeRootElement(),e.insertionMode=P.BEFORE_HEAD,e._processToken(t)}function kq(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.HEAD:{e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD;break}default:yu(e,t)}}function xq(e,t){const n=t.tagID;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?yu(e,t):e._err(t,K.endTagWithoutMatchingOpenElement)}function yu(e,t){e._insertFakeElement($.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=P.IN_HEAD,e._processToken(t)}function Ur(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,bt.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,bt.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=P.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,bt.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,bt.SCRIPT_DATA);break}case g.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=P.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(P.IN_TEMPLATE);break}case g.HEAD:{e._err(t,K.misplacedStartTagForHeadElement);break}default:Eu(e,t)}}function Sq(e,t){switch(t.tagID){case g.HEAD:{e.openElements.pop(),e.insertionMode=P.AFTER_HEAD;break}case g.BODY:case g.BR:case g.HTML:{Eu(e,t);break}case g.TEMPLATE:{Ka(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function Ka(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,K.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,K.endTagWithoutMatchingOpenElement)}function Eu(e,t){e.openElements.pop(),e.insertionMode=P.AFTER_HEAD,e._processToken(t)}function wq(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{Ur(e,t);break}case g.NOSCRIPT:{e._err(t,K.nestedNoscriptInHead);break}default:vu(e,t)}}function _q(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=P.IN_HEAD;break}case g.BR:{vu(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function vu(e,t){const n=t.type===_e.EOF?K.openElementsLeftAfterEof:K.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=P.IN_HEAD,e._processToken(t)}function Cq(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.BODY:{e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=P.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,J.HTML),e.insertionMode=P.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{e._err(t,K.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),Ur(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,K.misplacedStartTagForHeadElement);break}default:Tu(e,t)}}function Nq(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{Tu(e,t);break}case g.TEMPLATE:{Ka(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function Tu(e,t){e._insertFakeElement($.BODY,g.BODY),e.insertionMode=P.IN_BODY,em(e,t)}function em(e,t){switch(t.type){case _e.CHARACTER:{MO(e,t);break}case _e.WHITESPACE_CHARACTER:{RO(e,t);break}case _e.COMMENT:{Bb(e,t);break}case _e.START_TAG:{ln(e,t);break}case _e.END_TAG:{tm(e,t);break}case _e.EOF:{BO(e,t);break}}}function RO(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function MO(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Aq(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Oq(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Iq(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_FRAMESET)}function Rq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function Mq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),Pb.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function Dq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Lq(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function Pq(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===g.LI&&i===g.LI||(n===g.DD||n===g.DT)&&(i===g.DD||i===g.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function Bq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=bt.PLAINTEXT}function zq(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function Fq(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName($.A);n&&(jE(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Hq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Uq(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(jE(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function $q(e,t){e.treeAdapter.getDocumentMode(e.document)!==ar.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=P.IN_TABLE}function DO(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function LO(e){const t=vO(e,va.TYPE);return t!=null&&t.toLowerCase()===sq}function Wq(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),LO(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Vq(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function qq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Yq(e,t){t.tagName=$.IMG,t.tagID=g.IMG,DO(e,t)}function Kq(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=bt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=P.TEXT}function Gq(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function Qq(e,t){e.framesetOk=!1,e._switchToTextParsing(t,bt.RAWTEXT)}function Jx(e,t){e._switchToTextParsing(t,bt.RAWTEXT)}function Xq(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===P.IN_TABLE||e.insertionMode===P.IN_CAPTION||e.insertionMode===P.IN_TABLE_BODY||e.insertionMode===P.IN_ROW||e.insertionMode===P.IN_CELL?P.IN_SELECT_IN_TABLE:P.IN_SELECT}function Jq(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Zq(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function eY(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,J.HTML)}function tY(e,t){e._reconstructActiveFormattingElements(),AO(t),UE(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function nY(e,t){e._reconstructActiveFormattingElements(),OO(t),UE(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function Zx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function ln(e,t){switch(t.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{Hq(e,t);break}case g.A:{Fq(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{Mq(e,t);break}case g.P:case g.DL:case g.OL:case g.UL:case g.DIV:case g.DIR:case g.NAV:case g.MAIN:case g.MENU:case g.ASIDE:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.DETAILS:case g.ADDRESS:case g.ARTICLE:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{Rq(e,t);break}case g.LI:case g.DD:case g.DT:{Pq(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{DO(e,t);break}case g.HR:{qq(e,t);break}case g.RB:case g.RTC:{Zq(e,t);break}case g.RT:case g.RP:{eY(e,t);break}case g.PRE:case g.LISTING:{Dq(e,t);break}case g.XMP:{Gq(e,t);break}case g.SVG:{nY(e,t);break}case g.HTML:{Aq(e,t);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{Ur(e,t);break}case g.BODY:{Oq(e,t);break}case g.FORM:{Lq(e,t);break}case g.NOBR:{Uq(e,t);break}case g.MATH:{tY(e,t);break}case g.TABLE:{$q(e,t);break}case g.INPUT:{Wq(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{Vq(e,t);break}case g.IMAGE:{Yq(e,t);break}case g.BUTTON:{zq(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{jq(e,t);break}case g.IFRAME:{Qq(e,t);break}case g.SELECT:{Xq(e,t);break}case g.OPTION:case g.OPTGROUP:{Jq(e,t);break}case g.NOEMBED:case g.NOFRAMES:{Jx(e,t);break}case g.FRAMESET:{Iq(e,t);break}case g.TEXTAREA:{Kq(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?Jx(e,t):Zx(e,t);break}case g.PLAINTEXT:{Bq(e,t);break}case g.COL:case g.TH:case g.TD:case g.TR:case g.HEAD:case g.FRAME:case g.TBODY:case g.TFOOT:case g.THEAD:case g.CAPTION:case g.COLGROUP:break;default:Zx(e,t)}}function rY(e,t){if(e.openElements.hasInScope(g.BODY)&&(e.insertionMode=P.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function iY(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=P.AFTER_BODY,VO(e,t))}function oY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function aY(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):n&&e.openElements.remove(n))}function sY(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement($.P,g.P),e._closePElement()}function lY(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function uY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function cY(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function dY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function fY(e){e._reconstructActiveFormattingElements(),e._insertFakeElement($.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function PO(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==g.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,a))break}}function tm(e,t){switch(t.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{jE(e,t);break}case g.P:{sY(e);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{oY(e,t);break}case g.LI:{lY(e);break}case g.DD:case g.DT:{uY(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{cY(e);break}case g.BR:{fY(e);break}case g.BODY:{rY(e,t);break}case g.HTML:{iY(e,t);break}case g.FORM:{aY(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{dY(e,t);break}case g.TEMPLATE:{Ka(e,t);break}default:PO(e,t)}}function BO(e,t){e.tmplInsertionModeStack.length>0?WO(e,t):$E(e,t)}function pY(e,t){var n;t.tagID===g.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function hY(e,t){e._err(t,K.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Og(e,t){if(IO.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=P.IN_TABLE_TEXT,t.type){case _e.CHARACTER:{FO(e,t);break}case _e.WHITESPACE_CHARACTER:{zO(e,t);break}}else Fc(e,t)}function mY(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_CAPTION}function gY(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_COLUMN_GROUP}function bY(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.COLGROUP,g.COLGROUP),e.insertionMode=P.IN_COLUMN_GROUP,WE(e,t)}function yY(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=P.IN_TABLE_BODY}function EY(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement($.TBODY,g.TBODY),e.insertionMode=P.IN_TABLE_BODY,nm(e,t)}function vY(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function TY(e,t){LO(t)?e._appendElement(t,J.HTML):Fc(e,t),t.ackSelfClosing=!0}function kY(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function sl(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{EY(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{Ur(e,t);break}case g.COL:{bY(e,t);break}case g.FORM:{kY(e,t);break}case g.TABLE:{vY(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{yY(e,t);break}case g.INPUT:{TY(e,t);break}case g.CAPTION:{mY(e,t);break}case g.COLGROUP:{gY(e,t);break}default:Fc(e,t)}}function ec(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{Ka(e,t);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Fc(e,t)}}function Fc(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,em(e,t),e.fosterParentingEnabled=n}function zO(e,t){e.pendingCharacterTokens.push(t)}function FO(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Kl(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===g.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop();break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop();break}case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode());break}case g.TEMPLATE:{Ka(e,t);break}}}function NY(e,t){const n=t.tagID;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processStartTag(t)):jO(e,t)}function AY(e,t){const n=t.tagID;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e.onEndTag(t)):$O(e,t)}function OY(e,t){switch(t.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{Ur(e,t);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.tmplInsertionModeStack[0]=P.IN_TABLE,e.insertionMode=P.IN_TABLE,sl(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=P.IN_COLUMN_GROUP,e.insertionMode=P.IN_COLUMN_GROUP,WE(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=P.IN_TABLE_BODY,e.insertionMode=P.IN_TABLE_BODY,nm(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=P.IN_ROW,e.insertionMode=P.IN_ROW,rm(e,t);break}default:e.tmplInsertionModeStack[0]=P.IN_BODY,e.insertionMode=P.IN_BODY,ln(e,t)}}function IY(e,t){t.tagID===g.TEMPLATE&&Ka(e,t)}function WO(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):$E(e,t)}function RY(e,t){t.tagID===g.HTML?ln(e,t):Jf(e,t)}function VO(e,t){var n;if(t.tagID===g.HTML){if(e.fragmentContext||(e.insertionMode=P.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===g.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Jf(e,t)}function Jf(e,t){e.insertionMode=P.IN_BODY,em(e,t)}function MY(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.FRAMESET:{e._insertElement(t,J.HTML);break}case g.FRAME:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{Ur(e,t);break}}}function DY(e,t){t.tagID===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==g.FRAMESET&&(e.insertionMode=P.AFTER_FRAMESET))}function LY(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.NOFRAMES:{Ur(e,t);break}}}function PY(e,t){t.tagID===g.HTML&&(e.insertionMode=P.AFTER_AFTER_FRAMESET)}function BY(e,t){t.tagID===g.HTML?ln(e,t):sf(e,t)}function sf(e,t){e.insertionMode=P.IN_BODY,em(e,t)}function zY(e,t){switch(t.tagID){case g.HTML:{ln(e,t);break}case g.NOFRAMES:{Ur(e,t);break}}}function FY(e,t){t.chars=rt,e._insertCharacters(t)}function HY(e,t){e._insertCharacters(t),e.framesetOk=!1}function qO(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function UY(e,t){if(nq(t))qO(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?AO(t):r===J.SVG&&(rq(t),OO(t)),UE(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function jY(e,t){if(t.tagID===g.P||t.tagID===g.BR){qO(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===J.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}$.AREA,$.BASE,$.BASEFONT,$.BGSOUND,$.BR,$.COL,$.EMBED,$.FRAME,$.HR,$.IMG,$.INPUT,$.KEYGEN,$.LINK,$.META,$.PARAM,$.SOURCE,$.TRACK,$.WBR;const $Y=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),eS={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function YO(e,t){const n=ZY(e),r=YA("type",{handlers:{root:WY,element:VY,text:qY,comment:GO,doctype:YY,raw:GY},unknown:QY}),i={parser:n?new Xx(eS):Xx.getFragmentParser(void 0,eS),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),Nl(i,ci());const o=n?i.parser.document:i.parser.getFragment(),a=tV(o,{file:i.options.file});return i.stitches&&Bc(a,"comment",function(s,l,u){const c=s;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function KO(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:_e.CHARACTER,chars:e.value,location:Hc(e)};Nl(t,ci(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function YY(e,t){const n={type:_e.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Hc(e)};Nl(t,ci(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function KY(e,t){t.stitches=!0;const n=eK(e);if("children"in e&&"children"in n){const r=YO({type:"root",children:e.children},t.options);n.children=r.children}GO({type:"comment",value:{stitch:n}},t)}function GO(e,t){const n=e.value,r={type:_e.COMMENT,data:n,location:Hc(e)};Nl(t,ci(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function GY(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,QO(t,ci(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function QY(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))KY(n,t);else{let r="";throw $Y.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Nl(e,t){QO(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=bt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function QO(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function XY(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===bt.PLAINTEXT)return;Nl(t,ci(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:da.html;i===da.html&&n==="svg"&&(i=da.svg);const o=aV({...e,children:[]},{space:i===da.svg?"svg":"html"}),a={type:_e.START_TAG,tagName:n,tagID:Cl(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:Hc(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function JY(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&hV.includes(n)||t.parser.tokenizer.state===bt.PLAINTEXT)return;Nl(t,Gh(e));const r={type:_e.END_TAG,tagName:n,tagID:Cl(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Hc(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===bt.RCDATA||t.parser.tokenizer.state===bt.RAWTEXT||t.parser.tokenizer.state===bt.SCRIPT_DATA)&&(t.parser.tokenizer.state=bt.DATA)}function ZY(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Hc(e){const t=ci(e)||{line:void 0,column:void 0,offset:void 0},n=Gh(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function eK(e){return"children"in e?al({...e,children:[]}):al(e)}function tK(e){return function(t,n){return YO(t,{...e,file:n})}}const tS=function(e,t,n){const r=Pc(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++tu&&(u=c):c&&(u!==void 0&&u>-1&&l.push(` +`.repeat(u)||" "),u=-1,l.push(c))}return l.join("")}function JO(e,t,n){return e.type==="element"?lK(e,t,n):e.type==="text"?n.whitespace==="normal"?ZO(e,n):uK(e):[]}function lK(e,t,n){const r=eI(e,n),i=e.children||[];let o=-1,a=[];if(sK(e))return a;let s,l;for(Fb(e)||oS(e)&&tS(t,e,oS)?l=` +`:aK(e)?(s=2,l=2):XO(e)&&(s=1,l=1);++o]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},_={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},x=[_,d,s,n,e.C_BLOCK_COMMENT_MODE,c,u],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:x.concat([{begin:/\(/,end:/\)/,keywords:k,contains:x.concat(["self"]),relevance:0}]),relevance:0},R={className:"function",begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:k,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"",keywords:k,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function mK(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=hK(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function gK(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(a);const s={match:/\\"/},l={className:"string",begin:/'/,end:/'/},u={match:/\\'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},d=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${d.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],y={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],E=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],v=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],k=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[...b,...E,"set","shopt",...v,...k]},contains:[f,e.SHEBANG(),p,c,e.HASH_COMMENT_MODE,o,y,a,s,l,u,n]}}function bK(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",y={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},b=[d,s,n,e.C_BLOCK_COMMENT_MODE,c,u],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:y,contains:b.concat([{begin:/\(/,end:/\)/,keywords:y,contains:b.concat(["self"]),relevance:0}]),relevance:0},v={begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:y,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:y,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:u,keywords:y}}}function yK(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],y=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],k={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:y},_={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},x=[_,d,s,n,e.C_BLOCK_COMMENT_MODE,c,u],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:k,contains:x.concat([{begin:/\(/,end:/\)/,keywords:k,contains:x.concat(["self"]),relevance:0}]),relevance:0},R={className:"function",begin:"("+a+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:k,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:k,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:k,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:k,illegal:"",keywords:k,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:k},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function EK(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},c=e.inherit(u,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=e.inherit(d,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},h={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},m=e.inherit(h,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});d.contains=[h,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],f.contains=[m,p,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const y={variants:[h,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},E=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",v={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},y,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+E+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,b],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[y,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}const vK=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),TK=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],kK=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],xK=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],SK=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],wK=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function _K(e){const t=e.regex,n=vK(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+xK.join("|")+")"},{begin:":(:)?("+SK.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+wK.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:kK.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+TK.join("|")+")\\b"}]}}function CK(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function NK(e){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"tI(e,t,n-1))}function IK(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+tI("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},c={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,sS,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},sS,u]}}const lS="[A-Za-z$_][0-9A-Za-z$_]*",RK=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],MK=["true","false","null","undefined","NaN","Infinity"],nI=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],rI=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],iI=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],DK=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],LK=[].concat(iI,nI,rI);function PK(e){const t=e.regex,n=(N,{after:F})=>{const w="",end:""},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,F)=>{const w=N[0].length+N.index,q=N.input[w];if(q==="<"||q===","){F.ignoreMatch();return}q===">"&&(n(N,{after:w})||F.ignoreMatch());let X;const D=N.input.substring(w);if(X=D.match(/^\s*=/)){F.ignoreMatch();return}if((X=D.match(/^\s+extends\s+/))&&X.index===0){F.ignoreMatch();return}}},s={$pattern:lS,keyword:RK,literal:MK,built_in:LK,"variable.language":DK},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},y={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},E={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const k=[].concat(E,f.contains),_=k.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_},I={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...nI,...rI]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(N){return t.concat("(?!",N.join("|"),")")}const U={match:t.concat(/\b/,L([...iI,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},V={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:_,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,E,{match:/\$\d+/},d,R,{className:"attr",begin:r+t.lookahead(":"),relevance:0},M,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},U,j,I,H,{match:/\$[(.]/}]}}function BK(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var gs="[0-9](_*[0-9])*",xd=`\\.(${gs})`,Sd="[0-9a-fA-F](_*[0-9a-fA-F])*",zK={className:"number",variants:[{begin:`(\\b(${gs})((${xd})|\\.)?|(${xd}))[eE][+-]?(${gs})[fFdD]?\\b`},{begin:`\\b(${gs})((${xd})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${xd})[fFdD]?\\b`},{begin:`\\b(${gs})[fFdD]\\b`},{begin:`\\b0[xX]((${Sd})\\.?|(${Sd})?\\.(${Sd}))[pP][+-]?(${gs})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Sd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function FK(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(a);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},u=zK,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,s,l,a,e.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` +`},u]}}const HK=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),UK=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],jK=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],oI=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],aI=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],$K=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),WK=oI.concat(aI);function VK(e){const t=HK(e),n=WK,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",a=[],s=[],l=function(v){return{className:"string",begin:"~?"+v+".*?"+v}},u=function(v,k,_){return{className:v,begin:k,relevance:_}},c={$pattern:/[a-z-]+/,keyword:r,attribute:jK.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:c,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,u("variable","@@?"+i,10),u("variable","@\\{"+i+"\\}"),u("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=s.concat({begin:/\{/,end:/\}/,contains:a}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},h={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+$K.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:s,relevance:0}},y={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},b={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,u("keyword","all\\b"),u("variable","@\\{"+i+"\\}"),{begin:"\\b("+UK.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,u("selector-tag",o,0),u("selector-id","#"+o),u("selector-class","\\."+o,0),u("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+oI.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+aI.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},E={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[b]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,y,E,h,b,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function qK(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function YK(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(u,{contains:[]}),f=e.inherit(c,{contains:[]});u.contains.push(f),c.contains.push(d);let p=[n,l];return[u,c,d,f].forEach(y=>{y.contains=y.contains.concat(p)}),p=p.concat(u,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,o,u,c,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,l,a]}}function GK(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function QK(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,o,s],u=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],c=(p,h,m="\\1")=>{const y=m==="\\1"?m:t.concat(m,h);return t.concat(t.concat("(?:",p,")"),h,/(?:\\.|[^\\\/])*?/,y,/(?:\\.|[^\\\/])*?/,m,r)},d=(p,h,m)=>t.concat(t.concat("(?:",p,")"),h,/(?:\\.|[^\\\/])*?/,m,r),f=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:c("s|tr|y",t.either(...u,{capture:!0}))},{begin:c("s|tr|y","\\(","\\)")},{begin:c("s|tr|y","\\[","\\]")},{begin:c("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t.either(...u,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=f,a.contains=f,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:f}}function XK(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o={scope:"variable",match:"\\$+"+r},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),c={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s),"on:begin":(U,V)=>{V.data._beginMatch=U[1]||U[2]},"on:end":(U,V)=>{V.data._beginMatch!==U[1]&&V.ignoreMatch()}},d=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[ +]`,p={scope:"string",variants:[u,l,c,d]},h={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},m=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v={keyword:y,literal:(U=>{const V=[];return U.forEach(H=>{V.push(H),H.toLowerCase()===H?V.push(H.toUpperCase()):V.push(H.toLowerCase())}),V})(m),built_in:b},k=U=>U.map(V=>V.replace(/\|\d+$/,"")),_={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",k(b).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},x=t.concat(r,"\\b(?!\\()"),I={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},R={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},z={relevance:0,begin:/\(/,end:/\)/,keywords:v,contains:[R,o,I,e.C_BLOCK_COMMENT_MODE,p,h,_]},A={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",k(y).join("\\b|"),"|",k(b).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[z]};z.contains.push(A);const j=[R,I,e.C_BLOCK_COMMENT_MODE,p,h,_],L={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:m,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:m,keyword:["new","array"]},contains:["self",...j]},...j,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:v,contains:[L,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},o,A,I,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:v,contains:["self",o,I,e.C_BLOCK_COMMENT_MODE,p,h]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},p,h]}}function JK(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function ZK(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function eG(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},c={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,c,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,c,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,c,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,c,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",p=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,h=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${p}))[eE][+-]?(${f})[jJ]?(?=${h})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${h})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${h})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`},{begin:`\\b(${f})[jJ](?=${h})`}]},y={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,m,d,e.HASH_COMMENT_MODE]}]};return u.contains=[d,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,m,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,y,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,b,d]}]}}function tG(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function nG(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function rG(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},f="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},x=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,u),relevance:0}].concat(l,u);c.contains=x,m.contains=x;const A=[{begin:/^\s*=>/,starts:{end:"$",contains:x}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:x}}];return u.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(A).concat(u).concat(x)}}function iG(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],o=["true","false","Some","None","Ok","Err"],a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:i,literal:o,built_in:a},illegal:""},n]}}const oG=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),aG=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],sG=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],lG=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],uG=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],cG=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function dG(e){const t=oG(e),n=uG,r=lG,i="@[a-z-]+",o="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+aG.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+cG.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:sG.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function fG(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function pG(e){const t=e.regex,n=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],c=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=c,h=[...u,...l].filter(v=>!c.includes(v)),m={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},y={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={begin:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function E(v,{exceptions:k,when:_}={}){const x=_;return k=k||[],v.map(I=>I.match(/\|\d+$/)||k.includes(I)?I:x(I)?`${I}|0`:I)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:E(h,{when:v=>v.length<3}),literal:o,type:s,built_in:d},contains:[{begin:t.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:h.concat(f),literal:o,type:s}},{className:"type",begin:t.either(...a)},b,m,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,y]}}function sI(e){return e?typeof e=="string"?e:e.source:null}function wd(e){return We("(?=",e,")")}function We(...e){return e.map(n=>sI(n)).join("")}function hG(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function xn(...e){return"("+(hG(e).capture?"":"?:")+e.map(r=>sI(r)).join("|")+")"}const qE=e=>We(/\b/,e,/\w$/.test(e)?/\b/:/\B/),mG=["Protocol","Type"].map(qE),uS=["init","self"].map(qE),gG=["Any","Self"],Ig=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],cS=["false","nil","true"],bG=["assignment","associativity","higherThan","left","lowerThan","none","right"],yG=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],dS=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],lI=xn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),uI=xn(lI,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Rg=We(lI,uI,"*"),cI=xn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Zf=xn(cI,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),gi=We(cI,Zf,"*"),Mg=We(/[A-Z]/,Zf,"*"),EG=["attached","autoclosure",We(/convention\(/,xn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",We(/objc\(/,gi,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],vG=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function TG(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,xn(...mG,...uS)],className:{2:"keyword"}},o={match:We(/\./,xn(...Ig)),relevance:0},a=Ig.filter(ye=>typeof ye=="string").concat(["_|0"]),s=Ig.filter(ye=>typeof ye!="string").concat(gG).map(qE),l={variants:[{className:"keyword",match:xn(...s,...uS)}]},u={$pattern:xn(/\b\w+/,/#\w+/),keyword:a.concat(yG),literal:cS},c=[i,o,l],d={match:We(/\./,xn(...dS)),relevance:0},f={className:"built_in",match:We(/\b/,xn(...dS),/(?=\()/)},p=[d,f],h={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:Rg},{match:`\\.(\\.|${uI})+`}]},y=[h,m],b="([0-9]_*)+",E="([0-9a-fA-F]_*)+",v={className:"number",relevance:0,variants:[{match:`\\b(${b})(\\.(${b}))?([eE][+-]?(${b}))?\\b`},{match:`\\b0x(${E})(\\.(${E}))?([pP][+-]?(${b}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},k=(ye="")=>({className:"subst",variants:[{match:We(/\\/,ye,/[0\\tnr"']/)},{match:We(/\\/,ye,/u\{[0-9a-fA-F]{1,8}\}/)}]}),_=(ye="")=>({className:"subst",match:We(/\\/,ye,/[\t ]*(?:[\r\n]|\r\n)/)}),x=(ye="")=>({className:"subst",label:"interpol",begin:We(/\\/,ye,/\(/),end:/\)/}),I=(ye="")=>({begin:We(ye,/"""/),end:We(/"""/,ye),contains:[k(ye),_(ye),x(ye)]}),R=(ye="")=>({begin:We(ye,/"/),end:We(/"/,ye),contains:[k(ye),x(ye)]}),z={className:"string",variants:[I(),I("#"),I("##"),I("###"),R(),R("#"),R("##"),R("###")]},A=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],j={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:A},L=ye=>{const Re=We(ye,/\//),at=We(/\//,ye);return{begin:Re,end:at,contains:[...A,{scope:"comment",begin:`#(?!.*${at})`,end:/$/}]}},U={scope:"regexp",variants:[L("###"),L("##"),L("#"),j]},V={match:We(/`/,gi,/`/)},H={className:"variable",match:/\$\d+/},B={className:"variable",match:`\\$${Zf}+`},M=[V,H,B],N={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:vG,contains:[...y,v,z]}]}},F={scope:"keyword",match:We(/@/,xn(...EG))},w={scope:"meta",match:We(/@/,gi)},q=[N,F,w],X={match:wd(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:We(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Zf,"+")},{className:"type",match:Mg,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:We(/\s+&\s+/,wd(Mg)),relevance:0}]},D={begin://,keywords:u,contains:[...r,...c,...q,h,X]};X.contains.push(D);const be={match:We(gi,/\s*:/),keywords:"_|0",relevance:0},ge={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",be,...r,U,...c,...p,...y,v,z,...M,...q,X]},le={begin://,keywords:"repeat each",contains:[...r,X]},Ce={begin:xn(wd(We(gi,/\s*:/)),wd(We(gi,/\s+/,gi,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:gi}]},Ie={begin:/\(/,end:/\)/,keywords:u,contains:[Ce,...r,...c,...y,v,z,...q,X,ge],endsParent:!0,illegal:/["']/},Oe={match:[/(func|macro)/,/\s+/,xn(V.match,gi,Rg)],className:{1:"keyword",3:"title.function"},contains:[le,Ie,t],illegal:[/\[/,/%/]},Ke={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[le,Ie,t],illegal:/\[|%/},xt={match:[/operator/,/\s+/,Rg],className:{1:"keyword",3:"title"}},Xt={begin:[/precedencegroup/,/\s+/,Mg],className:{1:"keyword",3:"title"},contains:[X],keywords:[...bG,...cS],end:/}/};for(const ye of z.variants){const Re=ye.contains.find(Be=>Be.label==="interpol");Re.keywords=u;const at=[...c,...p,...y,v,z,...M];Re.contains=[...at,{begin:/\(/,end:/\)/,contains:["self",...at]}]}return{name:"Swift",keywords:u,contains:[...r,Oe,Ke,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:u,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c]},xt,Xt,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},U,...c,...p,...y,v,z,...M,...q,X,ge]}}const ep="[A-Za-z$_][0-9A-Za-z$_]*",dI=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],fI=["true","false","null","undefined","NaN","Infinity"],pI=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],hI=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mI=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],gI=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],bI=[].concat(mI,pI,hI);function kG(e){const t=e.regex,n=(N,{after:F})=>{const w="",end:""},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(N,F)=>{const w=N[0].length+N.index,q=N.input[w];if(q==="<"||q===","){F.ignoreMatch();return}q===">"&&(n(N,{after:w})||F.ignoreMatch());let X;const D=N.input.substring(w);if(X=D.match(/^\s*=/)){F.ignoreMatch();return}if((X=D.match(/^\s+extends\s+/))&&X.index===0){F.ignoreMatch();return}}},s={$pattern:ep,keyword:dI,literal:fI,built_in:bI,"variable.language":gI},l="[0-9](_?[0-9])*",u=`\\.(${l})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${l})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},y={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},E={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const k=[].concat(E,f.contains),_=k.concat([{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(k)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_},I={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...pI,...hI]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},A={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(N){return t.concat("(?!",N.join("|"),")")}const U={match:t.concat(/\b/,L([...mI,"super","import"]),r,t.lookahead(/\(/)),className:"title.function",relevance:0},V={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},B="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(B)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:_,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,m,y,E,{match:/\$\d+/},d,R,{className:"attr",begin:r+t.lookahead(":"),relevance:0},M,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,e.REGEXP_MODE,{className:"function",begin:B,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:_}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},A,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},U,j,I,H,{match:/\$[(.]/}]}}function xG(e){const t=kG(e),n=ep,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[t.exports.CLASS_REFERENCE]},a={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},s=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:ep,keyword:dI.concat(s),literal:fI,built_in:bI.concat(r),"variable.language":gI},u={className:"meta",begin:"@"+n},c=(f,p,h)=>{const m=f.contains.findIndex(y=>y.label===p);if(m===-1)throw new Error("can not find mode to replace");f.contains.splice(m,1,h)};Object.assign(t.keywords,l),t.exports.PARAMS_CONTAINS.push(u),t.contains=t.contains.concat([u,i,o]),c(t,"shebang",e.SHEBANG()),c(t,"use_strict",a);const d=t.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}function SG(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(a,s),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},c={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,u,c,d,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function wG(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,e.QUOTE_STRING_MODE,l,u,s]}}function _G(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[o,a,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function CG(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},a=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),d={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},p={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},m=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},d,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},p,h,o],y=[...m];return y.pop(),y.push(a),f.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}const NG={arduino:mK,bash:gK,c:bK,cpp:yK,csharp:EK,css:_K,diff:CK,go:NK,graphql:AK,ini:OK,java:IK,javascript:PK,json:BK,kotlin:FK,less:VK,lua:qK,makefile:YK,markdown:KK,objectivec:GK,perl:QK,php:XK,"php-template":JK,plaintext:ZK,python:eG,"python-repl":tG,r:nG,ruby:rG,rust:iG,scss:dG,shell:fG,sql:pG,swift:TG,typescript:xG,vbnet:SG,wasm:wG,xml:_G,yaml:CG};function yI(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&yI(n)}),e}class fS{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function EI(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function ho(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const AG="
",pS=e=>!!e.scope,OG=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class IG{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=EI(t)}openNode(t){if(!pS(t))return;const n=OG(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){pS(t)&&(this.buffer+=AG)}value(){return this.buffer}span(t){this.buffer+=``}}const hS=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class YE{constructor(){this.rootNode=hS(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=hS({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{YE._collapse(n)}))}}class RG extends YE{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new IG(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function tc(e){return e?typeof e=="string"?e:e.source:null}function vI(e){return Qa("(?=",e,")")}function MG(e){return Qa("(?:",e,")*")}function DG(e){return Qa("(?:",e,")?")}function Qa(...e){return e.map(n=>tc(n)).join("")}function LG(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function KE(...e){return"("+(LG(e).capture?"":"?:")+e.map(r=>tc(r)).join("|")+")"}function TI(e){return new RegExp(e.toString()+"|").exec("").length-1}function PG(e,t){const n=e&&e.exec(t);return n&&n.index===0}const BG=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function GE(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=tc(r),a="";for(;o.length>0;){const s=BG.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const zG=/\b\B/,kI="[a-zA-Z]\\w*",QE="[a-zA-Z_]\\w*",xI="\\b\\d+(\\.\\d+)?",SI="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",wI="\\b(0b[01]+)",FG="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",HG=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Qa(t,/.*\b/,e.binary,/\b.*/)),ho({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},nc={begin:"\\\\[\\s\\S]",relevance:0},UG={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[nc]},jG={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[nc]},$G={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},im=function(e,t,n={}){const r=ho({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=KE("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Qa(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},WG=im("//","$"),VG=im("/\\*","\\*/"),qG=im("#","$"),YG={scope:"number",begin:xI,relevance:0},KG={scope:"number",begin:SI,relevance:0},GG={scope:"number",begin:wI,relevance:0},QG={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[nc,{begin:/\[/,end:/\]/,relevance:0,contains:[nc]}]},XG={scope:"title",begin:kI,relevance:0},JG={scope:"title",begin:QE,relevance:0},ZG={begin:"\\.\\s*"+QE,relevance:0},eQ=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var _d=Object.freeze({__proto__:null,APOS_STRING_MODE:UG,BACKSLASH_ESCAPE:nc,BINARY_NUMBER_MODE:GG,BINARY_NUMBER_RE:wI,COMMENT:im,C_BLOCK_COMMENT_MODE:VG,C_LINE_COMMENT_MODE:WG,C_NUMBER_MODE:KG,C_NUMBER_RE:SI,END_SAME_AS_BEGIN:eQ,HASH_COMMENT_MODE:qG,IDENT_RE:kI,MATCH_NOTHING_RE:zG,METHOD_GUARD:ZG,NUMBER_MODE:YG,NUMBER_RE:xI,PHRASAL_WORDS_MODE:$G,QUOTE_STRING_MODE:jG,REGEXP_MODE:QG,RE_STARTERS_RE:FG,SHEBANG:HG,TITLE_MODE:XG,UNDERSCORE_IDENT_RE:QE,UNDERSCORE_TITLE_MODE:JG});function tQ(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function nQ(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function rQ(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=tQ,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function iQ(e,t){Array.isArray(e.illegal)&&(e.illegal=KE(...e.illegal))}function oQ(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function aQ(e,t){e.relevance===void 0&&(e.relevance=1)}const sQ=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Qa(n.beforeMatch,vI(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},lQ=["of","and","for","in","not","or","if","then","parent","list","value"],uQ="keyword";function _I(e,t,n=uQ){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,_I(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,cQ(l[0],l[1])]})}}function cQ(e,t){return t?Number(t):dQ(e)?0:1}function dQ(e){return lQ.includes(e.toLowerCase())}const mS={},Ta=e=>{console.error(e)},gS=(e,...t)=>{console.log(`WARN: ${e}`,...t)},us=(e,t)=>{mS[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),mS[`${e}/${t}`]=!0)},tp=new Error;function CI(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=TI(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function fQ(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Ta("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),tp;if(typeof e.beginScope!="object"||e.beginScope===null)throw Ta("beginScope must be object"),tp;CI(e,e.begin,{key:"beginScope"}),e.begin=GE(e.begin,{joinWith:""})}}function pQ(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Ta("skip, excludeEnd, returnEnd not compatible with endScope: {}"),tp;if(typeof e.endScope!="object"||e.endScope===null)throw Ta("endScope must be object"),tp;CI(e,e.end,{key:"endScope"}),e.end=GE(e.end,{joinWith:""})}}function hQ(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function mQ(e){hQ(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),fQ(e),pQ(e)}function gQ(e){function t(a,s){return new RegExp(tc(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=TI(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(GE(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const u=l.findIndex((d,f)=>f>0&&d!==void 0),c=this.matchIndexes[u];return l.splice(0,u),Object.assign(l,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([u,c])=>l.addRule(u,c)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let u=l.exec(s);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(s)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[nQ,oQ,mQ,sQ].forEach(c=>c(a,s)),e.compilerExtensions.forEach(c=>c(a,s)),a.__beforeBegin=null,[rQ,iQ,aQ].forEach(c=>c(a,s)),a.isCompiled=!0;let u=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),u=a.keywords.$pattern,delete a.keywords.$pattern),u=u||/\w+/,a.keywords&&(a.keywords=_I(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(u,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=tc(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(c){return bQ(c==="self"?a:c)})),a.contains.forEach(function(c){o(c,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ho(e.classNameAliases||{}),o(e)}function NI(e){return e?e.endsWithParent||NI(e.starts):!1}function bQ(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return ho(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:NI(e)?ho(e,{starts:e.starts?ho(e.starts):null}):Object.isFrozen(e)?ho(e):e}var yQ="11.9.0";class EQ extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const Dg=EI,bS=ho,yS=Symbol("nomatch"),vQ=7,AI=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:RG};function l(M){return s.noHighlightRe.test(M)}function u(M){let N=M.className+" ";N+=M.parentNode?M.parentNode.className:"";const F=s.languageDetectRe.exec(N);if(F){const w=z(F[1]);return w||(gS(o.replace("{}",F[1])),gS("Falling back to no-highlight mode for this block.",M)),w?F[1]:"no-highlight"}return N.split(/\s+/).find(w=>l(w)||z(w))}function c(M,N,F){let w="",q="";typeof N=="object"?(w=M,F=N.ignoreIllegals,q=N.language):(us("10.7.0","highlight(lang, code, ...args) has been deprecated."),us("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),q=M,w=N),F===void 0&&(F=!0);const X={code:w,language:q};H("before:highlight",X);const D=X.result?X.result:d(X.language,X.code,F);return D.code=X.code,H("after:highlight",D),D}function d(M,N,F,w){const q=Object.create(null);function X(W,Q){return W.keywords[Q]}function D(){if(!pe.keywords){He.addText(Me);return}let W=0;pe.keywordPatternRe.lastIndex=0;let Q=pe.keywordPatternRe.exec(Me),re="";for(;Q;){re+=Me.substring(W,Q.index);const de=Be.case_insensitive?Q[0].toLowerCase():Q[0],$e=X(pe,de);if($e){const[Ht,xr]=$e;if(He.addText(re),re="",q[de]=(q[de]||0)+1,q[de]<=vQ&&(St+=xr),Ht.startsWith("_"))re+=Q[0];else{const Xo=Be.classNameAliases[Ht]||Ht;le(Q[0],Xo)}}else re+=Q[0];W=pe.keywordPatternRe.lastIndex,Q=pe.keywordPatternRe.exec(Me)}re+=Me.substring(W),He.addText(re)}function be(){if(Me==="")return;let W=null;if(typeof pe.subLanguage=="string"){if(!t[pe.subLanguage]){He.addText(Me);return}W=d(pe.subLanguage,Me,!0,ht[pe.subLanguage]),ht[pe.subLanguage]=W._top}else W=p(Me,pe.subLanguage.length?pe.subLanguage:null);pe.relevance>0&&(St+=W.relevance),He.__addSublanguage(W._emitter,W.language)}function ge(){pe.subLanguage!=null?be():D(),Me=""}function le(W,Q){W!==""&&(He.startScope(Q),He.addText(W),He.endScope())}function Ce(W,Q){let re=1;const de=Q.length-1;for(;re<=de;){if(!W._emit[re]){re++;continue}const $e=Be.classNameAliases[W[re]]||W[re],Ht=Q[re];$e?le(Ht,$e):(Me=Ht,D(),Me=""),re++}}function Ie(W,Q){return W.scope&&typeof W.scope=="string"&&He.openNode(Be.classNameAliases[W.scope]||W.scope),W.beginScope&&(W.beginScope._wrap?(le(Me,Be.classNameAliases[W.beginScope._wrap]||W.beginScope._wrap),Me=""):W.beginScope._multi&&(Ce(W.beginScope,Q),Me="")),pe=Object.create(W,{parent:{value:pe}}),pe}function Oe(W,Q,re){let de=PG(W.endRe,re);if(de){if(W["on:end"]){const $e=new fS(W);W["on:end"](Q,$e),$e.isMatchIgnored&&(de=!1)}if(de){for(;W.endsParent&&W.parent;)W=W.parent;return W}}if(W.endsWithParent)return Oe(W.parent,Q,re)}function Ke(W){return pe.matcher.regexIndex===0?(Me+=W[0],1):(G=!0,0)}function xt(W){const Q=W[0],re=W.rule,de=new fS(re),$e=[re.__beforeBegin,re["on:begin"]];for(const Ht of $e)if(Ht&&(Ht(W,de),de.isMatchIgnored))return Ke(Q);return re.skip?Me+=Q:(re.excludeBegin&&(Me+=Q),ge(),!re.returnBegin&&!re.excludeBegin&&(Me=Q)),Ie(re,W),re.returnBegin?0:Q.length}function Xt(W){const Q=W[0],re=N.substring(W.index),de=Oe(pe,W,re);if(!de)return yS;const $e=pe;pe.endScope&&pe.endScope._wrap?(ge(),le(Q,pe.endScope._wrap)):pe.endScope&&pe.endScope._multi?(ge(),Ce(pe.endScope,W)):$e.skip?Me+=Q:($e.returnEnd||$e.excludeEnd||(Me+=Q),ge(),$e.excludeEnd&&(Me=Q));do pe.scope&&He.closeNode(),!pe.skip&&!pe.subLanguage&&(St+=pe.relevance),pe=pe.parent;while(pe!==de.parent);return de.starts&&Ie(de.starts,W),$e.returnEnd?0:Q.length}function ye(){const W=[];for(let Q=pe;Q!==Be;Q=Q.parent)Q.scope&&W.unshift(Q.scope);W.forEach(Q=>He.openNode(Q))}let Re={};function at(W,Q){const re=Q&&Q[0];if(Me+=W,re==null)return ge(),0;if(Re.type==="begin"&&Q.type==="end"&&Re.index===Q.index&&re===""){if(Me+=N.slice(Q.index,Q.index+1),!i){const de=new Error(`0 width match regex (${M})`);throw de.languageName=M,de.badRule=Re.rule,de}return 1}if(Re=Q,Q.type==="begin")return xt(Q);if(Q.type==="illegal"&&!F){const de=new Error('Illegal lexeme "'+re+'" for mode "'+(pe.scope||"")+'"');throw de.mode=pe,de}else if(Q.type==="end"){const de=Xt(Q);if(de!==yS)return de}if(Q.type==="illegal"&&re==="")return 1;if(Ui>1e5&&Ui>Q.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Me+=re,re.length}const Be=z(M);if(!Be)throw Ta(o.replace("{}",M)),new Error('Unknown language: "'+M+'"');const Fe=gQ(Be);let Ln="",pe=w||Fe;const ht={},He=new s.__emitter(s);ye();let Me="",St=0,mt=0,Ui=0,G=!1;try{if(Be.__emitTokens)Be.__emitTokens(N,He);else{for(pe.matcher.considerAll();;){Ui++,G?G=!1:pe.matcher.considerAll(),pe.matcher.lastIndex=mt;const W=pe.matcher.exec(N);if(!W)break;const Q=N.substring(mt,W.index),re=at(Q,W);mt=W.index+re}at(N.substring(mt))}return He.finalize(),Ln=He.toHTML(),{language:M,value:Ln,relevance:St,illegal:!1,_emitter:He,_top:pe}}catch(W){if(W.message&&W.message.includes("Illegal"))return{language:M,value:Dg(N),illegal:!0,relevance:0,_illegalBy:{message:W.message,index:mt,context:N.slice(mt-100,mt+100),mode:W.mode,resultSoFar:Ln},_emitter:He};if(i)return{language:M,value:Dg(N),illegal:!1,relevance:0,errorRaised:W,_emitter:He,_top:pe};throw W}}function f(M){const N={value:Dg(M),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return N._emitter.addText(M),N}function p(M,N){N=N||s.languages||Object.keys(t);const F=f(M),w=N.filter(z).filter(j).map(ge=>d(ge,M,!1));w.unshift(F);const q=w.sort((ge,le)=>{if(ge.relevance!==le.relevance)return le.relevance-ge.relevance;if(ge.language&&le.language){if(z(ge.language).supersetOf===le.language)return 1;if(z(le.language).supersetOf===ge.language)return-1}return 0}),[X,D]=q,be=X;return be.secondBest=D,be}function h(M,N,F){const w=N&&n[N]||F;M.classList.add("hljs"),M.classList.add(`language-${w}`)}function m(M){let N=null;const F=u(M);if(l(F))return;if(H("before:highlightElement",{el:M,language:F}),M.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",M);return}if(M.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(M)),s.throwUnescapedHTML))throw new EQ("One of your code blocks includes unescaped HTML.",M.innerHTML);N=M;const w=N.textContent,q=F?c(w,{language:F,ignoreIllegals:!0}):p(w);M.innerHTML=q.value,M.dataset.highlighted="yes",h(M,F,q.language),M.result={language:q.language,re:q.relevance,relevance:q.relevance},q.secondBest&&(M.secondBest={language:q.secondBest.language,relevance:q.secondBest.relevance}),H("after:highlightElement",{el:M,result:q,text:w})}function y(M){s=bS(s,M)}const b=()=>{k(),us("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function E(){k(),us("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let v=!1;function k(){if(document.readyState==="loading"){v=!0;return}document.querySelectorAll(s.cssSelector).forEach(m)}function _(){v&&k()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",_,!1);function x(M,N){let F=null;try{F=N(e)}catch(w){if(Ta("Language definition for '{}' could not be registered.".replace("{}",M)),i)Ta(w);else throw w;F=a}F.name||(F.name=M),t[M]=F,F.rawDefinition=N.bind(null,e),F.aliases&&A(F.aliases,{languageName:M})}function I(M){delete t[M];for(const N of Object.keys(n))n[N]===M&&delete n[N]}function R(){return Object.keys(t)}function z(M){return M=(M||"").toLowerCase(),t[M]||t[n[M]]}function A(M,{languageName:N}){typeof M=="string"&&(M=[M]),M.forEach(F=>{n[F.toLowerCase()]=N})}function j(M){const N=z(M);return N&&!N.disableAutodetect}function L(M){M["before:highlightBlock"]&&!M["before:highlightElement"]&&(M["before:highlightElement"]=N=>{M["before:highlightBlock"](Object.assign({block:N.el},N))}),M["after:highlightBlock"]&&!M["after:highlightElement"]&&(M["after:highlightElement"]=N=>{M["after:highlightBlock"](Object.assign({block:N.el},N))})}function U(M){L(M),r.push(M)}function V(M){const N=r.indexOf(M);N!==-1&&r.splice(N,1)}function H(M,N){const F=M;r.forEach(function(w){w[F]&&w[F](N)})}function B(M){return us("10.7.0","highlightBlock will be removed entirely in v12.0"),us("10.7.0","Please use highlightElement now."),m(M)}Object.assign(e,{highlight:c,highlightAuto:p,highlightAll:k,highlightElement:m,highlightBlock:B,configure:y,initHighlighting:b,initHighlightingOnLoad:E,registerLanguage:x,unregisterLanguage:I,listLanguages:R,getLanguage:z,registerAliases:A,autoDetection:j,inherit:bS,addPlugin:U,removePlugin:V}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=yQ,e.regex={concat:Qa,lookahead:vI,either:KE,optional:DG,anyNumberOfTimes:MG};for(const M in _d)typeof _d[M]=="object"&&yI(_d[M]);return Object.assign(e,_d),e},ll=AI({});ll.newInstance=()=>AI({});var TQ=ll;ll.HighlightJS=ll;ll.default=ll;const kQ=Gp(TQ),ES={},xQ="hljs-";function SQ(e){const t=kQ.newInstance();return e&&o(e),{highlight:n,highlightAuto:r,listLanguages:i,register:o,registerAlias:a,registered:s};function n(l,u,c){const d=c||ES,f=typeof d.prefix=="string"?d.prefix:xQ;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:wQ,classPrefix:f});const p=t.highlight(u,{ignoreIllegals:!0,language:l});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const h=p._emitter.root,m=h.data;return m.language=p.language,m.relevance=p.relevance,h}function r(l,u){const d=(u||ES).subset||i();let f=-1,p=0,h;for(;++fp&&(p=y.data.relevance,h=y)}return h||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function o(l,u){if(typeof l=="string")t.registerLanguage(l,u);else{let c;for(c in l)Object.hasOwn(l,c)&&t.registerLanguage(c,l[c])}}function a(l,u){if(typeof l=="string")t.registerAliases(typeof u=="string"?u:[...u],{languageName:l});else{let c;for(c in l)if(Object.hasOwn(l,c)){const d=l[c];t.registerAliases(typeof d=="string"?d:[...d],{languageName:c})}}}function s(l){return!!t.getLanguage(l)}}class wQ{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(a,s){return s?a+"_".repeat(s):n.options.classPrefix+a}),i=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const _Q={};function CQ(e){const t=e||_Q,n=t.aliases,r=t.detect||!1,i=t.languages||NG,o=t.plainText,a=t.prefix,s=t.subset;let l="hljs";const u=SQ(i);if(n&&u.registerAlias(n),a){const c=a.indexOf("-");l=c>-1?a.slice(0,c):a}return function(c,d){Bc(c,"element",function(f,p,h){if(f.tagName!=="code"||!h||h.type!=="element"||h.tagName!=="pre")return;const m=NQ(f);if(m===!1||!m&&!r||m&&o&&o.includes(m))return;Array.isArray(f.properties.className)||(f.properties.className=[]),f.properties.className.includes(l)||f.properties.className.unshift(l);let y;try{y=m?u.highlight(m,aS(h),{prefix:a}):u.highlightAuto(aS(h),{prefix:a,subset:s})}catch(b){const E=b;if(m&&/Unknown language/.test(E.message)){d.message("Cannot highlight as `"+m+"`, it’s not registered",{ancestors:[h,f],cause:E,place:f.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw E}!m&&y.data&&y.data.language&&f.properties.className.push("language-"+y.data.language),y.children.length>0&&(f.children=y.children)})}}function NQ(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n>1}};jt.from=function(e){if(e instanceof jt)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new jt(t)};function OI(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),o=t.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let a=0;i.text[a]==o.text[a];a++)n++;return n}if(i.content.size||o.content.size){let a=OI(i.content,o.content,n+1);if(a!=null)return a}n+=i.nodeSize}}function II(e,t,n,r){for(let i=e.childCount,o=t.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let a=e.child(--i),s=t.child(--o),l=a.nodeSize;if(a==s){n-=l,r-=l;continue}if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let u=0,c=Math.min(a.text.length,s.text.length);for(;ut&&r(l,i+s,o||null,a)!==!1&&l.content.size){let c=s+1;l.nodesBetween(Math.max(0,t-c),Math.min(l.content.size,n-c),r,i+c)}s=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let o="",a=!0;return this.nodesBetween(t,n,(s,l)=>{let u=s.isText?s.text.slice(Math.max(t,l)-l,n-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&u||s.isTextblock)&&r&&(a?a=!1:o+=r),o+=u},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);ot)for(let o=0,a=0;at&&((an)&&(s.isText?s=s.cut(Math.max(0,t-a),Math.min(s.text.length,n-a)):s=s.cut(Math.max(0,t-a-1),Math.min(s.content.size,n-a-1))),r.push(s),i+=s.nodeSize),a=l}return new ee(r,i)}cutByIndex(t,n){return t==n?ee.empty:t==0&&n==this.content.length?this:new ee(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new ee(i,o)}addToStart(t){return new ee([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new ee(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,i=0;;r++){let o=this.child(r),a=i+o.nodeSize;if(a>=t)return a==t||n>0?Cd(r+1,a):Cd(r,i);i=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return ee.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ee(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return ee.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-i.type.rank),n}};qe.none=[];class rp extends Error{}class ae{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=MI(this.content,t+this.openStart,n);return r&&new ae(r,this.openStart,this.openEnd)}removeBetween(t,n){return new ae(RI(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return ae.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ae(ee.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let o=t.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=t.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new ae(t,r,i)}}ae.empty=new ae(ee.empty,0,0);function RI(e,t,n){let{index:r,offset:i}=e.findIndex(t),o=e.maybeChild(r),{index:a,offset:s}=e.findIndex(n);if(i==t||o.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(RI(o.content,t-i-1,n-i-1)))}function MI(e,t,n,r){let{index:i,offset:o}=e.findIndex(t),a=e.maybeChild(i);if(o==t||a.isText)return e.cut(0,t).append(n).append(e.cut(t));let s=MI(a.content,t-o-1,n);return s&&e.replaceChild(i,a.copy(s))}function AQ(e,t,n){if(n.openStart>e.depth)throw new rp("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new rp("Inconsistent open depths");return DI(e,t,n,0)}function DI(e,t,n,r){let i=e.index(r),o=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function ku(e,t,n,r){let i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(ka(e.nodeAfter,r),o++));for(let s=o;si&&Ub(e,t,i+1),a=r.depth>i&&Ub(n,r,i+1),s=[];return ku(null,e,i,s),o&&a&&t.index(i)==n.index(i)?(LI(o,a),ka(xa(o,PI(e,t,n,r,i+1)),s)):(o&&ka(xa(o,ip(e,t,i+1)),s),ku(t,n,i,s),a&&ka(xa(a,ip(n,r,i+1)),s)),ku(r,null,i,s),new ee(s)}function ip(e,t,n){let r=[];if(ku(null,e,n,r),e.depth>n){let i=Ub(e,t,n+1);ka(xa(i,ip(e,t,n+1)),r)}return ku(t,null,n,r),new ee(r)}function OQ(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let o=n-1;o>=0;o--)i=t.node(o).copy(ee.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class rc{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new op(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let a=t;;){let{index:s,offset:l}=a.content.findIndex(o),u=o-l;if(r.push(a,s,i+l),!u||(a=a.child(s),a.isText))break;o=u-1,i+=l+1}return new rc(n,r,o)}static resolveCached(t,n){let r=vS.get(t);if(r)for(let o=0;ot&&this.nodesBetween(t,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),BI(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=ee.empty,i=0,o=r.childCount){let a=this.contentMatchAt(t).matchFragment(r,i,o),s=a&&a.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;ln.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=ee.fromJSON(t,n.content),o=t.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};Sa.prototype.text=void 0;class ap extends Sa{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):BI(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new ap(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new ap(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function BI(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Fa{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new DQ(t,n);if(r.next==null)return Fa.empty;let i=zI(r);r.next&&r.err("Unexpected trailing text");let o=UQ(HQ(i));return jQ(o,r),o}matchType(t){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i{let o=i+(r.validEnd?"*":" ")+" ";for(let a=0;a"+t.indexOf(r.next[a].next);return o}).join(` +`)}}Fa.empty=new Fa(!0);class DQ{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function zI(e){let t=[];do t.push(LQ(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function LQ(e){let t=[];do t.push(PQ(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function PQ(e){let t=FQ(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=BQ(e,t);else break;return t}function TS(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function BQ(e,t){let n=TS(e),r=n;return e.eat(",")&&(e.next!="}"?r=TS(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function zQ(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let o in n){let a=n[o];a.isInGroup(t)&&i.push(a)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function FQ(e){if(e.eat("(")){let t=zI(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=zQ(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function HQ(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(a,s,l){let u={term:l,to:s};return t[a].push(u),u}function i(a,s){a.forEach(l=>l.to=s)}function o(a,s){if(a.type=="choice")return a.exprs.reduce((l,u)=>l.concat(o(u,s)),[]);if(a.type=="seq")for(let l=0;;l++){let u=o(a.exprs[l],s);if(l==a.exprs.length-1)return u;i(u,s=n())}else if(a.type=="star"){let l=n();return r(s,l),i(o(a.expr,l),l),[r(l)]}else if(a.type=="plus"){let l=n();return i(o(a.expr,s),l),i(o(a.expr,l),l),[r(l)]}else{if(a.type=="opt")return[r(s)].concat(o(a.expr,s));if(a.type=="range"){let l=s;for(let u=0;u{e[a].forEach(({term:s,to:l})=>{if(!s)return;let u;for(let c=0;c{u||i.push([s,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let o=t[r.join(",")]=new Fa(r.indexOf(e.length-1)>-1);for(let a=0;a-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:UI(this.attrs,t)}create(t=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Sa(this,this.computeAttrs(t),ee.from(n),qe.setFrom(r))}createChecked(t=null,n,r){return n=ee.from(n),this.checkContent(n),new Sa(this,this.computeAttrs(t),n,qe.setFrom(r))}createAndFill(t=null,n,r){if(t=this.computeAttrs(t),n=ee.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(ee.empty,!0);return o?new Sa(this,t,n.append(o),qe.setFrom(r)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let r=0;r-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;nr[o]=new WI(o,n,a));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function $Q(e,t,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}class WQ{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?$Q(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class om{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=$I(t,i.attrs),this.excluded=null;let o=HI(this.attrs);this.instance=o?new qe(this,o):null}create(t=null){return!t&&this.instance?this.instance:new qe(this,UI(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((o,a)=>r[o]=new om(o,i++,n,a)),r}removeFromSet(t){for(var n=0;n-1}}class VI{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=jt.from(t.nodes),n.marks=jt.from(t.marks||{}),this.nodes=xS.compile(this.spec.nodes,this),this.marks=om.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],a=o.spec.content||"",s=o.spec.marks;if(o.contentMatch=r[a]||(r[a]=Fa.parse(a,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=s=="_"?null:s?SS(this,s.split(" ")):s==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],a=o.spec.excludes;o.excluded=a==null?[o]:a==""?[]:SS(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof xS){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new ap(r,r.defaultAttrs,t,qe.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return Sa.fromJSON(this,t)}markFromJSON(t){return qe.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function SS(e,t){let n=[];for(let r=0;r-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function VQ(e){return e.tag!=null}function qQ(e){return e.style!=null}class _o{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(VQ(i))this.tags.push(i);else if(qQ(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=t.nodes[i.node];return o.contentMatch.matchType(o)})}parse(t,n={}){let r=new _S(this,n,!1);return r.addAll(t,qe.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new _S(this,n,!0);return r.addAll(t,qe.none,n.from,n.to),ae.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;it.length&&(s.charCodeAt(t.length)!=61||s.slice(t.length+1)!=n))){if(a.getAttrs){let l=a.getAttrs(n);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(t){let n=[];function r(i){let o=i.priority==null?50:i.priority,a=0;for(;a{r(a=CS(a)),a.mark||a.ignore||a.clearMark||(a.mark=i)})}for(let i in t.nodes){let o=t.nodes[i].spec.parseDOM;o&&o.forEach(a=>{r(a=CS(a)),a.node||a.ignore||a.mark||(a.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new _o(t,_o.schemaRules(t)))}}const qI={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},YQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},YI={ol:!0,ul:!0},sp=1,lp=2,xu=4;function wS(e,t,n){return t!=null?(t?sp:0)|(t==="full"?lp:0):e&&e.whitespace=="pre"?sp|lp:n&~xu}class Nd{constructor(t,n,r,i,o,a){this.type=t,this.attrs=n,this.marks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=qe.none,this.match=o||(a&xu?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(ee.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&sp)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=ee.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(ee.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!qI.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class _S{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0;let i=n.topNode,o,a=wS(null,n.preserveWhitespace,0)|(r?xu:0);i?o=new Nd(i.type,i.attrs,qe.none,!0,n.topMatch||i.type.contentMatch,a):r?o=new Nd(null,null,qe.none,!0,null,a):o=new Nd(t.schema.topNodeType,null,qe.none,!0,null,a),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,i=this.top;if(i.options&lp||i.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(i.options&sp)i.options&lp?r=r.replace(/\r\n?/g,` +`):r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=i.content[i.content.length-1],a=t.previousSibling;(!o||a&&a.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let i=t.nodeName.toLowerCase(),o;YI.hasOwnProperty(i)&&this.parser.normalizeLists&&KQ(t);let a=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(o=this.parser.matchTag(t,this,r));if(a?a.ignore:YQ.hasOwnProperty(i))this.findInside(t),this.ignoreFallback(t,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(t=a.skip);let s,l=this.top,u=this.needsBlock;if(qI.hasOwnProperty(i))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);return}let c=a&&a.skip?n:this.readStyles(t,n);c&&this.addAll(t,c),s&&this.sync(l),this.needsBlock=u}else{let s=this.readStyles(t,n);s&&this.addElementByRule(t,a,s,a.consuming===!1?o:void 0)}}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` +`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let i=0;i!l.clearMark(u)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return n}addElementByRule(t,n,r,i){let o,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),r)||this.leafFallback(t,r);else{let l=this.enter(a,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let s=this.top;if(a&&a.isLeaf)this.findInside(t);else if(i)this.addElement(t,r,i);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l,r));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l,r),this.findAround(t,l,!1)}o&&this.sync(s)&&this.open--}addAll(t,n,r,i){let o=r||0;for(let a=r?t.childNodes[r]:t.firstChild,s=i==null?null:t.childNodes[i];a!=s;a=a.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(a,n);this.findAtPoint(t,o)}findPlace(t,n){let r,i;for(let o=this.open;o>=0;o--){let a=this.nodes[o],s=a.findWrapping(t);if(s&&(!r||r.length>s.length)&&(r=s,i=a,!s.length)||a.solid)break}if(!r)return null;this.sync(i);for(let o=0;o(a.type?a.type.allowsMarkType(u.type):NS(u.type,t))?(l=u.addToSet(l),!1):!0),this.nodes.push(new Nd(t,n,l,i,null,s)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let n=this.open;n>=0;n--)if(this.nodes[n]==t)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=(s,l)=>{for(;s>=0;s--){let u=n[s];if(u==""){if(s==n.length-1||s==0)continue;for(;l>=o;l--)if(a(s-1,l))return!0;return!1}else{let c=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;l--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function KQ(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&YI.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function GQ(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function CS(e){let t={};for(let n in e)t[n]=e[n];return t}function NS(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],a=s=>{o.push(s);for(let l=0;l{if(o.length||a.marks.length){let s=0,l=0;for(;s=0;i--){let o=this.serializeMark(t.marks[i],t.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&lf(Pg(r),i(t,n),null,t.attrs)}static renderSpec(t,n,r=null,i){return lf(t,n,r,i)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Xa(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=AS(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return AS(t.marks)}}function AS(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Pg(e){return e.document||window.document}const OS=new WeakMap;function QQ(e){let t=OS.get(e);return t===void 0&&OS.set(e,t=XQ(e)),t}function XQ(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let i=0;i-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=i.indexOf(" ");a>0&&(n=i.slice(0,a),i=i.slice(a+1));let s,l=n?e.createElementNS(n,i):e.createElement(i),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),u[d]):l.setAttribute(d,u[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:p,contentDOM:h}=lf(e,f,n,r);if(l.appendChild(p),h){if(s)throw new RangeError("Multiple content holes");s=h}}}return{dom:l,contentDOM:s}}const KI=65535,GI=Math.pow(2,16);function JQ(e,t){return e+t*GI}function IS(e){return e&KI}function ZQ(e){return(e-(e&KI))/GI}const QI=1,XI=2,uf=4,JI=8;class $b{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&JI)>0}get deletedBefore(){return(this.delInfo&(QI|uf))>0}get deletedAfter(){return(this.delInfo&(XI|uf))>0}get deletedAcross(){return(this.delInfo&uf)>0}}class Fn{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Fn.empty)return Fn.empty}recover(t){let n=0,r=IS(t);if(!this.inverted)for(let i=0;it)break;let u=this.ranges[s+o],c=this.ranges[s+a],d=l+u;if(t<=d){let f=u?t==l?-1:t==d?1:n:n,p=l+i+(f<0?0:c);if(r)return p;let h=t==(n<0?l:d)?null:JQ(s/3,t-l),m=t==l?XI:t==d?QI:uf;return(n<0?t!=l:t!=d)&&(m|=JI),new $b(p,m,h)}i+=c-u}return r?t+i:new $b(t+i,0,null)}touches(t,n){let r=0,i=IS(n),o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;st)break;let u=this.ranges[s+o],c=l+u;if(t<=c&&s==i*3)return!0;r+=this.ranges[s+a]-u}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i=0;n--){let i=t.getMirror(n);this.appendMap(t.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new Ws;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;ro&&l!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),i),n.openStart,n.openEnd);return Tt.fromReplace(t,this.from,this.to,o)}invert(){return new ei(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new mo(n.pos,r.pos,this.mark)}merge(t){return t instanceof mo&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new mo(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new mo(n.from,n.to,t.markFromJSON(n.mark))}}un.jsonID("addMark",mo);class ei extends un{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new ae(XE(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return Tt.fromReplace(t,this.from,this.to,r)}invert(){return new mo(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new ei(n.pos,r.pos,this.mark)}merge(t){return t instanceof ei&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new ei(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new ei(n.from,n.to,t.markFromJSON(n.mark))}}un.jsonID("removeMark",ei);class go extends un{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Tt.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Tt.fromReplace(t,this.pos,this.pos+1,new ae(ee.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new Pt(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Pt(n.from,n.to,n.gapFrom,n.gapTo,ae.fromJSON(t,n.slice),n.insert,!!n.structure)}}un.jsonID("replaceAround",Pt);function Wb(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let a=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}}return!1}function eX(e,t,n,r){let i=[],o=[],a,s;e.doc.nodesBetween(t,n,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let f=Math.max(u,t),p=Math.min(u+l.nodeSize,n),h=r.addToSet(d);for(let m=0;me.step(l)),o.forEach(l=>e.step(l))}function tX(e,t,n,r){let i=[],o=0;e.doc.nodesBetween(t,n,(a,s)=>{if(!a.isInline)return;o++;let l=null;if(r instanceof om){let u=a.marks,c;for(;c=r.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(a.marks)&&(l=[r]):l=a.marks;if(l&&l.length){let u=Math.min(s+a.nodeSize,n);for(let c=0;ce.step(new ei(a.from,a.to,a.style)))}function JE(e,t,n,r=n.contentMatch,i=!0){let o=e.doc.nodeAt(t),a=[],s=t+1;for(let l=0;l=0;l--)e.step(a[l])}function nX(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Al(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let i=e.$from.node(r),o=e.$from.index(r),a=e.$to.indexAfter(r);if(rn;h--)m||r.index(h)>0?(m=!0,c=ee.from(r.node(h).copy(c)),d++):l--;let f=ee.empty,p=0;for(let h=o,m=!1;h>n;h--)m||i.after(h+1)=0;a--){if(r.size){let s=n[a].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=ee.from(n[a].type.create(n[a].attrs,r))}let i=t.start,o=t.end;e.step(new Pt(i,o,i,o,new ae(r,0,0),n.length,!0))}function sX(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,n,(a,s)=>{let l=typeof i=="function"?i(a):i;if(a.isTextblock&&!a.hasMarkup(r,l)&&lX(e.doc,e.mapping.slice(o).map(s),r)){let u=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",h=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!h?u=!1:!p&&h&&(u=!0)}u===!1&&eR(e,a,s,o),JE(e,e.mapping.slice(o).map(s,1),r,void 0,u===null);let c=e.mapping.slice(o),d=c.map(s,1),f=c.map(s+a.nodeSize,1);return e.step(new Pt(d,f,d+1,f-1,new ae(ee.from(r.create(l,null,a.marks)),0,0),1,!0)),u===!0&&ZI(e,a,s,o),!1}})}function ZI(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(i.text);){let l=e.mapping.slice(r).map(n+1+o+a.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}}})}function eR(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let a=e.mapping.slice(r).map(n+1+o);e.replaceWith(a,a+1,t.type.schema.text(` +`))}})}function lX(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function uX(e,t,n,r,i){let o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let a=n.create(r,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,a);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Pt(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new ae(ee.from(a),0,0),1,!0))}function Vs(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let u=i.depth-1,c=n-2;u>o;u--,c--){let d=i.node(u),f=i.index(u);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(f,d.childCount),h=r&&r[c+1];h&&(p=p.replaceChild(0,h.type.create(h.attrs)));let m=r&&r[c]||d;if(!d.canReplace(f+1,d.childCount)||!m.type.validContent(p))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function cX(e,t,n=1,r){let i=e.doc.resolve(t),o=ee.empty,a=ee.empty;for(let s=i.depth,l=i.depth-n,u=n-1;s>l;s--,u--){o=ee.from(i.node(s).copy(o));let c=r&&r[u];a=ee.from(c?c.type.create(c.attrs,a):i.node(s).copy(a))}e.step(new Mt(t,t,new ae(o.append(a),n,n),!0))}function Ko(e,t){let n=e.resolve(t),r=n.index();return tR(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function dX(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i0?(o=r.node(i+1),s++,a=r.node(i).maybeChild(s)):(o=r.node(i).maybeChild(s-1),a=r.node(i+1)),o&&!o.isTextblock&&tR(o,a)&&r.node(i).canReplace(s,s+1))return t;if(i==0)break;t=n<0?r.before(i):r.after(i)}}function fX(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,o=e.doc.resolve(t-n),a=o.node().type;if(i&&a.inlineContent){let c=a.whitespace=="pre",d=!!a.contentMatch.matchType(i);c&&!d?r=!1:!c&&d&&(r=!0)}let s=e.steps.length;if(r===!1){let c=e.doc.resolve(t+n);eR(e,c.node(),c.before(),s)}a.inlineContent&&JE(e,t+n-1,a,o.node().contentMatchAt(o.index()),r==null);let l=e.mapping.slice(s),u=l.map(t-n);if(e.step(new Mt(u,l.map(t+n,-1),ae.empty,!0)),r===!0){let c=e.doc.resolve(u);ZI(e,c.node(),c.before(),e.steps.length)}return e}function pX(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o=0;a--){let s=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,l=r.index(a)+(s>0?1:0),u=r.node(a),c=!1;if(o==1)c=u.canReplace(l,l,i);else{let d=u.contentMatchAt(l).findWrapping(i.firstChild.type);c=d&&u.canReplaceWith(l,l,d[0])}if(c)return s==0?r.pos:s<0?r.before(a+1):r.after(a+1)}return null}function sm(e,t,n=t,r=ae.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),o=e.resolve(n);return rR(i,o,r)?new Mt(t,n,r):new hX(i,o,r).fit()}function rR(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class hX{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=ee.empty;for(let i=0;i<=t.depth;i++){let o=t.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=ee.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let o=this.placed,a=r.depth,s=i.depth;for(;a&&s&&o.childCount==1;)o=o.firstChild.content,a--,s--;let l=new ae(o,a,s);return t>-1?new Pt(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Mt(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),o.type.spec.isolating&&i<=r){t=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=zg(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let a=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:u}=this.frontier[s],c,d=null;if(n==1&&(a?u.matchType(a.type)||(d=u.fillBefore(ee.from(a),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:s,parent:o,inject:d};if(n==2&&a&&(c=u.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:s,parent:o,wrap:c};if(o&&u.matchType(o.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=zg(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new ae(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=zg(t,n);if(i.childCount<=1&&n>0){let o=t.size-n<=n+i.size;this.unplaced=new ae(nu(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new ae(nu(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let m=0;m1||l==0||m.content.size)&&(d=y,c.push(iR(m.mark(f.allowedMarks(m.marks)),u==1?l:0,u==s.childCount?p:-1)))}let h=u==s.childCount;h||(p=-1),this.placed=ru(this.placed,n,ee.from(c)),this.frontier[n].match=d,h&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,y=s;m1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n=0;s--){let{match:l,type:u}=this.frontier[s],c=Fg(t,s,u,l,!0);if(!c||c.childCount)continue e}return{depth:n,fit:a,move:o?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=ru(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,o)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=ru(this.placed,this.depth,ee.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(ee.empty,!0);n.childCount&&(this.placed=ru(this.placed,this.frontier.length,n))}}function nu(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(nu(e.firstChild.content,t-1,n)))}function ru(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(ru(e.lastChild.content,t-1,n)))}function zg(e,t){for(let n=0;n1&&(r=r.replaceChild(0,iR(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(ee.empty,!0)))),e.copy(r)}function Fg(e,t,n,r,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!mX(n,o.content,a)?s:null}function mX(e,t,n){for(let r=n;r0;f--,p--){let h=i.node(f).type.spec;if(h.defining||h.definingAsContext||h.isolating)break;a.indexOf(f)>-1?s=f:i.before(f)==p&&a.splice(1,0,-f)}let l=a.indexOf(s),u=[],c=r.openStart;for(let f=r.content,p=0;;p++){let h=f.firstChild;if(u.push(h),p==r.openStart)break;f=h.content}for(let f=c-1;f>=0;f--){let p=u[f],h=gX(p.type);if(h&&!p.sameMarkup(i.node(Math.abs(s)-1)))c=f;else if(h||!p.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let p=(f+c+1)%(r.openStart+1),h=u[p];if(h)for(let m=0;m=0&&(e.replace(t,n,r),!(e.steps.length>d));f--){let p=a[f];p<0||(t=i.before(p),n=o.after(p))}}function oR(e,t,n,r,i){if(tr){let o=i.contentMatchAt(0),a=o.fillBefore(e).append(e);e=a.append(o.matchFragment(a).fillBefore(ee.empty,!0))}return e}function yX(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=pX(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new ae(ee.from(r),0,0))}function EX(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=aR(r,i);for(let a=0;a0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return e.delete(r.before(s),i.after(s))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function aR(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let o=e.start(i);if(ot.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&n.push(i)}return n}class qs extends un{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Tt.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Tt.fromReplace(t,this.pos,this.pos+1,new ae(ee.from(i),0,n.isLeaf?0:1))}getMap(){return Fn.empty}invert(t){return new qs(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new qs(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new qs(n.pos,n.attr,n.value)}}un.jsonID("attr",qs);class ic extends un{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let i in t.attrs)n[i]=t.attrs[i];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return Tt.ok(r)}getMap(){return Fn.empty}invert(t){return new ic(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new ic(n.attr,n.value)}}un.jsonID("docAttr",ic);let cl=class extends Error{};cl=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};cl.prototype=Object.create(Error.prototype);cl.prototype.constructor=cl;cl.prototype.name="TransformError";class sR{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Ws}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new cl(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=ae.empty){let i=sm(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new ae(ee.from(r),0,0))}delete(t,n){return this.replace(t,n,ae.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return bX(this,t,n,r),this}replaceRangeWith(t,n,r){return yX(this,t,n,r),this}deleteRange(t,n){return EX(this,t,n),this}lift(t,n){return rX(this,t,n),this}join(t,n=1){return fX(this,t,n),this}wrap(t,n){return aX(this,t,n),this}setBlockType(t,n=t,r,i=null){return sX(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return uX(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new qs(t,n,r)),this}setDocAttribute(t,n){return this.step(new ic(t,n)),this}addNodeMark(t,n){return this.step(new go(t,n)),this}removeNodeMark(t,n){if(!(n instanceof qe)){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n=n.isInSet(r.marks),!n)return this}return this.step(new ul(t,n)),this}split(t,n=1,r){return cX(this,t,n,r),this}addMark(t,n,r){return eX(this,t,n,r),this}removeMark(t,n,r){return tX(this,t,n,r),this}clearIncompatible(t,n,r){return JE(this,t,n,r),this}}const Hg=Object.create(null);class ke{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new vX(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;o--){let a=n<0?bs(t.node(0),t.node(o),t.before(o+1),t.index(o),n,r):bs(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,n,r);if(a)return a}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new Dr(t.node(0))}static atStart(t){return bs(t,t,0,0,1)||new Dr(t)}static atEnd(t){return bs(t,t,t.content.size,t.childCount,-1)||new Dr(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Hg[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in Hg)throw new RangeError("Duplicate use of selection JSON ID "+t);return Hg[t]=n,n.prototype.jsonID=t,n}getBookmark(){return ve.between(this.$anchor,this.$head).getBookmark()}}ke.prototype.visible=!0;class vX{constructor(t,n){this.$from=t,this.$to=n}}let MS=!1;function DS(e){!MS&&!e.parent.inlineContent&&(MS=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class ve extends ke{constructor(t,n=t){DS(t),DS(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return ke.near(r);let i=t.resolve(n.map(this.anchor));return new ve(i.parent.inlineContent?i:r,r)}replace(t,n=ae.empty){if(super.replace(t,n),n==ae.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof ve&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new lm(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new ve(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=ke.findFrom(n,r,!0)||ke.findFrom(n,-r,!0);if(o)n=o.$head;else return ke.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(ke.findFrom(t,-r,!0)||ke.findFrom(t,r,!0)).$anchor,t.pos0?0:1);i>0?a=0;a+=i){let s=t.child(a);if(s.isAtom){if(!o&&me.isSelectable(s))return me.create(e,n-(i<0?s.nodeSize:0))}else{let l=bs(e,s,n+i,i<0?s.childCount:0,i,o);if(l)return l}n+=s.nodeSize*i}return null}function LS(e,t,n){let r=e.steps.length-1;if(r{a==null&&(a=c)}),e.setSelection(ke.near(e.doc.resolve(a),n))}const PS=1,Ad=2,BS=4;class kX extends sR{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=Ad,this}ensureMarks(t){return qe.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ad)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~Ad,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||qe.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let i=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!t)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let a=this.doc.resolve(n);o=r==n?a.marks():a.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(t,o)),this.selection.empty||this.setSelection(ke.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=BS,this}get scrolledIntoView(){return(this.updated&BS)>0}}function zS(e,t){return!t||!e?e:e.bind(t)}class iu{constructor(t,n,r){this.name=t,this.init=zS(n.init,r),this.apply=zS(n.apply,r)}}const xX=[new iu("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new iu("selection",{init(e,t){return e.selection||ke.atStart(t.doc)},apply(e){return e.selection}}),new iu("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new iu("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class Ug{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=xX.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new iu(r.key,r.spec.state,r))})}}class Ms{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;rr.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new Ug(t.schema,t.plugins),o=new Ms(i);return i.fields.forEach(a=>{if(a.name=="doc")o.doc=Sa.fromJSON(t.schema,n.doc);else if(a.name=="selection")o.selection=ke.fromJSON(o.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],u=l.spec.state;if(l.key==a.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){o[a.name]=u.fromJSON.call(l,t,n[s],o);return}}o[a.name]=a.init(t,o)}}),o}}function lR(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=lR(i,t,{})),n[r]=i}return n}class Qt{constructor(t){this.spec=t,this.props={},t.props&&lR(t.props,this,this.props),this.key=t.key?t.key.key:uR("plugin")}getState(t){return t[this.key]}}const jg=Object.create(null);function uR(e){return e in jg?e+"$"+ ++jg[e]:(jg[e]=0,e+"$")}class Xn{constructor(t="key"){this.key=uR(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const Wt=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},oc=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let Vb=null;const Ei=function(e,t,n){let r=Vb||(Vb=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},SX=function(){Vb=null},Ha=function(e,t,n,r){return n&&(FS(e,t,n,r,-1)||FS(e,t,n,r,1))},wX=/^(img|br|input|textarea|hr)$/i;function FS(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:sr(e))){let o=e.parentNode;if(!o||o.nodeType!=1||Uc(e)||wX.test(e.nodeName)||e.contentEditable=="false")return!1;t=Wt(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?sr(e):0}else return!1}}function sr(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function _X(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=sr(e)}else if(e.parentNode&&!Uc(e))t=Wt(e),e=e.parentNode;else return null}}function CX(e,t){for(;;){if(e.nodeType==3&&t2),nr=dl||(oi?/Mac/.test(oi.platform):!1),IX=oi?/Win/.test(oi.platform):!1,Nr=/Android \d/.test(Go),jc=!!HS&&"webkitFontSmoothing"in HS.documentElement.style,RX=jc?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function MX(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function mi(e,t){return typeof e=="number"?e:e[t]}function DX(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function US(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;a;a=oc(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,u=l?MX(o):DX(s),c=0,d=0;if(t.topu.bottom-mi(r,"bottom")&&(d=t.bottom-t.top>u.bottom-u.top?t.top+mi(i,"top")-u.top:t.bottom-u.bottom+mi(i,"bottom")),t.leftu.right-mi(r,"right")&&(c=t.right-u.right+mi(i,"right")),c||d)if(l)o.defaultView.scrollBy(c,d);else{let f=s.scrollLeft,p=s.scrollTop;d&&(s.scrollTop+=d),c&&(s.scrollLeft+=c);let h=s.scrollLeft-f,m=s.scrollTop-p;t={left:t.left-h,top:t.top-m,right:t.right-h,bottom:t.bottom-m}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function LX(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let o=(t.left+t.right)/2,a=n+1;a=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:fR(e.dom)}}function fR(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=oc(r));return t}function PX({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;pR(n,r==0?0:r-t)}function pR(e,t){for(let n=0;n=s){a=Math.max(h.bottom,a),s=Math.min(h.top,s);let m=h.left>t.left?h.left-t.left:h.right=(h.left+h.right)/2?1:0));continue}}else h.top>t.top&&!l&&h.left<=t.left&&h.right>=t.left&&(l=c,u={left:Math.max(h.left,Math.min(h.right,t.left)),top:h.top});!n&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(o=d+1)}}return!n&&l&&(n=l,i=u,r=0),n&&n.nodeType==3?zX(n,i):!n||r&&n.nodeType==1?{node:e,offset:o}:hR(n,i)}function zX(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function tv(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function FX(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function UX(e,t,n,r){let i=-1;for(let o=t,a=!1;o!=e.dom;){let s=e.docView.nearestDesc(o,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right-1?i:e.docView.posFromDOM(t,n,-1)}function mR(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}let u;jc&&i&&r.nodeType==1&&(u=r.childNodes[i-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=UX(e,r,i,t))}s==null&&(s=HX(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function jS(e){return e.top=0&&i==r.nodeValue.length?(l--,c=1):n<0?l--:u++,Gl(Zi(Ei(r,l,u),c),c<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==sr(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return $g(l.getBoundingClientRect(),!1)}if(o==null&&i=0)}if(o==null&&i&&(n<0||i==sr(r))){let l=r.childNodes[i-1],u=l.nodeType==3?Ei(l,sr(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Gl(Zi(u,1),!1)}if(o==null&&i=0)}function Gl(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function $g(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function bR(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function WX(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return bR(e,t,()=>{let{node:o}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=e.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=gR(e,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Ei(s,0,s.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?a.top-c.top>(c.bottom-a.top)*2:c.bottom-a.bottom>(a.bottom-c.top)*2))return!1}}return!0})}const VX=/[\u0590-\u08ac]/;function qX(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return s?!VX.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:bR(e,t,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:d}=e.domSelectionRange(),f=s.caretBidiLevel;s.modify("move",n,"character");let p=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:h,focusOffset:m}=e.domSelectionRange(),y=h&&!p.contains(h.nodeType==1?h:h.parentNode)||l==h&&u==m;try{s.collapse(c,d),l&&(l!=c||u!=d)&&s.extend&&s.extend(l,u)}catch{}return f!=null&&(s.caretBidiLevel=f),y}):r.pos==r.start()||r.pos==r.end()}let $S=null,WS=null,VS=!1;function YX(e,t,n){return $S==t&&WS==n?VS:($S=t,WS=n,VS=n=="up"||n=="down"?WX(e,t,n):qX(e,t,n))}const fr=0,qS=1,fa=2,ai=3;class $c{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=fr,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;nWt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(t.nodeType==1?t:t.parentNode):a==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||a instanceof ER){i=t-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof yR&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Wt(o.dom)+1:0}}else{let o,a=!0;for(;o=r=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,c);t=a;for(let d=s;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){i=Wt(f.dom)+1;break}t-=f.size}i==-1&&(i=0)}if(i>-1&&(u>n||s==this.children.length-1)){n=u;for(let c=s+1;cp&&an){let p=s;s=l,l=p}let f=document.createRange();f.setEnd(l.node,l.offset),f.setStart(s.node,s.offset),u.removeAllRanges(),u.addRange(f)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i=r:tr){let s=r+o.border,l=a-o.border;if(t>=s&&n<=l){this.dirty=t==r||n==a?fa:qS,t==s&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=ai:o.markDirty(t-s,n-s);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?fa:ai}r=a}this.dirty=fa}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?fa:qS;n.dirty{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=n,this.widget=n,o=this}matchesWidget(t){return this.dirty==fr&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class KX extends $c{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Ua extends $c{constructor(t,n,r,i,o){super(t,[],r,i),this.mark=n,this.spec=o}static create(t,n,r,i){let o=i.nodeViews[n.type.name],a=o&&o(n,i,r);return(!a||!a.dom)&&(a=Xa.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Ua(t,n,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&ai||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=ai&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=fr){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(o=Qb(o,0,t,r));for(let s=0;s{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},r,i),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=Xa.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let f=c;return c=kR(c,r,n),u?l=new GX(t,n,r,i,c,d||null,f,u,o,a+1):n.isText?new cm(t,n,r,i,c,f,o):new No(t,n,r,i,c,d||null,f,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>ee.empty)}return t}matchesNode(t,n,r){return this.dirty==fr&&t.eq(this.node)&&up(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,o=t.composing?this.localCompositionInfo(t,n):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new XX(this,a&&a.node,t);eJ(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?l.syncToMarks(u.spec.marks,r,t):u.type.side>=0&&!d&&l.syncToMarks(c==this.node.childCount?qe.none:this.node.child(c).marks,r,t),l.placeWidget(u,t,i)},(u,c,d,f)=>{l.syncToMarks(u.marks,r,t);let p;l.findNodeMatch(u,c,d,f)||s&&t.state.selection.from>i&&t.state.selection.to-1&&l.updateNodeAt(u,c,d,p,t)||l.updateNextNode(u,c,d,t,f,i)||l.addNode(u,c,d,t,i),i+=u.nodeSize}),l.syncToMarks([],r,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==fa)&&(a&&this.protectLocalComposition(t,a),vR(this.contentDOM,this.children,t),dl&&tJ(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof ve)||rn+this.node.content.size)return null;let o=t.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,s=nJ(this.node.content,a,r-n,i-n);return s<0?null:{node:o,pos:s,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new KX(this,o,n,i);t.input.compositionNodes.push(a),this.children=Qb(this.children,r,r+i.length,t,a)}update(t,n,r,i){return this.dirty==ai||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=fr}updateOuterDeco(t){if(up(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=TR(this.dom,this.nodeDOM,Gb(this.outerDeco,this.node,n),Gb(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function YS(e,t,n,r,i){kR(r,t,e);let o=new No(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class cm extends No{constructor(t,n,r,i,o,a,s){super(t,n,r,i,o,null,a,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==ai||this.dirty!=fr&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=fr||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=fr,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),o=document.createTextNode(i.text);return new cm(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=ai)}get domAtom(){return!1}isText(t){return this.node.text==t}}class ER extends $c{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==fr&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class GX extends No{constructor(t,n,r,i,o,a,s,l,u,c){super(t,n,r,i,o,a,s,u,c),this.spec=l}update(t,n,r,i){if(this.dirty==ai)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let o=this.spec.update(t,n,r);return o&&this.updateInner(t,n,r,i),o}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function vR(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o>1,a=Math.min(o,t.length);for(;i-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=Ua.create(this.top,t[o],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(t,n,r,i){let o=-1,a;if(i>=this.preMatch.index&&(a=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&a.matchesNode(t,n,r))o=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(r){let u=n.children[r-1];if(u instanceof Ua)n=u,r=u.children.length;else{s=u,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function ZX(e,t){return e.type.side-t.type.side}function eJ(e,t,n,r){let i=t.locals(e),o=0;if(i.length==0){for(let u=0;uo;)s.push(i[a++]);let h=o+f.nodeSize;if(f.isText){let y=h;a!y.inline):s.slice();r(f,m,t.forChild(o,f),p),o=h}}function tJ(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function nJ(e,t,n,r){for(let i=0,o=0;i=n){if(o>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;let u=s=0&&u+t.length+s>=n)return s+u;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function Qb(e,t,n,r,i){let o=[];for(let a=0,s=0;a=n||c<=t?o.push(l):(un&&o.push(l.slice(n-u,l.size,r)))}return o}function nv(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),o=i&&i.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),l,u;if(um(n)){for(l=a;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&me.isSelectable(d)&&i.parent&&!(d.isInline&&NX(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;u=new me(a==f?s:r.resolve(f))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=a,f=a;for(let p=0;p{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!xR(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function iJ(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let r=e.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setStart(r.parentNode,Wt(r)+1):n.setStart(r,0),n.collapse(!0),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&In&&Co<=11&&(r.disabled=!0,r.disabled=!1)}function SR(e,t){if(t instanceof me){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(JS(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else JS(e)}function JS(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function rv(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||ve.between(t,n,r)}function ZS(e){return e.editable&&!e.hasFocus()?!1:wR(e)}function wR(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function oJ(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Ha(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Xb(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&ke.findFrom(o,t)}function no(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function ew(e,t,n){let r=e.state.selection;if(r instanceof ve)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=e.state.doc.resolve(i.pos+o.nodeSize*(t<0?-1:1));return no(e,new ve(r.$anchor,a))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=Xb(e.state,t);return i&&i instanceof me?no(e,i):!1}else if(!(nr&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,a;if(!o||o.isText)return!1;let s=t<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(a=e.docView.descAt(s))&&!a.contentDOM?me.isSelectable(o)?no(e,new me(t<0?e.state.doc.resolve(i.pos-o.nodeSize):i)):jc?no(e,new ve(e.state.doc.resolve(t<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof me&&r.node.isInline)return no(e,new ve(t>0?r.$to:r.$from));{let i=Xb(e.state,t);return i?no(e,i):!1}}}function cp(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function wu(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function ds(e,t){return t<0?aJ(e):sJ(e)}function aJ(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,a=!1;for(zr&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(wu(s,-1))i=n,o=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(_R(n))break;{let s=n.previousSibling;for(;s&&wu(s,-1);)i=n.parentNode,o=Wt(s),s=s.previousSibling;if(s)n=s,r=cp(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?Jb(e,n,r):i&&Jb(e,i,o)}function sJ(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=cp(n),o,a;for(;;)if(r{e.state==i&&_i(e)},50)}function tw(e,t){let n=e.state.doc.resolve(t);if(!(on||IX)&&n.parent.inlineContent){let i=e.coordsAtPos(t);if(t>n.start()){let o=e.coordsAtPos(t-1),a=(o.top+o.bottom)/2;if(a>i.top&&a1)return o.lefti.top&&a1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function nw(e,t,n){let r=e.state.selection;if(r instanceof ve&&!r.empty||n.indexOf("s")>-1||nr&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let a=Xb(e.state,t);if(a&&a instanceof me)return no(e,a)}if(!i.parent.inlineContent){let a=t<0?i:o,s=r instanceof Dr?ke.near(a,t):ke.findFrom(a,t);return s?no(e,s):!1}return!1}function rw(e,t){if(!(e.state.selection instanceof ve))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=e.state.tr;return t<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),e.dispatch(a),!0}return!1}function iw(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function cJ(e){if(!hn||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;iw(e,r,"true"),setTimeout(()=>iw(e,r,"false"),20)}return!1}function dJ(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function fJ(e,t){let n=t.keyCode,r=dJ(t);if(n==8||nr&&n==72&&r=="c")return rw(e,-1)||ds(e,-1);if(n==46&&!t.shiftKey||nr&&n==68&&r=="c")return rw(e,1)||ds(e,1);if(n==13||n==27)return!0;if(n==37||nr&&n==66&&r=="c"){let i=n==37?tw(e,e.state.selection.from)=="ltr"?-1:1:-1;return ew(e,i,r)||ds(e,i)}else if(n==39||nr&&n==70&&r=="c"){let i=n==39?tw(e,e.state.selection.from)=="ltr"?1:-1:1;return ew(e,i,r)||ds(e,i)}else{if(n==38||nr&&n==80&&r=="c")return nw(e,-1,r)||ds(e,-1);if(n==40||nr&&n==78&&r=="c")return cJ(e)||nw(e,1,r)||ds(e,1);if(r==(nr?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function CR(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:r,openStart:i,openEnd:o}=t;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let a=e.someProp("clipboardSerializer")||Xa.fromSchema(e.state.schema),s=MR(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let u=l.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=RR[u.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let h=s.createElement(c[p]);for(;l.firstChild;)h.appendChild(l.firstChild);l.appendChild(h),d++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,` + +`);return{dom:l,text:f,slice:t}}function NR(e,t,n,r,i){let o=i.parent.type.spec.code,a,s;if(!n&&!t)return null;let l=t&&(r||o||!n);if(l){if(e.someProp("transformPastedText",f=>{t=f(t,o||r,e)}),o)return t?new ae(ee.from(e.state.schema.text(t.replace(/\r\n?/g,` +`))),0,0):ae.empty;let d=e.someProp("clipboardTextParser",f=>f(t,i,r,e));if(d)s=d;else{let f=i.marks(),{schema:p}=e.state,h=Xa.fromSchema(p);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let y=a.appendChild(document.createElement("p"));m&&y.appendChild(h.serializeNode(p.text(m,f)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),a=gJ(n),jc&&bJ(a);let u=a&&a.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let f=a.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;a=f}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||_o.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||c),context:i,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!pJ.test(f.parentNode.nodeName)?{ignore:!0}:null}})),c)s=yJ(ow(s,+c[1],+c[2]),c[4]);else if(s=ae.maxOpen(hJ(s.content,i),!0),s.openStart||s.openEnd){let d=0,f=0;for(let p=s.content.firstChild;d{s=d(s,e)}),s}const pJ=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function hJ(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),o,a=[];if(e.forEach(s=>{if(!a)return;let l=i.findWrapping(s.type),u;if(!l)return a=null;if(u=a.length&&o.length&&OR(l,o,s,a[a.length-1],0))a[a.length-1]=u;else{a.length&&(a[a.length-1]=IR(a[a.length-1],o.length));let c=AR(s,l);a.push(c),i=i.matchType(c.type),o=l}}),a)return ee.from(a)}return e}function AR(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,ee.from(e));return e}function OR(e,t,n,r,i){if(i1&&(o=0),i=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(ee.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function ow(e,t,n){return tn})),Vg.createHTML(e)):e}function gJ(e){let t=/^(\s*]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=MR().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&RR[r[1].toLowerCase()])&&(e=i.map(o=>"<"+o+">").join("")+e+i.map(o=>"").reverse().join("")),n.innerHTML=mJ(e),i)for(let o=0;o=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=ee.from(l.create(r[s+1],i)),o++,a++}return new ae(i,o,a)}const mn={},gn={},EJ={touchstart:!0,touchmove:!0};class vJ{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function TJ(e){for(let t in mn){let n=mn[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{xJ(e,r)&&!iv(e,r)&&(e.editable||!(r.type in gn))&&n(e,r)},EJ[t]?{passive:!0}:void 0)}hn&&e.dom.addEventListener("input",()=>null),ey(e)}function bo(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function kJ(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function ey(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>iv(e,r))})}function iv(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function xJ(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function SJ(e,t){!iv(e,t)&&mn[t.type]&&(e.editable||!(t.type in gn))&&mn[t.type](e,t)}gn.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!LR(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Nr&&on&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),dl&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,oa(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||fJ(e,n)?n.preventDefault():bo(e,"key")};gn.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};gn.keypress=(e,t)=>{let n=t;if(LR(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||nr&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof ve)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",o=>o(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function dm(e){return{left:e.clientX,top:e.clientY}}function wJ(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function ov(e,t,n,r,i){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,s=>a>o.depth?s(e,n,o.nodeAfter,o.before(a),i,!0):s(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Ys(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function _J(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&me.isSelectable(r)?(Ys(e,new me(n)),!0):!1}function CJ(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof me&&(r=n.node);let o=e.state.doc.resolve(t);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(me.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(Ys(e,me.create(e.state.doc,i)),!0):!1}function NJ(e,t,n,r,i){return ov(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(i?CJ(e,n):_J(e,n))}function AJ(e,t,n,r){return ov(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function OJ(e,t,n,r){return ov(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||IJ(e,n,r)}function IJ(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Ys(e,ve.create(r,0,r.content.size)),!0):!1;let i=r.resolve(t);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)Ys(e,ve.create(r,s+1,s+1+a.content.size));else if(me.isSelectable(a))Ys(e,me.create(r,s));else continue;return!0}}function av(e){return dp(e)}const DR=nr?"metaKey":"ctrlKey";mn.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=av(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&wJ(n,e.input.lastClick)&&!n[DR]&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=e.posAtCoords(dm(n));a&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new RJ(e,a,n,!!r)):(o=="doubleClick"?AJ:OJ)(e,a.pos,a.inside,n)?n.preventDefault():bo(e,"pointer"))};class RJ{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[DR],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),a=n.inside;else{let c=t.state.doc.resolve(n.pos);o=c.parent,a=c.depth?c.before():0}const s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof me&&u.from<=a&&u.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&zr&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),bo(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>_i(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(dm(t))),this.updateAllowDefault(t),this.allowDefault||!n?bo(this.view,"pointer"):NJ(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||hn&&this.mightDrag&&!this.mightDrag.node.isAtom||on&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Ys(this.view,ke.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):bo(this.view,"pointer")}move(t){this.updateAllowDefault(t),bo(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}mn.touchstart=e=>{e.input.lastTouch=Date.now(),av(e),bo(e,"pointer")};mn.touchmove=e=>{e.input.lastTouch=Date.now(),bo(e,"pointer")};mn.contextmenu=e=>av(e);function LR(e,t){return e.composing?!0:hn&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const MJ=Nr?5e3:-1;gn.compositionstart=gn.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof ve&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),dp(e,!0),e.markCursor=null;else if(dp(e,!t.selection.empty),zr&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){let s=e.domSelection();s&&s.collapse(a,a.nodeValue.length);break}else i=a,o=-1}}e.input.composing=!0}PR(e,MJ)};gn.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,PR(e,20))};function PR(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>dp(e),t))}function BR(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=LJ());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function DJ(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=_X(t.focusNode,t.focusOffset),r=CX(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function LJ(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function dp(e,t=!1){if(!(Nr&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),BR(e),t||e.docView&&e.docView.dirty){let n=nv(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!e.state.selection.empty?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function PJ(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const ac=In&&Co<15||dl&&RX<604;mn.copy=gn.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let o=ac?null:n.clipboardData,a=r.content(),{dom:s,text:l}=CR(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):PJ(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function BJ(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function zJ(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?sc(e,r.value,null,i,t):sc(e,r.textContent,r.innerHTML,i,t)},50)}function sc(e,t,n,r,i){let o=NR(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,o||ae.empty)))return!0;if(!o)return!1;let a=BJ(o),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function zR(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}gn.paste=(e,t)=>{let n=t;if(e.composing&&!Nr)return;let r=ac?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&sc(e,zR(r),r.getData("text/html"),i,n)?n.preventDefault():zJ(e,n)};class FR{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const HR=nr?"altKey":"ctrlKey";mn.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(dm(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof me?i.to-1:i.to))){if(r&&r.mightDrag)a=me.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(a=me.create(e.state.doc,d.posBefore))}}let s=(a||e.state.selection).content(),{dom:l,text:u,slice:c}=CR(e,s);(!n.dataTransfer.files.length||!on||dR>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(ac?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",ac||n.dataTransfer.setData("text/plain",u),e.dragging=new FR(c,!n[HR],a)};mn.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};gn.dragover=gn.dragenter=(e,t)=>t.preventDefault();gn.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(dm(n));if(!i)return;let o=e.state.doc.resolve(i.pos),a=r&&r.slice;a?e.someProp("transformPasted",h=>{a=h(a,e)}):a=NR(e,zR(n.dataTransfer),ac?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&!n[HR]);if(e.someProp("handleDrop",h=>h(e,n,a||ae.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?nR(e.state.doc,o.pos,a):o.pos;l==null&&(l=o.pos);let u=e.state.tr;if(s){let{node:h}=r;h?h.replace(u):u.deleteSelection()}let c=u.mapping.map(l),d=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,f=u.doc;if(d?u.replaceRangeWith(c,c,a.content.firstChild):u.replaceRange(c,c,a),u.doc.eq(f))return;let p=u.doc.resolve(c);if(d&&me.isSelectable(a.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new me(p));else{let h=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((m,y,b,E)=>h=E),u.setSelection(rv(e,p,u.doc.resolve(h)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))};mn.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&_i(e)},20))};mn.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};mn.beforeinput=(e,t)=>{if(on&&Nr&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",o=>o(e,oa(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in gn)mn[e]=gn[e];function lc(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class fp{constructor(t,n){this.toDOM=t,this.spec=n||wa,this.side=this.spec.side||0}map(t,n,r,i){let{pos:o,deleted:a}=t.mapResult(n.from+i,this.side<0?-1:1);return a?null:new cr(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof fp&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&lc(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Ao{constructor(t,n){this.attrs=t,this.spec=n||wa}map(t,n,r,i){let o=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new cr(o,a,this)}valid(t,n){return n.from=t&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;at){let s=this.children[a]+1;this.children[a+2].findInner(t-s,n-s,r,i+s,o)}}map(t,n,r){return this==en||t.maps.length==0?this:this.mapInner(t,n,0,0,r||wa)}mapInner(t,n,r,i,o){let a;for(let s=0;s{let u=l+r,c;if(c=jR(n,s,u)){for(i||(i=this.children.slice());os&&d.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let o=t+1,a=o+n.content.size;for(let s=0;so&&l.type instanceof Ao){let u=Math.max(o,l.from)-o,c=Math.min(a,l.to)-o;ui.map(t,n,wa));return lo.from(r)}forChild(t,n){if(n.isLeaf)return _t.empty;let r=[];for(let i=0;in instanceof _t)?t:t.reduce((n,r)=>n.concat(r instanceof _t?r:r.members),[]))}}forEachSet(t){for(let n=0;n{let y=m-h-(p-f);for(let b=0;bE+c-d)continue;let v=s[b]+c-d;p>=v?s[b+1]=f<=v?-2:-1:f>=c&&y&&(s[b]+=y,s[b+1]+=y)}d+=y}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u=r.content.size){l=!0;continue}let f=n.map(e[u+1]+o,-1),p=f-i,{index:h,offset:m}=r.content.findIndex(d),y=r.maybeChild(h);if(y&&m==d&&m+y.nodeSize==p){let b=s[u+2].mapInner(n,y,c+1,e[u]+o+1,a);b!=en?(s[u]=d,s[u+1]=p,s[u+2]=b):(s[u+1]=-2,l=!0)}else l=!0}if(l){let u=HJ(s,e,t,n,i,o,a),c=pp(u,r,0,a);t=c.local;for(let d=0;dn&&a.to{let u=jR(e,s,l+n);if(u){o=!0;let c=pp(u,s,n+l+1,r);c!=en&&i.push(l,l+s.nodeSize,c)}});let a=UR(o?$R(e):e,-n).sort(_a);for(let s=0;s0;)t++;e.splice(t,0,n)}function qg(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=en&&t.push(r)}),e.cursorWrapper&&t.push(_t.create(e.state.doc,[e.cursorWrapper.deco])),lo.from(t)}const UJ={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},jJ=In&&Co<=11;class $J{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class WJ{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new $J,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),jJ&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,UJ)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(ZS(this.view)){if(this.suppressingSelectionUpdates)return _i(this.view);if(In&&Co<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Ha(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let o=t.focusNode;o;o=oc(o))n.add(o);for(let o=t.anchorNode;o;o=oc(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&ZS(t)&&!this.ignoreSelectionChange(r),o=-1,a=-1,s=!1,l=[];if(t.editable)for(let c=0;cd.nodeName=="BR");if(c.length==2){let[d,f]=c;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of c){let p=f.parentNode;p&&p.nodeName=="LI"&&(!d||YJ(t,d)!=p)&&f.remove()}}}let u=null;o<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(o>-1&&(t.docView.markDirty(o,a),VJ(t)),this.handleDOMChange(o,a,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||_i(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;ci;y--){let b=r.childNodes[y-1],E=b.pmViewDesc;if(b.nodeName=="BR"&&!E){o=y;break}if(!E||E.size)break}let d=e.state.doc,f=e.someProp("domParser")||_o.fromSchema(e.state.schema),p=d.resolve(a),h=null,m=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:o,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:GJ,context:p});if(u&&u[0].pos!=null){let y=u[0].pos,b=u[1]&&u[1].pos;b==null&&(b=y),h={anchor:y+a,head:b+a}}return{doc:m,sel:h,from:a,to:s}}function GJ(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(hn&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||hn&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const QJ=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function XJ(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let z=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,A=nv(e,z);if(A&&!e.state.selection.eq(A)){if(on&&Nr&&e.input.lastKeyCode===13&&Date.now()-100L(e,oa(13,"Enter"))))return;let j=e.state.tr.setSelection(A);z=="pointer"?j.setMeta("pointer",!0):z=="key"&&j.scrollIntoView(),o&&j.setMeta("composition",o),e.dispatch(j)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l=e.state.selection,u=KJ(e,t,n),c=e.state.doc,d=c.slice(u.from,u.to),f,p;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Nr)&&i.some(z=>z.nodeType==1&&!QJ.test(z.nodeName))&&(!h||h.endA>=h.endB)&&e.someProp("handleKeyDown",z=>z(e,oa(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!h)if(r&&l instanceof ve&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))h={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let z=dw(e,e.state.doc,u.sel);if(z&&!z.eq(e.state.selection)){let A=e.state.tr.setSelection(z);o&&A.setMeta("composition",o),e.dispatch(A)}}return}e.state.selection.frome.state.selection.from&&h.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?h.start=e.state.selection.from:h.endA=e.state.selection.to-2&&e.state.selection.to<=u.to&&(h.endB+=e.state.selection.to-h.endA,h.endA=e.state.selection.to)),In&&Co<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>u.from&&u.doc.textBetween(h.start-u.from-1,h.start-u.from+1)=="  "&&(h.start--,h.endA--,h.endB--);let m=u.doc.resolveNoCache(h.start-u.from),y=u.doc.resolveNoCache(h.endB-u.from),b=c.resolve(h.start),E=m.sameParent(y)&&m.parent.inlineContent&&b.end()>=h.endA,v;if((dl&&e.input.lastIOSEnter>Date.now()-225&&(!E||i.some(z=>z.nodeName=="DIV"||z.nodeName=="P"))||!E&&m.posz(e,oa(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>h.start&&ZJ(c,h.start,h.endA,m,y)&&e.someProp("handleKeyDown",z=>z(e,oa(8,"Backspace")))){Nr&&on&&e.domObserver.suppressSelectionUpdates();return}on&&Nr&&h.endB==h.start&&(e.input.lastAndroidDelete=Date.now()),Nr&&!E&&m.start()!=y.start()&&y.parentOffset==0&&m.depth==y.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==h.endA&&(h.endB-=2,y=u.doc.resolveNoCache(h.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(z){return z(e,oa(13,"Enter"))})},20));let k=h.start,_=h.endA,x,I,R;if(E){if(m.pos==y.pos)In&&Co<=11&&m.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>_i(e),20)),x=e.state.tr.delete(k,_),I=c.resolve(h.start).marksAcross(c.resolve(h.endA));else if(h.endA==h.endB&&(R=JJ(m.parent.content.cut(m.parentOffset,y.parentOffset),b.parent.content.cut(b.parentOffset,h.endA-b.start()))))x=e.state.tr,R.type=="add"?x.addMark(k,_,R.mark):x.removeMark(k,_,R.mark);else if(m.parent.child(m.index()).isText&&m.index()==y.index()-(y.textOffset?0:1)){let z=m.parent.textBetween(m.parentOffset,y.parentOffset);if(e.someProp("handleTextInput",A=>A(e,k,_,z)))return;x=e.state.tr.insertText(z,k,_)}}if(x||(x=e.state.tr.replace(k,_,u.doc.slice(h.start-u.from,h.endB-u.from))),u.sel){let z=dw(e,x.doc,u.sel);z&&!(on&&Nr&&e.composing&&z.empty&&(h.start!=h.endB||e.input.lastAndroidDeletet.content.size?null:rv(e,t.resolve(n.anchor),t.resolve(n.head))}function JJ(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,o=r,a,s,l;for(let c=0;cc.mark(s.addToSet(c.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=c=>c.mark(s.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||Yg(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function eZ(e,t,n,r,i){let o=e.findDiffStart(t,n);if(o==null)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a=a?o-r:0;o-=l,o&&o=s?o-r:0;o-=l,o&&o=56320&&t<=57343&&n>=55296&&n<=56319}class tZ{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new vJ,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(bw),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=mw(this),hw(this),this.nodeViews=gw(this),this.docView=YS(this.state.doc,pw(this),qg(this),this.dom,this),this.domObserver=new WJ(this,(r,i,o,a)=>XJ(this,r,i,o,a)),this.domObserver.start(),TJ(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ey(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(bw),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let i=this.state,o=!1,a=!1;t.storedMarks&&this.composing&&(BR(this),a=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=gw(this);rZ(p,this.nodeViews)&&(this.nodeViews=p,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&ey(this),this.editable=mw(this),hw(this);let l=qg(this),u=pw(this),c=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(t.doc,u,l);(d||!t.selection.eq(i.selection))&&(a=!0);let f=c=="preserve"&&a&&this.dom.style.overflowAnchor==null&&LX(this);if(a){this.domObserver.stop();let p=d&&(In||on)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&nZ(i.selection,t.selection);if(d){let h=on?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=DJ(this)),(o||!this.docView.update(t.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=YS(t.doc,u,l,this.dom,this)),h&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&oJ(this))?_i(this,p):(SR(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():f&&PX(f)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof me){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&US(this,n.getBoundingClientRect(),t)}else US(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new FR(t.slice,t.move,i<0?void 0:me.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return jX(this,t)}coordsAtPos(t,n=1){return gR(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return YX(this,n||this.state,t)}pasteHTML(t,n){return sc(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return sc(this,t,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(kJ(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],qg(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,SX())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return SJ(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){let t=this.domSelection();return t?hn&&this.root.nodeType===11&&AX(this.dom.ownerDocument)==this.dom&&qJ(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function pw(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[cr.node(0,e.state.doc.content.size,t)]}function hw(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:cr.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function mw(e){return!e.someProp("editable",t=>t(e.state)===!1)}function nZ(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function gw(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function rZ(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function bw(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Po={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},hp={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},iZ=typeof navigator<"u"&&/Mac/.test(navigator.platform),oZ=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Vt=0;Vt<10;Vt++)Po[48+Vt]=Po[96+Vt]=String(Vt);for(var Vt=1;Vt<=24;Vt++)Po[Vt+111]="F"+Vt;for(var Vt=65;Vt<=90;Vt++)Po[Vt]=String.fromCharCode(Vt+32),hp[Vt]=String.fromCharCode(Vt);for(var Kg in Po)hp.hasOwnProperty(Kg)||(hp[Kg]=Po[Kg]);function aZ(e){var t=iZ&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||oZ&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?hp:Po)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const sZ=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function lZ(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s127)&&(o=Po[r.keyCode])&&o!=i){let s=t[Gg(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const dZ=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function VR(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const fZ=(e,t,n)=>{let r=VR(e,n);if(!r)return!1;let i=uv(r);if(!i){let a=r.blockRange(),s=a&&Al(a);return s==null?!1:(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)}let o=i.nodeBefore;if(GR(e,i,t,-1))return!0;if(r.parent.content.size==0&&(fl(o,"end")||me.isSelectable(o)))for(let a=r.depth;;a--){let s=sm(e.doc,r.before(a),r.after(a),ae.empty);if(s&&s.slice.size1)break}return o.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},pZ=(e,t,n)=>{let r=VR(e,n);if(!r)return!1;let i=uv(r);return i?qR(e,i,t):!1},hZ=(e,t,n)=>{let r=YR(e,n);if(!r)return!1;let i=cv(r);return i?qR(e,i,t):!1};function qR(e,t,n){let r=t.nodeBefore,i=r,o=t.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let c=i.lastChild;if(!c)return!1;i=c}let a=t.nodeAfter,s=a,l=t.pos+1;for(;!s.isTextblock;l++){if(s.type.spec.isolating)return!1;let c=s.firstChild;if(!c)return!1;s=c}let u=sm(e.doc,o,l,ae.empty);if(!u||u.from!=o||u instanceof Mt&&u.slice.size>=l-o)return!1;if(n){let c=e.tr.step(u);c.setSelection(ve.create(c.doc,o)),n(c.scrollIntoView())}return!0}function fl(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const mZ=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=uv(r)}let a=o&&o.nodeBefore;return!a||!me.isSelectable(a)?!1:(t&&t(e.tr.setSelection(me.create(e.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function uv(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function YR(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let r=YR(e,n);if(!r)return!1;let i=cv(r);if(!i)return!1;let o=i.nodeAfter;if(GR(e,i,t,1))return!0;if(r.parent.content.size==0&&(fl(o,"start")||me.isSelectable(o))){let a=sm(e.doc,r.before(),r.after(),ae.empty);if(a&&a.slice.size{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let n=e.selection,r=n instanceof me,i;if(r){if(n.node.isTextblock||!Ko(e.doc,n.from))return!1;i=n.from}else if(i=am(e.doc,n.from,-1),i==null)return!1;if(t){let o=e.tr.join(i);r&&o.setSelection(me.create(o.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},EZ=(e,t)=>{let n=e.selection,r;if(n instanceof me){if(n.node.isTextblock||!Ko(e.doc,n.to))return!1;r=n.to}else if(r=am(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},vZ=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),o=i&&Al(i);return o==null?!1:(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},TZ=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` +`).scrollIntoView()),!0)};function KR(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),a=KR(i.contentMatchAt(o));if(!a||!i.canReplaceWith(o,o,a))return!1;if(t){let s=n.after(),l=e.tr.replaceWith(s,s,a.createAndFill());l.setSelection(ke.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},xZ=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof Dr||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=KR(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let a=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Vs(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&Al(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)},wZ=(e,t)=>{let{$from:n,to:r}=e.selection,i,o=n.sharedDepth(r);return o==0?!1:(i=n.before(o),t&&t(e.tr.setSelection(me.create(e.doc,i))),!0)};function _Z(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,o=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(i.isTextblock||Ko(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function GR(e,t,n,r){let i=t.nodeBefore,o=t.nodeAfter,a,s,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&_Z(e,t,n))return!0;let u=!l&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(a=(s=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&s.matchType(a[0]||o.type).validEnd){if(n){let p=t.pos+o.nodeSize,h=ee.empty;for(let b=a.length-1;b>=0;b--)h=ee.from(a[b].create(null,h));h=ee.from(i.copy(h));let m=e.tr.step(new Pt(t.pos-1,p,t.pos,p,new ae(h,1,0),a.length,!0)),y=m.doc.resolve(p+2*a.length);y.nodeAfter&&y.nodeAfter.type==i.type&&Ko(m.doc,y.pos)&&m.join(y.pos),n(m.scrollIntoView())}return!0}let c=o.type.spec.isolating||r>0&&l?null:ke.findFrom(t,1),d=c&&c.$from.blockRange(c.$to),f=d&&Al(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(u&&fl(o,"start",!0)&&fl(i,"end")){let p=i,h=[];for(;h.push(p),!p.isTextblock;)p=p.lastChild;let m=o,y=1;for(;!m.isTextblock;m=m.firstChild)y++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(n){let b=ee.empty;for(let v=h.length-1;v>=0;v--)b=ee.from(h[v].copy(b));let E=e.tr.step(new Pt(t.pos-h.length,t.pos+o.nodeSize,t.pos+y,t.pos+o.nodeSize-y,new ae(b,h.length,0),0,!0));n(E.scrollIntoView())}return!0}}return!1}function QR(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(t.tr.setSelection(ve.create(t.doc,e<0?i.start(o):i.end(o)))),!0):!1}}const CZ=QR(-1),NZ=QR(1);function AZ(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=a&&ZE(a,e,t);return s?(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0):!1}}function yw(e,t=null){return function(n,r){let i=!1;for(let o=0;o{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)i=!0;else{let c=n.doc.resolve(u),d=c.index();i=c.parent.canReplaceWith(d,d+1,e)}})}if(!i)return!1;if(r){let o=n.tr;for(let a=0;a=2&&i.node(a.depth-1).type.compatibleContent(e)&&a.startIndex==0){if(i.index(a.depth-1)==0)return!1;let c=n.doc.resolve(a.start-2);l=new op(c,c,a.depth),a.endIndex=0;c--)o=ee.from(n[c].type.create(n[c].attrs,o));e.step(new Pt(t.start-(r?2:0),t.end,t.start,t.end,new ae(o,0,0),n.length,!0));let a=0;for(let c=0;ca.childCount>0&&a.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?MZ(t,n,e,o):DZ(t,n,o):!0:!1}}function MZ(e,t,n,r){let i=e.tr,o=r.end,a=r.$to.end(r.depth);om;h--)p-=i.child(h).nodeSize,r.delete(p-1,p+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+(s?0:1),c+1,a.content.append(l?ee.empty:ee.from(i))))return!1;let d=o.pos,f=d+a.nodeSize;return r.step(new Pt(d-(s?1:0),f+(l?1:0),d+1,f-1,new ae((s?ee.empty:ee.from(i.copy(ee.empty))).append(l?ee.empty:ee.from(i.copy(ee.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function LZ(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,u=>u.childCount>0&&u.firstChild.type==e);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=ee.from(u?e.create():null),d=new ae(ee.from(e.create(null,ee.from(s.type.create(null,c)))),u?3:1,0),f=o.start,p=o.end;n(t.tr.step(new Pt(f-(u?3:1),p,f,p,d,1,!0)).scrollIntoView())}return!0}}function fm(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:i}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,o=n.storedMarks,n}}}class pm{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:i}=n,{tr:o}=r,a=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([s,l])=>[s,(...c)=>{const d=l(...c)(a);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(o),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:a}=i,s=[],l=!!t,u=t||o.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(u),s.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(r).map(([f,p])=>[f,(...m)=>{const y=this.buildProps(u,n),b=p(...m)(y);return s.push(b),d}])),run:c};return d}createCan(t){const{rawCommands:n,state:r}=this,i=!1,o=t||r.tr,a=this.buildProps(o,i);return{...Object.fromEntries(Object.entries(n).map(([l,u])=>[l,(...c)=>u(...c)({...a,dispatch:void 0})])),chain:()=>this.createChain(o,i)}}buildProps(t,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:a}=i,s={tr:t,editor:i,view:a,state:fm({state:o,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,u])=>[l,(...c)=>u(...c)(s)]))}};return s}}class PZ{constructor(){this.callbacks={}}on(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),this}emit(t,...n){const r=this.callbacks[t];return r&&r.forEach(i=>i.apply(this,n)),this}off(t,n){const r=this.callbacks[t];return r&&(n?this.callbacks[t]=r.filter(i=>i!==n):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}function ce(e,t,n){return e.config[t]===void 0&&e.parent?ce(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?ce(e.parent,t,n):null}):e.config[t]}function hm(e){const t=e.filter(i=>i.type==="extension"),n=e.filter(i=>i.type==="node"),r=e.filter(i=>i.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function XR(e){const t=[],{nodeExtensions:n,markExtensions:r}=hm(e),i=[...n,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage,extensions:i},l=ce(a,"addGlobalAttributes",s);if(!l)return;l().forEach(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([f,p])=>{t.push({type:d,name:f,attribute:{...o,...p}})})})})}),i.forEach(a=>{const s={name:a.name,options:a.options,storage:a.storage},l=ce(a,"addAttributes",s);if(!l)return;const u=l();Object.entries(u).forEach(([c,d])=>{const f={...o,...d};typeof(f==null?void 0:f.default)=="function"&&(f.default=f.default()),f!=null&&f.isRequired&&(f==null?void 0:f.default)===void 0&&delete f.default,t.push({type:a.name,name:c,attribute:f})})}),t}function Ft(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function Nt(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([i,o])=>{if(!r[i]){r[i]=o;return}if(i==="class"){const s=o?o.split(" "):[],l=r[i]?r[i].split(" "):[],u=s.filter(c=>!l.includes(c));r[i]=[...l,...u].join(" ")}else if(i==="style"){const s=o?o.split(";").map(c=>c.trim()).filter(Boolean):[],l=r[i]?r[i].split(";").map(c=>c.trim()).filter(Boolean):[],u=new Map;l.forEach(c=>{const[d,f]=c.split(":").map(p=>p.trim());u.set(d,f)}),s.forEach(c=>{const[d,f]=c.split(":").map(p=>p.trim());u.set(d,f)}),r[i]=Array.from(u.entries()).map(([c,d])=>`${c}: ${d}`).join("; ")}else r[i]=o}),r},{})}function ty(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>Nt(n,r),{})}function JR(e){return typeof e=="function"}function we(e,t=void 0,...n){return JR(e)?t?e.bind(t)(...n):e(...n):e}function BZ(e={}){return Object.keys(e).length===0&&e.constructor===Object}function zZ(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function Ew(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const i=t.reduce((o,a)=>{const s=a.attribute.parseHTML?a.attribute.parseHTML(n):zZ(n.getAttribute(a.name));return s==null?o:{...o,[a.name]:s}},{});return{...r,...i}}}}function vw(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&BZ(n)?!1:n!=null))}function FZ(e,t){var n;const r=XR(e),{nodeExtensions:i,markExtensions:o}=hm(e),a=(n=i.find(u=>ce(u,"topNode")))===null||n===void 0?void 0:n.name,s=Object.fromEntries(i.map(u=>{const c=r.filter(b=>b.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},f=e.reduce((b,E)=>{const v=ce(E,"extendNodeSchema",d);return{...b,...v?v(u):{}}},{}),p=vw({...f,content:we(ce(u,"content",d)),marks:we(ce(u,"marks",d)),group:we(ce(u,"group",d)),inline:we(ce(u,"inline",d)),atom:we(ce(u,"atom",d)),selectable:we(ce(u,"selectable",d)),draggable:we(ce(u,"draggable",d)),code:we(ce(u,"code",d)),whitespace:we(ce(u,"whitespace",d)),defining:we(ce(u,"defining",d)),isolating:we(ce(u,"isolating",d)),attrs:Object.fromEntries(c.map(b=>{var E;return[b.name,{default:(E=b==null?void 0:b.attribute)===null||E===void 0?void 0:E.default}]}))}),h=we(ce(u,"parseHTML",d));h&&(p.parseDOM=h.map(b=>Ew(b,c)));const m=ce(u,"renderHTML",d);m&&(p.toDOM=b=>m({node:b,HTMLAttributes:ty(b,c)}));const y=ce(u,"renderText",d);return y&&(p.toText=y),[u.name,p]})),l=Object.fromEntries(o.map(u=>{const c=r.filter(y=>y.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},f=e.reduce((y,b)=>{const E=ce(b,"extendMarkSchema",d);return{...y,...E?E(u):{}}},{}),p=vw({...f,inclusive:we(ce(u,"inclusive",d)),excludes:we(ce(u,"excludes",d)),group:we(ce(u,"group",d)),spanning:we(ce(u,"spanning",d)),code:we(ce(u,"code",d)),attrs:Object.fromEntries(c.map(y=>{var b;return[y.name,{default:(b=y==null?void 0:y.attribute)===null||b===void 0?void 0:b.default}]}))}),h=we(ce(u,"parseHTML",d));h&&(p.parseDOM=h.map(y=>Ew(y,c)));const m=ce(u,"renderHTML",d);return m&&(p.toDOM=y=>m({mark:y,HTMLAttributes:ty(y,c)})),[u.name,p]}));return new VI({topNode:a,nodes:s,marks:l})}function Qg(e,t){return t.nodes[e]||t.marks[e]||null}function Tw(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}const HZ=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(i,o,a,s)=>{var l,u;const c=((u=(l=i.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:i,pos:o,parent:a,index:s}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?c:c.slice(0,Math.max(0,r-o))}),n};function dv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class mm{constructor(t){this.find=t.find,this.handler=t.handler}}const UZ=(e,t)=>{if(dv(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Od(e){var t;const{editor:n,from:r,to:i,text:o,rules:a,plugin:s}=e,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(r);if(u.parent.type.spec.code||!((t=u.nodeBefore||u.nodeAfter)===null||t===void 0)&&t.marks.find(f=>f.type.spec.code))return!1;let c=!1;const d=HZ(u)+o;return a.forEach(f=>{if(c)return;const p=UZ(d,f.find);if(!p)return;const h=l.state.tr,m=fm({state:l.state,transaction:h}),y={from:r-(p[0].length-o.length),to:i},{commands:b,chain:E,can:v}=new pm({editor:n,state:m});f.handler({state:m,range:y,match:p,commands:b,chain:E,can:v})===null||!h.steps.length||(h.setMeta(s,{transform:h,from:r,to:i,text:o}),l.dispatch(h),c=!0)}),c}function jZ(e){const{editor:t,rules:n}=e,r=new Qt({state:{init(){return null},apply(i,o){const a=i.getMeta(r);if(a)return a;const s=i.getMeta("applyInputRules");return!!s&&setTimeout(()=>{const{from:u,text:c}=s,d=u+c.length;Od({editor:t,from:u,to:d,text:c,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:o}},props:{handleTextInput(i,o,a,s){return Od({editor:t,from:o,to:a,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:o}=i.state.selection;o&&Od({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,o){if(o.key!=="Enter")return!1;const{$cursor:a}=i.state.selection;return a?Od({editor:t,from:a.pos,to:a.pos,text:` +`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function $Z(e){return Object.prototype.toString.call(e).slice(8,-1)}function Id(e){return $Z(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function gm(e,t){const n={...e};return Id(e)&&Id(t)&&Object.keys(t).forEach(r=>{Id(t[r])&&Id(e[r])?n[r]=gm(e[r],t[r]):n[r]=t[r]}),n}class si{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=we(ce(this,"addOptions",{name:this.name}))),this.storage=we(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new si(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>gm(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new si(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=we(ce(n,"addOptions",{name:n.name})),n.storage=we(ce(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const a=i.marks();if(!!!a.find(u=>(u==null?void 0:u.type.name)===n.name))return!1;const l=a.find(u=>(u==null?void 0:u.type.name)===n.name);return l&&r.removeStoredMark(l),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}}function WZ(e){return typeof e=="number"}class VZ{constructor(t){this.find=t.find,this.handler=t.handler}}const qZ=(e,t,n)=>{if(dv(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(i=>{const o=[i.text];return o.index=i.index,o.input=e,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]};function YZ(e){const{editor:t,state:n,from:r,to:i,rule:o,pasteEvent:a,dropEvent:s}=e,{commands:l,chain:u,can:c}=new pm({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(p,h)=>{if(!p.isTextblock||p.type.spec.code)return;const m=Math.max(r,h),y=Math.min(i,h+p.content.size),b=p.textBetween(m-h,y-h,void 0,"");qZ(b,o.find,a).forEach(v=>{if(v.index===void 0)return;const k=m+v.index+1,_=k+v[0].length,x={from:n.tr.mapping.map(k),to:n.tr.mapping.map(_)},I=o.handler({state:n,range:x,match:v,commands:l,chain:u,can:c,pasteEvent:a,dropEvent:s});d.push(I)})}),d.every(p=>p!==null)}const KZ=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function GZ(e){const{editor:t,rules:n}=e;let r=null,i=!1,o=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,s=typeof DragEvent<"u"?new DragEvent("drop"):null;const l=({state:c,from:d,to:f,rule:p,pasteEvt:h})=>{const m=c.tr,y=fm({state:c,transaction:m});if(!(!YZ({editor:t,state:y,from:Math.max(d-1,0),to:f.b-1,rule:p,pasteEvent:h,dropEvent:s})||!m.steps.length))return s=typeof DragEvent<"u"?new DragEvent("drop"):null,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m};return n.map(c=>new Qt({view(d){const f=p=>{var h;r=!((h=d.dom.parentElement)===null||h===void 0)&&h.contains(p.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(d,f)=>(o=r===d.dom.parentElement,s=f,!1),paste:(d,f)=>{var p;const h=(p=f.clipboardData)===null||p===void 0?void 0:p.getData("text/html");return a=f,i=!!(h!=null&&h.includes("data-pm-slice")),!1}}},appendTransaction:(d,f,p)=>{const h=d[0],m=h.getMeta("uiEvent")==="paste"&&!i,y=h.getMeta("uiEvent")==="drop"&&!o,b=h.getMeta("applyPasteRules"),E=!!b;if(!m&&!y&&!E)return;if(E){const{from:_,text:x}=b,I=_+x.length,R=KZ(x);return l({rule:c,state:p,from:_,to:{b:I},pasteEvt:R})}const v=f.doc.content.findDiffStart(p.doc.content),k=f.doc.content.findDiffEnd(p.doc.content);if(!(!WZ(v)||!k||v===k.b))return l({rule:c,state:p,from:v,to:k,pasteEvt:a})}}))}function QZ(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}class Ds{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=Ds.resolve(t),this.schema=FZ(this.extensions,n),this.setupExtensions()}static resolve(t){const n=Ds.sort(Ds.flatten(t)),r=QZ(n.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=ce(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(t){return t.sort((r,i)=>{const o=ce(r,"priority")||100,a=ce(i,"priority")||100;return o>a?-1:o{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:Qg(n.name,this.schema)},i=ce(n,"addCommands",r);return i?{...t,...i()}:t},{})}get plugins(){const{editor:t}=this,n=Ds.sort([...this.extensions].reverse()),r=[],i=[],o=n.map(a=>{const s={name:a.name,options:a.options,storage:a.storage,editor:t,type:Qg(a.name,this.schema)},l=[],u=ce(a,"addKeyboardShortcuts",s);let c={};if(a.type==="mark"&&ce(a,"exitable",s)&&(c.ArrowRight=()=>si.handleExit({editor:t,mark:a})),u){const m=Object.fromEntries(Object.entries(u()).map(([y,b])=>[y,()=>b({editor:t})]));c={...c,...m}}const d=cZ(c);l.push(d);const f=ce(a,"addInputRules",s);Tw(a,t.options.enableInputRules)&&f&&r.push(...f());const p=ce(a,"addPasteRules",s);Tw(a,t.options.enablePasteRules)&&p&&i.push(...p());const h=ce(a,"addProseMirrorPlugins",s);if(h){const m=h();l.push(...m)}return l}).flat();return[jZ({editor:t,rules:r}),...GZ({editor:t,rules:i}),...o]}get attributes(){return XR(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=hm(this.extensions);return Object.fromEntries(n.filter(r=>!!ce(r,"addNodeView")).map(r=>{const i=this.attributes.filter(l=>l.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:t,type:Ft(r.name,this.schema)},a=ce(r,"addNodeView",o);if(!a)return[];const s=(l,u,c,d,f)=>{const p=ty(l,i);return a()({node:l,view:u,getPos:c,decorations:d,innerDecorations:f,editor:t,extension:r,HTMLAttributes:p})};return[r.name,s]}))}setupExtensions(){this.extensions.forEach(t=>{var n;this.editor.extensionStorage[t.name]=t.storage;const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:Qg(t.name,this.schema)};t.type==="mark"&&(!((n=we(ce(t,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(t.name);const i=ce(t,"onBeforeCreate",r),o=ce(t,"onCreate",r),a=ce(t,"onUpdate",r),s=ce(t,"onSelectionUpdate",r),l=ce(t,"onTransaction",r),u=ce(t,"onFocus",r),c=ce(t,"onBlur",r),d=ce(t,"onDestroy",r);i&&this.editor.on("beforeCreate",i),o&&this.editor.on("create",o),a&&this.editor.on("update",a),s&&this.editor.on("selectionUpdate",s),l&&this.editor.on("transaction",l),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class bn{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=we(ce(this,"addOptions",{name:this.name}))),this.storage=we(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new bn(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>gm(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new bn({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=we(ce(n,"addOptions",{name:n.name})),n.storage=we(ce(n,"addStorage",{name:n.name,options:n.options})),n}}function ZR(e,t,n){const{from:r,to:i}=t,{blockSeparator:o=` + +`,textSerializers:a={}}=n||{};let s="";return e.nodesBetween(r,i,(l,u,c,d)=>{var f;l.isBlock&&u>r&&(s+=o);const p=a==null?void 0:a[l.type.name];if(p)return c&&(s+=p({node:l,pos:u,parent:c,index:d,range:t})),!1;l.isText&&(s+=(f=l==null?void 0:l.text)===null||f===void 0?void 0:f.slice(Math.max(r,u)-u,i-u))}),s}function e3(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const XZ=bn.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Qt({key:new Xn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:o}=i,a=Math.min(...o.map(c=>c.$from.pos)),s=Math.max(...o.map(c=>c.$to.pos)),l=e3(n);return ZR(r,{from:a,to:s},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),JZ=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),ZZ=(e=!1)=>({commands:t})=>t.setContent("",e),eee=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:o,$to:a})=>{e.doc.nodesBetween(o.pos,a.pos,(s,l)=>{if(s.type.isText)return;const{doc:u,mapping:c}=t,d=u.resolve(c.map(l)),f=u.resolve(c.map(l+s.nodeSize)),p=d.blockRange(f);if(!p)return;const h=Al(p);if(s.type.isTextblock){const{defaultType:m}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,m)}(h||h===0)&&t.lift(p,h)})}),!0},tee=e=>t=>e(t),nee=()=>({state:e,dispatch:t})=>xZ(e,t),ree=(e,t)=>({editor:n,tr:r})=>{const{state:i}=n,o=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const a=r.mapping.map(t);return r.insert(a,o.content),r.setSelection(new ve(r.doc.resolve(a-1))),!0},iee=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const i=e.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===r.type){if(t){const s=i.before(o),l=i.after(o);e.delete(s,l).scrollIntoView()}return!0}return!1},oee=e=>({tr:t,state:n,dispatch:r})=>{const i=Ft(e,n.schema),o=t.selection.$anchor;for(let a=o.depth;a>0;a-=1)if(o.node(a).type===i){if(r){const l=o.before(a),u=o.after(a);t.delete(l,u).scrollIntoView()}return!0}return!1},aee=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},see=()=>({state:e,dispatch:t})=>dZ(e,t),lee=()=>({commands:e})=>e.keyboardShortcut("Enter"),uee=()=>({state:e,dispatch:t})=>kZ(e,t);function mp(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:dv(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function ny(e,t,n={}){return e.find(r=>r.type===t&&mp(r.attrs,n))}function cee(e,t,n={}){return!!ny(e,t,n)}function fv(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(u=>u.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(u=>u.type===t))return;const i=ny([...r.node.marks],t,n);if(!i)return;let o=r.index,a=e.start()+r.offset,s=o+1,l=a+r.node.nodeSize;for(ny([...r.node.marks],t,n);o>0&&i.isInSet(e.parent.child(o-1).marks);)o-=1,a-=e.parent.child(o).nodeSize;for(;s({tr:n,state:r,dispatch:i})=>{const o=Qo(e,r.schema),{doc:a,selection:s}=n,{$from:l,from:u,to:c}=s;if(i){const d=fv(l,o,t);if(d&&d.from<=u&&d.to>=c){const f=ve.create(a,d.from,d.to);n.setSelection(f)}}return!0},fee=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r({editor:n,view:r,tr:i,dispatch:o})=>{t={scrollIntoView:!0,...t};const a=()=>{pv()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t!=null&&t.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&e===null||e===!1)return!0;if(o&&e===null&&!t3(n.state.selection))return a(),!0;const s=n3(i.doc,e)||n.state.selection,l=n.state.selection.eq(s);return o&&(l||i.setSelection(s),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),a()),!0},hee=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),mee=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),r3=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&r3(r)}return e};function Rd(e){const t=`${e}`,n=new window.DOMParser().parseFromString(t,"text/html").body;return r3(n)}function gp(e,t,n){n={slice:!0,parseOptions:{},...n};const r=typeof e=="object"&&e!==null,i=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return ee.fromArray(e.map(s=>t.nodeFromJSON(s)));const a=t.nodeFromJSON(e);return n.errorOnInvalidContent&&a.check(),a}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),gp("",t,n)}if(i){if(n.errorOnInvalidContent){let a=!1,s="";const l=new VI({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(a=!0,s=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?_o.fromSchema(l).parseSlice(Rd(e),n.parseOptions):_o.fromSchema(l).parse(Rd(e),n.parseOptions),n.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const o=_o.fromSchema(t);return n.slice?o.parseSlice(Rd(e),n.parseOptions).content:o.parse(Rd(e),n.parseOptions)}return gp("",t,n)}function gee(e,t,n){const r=e.steps.length-1;if(r{a===0&&(a=c)}),e.setSelection(ke.near(e.doc.resolve(a),n))}const bee=e=>!("type"in e),yee=(e,t,n)=>({tr:r,dispatch:i,editor:o})=>{var a;if(i){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let s;try{s=gp(t,o.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(a=n.errorOnInvalidContent)!==null&&a!==void 0?a:o.options.enableContentCheck})}catch(h){return o.emit("contentError",{editor:o,error:h,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:u}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},c=!0,d=!0;if((bee(s)?s:[s]).forEach(h=>{h.check(),c=c?h.isText&&h.marks.length===0:!1,d=d?h.isBlock:!1}),l===u&&d){const{parent:h}=r.doc.resolve(l);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(l-=1,u+=1)}let p;c?(Array.isArray(t)?p=t.map(h=>h.text||"").join(""):typeof t=="object"&&t&&t.text?p=t.text:p=t,r.insertText(p,l,u)):(p=s,r.replaceWith(l,u,p)),n.updateSelection&&gee(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:l,text:p}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:l,text:p})}return!0},Eee=()=>({state:e,dispatch:t})=>yZ(e,t),vee=()=>({state:e,dispatch:t})=>EZ(e,t),Tee=()=>({state:e,dispatch:t})=>fZ(e,t),kee=()=>({state:e,dispatch:t})=>gZ(e,t),xee=()=>({state:e,dispatch:t,tr:n})=>{try{const r=am(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},See=()=>({state:e,dispatch:t,tr:n})=>{try{const r=am(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},wee=()=>({state:e,dispatch:t})=>pZ(e,t),_ee=()=>({state:e,dispatch:t})=>hZ(e,t);function i3(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Cee(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,i,o,a;for(let s=0;s({editor:t,view:n,tr:r,dispatch:i})=>{const o=Cee(e).split(/-(?!$)/),a=o.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),s=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,s))});return l==null||l.steps.forEach(u=>{const c=u.map(r.mapping);c&&i&&r.maybeStep(c)}),!0};function uc(e,t,n={}){const{from:r,to:i,empty:o}=e.selection,a=t?Ft(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(d,f)=>{if(d.isText)return;const p=Math.max(r,f),h=Math.min(i,f+d.nodeSize);s.push({node:d,from:p,to:h})});const l=i-r,u=s.filter(d=>a?a.name===d.node.type.name:!0).filter(d=>mp(d.node.attrs,n,{strict:!1}));return o?!!u.length:u.reduce((d,f)=>d+f.to-f.from,0)>=l}const Aee=(e,t={})=>({state:n,dispatch:r})=>{const i=Ft(e,n.schema);return uc(n,i,t)?vZ(n,r):!1},Oee=()=>({state:e,dispatch:t})=>SZ(e,t),Iee=e=>({state:t,dispatch:n})=>{const r=Ft(e,t.schema);return RZ(r)(t,n)},Ree=()=>({state:e,dispatch:t})=>TZ(e,t);function bm(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function kw(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,i)=>(n.includes(i)||(r[i]=e[i]),r),{})}const Mee=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=bm(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(o=Ft(e,r.schema)),s==="mark"&&(a=Qo(e,r.schema)),i&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{o&&o===u.type&&n.setNodeMarkup(c,void 0,kw(u.attrs,t)),a&&u.marks.length&&u.marks.forEach(d=>{a===d.type&&n.addMark(c,c+u.nodeSize,a.create(kw(d.attrs,t)))})})}),!0):!1},Dee=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Lee=()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),Pee=()=>({state:e,dispatch:t})=>mZ(e,t),Bee=()=>({state:e,dispatch:t})=>bZ(e,t),zee=()=>({state:e,dispatch:t})=>wZ(e,t),Fee=()=>({state:e,dispatch:t})=>NZ(e,t),Hee=()=>({state:e,dispatch:t})=>CZ(e,t);function ry(e,t,n={},r={}){return gp(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const Uee=(e,t=!1,n={},r={})=>({editor:i,tr:o,dispatch:a,commands:s})=>{var l,u;const{doc:c}=o;if(n.preserveWhitespace!=="full"){const d=ry(e,i.schema,n,{errorOnInvalidContent:(l=r.errorOnInvalidContent)!==null&&l!==void 0?l:i.options.enableContentCheck});return a&&o.replaceWith(0,c.content.size,d).setMeta("preventUpdate",!t),!0}return a&&o.setMeta("preventUpdate",!t),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:(u=r.errorOnInvalidContent)!==null&&u!==void 0?u:i.options.enableContentCheck})};function o3(e,t){const n=Qo(t,e.schema),{from:r,to:i,empty:o}=e.selection,a=[];o?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,l=>{a.push(...l.marks)});const s=a.find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function jee(e,t){const n=new sR(e);return t.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function $ee(e){for(let t=0;t{n(i)&&r.push({node:i,pos:o})}),r}function Vee(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function hv(e){return t=>Vee(t.$from,e)}function qee(e,t){const n=Xa.fromSchema(t).serializeFragment(e),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function Yee(e,t){const n={from:0,to:e.content.size};return ZR(e,n,t)}function Kee(e,t){const n=Ft(t,e.schema),{from:r,to:i}=e.selection,o=[];e.doc.nodesBetween(r,i,s=>{o.push(s)});const a=o.reverse().find(s=>s.type.name===n.name);return a?{...a.attrs}:{}}function a3(e,t){const n=bm(typeof t=="string"?t:t.name,e.schema);return n==="node"?Kee(e,t):n==="mark"?o3(e,t):{}}function Gee(e,t=JSON.stringify){const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function Qee(e){const t=Gee(e);return t.length===1?t:t.filter((n,r)=>!t.filter((o,a)=>a!==r).some(o=>n.oldRange.from>=o.oldRange.from&&n.oldRange.to<=o.oldRange.to&&n.newRange.from>=o.newRange.from&&n.newRange.to<=o.newRange.to))}function Xee(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((i,o)=>{const a=[];if(i.ranges.length)i.forEach((s,l)=>{a.push({from:s,to:l})});else{const{from:s,to:l}=n[o];if(s===void 0||l===void 0)return;a.push({from:s,to:l})}a.forEach(({from:s,to:l})=>{const u=t.slice(o).map(s,-1),c=t.slice(o).map(l),d=t.invert().map(u,-1),f=t.invert().map(c);r.push({oldRange:{from:d,to:f},newRange:{from:u,to:c}})})}),Qee(r)}function mv(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const o=n.resolve(e),a=fv(o,i.type);a&&r.push({mark:i,...a})}):n.nodesBetween(e,t,(i,o)=>{!i||(i==null?void 0:i.nodeSize)===void 0||r.push(...i.marks.map(a=>({from:o,to:o+i.nodeSize,mark:a})))}),r}function cf(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=e.find(o=>o.type===t&&o.name===r);return i?i.attribute.keepOnSplit:!1}))}function iy(e,t,n={}){const{empty:r,ranges:i}=e.selection,o=t?Qo(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(d=>o?o.name===d.type.name:!0).find(d=>mp(d.attrs,n,{strict:!1}));let a=0;const s=[];if(i.forEach(({$from:d,$to:f})=>{const p=d.pos,h=f.pos;e.doc.nodesBetween(p,h,(m,y)=>{if(!m.isText&&!m.marks.length)return;const b=Math.max(p,y),E=Math.min(h,y+m.nodeSize),v=E-b;a+=v,s.push(...m.marks.map(k=>({mark:k,from:b,to:E})))})}),a===0)return!1;const l=s.filter(d=>o?o.name===d.mark.type.name:!0).filter(d=>mp(d.mark.attrs,n,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),u=s.filter(d=>o?d.mark.type!==o&&d.mark.type.excludes(o):!0).reduce((d,f)=>d+f.to-f.from,0);return(l>0?l+u:l)>=a}function Jee(e,t,n={}){if(!t)return uc(e,null,n)||iy(e,null,n);const r=bm(t,e.schema);return r==="node"?uc(e,t,n):r==="mark"?iy(e,t,n):!1}function xw(e,t){const{nodeExtensions:n}=hm(t),r=n.find(a=>a.name===e);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=we(ce(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function gv(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((r=e.text)!==null&&r!==void 0?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let i=!0;return e.content.forEach(o=>{i!==!1&&(gv(o,{ignoreWhitespace:n,checkChildren:t})||(i=!1))}),i}return!1}function Zee(e){return e instanceof me}function ete(e,t,n){var r;const{selection:i}=t;let o=null;if(t3(i)&&(o=i.$cursor),o){const s=(r=e.storedMarks)!==null&&r!==void 0?r:o.marks();return!!n.isInSet(s)||!s.some(l=>l.type.excludes(n))}const{ranges:a}=i;return a.some(({$from:s,$to:l})=>{let u=s.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(s.pos,l.pos,(c,d,f)=>{if(u)return!1;if(c.isInline){const p=!f||f.type.allowsMarkType(n),h=!!n.isInSet(c.marks)||!c.marks.some(m=>m.type.excludes(n));u=p&&h}return!u}),u})}const tte=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=n,{empty:a,ranges:s}=o,l=Qo(e,r.schema);if(i)if(a){const u=o3(r,l);n.addStoredMark(l.create({...u,...t}))}else s.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;r.doc.nodesBetween(c,d,(f,p)=>{const h=Math.max(p,c),m=Math.min(p+f.nodeSize,d);f.marks.find(b=>b.type===l)?f.marks.forEach(b=>{l===b.type&&n.addMark(h,m,l.create({...b.attrs,...t}))}):n.addMark(h,m,l.create(t))})});return ete(r,n,l)},nte=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),rte=(e,t={})=>({state:n,dispatch:r,chain:i})=>{const o=Ft(e,n.schema);return o.isTextblock?i().command(({commands:a})=>yw(o,t)(n)?!0:a.clearNodes()).command(({state:a})=>yw(o,t)(a,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},ite=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=ha(e,0,r.content.size),o=me.create(r,i);t.setSelection(o)}return!0},ote=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:o}=typeof e=="number"?{from:e,to:e}:e,a=ve.atStart(r).from,s=ve.atEnd(r).to,l=ha(i,a,s),u=ha(o,a,s),c=ve.create(r,l,u);t.setSelection(c)}return!0},ate=e=>({state:t,dispatch:n})=>{const r=Ft(e,t.schema);return LZ(r)(t,n)};function Sw(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(i=>t==null?void 0:t.includes(i.type.name));e.tr.ensureMarks(r)}}const ste=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{const{selection:o,doc:a}=t,{$from:s,$to:l}=o,u=i.extensionManager.attributes,c=cf(u,s.node().type.name,s.node().attrs);if(o instanceof me&&o.node.isBlock)return!s.parentOffset||!Vs(a,s.pos)?!1:(r&&(e&&Sw(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,f=s.depth===0?void 0:$ee(s.node(-1).contentMatchAt(s.indexAfter(-1)));let p=d&&f?[{type:f,attrs:c}]:void 0,h=Vs(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!h&&Vs(t.doc,t.mapping.map(s.pos),1,f?[{type:f}]:void 0)&&(h=!0,p=f?[{type:f,attrs:c}]:void 0),r){if(h&&(o instanceof ve&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f)){const m=t.mapping.map(s.before()),y=t.doc.resolve(m);s.node(-1).canReplaceWith(y.index(),y.index()+1,f)&&t.setNodeMarkup(t.mapping.map(s.before()),f)}e&&Sw(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return h},lte=(e,t={})=>({tr:n,state:r,dispatch:i,editor:o})=>{var a;const s=Ft(e,r.schema),{$from:l,$to:u}=r.selection,c=r.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;const d=l.node(-1);if(d.type!==s)return!1;const f=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let b=ee.empty;const E=l.index(-1)?1:l.index(-2)?2:3;for(let R=l.depth-E;R>=l.depth-3;R-=1)b=ee.from(l.node(R).copy(b));const v=l.indexAfter(-1){if(I>-1)return!1;R.isTextblock&&R.content.size===0&&(I=z+1)}),I>-1&&n.setSelection(ve.near(n.doc.resolve(I))),n.scrollIntoView()}return!0}const p=u.pos===l.end()?d.contentMatchAt(0).defaultType:null,h={...cf(f,d.type.name,d.attrs),...t},m={...cf(f,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,u.pos);const y=p?[{type:s,attrs:h},{type:p,attrs:m}]:[{type:s,attrs:h}];if(!Vs(n.doc,l.pos,2))return!1;if(i){const{selection:b,storedMarks:E}=r,{splittableMarks:v}=o.extensionManager,k=E||b.$to.parentOffset&&b.$from.marks();if(n.split(l.pos,2,y).scrollIntoView(),!k||!i)return!0;const _=k.filter(x=>v.includes(x.type.name));n.ensureMarks(_)}return!0},Xg=(e,t)=>{const n=hv(a=>a.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&Ko(e.doc,n.pos)&&e.join(n.pos),!0},Jg=(e,t)=>{const n=hv(a=>a.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&Ko(e.doc,r)&&e.join(r),!0},ute=(e,t,n,r={})=>({editor:i,tr:o,state:a,dispatch:s,chain:l,commands:u,can:c})=>{const{extensions:d,splittableMarks:f}=i.extensionManager,p=Ft(e,a.schema),h=Ft(t,a.schema),{selection:m,storedMarks:y}=a,{$from:b,$to:E}=m,v=b.blockRange(E),k=y||m.$to.parentOffset&&m.$from.marks();if(!v)return!1;const _=hv(x=>xw(x.type.name,d))(m);if(v.depth>=1&&_&&v.depth-_.depth<=1){if(_.node.type===p)return u.liftListItem(h);if(xw(_.node.type.name,d)&&p.validContent(_.node.content)&&s)return l().command(()=>(o.setNodeMarkup(_.pos,p),!0)).command(()=>Xg(o,p)).command(()=>Jg(o,p)).run()}return!n||!k||!s?l().command(()=>c().wrapInList(p,r)?!0:u.clearNodes()).wrapInList(p,r).command(()=>Xg(o,p)).command(()=>Jg(o,p)).run():l().command(()=>{const x=c().wrapInList(p,r),I=k.filter(R=>f.includes(R.type.name));return o.ensureMarks(I),x?!0:u.clearNodes()}).wrapInList(p,r).command(()=>Xg(o,p)).command(()=>Jg(o,p)).run()},cte=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=n,a=Qo(e,r.schema);return iy(r,a,t)?i.unsetMark(a,{extendEmptyMarkRange:o}):i.setMark(a,t)},dte=(e,t,n={})=>({state:r,commands:i})=>{const o=Ft(e,r.schema),a=Ft(t,r.schema),s=uc(r,o,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),s?i.setNode(a,l):i.setNode(o,{...l,...n})},fte=(e,t={})=>({state:n,commands:r})=>{const i=Ft(e,n.schema);return uc(n,i,t)?r.lift(i):r.wrapIn(i,t)},pte=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r=0;l-=1)a.step(s.steps[l].invert(s.docs[l]));if(o.text){const l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else a.delete(o.from,o.to)}return!0}}return!1},hte=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(o=>{e.removeMark(o.$from.pos,o.$to.pos)}),!0},mte=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:a=!1}=t,{selection:s}=n,l=Qo(e,r.schema),{$from:u,empty:c,ranges:d}=s;if(!i)return!0;if(c&&a){let{from:f,to:p}=s;const h=(o=u.marks().find(y=>y.type===l))===null||o===void 0?void 0:o.attrs,m=fv(u,l,h);m&&(f=m.from,p=m.to),n.removeMark(f,p,l)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,l)});return n.removeStoredMark(l),!0},gte=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let o=null,a=null;const s=bm(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(o=Ft(e,r.schema)),s==="mark"&&(a=Qo(e,r.schema)),i&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,c=l.$to.pos;r.doc.nodesBetween(u,c,(d,f)=>{o&&o===d.type&&n.setNodeMarkup(f,void 0,{...d.attrs,...t}),a&&d.marks.length&&d.marks.forEach(p=>{if(a===p.type){const h=Math.max(f,u),m=Math.min(f+d.nodeSize,c);n.addMark(h,m,a.create({...p.attrs,...t}))}})})}),!0):!1},bte=(e,t={})=>({state:n,dispatch:r})=>{const i=Ft(e,n.schema);return AZ(i,t)(n,r)},yte=(e,t={})=>({state:n,dispatch:r})=>{const i=Ft(e,n.schema);return OZ(i,t)(n,r)};var Ete=Object.freeze({__proto__:null,blur:JZ,clearContent:ZZ,clearNodes:eee,command:tee,createParagraphNear:nee,cut:ree,deleteCurrentNode:iee,deleteNode:oee,deleteRange:aee,deleteSelection:see,enter:lee,exitCode:uee,extendMarkRange:dee,first:fee,focus:pee,forEach:hee,insertContent:mee,insertContentAt:yee,joinBackward:Tee,joinDown:vee,joinForward:kee,joinItemBackward:xee,joinItemForward:See,joinTextblockBackward:wee,joinTextblockForward:_ee,joinUp:Eee,keyboardShortcut:Nee,lift:Aee,liftEmptyBlock:Oee,liftListItem:Iee,newlineInCode:Ree,resetAttributes:Mee,scrollIntoView:Dee,selectAll:Lee,selectNodeBackward:Pee,selectNodeForward:Bee,selectParentNode:zee,selectTextblockEnd:Fee,selectTextblockStart:Hee,setContent:Uee,setMark:tte,setMeta:nte,setNode:rte,setNodeSelection:ite,setTextSelection:ote,sinkListItem:ate,splitBlock:ste,splitListItem:lte,toggleList:ute,toggleMark:cte,toggleNode:dte,toggleWrap:fte,undoInputRule:pte,unsetAllMarks:hte,unsetMark:mte,updateAttributes:gte,wrapIn:bte,wrapInList:yte});const vte=bn.create({name:"commands",addCommands(){return{...Ete}}}),Tte=bn.create({name:"drop",addProseMirrorPlugins(){return[new Qt({key:new Xn("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),kte=bn.create({name:"editable",addProseMirrorPlugins(){return[new Qt({key:new Xn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),xte=bn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Qt({key:new Xn("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),Ste=bn.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:s})=>{const{selection:l,doc:u}=s,{empty:c,$anchor:d}=l,{pos:f,parent:p}=d,h=d.parent.isTextblock&&f>0?s.doc.resolve(f-1):d,m=h.parent.type.spec.isolating,y=d.pos-d.parentOffset,b=m&&h.parent.childCount===1?y===d.pos:ke.atStart(u).from===f;return!c||!p.type.isTextblock||p.textContent.length||!b||b&&d.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},o={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return pv()||i3()?o:i},addProseMirrorPlugins(){return[new Qt({key:new Xn("clearDocument"),appendTransaction:(e,t,n)=>{const r=e.some(m=>m.docChanged)&&!t.doc.eq(n.doc),i=e.some(m=>m.getMeta("preventClearDocument"));if(!r||i)return;const{empty:o,from:a,to:s}=t.selection,l=ke.atStart(t.doc).from,u=ke.atEnd(t.doc).to;if(o||!(a===l&&s===u)||!gv(n.doc))return;const f=n.tr,p=fm({state:n,transaction:f}),{commands:h}=new pm({editor:this.editor,state:p});if(h.clearNodes(),!!f.steps.length)return f}})]}}),wte=bn.create({name:"paste",addProseMirrorPlugins(){return[new Qt({key:new Xn("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),_te=bn.create({name:"tabindex",addProseMirrorPlugins(){return[new Qt({key:new Xn("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class aa{get name(){return this.node.type.name}constructor(t,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=i}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new aa(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new aa(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new aa(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,a=this.pos+r+(o?0:1),s=this.resolvedPos.doc.resolve(a);if(!i&&s.depth<=this.depth)return;const l=new aa(s,this.editor,i,i?n:null);i&&(l.actualDepth=this.depth+1),t.push(new aa(s,this.editor,i,i?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===t)if(Object.keys(n).length>0){const o=i.node.attrs,a=Object.keys(n);for(let s=0;s{r&&i.length>0||(a.node.type.name===t&&o.every(l=>n[l]===a.node.attrs[l])&&i.push(a),!(r&&i.length>0)&&(i=i.concat(a.querySelectorAll(t,n,r))))}),i}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}}const Cte=`.ProseMirror { + position: relative; +} + +.ProseMirror { + word-wrap: break-word; + white-space: pre-wrap; + white-space: break-spaces; + -webkit-font-variant-ligatures: none; + font-variant-ligatures: none; + font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ +} + +.ProseMirror [contenteditable="false"] { + white-space: normal; +} + +.ProseMirror [contenteditable="false"] [contenteditable="true"] { + white-space: pre-wrap; +} + +.ProseMirror pre { + white-space: pre-wrap; +} + +img.ProseMirror-separator { + display: inline !important; + border: none !important; + margin: 0 !important; + width: 0 !important; + height: 0 !important; +} + +.ProseMirror-gapcursor { + display: none; + pointer-events: none; + position: absolute; + margin: 0; +} + +.ProseMirror-gapcursor:after { + content: ""; + display: block; + position: absolute; + top: -2px; + width: 20px; + border-top: 1px solid black; + animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; +} + +@keyframes ProseMirror-cursor-blink { + to { + visibility: hidden; + } +} + +.ProseMirror-hideselection *::selection { + background: transparent; +} + +.ProseMirror-hideselection *::-moz-selection { + background: transparent; +} + +.ProseMirror-hideselection * { + caret-color: transparent; +} + +.ProseMirror-focused .ProseMirror-gapcursor { + display: block; +} + +.tippy-box[data-animation=fade][data-state=hidden] { + opacity: 0 +}`;function Nte(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}class Ate extends PZ{constructor(t={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:r,moved:i})=>this.options.onDrop(n,r,i)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=Nte(Cte,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,n=!0){this.setOptions({editable:t}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,n){const r=JR(n)?n(t,[...this.state.plugins]):[...this.state.plugins,t],i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}unregisterPlugin(t){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(t).forEach(o=>{const a=typeof o=="string"?`${o}$`:o.key;r=n.filter(s=>!s.key.startsWith(a))}),n.length===r.length)return;const i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}createExtensionManager(){var t,n;const i=[...this.options.enableCoreExtensions?[kte,XZ.configure({blockSeparator:(n=(t=this.options.coreExtensionOptions)===null||t===void 0?void 0:t.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),vte,xte,Ste,_te,Tte,wte].filter(o=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[o.name]!==!1:!0):[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o==null?void 0:o.type));this.extensionManager=new Ds(i,this)}createCommandManager(){this.commandManager=new pm({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let t;try{t=ry(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(o){if(!(o instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(o.message))throw o;this.emit("contentError",{editor:this,error:o,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(a=>a.name!=="collaboration"),this.createExtensionManager()}}),t=ry(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=n3(t,this.options.autofocus);this.view=new tZ(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Ms.create({doc:t,selection:n||void 0})}),this.view.dom.setAttribute("role","textbox"),this.view.dom.getAttribute("aria-label")||this.view.dom.setAttribute("aria-label","Rich-Text Editor");const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(a=>{var s;return(s=this.capturedTransaction)===null||s===void 0?void 0:s.step(a)});return}const n=this.state.apply(t),r=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:t,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:t}),r&&this.emit("selectionUpdate",{editor:this,transaction:t});const i=t.getMeta("focus"),o=t.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:t}),o&&this.emit("blur",{editor:this,event:o.event,transaction:t}),!(!t.docChanged||t.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return a3(this.state,t)}isActive(t,n){const r=typeof t=="string"?t:null,i=typeof t=="string"?n:t;return Jee(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return qee(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:n=` + +`,textSerializers:r={}}=t||{};return Yee(this.state.doc,{blockSeparator:n,textSerializers:{...e3(this.schema),...r}})}get isEmpty(){return gv(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const t=this.view.dom;t&&t.editor&&delete t.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var t;return!(!((t=this.view)===null||t===void 0)&&t.docView)}$node(t,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(t,n))||null}$nodes(t,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(t,n))||null}$pos(t){const n=this.state.doc.resolve(t);return new aa(n,this)}get $doc(){return this.$pos(0)}}function ja(e){return new mm({find:e.find,handler:({state:t,range:n,match:r})=>{const i=we(e.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=t,a=r[r.length-1],s=r[0];if(a){const l=s.search(/\S/),u=n.from+s.indexOf(a),c=u+a.length;if(mv(n.from,n.to,t.doc).filter(p=>p.mark.type.excluded.find(m=>m===e.type&&m!==p.mark.type)).filter(p=>p.to>u).length)return null;cn.from&&o.delete(n.from+l,u);const f=n.from+l+a.length;o.addMark(n.from+l,f,e.type.create(i||{})),o.removeStoredMark(e.type)}}})}function s3(e){return new mm({find:e.find,handler:({state:t,range:n,match:r})=>{const i=we(e.getAttributes,void 0,r)||{},{tr:o}=t,a=n.from;let s=n.to;const l=e.type.create(i);if(r[1]){const u=r[0].lastIndexOf(r[1]);let c=a+u;c>s?c=s:s=c+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,a+r[0].length-1),o.replaceWith(c,s,l)}else if(r[0]){const u=e.type.isInline?a:a-1;o.insert(u,e.type.create(i)).delete(o.mapping.map(a),o.mapping.map(s))}o.scrollIntoView()}})}function oy(e){return new mm({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),o=we(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)}})}function cc(e){return new mm({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const o=we(e.getAttributes,void 0,r)||{},a=t.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),u=l&&ZE(l,e.type,o);if(!u)return null;if(a.wrap(l,u),e.keepMarks&&e.editor){const{selection:d,storedMarks:f}=t,{splittableMarks:p}=e.editor.extensionManager,h=f||d.$to.parentOffset&&d.$from.marks();if(h){const m=h.filter(y=>p.includes(y.type.name));a.ensureMarks(m)}}if(e.keepAttributes){const d=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(d,o).run()}const c=a.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&Ko(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&a.join(n.from-1)}})}let kr=class ay{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=we(ce(this,"addOptions",{name:this.name}))),this.storage=we(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new ay(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>gm(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new ay(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=we(ce(n,"addOptions",{name:n.name})),n.storage=we(ce(n,"addStorage",{name:n.name,options:n.options})),n}};function Bo(e){return new VZ({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const o=we(e.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:a}=t,s=r[r.length-1],l=r[0];let u=n.to;if(s){const c=l.search(/\S/),d=n.from+l.indexOf(s),f=d+s.length;if(mv(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(y=>y===e.type&&y!==h.mark.type)).filter(h=>h.to>d).length)return null;fn.from&&a.delete(n.from+c,d),u=n.from+c+s.length,a.addMark(n.from+c,u,e.type.create(o||{})),a.removeStoredMark(e.type)}}})}function Ote(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l3={exports:{}},Zg={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ww;function Ite(){if(ww)return Zg;ww=1;var e=Et;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(d,f){var p=f(),h=r({inst:{value:p,getSnapshot:f}}),m=h[0].inst,y=h[1];return o(function(){m.value=p,m.getSnapshot=f,l(m)&&y({inst:m})},[d,p,f]),i(function(){return l(m)&&y({inst:m}),d(function(){l(m)&&y({inst:m})})},[d]),a(p),p}function l(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!n(d,p)}catch{return!0}}function u(d,f){return f()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return Zg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Zg}l3.exports=Ite();var bv=l3.exports;const Rte=(...e)=>t=>{e.forEach(n=>{typeof n=="function"?n(t):n&&(n.current=t)})},Mte=({contentComponent:e})=>{const t=bv.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return Et.createElement(Et.Fragment,null,Object.values(t))};function Dte(){const e=new Set;let t={};return{subscribe(n){return e.add(n),()=>{e.delete(n)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(n,r){t={...t,[n]:rN.createPortal(r.reactElement,r.element,n)},e.forEach(i=>i())},removeRenderer(n){const r={...t};delete r[n],t=r,e.forEach(i=>i())}}}class Lte extends Et.Component{constructor(t){var n;super(t),this.editorContentRef=Et.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(!((n=t.editor)===null||n===void 0)&&n.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const t=this.props.editor;if(t&&!t.isDestroyed&&t.options.element){if(t.contentComponent)return;const n=this.editorContentRef.current;n.append(...t.options.element.childNodes),t.setOptions({element:n}),t.contentComponent=Dte(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(r=>r.hasContentComponentInitialized?r:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){const t=this.props.editor;if(!t||(this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null,!t.options.element.firstChild))return;const n=document.createElement("div");n.append(...t.options.element.childNodes),t.setOptions({element:n})}render(){const{editor:t,innerRef:n,...r}=this.props;return Et.createElement(Et.Fragment,null,Et.createElement("div",{ref:Rte(n,this.editorContentRef),...r}),(t==null?void 0:t.contentComponent)&&Et.createElement(Mte,{contentComponent:t.contentComponent}))}}const Pte=S.forwardRef((e,t)=>{const n=Et.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return Et.createElement(Lte,{key:n,innerRef:t,...e})}),Bte=Et.memo(Pte);var zte=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!(a==="_owner"&&t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n},Fte=Ote(zte),u3={exports:{}},e0={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _w;function Hte(){if(_w)return e0;_w=1;var e=Et,t=bv;function n(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return e0.useSyncExternalStoreWithSelector=function(u,c,d,f,p){var h=o(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=s(function(){function b(x){if(!E){if(E=!0,v=x,x=f(x),p!==void 0&&m.hasValue){var I=m.value;if(p(I,x))return k=I}return k=x}if(I=k,r(v,x))return I;var R=f(x);return p!==void 0&&p(I,R)?I:(v=x,k=R)}var E=!1,v,k,_=d===void 0?null:d;return[function(){return b(c())},_===null?void 0:function(){return b(_())}]},[c,d,f,p]);var y=i(u,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=y},[y]),l(y),y},e0}u3.exports=Hte();var Ute=u3.exports;class jte{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){const n=()=>{this.transactionNumber+=1,this.subscribers.forEach(i=>i())},r=this.editor;return r.on("transaction",n),()=>{r.off("transaction",n)}}}}function $te(e){var t;const[n]=S.useState(()=>new jte(e.editor)),r=Ute.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,(t=e.equalityFn)!==null&&t!==void 0?t:Fte);return S.useEffect(()=>n.watch(e.editor),[e.editor,n]),S.useDebugValue(r),r}const Wte=!1,sy=typeof window>"u",Vte=sy||!!(typeof window<"u"&&window.next);class qte{constructor(t){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(t){this.editor=t,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){if(this.options.current.immediatelyRender===void 0)return sy||Vte?null:this.createEditor();if(this.options.current.immediatelyRender&&sy&&Wte)throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){const t={...this.options.current,onBeforeCreate:(...r)=>{var i,o;return(o=(i=this.options.current).onBeforeCreate)===null||o===void 0?void 0:o.call(i,...r)},onBlur:(...r)=>{var i,o;return(o=(i=this.options.current).onBlur)===null||o===void 0?void 0:o.call(i,...r)},onCreate:(...r)=>{var i,o;return(o=(i=this.options.current).onCreate)===null||o===void 0?void 0:o.call(i,...r)},onDestroy:(...r)=>{var i,o;return(o=(i=this.options.current).onDestroy)===null||o===void 0?void 0:o.call(i,...r)},onFocus:(...r)=>{var i,o;return(o=(i=this.options.current).onFocus)===null||o===void 0?void 0:o.call(i,...r)},onSelectionUpdate:(...r)=>{var i,o;return(o=(i=this.options.current).onSelectionUpdate)===null||o===void 0?void 0:o.call(i,...r)},onTransaction:(...r)=>{var i,o;return(o=(i=this.options.current).onTransaction)===null||o===void 0?void 0:o.call(i,...r)},onUpdate:(...r)=>{var i,o;return(o=(i=this.options.current).onUpdate)===null||o===void 0?void 0:o.call(i,...r)},onContentError:(...r)=>{var i,o;return(o=(i=this.options.current).onContentError)===null||o===void 0?void 0:o.call(i,...r)},onDrop:(...r)=>{var i,o;return(o=(i=this.options.current).onDrop)===null||o===void 0?void 0:o.call(i,...r)},onPaste:(...r)=>{var i,o;return(o=(i=this.options.current).onPaste)===null||o===void 0?void 0:o.call(i,...r)}};return new Ate(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(t){return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(t){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=t;return}if(this.previousDeps.length===t.length&&this.previousDeps.every((r,i)=>r===t[i]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=t}scheduleDestroy(){const t=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===t){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===t&&this.setEditor(null))},1)}}function Yte(e={},t=[]){const n=S.useRef(e);n.current=e;const[r]=S.useState(()=>new qte(n)),i=bv.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return S.useDebugValue(i),S.useEffect(r.onRender(t)),$te({editor:i,selector:({transactionNumber:o})=>e.shouldRerenderOnTransaction===!1?null:e.immediatelyRender&&o===0?0:o+1}),i}const Kte=S.createContext({editor:null});Kte.Consumer;const Gte=S.createContext({onDragStart:void 0}),Qte=()=>S.useContext(Gte);Et.forwardRef((e,t)=>{const{onDragStart:n}=Qte(),r=e.as||"div";return Et.createElement(r,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});const Xte=/^\s*>\s$/,Jte=kr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[cc({find:Xte,type:this.type})]}}),Zte=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,ene=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,tne=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,nne=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,rne=si.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ja({find:Zte,type:this.type}),ja({find:tne,type:this.type})]},addPasteRules(){return[Bo({find:ene,type:this.type}),Bo({find:nne,type:this.type})]}}),ine="listItem",Cw="textStyle",Nw=/^\s*([-+*])\s$/,one=kr.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ine,this.editor.getAttributes(Cw)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=cc({find:Nw,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cc({find:Nw,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Cw),editor:this.editor})),[e]}}),ane=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,sne=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,lne=si.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[ja({find:ane,type:this.type})]},addPasteRules(){return[Bo({find:sne,type:this.type})]}}),une=/^```([a-z]+)?[\s\n]$/,cne=/^~~~([a-z]+)?[\s\n]$/,c3=kr.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options,o=[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",Nt(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith(` + +`);return!o||!a?!1:e.chain().command(({tr:s})=>(s.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const s=i.after();return s===void 0?!1:r.nodeAt(s)?e.commands.command(({tr:u})=>(u.setSelection(ke.near(r.resolve(s))),!0)):e.commands.exitCode()}}},addInputRules(){return[oy({find:une,type:this.type,getAttributes:e=>({language:e[1]})}),oy({find:cne,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Qt({key:new Xn("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=i==null?void 0:i.mode;if(!n||!o)return!1;const{tr:a,schema:s}=e.state,l=s.text(n.replace(/\r\n?/g,` +`));return a.replaceSelectionWith(this.type.create({language:o},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(ve.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),dne=kr.create({name:"doc",topNode:!0,content:"block+"});function fne(e={}){return new Qt({view(t){return new pne(t,e)}})}class pne{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=a=>{this[i](a)};return t.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let s=t.nodeBefore,l=t.nodeAfter;if(s||l){let u=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(u){let c=u.getBoundingClientRect(),d=s?c.bottom:c.top;s&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:c.left,right:c.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let s=this.editorView.coordsAtPos(this.cursorPos);r={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let o,a;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,a=-pageYOffset;else{let s=i.getBoundingClientRect();o=s.left-i.scrollLeft,a=s.top-i.scrollTop}this.element.style.left=r.left-o+"px",this.element.style.top=r.top-a+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!o){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=nR(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const hne=bn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[fne(this.options)]}});class pt extends ke{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return pt.valid(r)?new pt(r):ke.near(r)}content(){return ae.empty}eq(t){return t instanceof pt&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new pt(t.resolve(n.pos))}getBookmark(){return new yv(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!mne(t)||!gne(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&pt.valid(t))return t;let i=t.pos,o=null;for(let a=t.depth;;a--){let s=t.node(a);if(n>0?t.indexAfter(a)0){o=s.child(n>0?t.indexAfter(a):t.index(a)-1);break}else if(a==0)return null;i+=n;let l=t.doc.resolve(i);if(pt.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!me.isSelectable(o)){t=t.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=a,i+=n;let s=t.doc.resolve(i);if(pt.valid(s))return s}return null}}}pt.prototype.visible=!1;pt.findFrom=pt.findGapCursorFrom;ke.jsonID("gapcursor",pt);class yv{constructor(t){this.pos=t}map(t){return new yv(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return pt.valid(n)?new pt(n):ke.near(n)}}function mne(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function gne(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function bne(){return new Qt({props:{decorations:Tne,createSelectionBetween(e,t,n){return t.pos==n.pos&&pt.valid(n)?new pt(n):null},handleClick:Ene,handleKeyDown:yne,handleDOMEvents:{beforeinput:vne}}})}const yne=WR({ArrowLeft:Md("horiz",-1),ArrowRight:Md("horiz",1),ArrowUp:Md("vert",-1),ArrowDown:Md("vert",1)});function Md(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,o){let a=r.selection,s=t>0?a.$to:a.$from,l=a.empty;if(a instanceof ve){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let u=pt.findGapCursorFrom(s,t,l);return u?(i&&i(r.tr.setSelection(new pt(u))),!0):!1}}function Ene(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!pt.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&me.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new pt(r))),!0)}function vne(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof pt))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=ee.empty;for(let a=r.length-1;a>=0;a--)i=ee.from(r[a].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new ae(i,0,0));return o.setSelection(ve.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function Tne(e){if(!(e.selection instanceof pt))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",_t.create(e.doc,[cr.widget(e.selection.head,t,{key:"gapcursor"})])}const kne=bn.create({name:"gapCursor",addProseMirrorPlugins(){return[bne()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=we(ce(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),xne=kr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",Nt(this.options.HTMLAttributes,e)]},renderText(){return` +`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:i,storedMarks:o}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:s}=r.extensionManager,l=o||i.$to.parentOffset&&i.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&a){const d=l.filter(f=>s.includes(f.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Sne=kr.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,Nt(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>oy({find:new RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});var bp=200,Bt=function(){};Bt.prototype.append=function(t){return t.length?(t=Bt.from(t),!this.length&&t||t.length=n?Bt.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,n))};Bt.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};Bt.prototype.forEach=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(t,n,r,0):this.forEachInvertedInner(t,n,r,0)};Bt.prototype.map=function(t,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,a){return i.push(t(o,a))},n,r),i};Bt.from=function(t){return t instanceof Bt?t:t&&t.length?new d3(t):Bt.empty};var d3=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new t(this.values.slice(i,o))},t.prototype.getInner=function(i){return this.values[i]},t.prototype.forEachInner=function(i,o,a,s){for(var l=o;l=a;l--)if(i(this.values[l],s+l)===!1)return!1},t.prototype.leafAppend=function(i){if(this.length+i.length<=bp)return new t(this.values.concat(i.flatten()))},t.prototype.leafPrepend=function(i){if(this.length+i.length<=bp)return new t(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Bt);Bt.empty=new d3([]);var wne=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(r){return rs&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},t.prototype.forEachInvertedInner=function(r,i,o,a){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(o,s)-s,a+s)===!1||o=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},t.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new t(this.left,i)},t.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new t(i,this.right)},t.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new t(this.left,new t(this.right,r)):new t(this,r)},t}(Bt);const _ne=500;class Ar{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=t.tr,s,l,u=[],c=[];return this.items.forEach((d,f)=>{if(!d.step){i||(i=this.remapping(r,f+1),o=i.maps.length),o--,c.push(d);return}if(i){c.push(new qr(d.map));let p=d.step.map(i.slice(o)),h;p&&a.maybeStep(p).doc&&(h=a.mapping.maps[a.mapping.maps.length-1],u.push(new qr(h,void 0,void 0,u.length+c.length))),o--,h&&i.appendMap(h,o)}else a.maybeStep(d.step);if(d.selection)return s=i?d.selection.map(i.slice(o)):d.selection,l=new Ar(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(t,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let c=0;cNne&&(s=Cne(s,u),a-=u),new Ar(s.append(o),a)}remapping(t,n){let r=new Ws;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=t?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},t,n),r}addMaps(t){return this.eventCount==0?this:new Ar(this.items.append(t.map(n=>new qr(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=t.mapping,a=t.steps.length,s=this.eventCount;this.items.forEach(f=>{f.selection&&s--},i);let l=n;this.items.forEach(f=>{let p=o.getMirror(--l);if(p==null)return;a=Math.min(a,p);let h=o.maps[p];if(f.step){let m=t.steps[p].invert(t.docs[p]),y=f.selection&&f.selection.map(o.slice(l+1,p));y&&s++,r.push(new qr(h,m,y))}else r.push(new qr(h))},i);let u=[];for(let f=n;f_ne&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=t)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=a.selection&&a.selection.map(n.slice(r));c&&o++;let d=new qr(u.invert(),l,c),f,p=i.length-1;(f=i.length&&i[p].merge(d))?i[p]=f:i.push(d)}}else a.map&&r--},this.items.length,0),new Ar(Bt.from(i.reverse()),o)}}Ar.empty=new Ar(Bt.empty,0);function Cne(e,t){let n;return e.forEach((r,i)=>{if(r.selection&&t--==0)return n=i,!1}),e.slice(n)}class qr{constructor(t,n,r,i){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=i}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new qr(n.getMap().invert(),n,this.selection)}}}class ro{constructor(t,n,r,i,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const Nne=20;function Ane(e,t,n,r){let i=n.getMeta(Ca),o;if(i)return i.historyState;n.getMeta(Rne)&&(e=new ro(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(Ca))return a.getMeta(Ca).redo?new ro(e.done.addTransform(n,void 0,r,df(t)),e.undone,Aw(n.mapping.maps),e.prevTime,e.prevComposition):new ro(e.done,e.undone.addTransform(n,void 0,r,df(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=e.prevTime==0||!a&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!One(n,e.prevRanges)),u=a?t0(e.prevRanges,n.mapping):Aw(n.mapping.maps);return new ro(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,df(t)),Ar.empty,u,n.time,s??e.prevComposition)}else return(o=n.getMeta("rebased"))?new ro(e.done.rebased(n,o),e.undone.rebased(n,o),t0(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new ro(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),t0(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function One(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,i)=>{for(let o=0;o=t[o]&&(n=!0)}),n}function Aw(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((r,i,o,a)=>t.push(o,a));return t}function t0(e,t){if(!e)return null;let n=[];for(let r=0;r{let i=Ca.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let o=Ine(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}const p3=f3(!1,!0),h3=f3(!0,!0),Dne=bn.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>p3(e,t),redo:()=>({state:e,dispatch:t})=>h3(e,t)}},addProseMirrorPlugins(){return[Mne(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Lne=kr.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",Nt(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{const{selection:n}=t,{$from:r,$to:i}=n,o=e();return r.parentOffset===0?o.insertContentAt({from:Math.max(r.pos-1,0),to:i.pos},{type:this.name}):Zee(n)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({tr:a,dispatch:s})=>{var l;if(s){const{$to:u}=a.selection,c=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?a.setSelection(ve.create(a.doc,u.pos+1)):u.nodeAfter.isBlock?a.setSelection(me.create(a.doc,u.pos)):a.setSelection(ve.create(a.doc,u.pos));else{const d=(l=u.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();d&&(a.insert(c,d),a.setSelection(ve.create(a.doc,c+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[s3({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Pne=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Bne=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,zne=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Fne=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Hne=si.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ja({find:Pne,type:this.type}),ja({find:zne,type:this.type})]},addPasteRules(){return[Bo({find:Bne,type:this.type}),Bo({find:Fne,type:this.type})]}}),Une=kr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",Nt(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),jne="listItem",Iw="textStyle",Rw=/^(\d+)\.\s$/,$ne=kr.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",Nt(this.options.HTMLAttributes,n),0]:["ol",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(jne,this.editor.getAttributes(Iw)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=cc({find:Rw,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=cc({find:Rw,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(Iw)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),Wne=kr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Vne=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,qne=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Yne=si.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ja({find:Vne,type:this.type})]},addPasteRules(){return[Bo({find:qne,type:this.type})]}}),Kne=kr.create({name:"text",group:"inline"}),Gne=bn.create({name:"starterKit",addExtensions(){var e,t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,y,b;const E=[];return this.options.bold!==!1&&E.push(rne.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.blockquote!==!1&&E.push(Jte.configure((t=this.options)===null||t===void 0?void 0:t.blockquote)),this.options.bulletList!==!1&&E.push(one.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&E.push(lne.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&E.push(c3.configure((i=this.options)===null||i===void 0?void 0:i.codeBlock)),this.options.document!==!1&&E.push(dne.configure((o=this.options)===null||o===void 0?void 0:o.document)),this.options.dropcursor!==!1&&E.push(hne.configure((a=this.options)===null||a===void 0?void 0:a.dropcursor)),this.options.gapcursor!==!1&&E.push(kne.configure((s=this.options)===null||s===void 0?void 0:s.gapcursor)),this.options.hardBreak!==!1&&E.push(xne.configure((l=this.options)===null||l===void 0?void 0:l.hardBreak)),this.options.heading!==!1&&E.push(Sne.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&E.push(Dne.configure((c=this.options)===null||c===void 0?void 0:c.history)),this.options.horizontalRule!==!1&&E.push(Lne.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&E.push(Hne.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&E.push(Une.configure((p=this.options)===null||p===void 0?void 0:p.listItem)),this.options.orderedList!==!1&&E.push($ne.configure((h=this.options)===null||h===void 0?void 0:h.orderedList)),this.options.paragraph!==!1&&E.push(Wne.configure((m=this.options)===null||m===void 0?void 0:m.paragraph)),this.options.strike!==!1&&E.push(Yne.configure((y=this.options)===null||y===void 0?void 0:y.strike)),this.options.text!==!1&&E.push(Kne.configure((b=this.options)===null||b===void 0?void 0:b.text)),E}}),Qne="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Xne="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",pl=(e,t)=>{for(const n in t)e[n]=t[n];return e},ly="numeric",uy="ascii",cy="alpha",ff="asciinumeric",Dd="alphanumeric",dy="domain",m3="emoji",Jne="scheme",Zne="slashscheme",Mw="whitespace";function ere(e,t){return e in t||(t[e]=[]),t[e]}function ma(e,t,n){t[ly]&&(t[ff]=!0,t[Dd]=!0),t[uy]&&(t[ff]=!0,t[cy]=!0),t[ff]&&(t[Dd]=!0),t[cy]&&(t[Dd]=!0),t[Dd]&&(t[dy]=!0),t[m3]&&(t[dy]=!0);for(const r in t){const i=ere(r,n);i.indexOf(e)<0&&i.push(e)}}function tre(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function wn(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}wn.groups={};wn.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;re.ta(t,n,r,i),Zn=(e,t,n,r,i)=>e.tr(t,n,r,i),Dw=(e,t,n,r,i)=>e.ts(t,n,r,i),oe=(e,t,n,r,i)=>e.tt(t,n,r,i),bi="WORD",fy="UWORD",dc="LOCALHOST",py="TLD",hy="UTLD",pf="SCHEME",Es="SLASH_SCHEME",Ev="NUM",g3="WS",vv="NL",_u="OPENBRACE",Cu="CLOSEBRACE",yp="OPENBRACKET",Ep="CLOSEBRACKET",vp="OPENPAREN",Tp="CLOSEPAREN",kp="OPENANGLEBRACKET",xp="CLOSEANGLEBRACKET",Sp="FULLWIDTHLEFTPAREN",wp="FULLWIDTHRIGHTPAREN",_p="LEFTCORNERBRACKET",Cp="RIGHTCORNERBRACKET",Np="LEFTWHITECORNERBRACKET",Ap="RIGHTWHITECORNERBRACKET",Op="FULLWIDTHLESSTHAN",Ip="FULLWIDTHGREATERTHAN",Rp="AMPERSAND",Mp="APOSTROPHE",Dp="ASTERISK",io="AT",Lp="BACKSLASH",Pp="BACKTICK",Bp="CARET",uo="COLON",Tv="COMMA",zp="DOLLAR",Yr="DOT",Fp="EQUALS",kv="EXCLAMATION",Kr="HYPHEN",Hp="PERCENT",Up="PIPE",jp="PLUS",$p="POUND",Wp="QUERY",xv="QUOTE",Sv="SEMI",Gr="SLASH",Nu="TILDE",Vp="UNDERSCORE",b3="EMOJI",qp="SYM";var y3=Object.freeze({__proto__:null,WORD:bi,UWORD:fy,LOCALHOST:dc,TLD:py,UTLD:hy,SCHEME:pf,SLASH_SCHEME:Es,NUM:Ev,WS:g3,NL:vv,OPENBRACE:_u,CLOSEBRACE:Cu,OPENBRACKET:yp,CLOSEBRACKET:Ep,OPENPAREN:vp,CLOSEPAREN:Tp,OPENANGLEBRACKET:kp,CLOSEANGLEBRACKET:xp,FULLWIDTHLEFTPAREN:Sp,FULLWIDTHRIGHTPAREN:wp,LEFTCORNERBRACKET:_p,RIGHTCORNERBRACKET:Cp,LEFTWHITECORNERBRACKET:Np,RIGHTWHITECORNERBRACKET:Ap,FULLWIDTHLESSTHAN:Op,FULLWIDTHGREATERTHAN:Ip,AMPERSAND:Rp,APOSTROPHE:Mp,ASTERISK:Dp,AT:io,BACKSLASH:Lp,BACKTICK:Pp,CARET:Bp,COLON:uo,COMMA:Tv,DOLLAR:zp,DOT:Yr,EQUALS:Fp,EXCLAMATION:kv,HYPHEN:Kr,PERCENT:Hp,PIPE:Up,PLUS:jp,POUND:$p,QUERY:Wp,QUOTE:xv,SEMI:Sv,SLASH:Gr,TILDE:Nu,UNDERSCORE:Vp,EMOJI:b3,SYM:qp});const fs=/[a-z]/,r0=new RegExp("\\p{L}","u"),i0=new RegExp("\\p{Emoji}","u"),o0=/\d/,Lw=/\s/,Pw=` +`,nre="️",rre="‍";let Ld=null,Pd=null;function ire(e){e===void 0&&(e=[]);const t={};wn.groups=t;const n=new wn;Ld==null&&(Ld=Bw(Qne)),Pd==null&&(Pd=Bw(Xne)),oe(n,"'",Mp),oe(n,"{",_u),oe(n,"}",Cu),oe(n,"[",yp),oe(n,"]",Ep),oe(n,"(",vp),oe(n,")",Tp),oe(n,"<",kp),oe(n,">",xp),oe(n,"(",Sp),oe(n,")",wp),oe(n,"「",_p),oe(n,"」",Cp),oe(n,"『",Np),oe(n,"』",Ap),oe(n,"<",Op),oe(n,">",Ip),oe(n,"&",Rp),oe(n,"*",Dp),oe(n,"@",io),oe(n,"`",Pp),oe(n,"^",Bp),oe(n,":",uo),oe(n,",",Tv),oe(n,"$",zp),oe(n,".",Yr),oe(n,"=",Fp),oe(n,"!",kv),oe(n,"-",Kr),oe(n,"%",Hp),oe(n,"|",Up),oe(n,"+",jp),oe(n,"#",$p),oe(n,"?",Wp),oe(n,'"',xv),oe(n,"/",Gr),oe(n,";",Sv),oe(n,"~",Nu),oe(n,"_",Vp),oe(n,"\\",Lp);const r=Zn(n,o0,Ev,{[ly]:!0});Zn(r,o0,r);const i=Zn(n,fs,bi,{[uy]:!0});Zn(i,fs,i);const o=Zn(n,r0,fy,{[cy]:!0});Zn(o,fs),Zn(o,r0,o);const a=Zn(n,Lw,g3,{[Mw]:!0});oe(n,Pw,vv,{[Mw]:!0}),oe(a,Pw),Zn(a,Lw,a);const s=Zn(n,i0,b3,{[m3]:!0});Zn(s,i0,s),oe(s,nre,s);const l=oe(s,rre);Zn(l,i0,s);const u=[[fs,i]],c=[[fs,null],[r0,o]];for(let d=0;dd[0]>f[0]?1:-1);for(let d=0;d=0?h[dy]=!0:fs.test(f)?o0.test(f)?h[ff]=!0:h[uy]=!0:h[ly]=!0,Dw(n,f,f,h)}return Dw(n,"localhost",dc,{ascii:!0}),n.jd=new wn(qp),{start:n,tokens:pl({groups:t},y3)}}function ore(e,t){const n=are(t.replace(/[A-Z]/g,s=>s.toLowerCase())),r=n.length,i=[];let o=0,a=0;for(;a=0&&(d+=n[a].length,f++),u+=n[a].length,o+=n[a].length,a++;o-=d,a-=f,u-=d,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}function are(e){const t=[],n=e.length;let r=0;for(;r56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}function Vi(e,t,n,r,i){let o;const a=t.length;for(let s=0;s=0;)o++;if(o>0){t.push(n.join(""));for(let a=parseInt(e.substring(r,r+o),10);a>0;a--)n.pop();r+=o}else n.push(e[r]),r++}return t}const fc={defaultProtocol:"http",events:null,format:zw,formatHref:zw,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function wv(e,t){t===void 0&&(t=null);let n=pl({},fc);e&&(n=pl(n,e instanceof wv?e.o:e));const r=n.ignoreTags,i=[];for(let o=0;on?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=fc.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),a={},s=e.get("className",n,t),l=e.get("target",n,t),u=e.get("rel",n,t),c=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return a.href=r,s&&(a.class=s),l&&(a.target=l),u&&(a.rel=u),c&&pl(a,c),{tagName:i,attributes:a,content:o,eventListeners:d}}};function ym(e,t){class n extends E3{constructor(i,o){super(i,o),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const Fw=ym("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Hw=ym("text"),sre=ym("nl"),Bd=ym("url",{isLink:!0,toHref(e){return e===void 0&&(e=fc.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==dc&&e[1].t===uo}}),er=e=>new wn(e);function lre(e){let{groups:t}=e;const n=t.domain.concat([Rp,Dp,io,Lp,Pp,Bp,zp,Fp,Kr,Ev,Hp,Up,jp,$p,Gr,qp,Nu,Vp]),r=[Mp,uo,Tv,Yr,kv,Wp,xv,Sv,kp,xp,_u,Cu,Ep,yp,vp,Tp,Sp,wp,_p,Cp,Np,Ap,Op,Ip],i=[Rp,Mp,Dp,Lp,Pp,Bp,zp,Fp,Kr,_u,Cu,Hp,Up,jp,$p,Wp,Gr,qp,Nu,Vp],o=er(),a=oe(o,Nu);xe(a,i,a),xe(a,t.domain,a);const s=er(),l=er(),u=er();xe(o,t.domain,s),xe(o,t.scheme,l),xe(o,t.slashscheme,u),xe(s,i,a),xe(s,t.domain,s);const c=oe(s,io);oe(a,io,c),oe(l,io,c),oe(u,io,c);const d=oe(a,Yr);xe(d,i,a),xe(d,t.domain,a);const f=er();xe(c,t.domain,f),xe(f,t.domain,f);const p=oe(f,Yr);xe(p,t.domain,f);const h=er(Fw);xe(p,t.tld,h),xe(p,t.utld,h),oe(c,dc,h);const m=oe(f,Kr);xe(m,t.domain,f),xe(h,t.domain,f),oe(h,Yr,p),oe(h,Kr,m);const y=oe(h,uo);xe(y,t.numeric,Fw);const b=oe(s,Kr),E=oe(s,Yr);xe(b,t.domain,s),xe(E,i,a),xe(E,t.domain,s);const v=er(Bd);xe(E,t.tld,v),xe(E,t.utld,v),xe(v,t.domain,s),xe(v,i,a),oe(v,Yr,E),oe(v,Kr,b),oe(v,io,c);const k=oe(v,uo),_=er(Bd);xe(k,t.numeric,_);const x=er(Bd),I=er();xe(x,n,x),xe(x,r,I),xe(I,n,x),xe(I,r,I),oe(v,Gr,x),oe(_,Gr,x);const R=oe(l,uo),z=oe(u,uo),A=oe(z,Gr),j=oe(A,Gr);xe(l,t.domain,s),oe(l,Yr,E),oe(l,Kr,b),xe(u,t.domain,s),oe(u,Yr,E),oe(u,Kr,b),xe(R,t.domain,x),oe(R,Gr,x),xe(j,t.domain,x),xe(j,n,x),oe(j,Gr,x);const L=[[_u,Cu],[yp,Ep],[vp,Tp],[kp,xp],[Sp,wp],[_p,Cp],[Np,Ap],[Op,Ip]];for(let U=0;U=0&&f++,i++,c++;if(f<0)i-=c,i0&&(o.push(a0(Hw,t,a)),a=[]),i-=f,c-=f;const p=d.t,h=n.slice(i-c,i);o.push(a0(p,t,h))}}return a.length>0&&o.push(a0(Hw,t,a)),o}function a0(e,t,n){const r=n[0].s,i=n[n.length-1].e,o=t.slice(r,i);return new e(o,n)}const cre=typeof console<"u"&&console&&console.warn||(()=>{}),dre="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",st={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function fre(){wn.groups={},st.scanner=null,st.parser=null,st.tokenQueue=[],st.pluginQueue=[],st.customSchemes=[],st.initialized=!1}function Uw(e,t){if(t===void 0&&(t=!1),st.initialized&&cre(`linkifyjs: already initialized - will not register custom scheme "${e}" ${dre}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format. +1. Must only contain digits, lowercase ASCII letters or "-" +2. Cannot start or end with "-" +3. "-" cannot repeat`);st.customSchemes.push([e,t])}function pre(){st.scanner=ire(st.customSchemes);for(let e=0;e{const i=t.some(u=>u.docChanged)&&!n.doc.eq(r.doc),o=t.some(u=>u.getMeta("preventAutolink"));if(!i||o)return;const{tr:a}=r,s=jee(n.doc,[...t]);if(Xee(s).forEach(({newRange:u})=>{const c=Wee(r.doc,u,p=>p.isTextblock);let d,f;if(c.length>1?(d=c[0],f=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):c.length&&r.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(d=c[0],f=r.doc.textBetween(d.pos,u.to,void 0," ")),d&&f){const p=f.split(" ").filter(b=>b!=="");if(p.length<=0)return!1;const h=p[p.length-1],m=d.pos+f.lastIndexOf(h);if(!h)return!1;const y=v3(h).map(b=>b.toObject(e.defaultProtocol));if(!hre(y))return!1;y.filter(b=>b.isLink).map(b=>({...b,from:m+b.start+1,to:m+b.end+1})).filter(b=>r.schema.marks.code?!r.doc.rangeHasMark(b.from,b.to,r.schema.marks.code):!0).filter(b=>e.validate(b.value)).forEach(b=>{mv(b.from,b.to,r.doc).some(E=>E.mark.type===e.type)||a.addMark(b.from,b.to,e.type.create({href:b.href}))})}}),!!a.steps.length)return a}})}function gre(e){return new Qt({key:new Xn("handleClickLink"),props:{handleClick:(t,n,r)=>{var i,o;if(r.button!==0||!t.editable)return!1;let a=r.target;const s=[];for(;a.nodeName!=="DIV";)s.push(a),a=a.parentNode;if(!s.find(f=>f.nodeName==="A"))return!1;const l=a3(t.state,e.type.name),u=r.target,c=(i=u==null?void 0:u.href)!==null&&i!==void 0?i:l.href,d=(o=u==null?void 0:u.target)!==null&&o!==void 0?o:l.target;return u&&c?(window.open(c,d),!0):!1}}})}function bre(e){return new Qt({key:new Xn("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{state:i}=t,{selection:o}=i,{empty:a}=o;if(a)return!1;let s="";r.content.forEach(u=>{s+=u.textContent});const l=T3(s,{defaultProtocol:e.defaultProtocol}).find(u=>u.isLink&&u.value===s);return!s||!l?!1:(e.editor.commands.setMark(e.type,{href:l.href}),!0)}}})}const yre=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function jw(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!e||e.replace(yre,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Ere=si.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(e=>{if(typeof e=="string"){Uw(e);return}Uw(e.scheme,e.optionalSlashes)})},onDestroy(){fre()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!jw(t,this.options.protocols)?!1:null}}]},renderHTML({HTMLAttributes:e}){return jw(e.href,this.options.protocols)?["a",Nt(this.options.HTMLAttributes,e),0]:["a",Nt(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Bo({find:e=>{const t=[];if(e){const{validate:n}=this.options,r=T3(e).filter(i=>i.isLink&&n(i.value));r.length&&r.forEach(i=>t.push({text:i.value,data:{href:i.href},index:i.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)===null||t===void 0?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[];return this.options.autolink&&e.push(mre({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&e.push(gre({type:this.type})),this.options.linkOnPaste&&e.push(bre({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),vre=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Tre=kr.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",Nt(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[s3({find:vre,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}),kre=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,xre=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,Sre=si.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:e}){return["mark",Nt(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ja({find:kre,type:this.type})]},addPasteRules(){return[Bo({find:xre,type:this.type})]}});function wre({content:e,onChange:t}){const n=Yte({extensions:[Gne,Ere.configure({openOnClick:!1}),Tre,c3,Sre],content:e,onUpdate:({editor:r})=>{t(r.getHTML())}});return n?T.jsxs(se,{style:{display:"flex",flexDirection:"column",height:"100%"},children:[T.jsxs(it,{mb:"xs",wrap:"nowrap",children:[T.jsx(Qe,{label:"Bold",children:T.jsx(ze,{variant:n.isActive("bold")?"filled":"subtle",onClick:()=>n.chain().focus().toggleBold().run(),children:T.jsx(eF,{size:16})})}),T.jsx(Qe,{label:"Italic",children:T.jsx(ze,{variant:n.isActive("italic")?"filled":"subtle",onClick:()=>n.chain().focus().toggleItalic().run(),children:T.jsx(cF,{size:16})})}),T.jsx(Qe,{label:"Heading 1",children:T.jsx(ze,{variant:n.isActive("heading",{level:1})?"filled":"subtle",onClick:()=>n.chain().focus().toggleHeading({level:1}).run(),children:T.jsx(sF,{size:16})})}),T.jsx(Qe,{label:"Heading 2",children:T.jsx(ze,{variant:n.isActive("heading",{level:2})?"filled":"subtle",onClick:()=>n.chain().focus().toggleHeading({level:2}).run(),children:T.jsx(lF,{size:16})})}),T.jsx(Qe,{label:"Heading 3",children:T.jsx(ze,{variant:n.isActive("heading",{level:3})?"filled":"subtle",onClick:()=>n.chain().focus().toggleHeading({level:3}).run(),children:T.jsx(uF,{size:16})})}),T.jsx(Qe,{label:"Bullet List",children:T.jsx(ze,{variant:n.isActive("bulletList")?"filled":"subtle",onClick:()=>n.chain().focus().toggleBulletList().run(),children:T.jsx(fF,{size:16})})}),T.jsx(Qe,{label:"Numbered List",children:T.jsx(ze,{variant:n.isActive("orderedList")?"filled":"subtle",onClick:()=>n.chain().focus().toggleOrderedList().run(),children:T.jsx(dF,{size:16})})}),T.jsx(Qe,{label:"Blockquote",children:T.jsx(ze,{variant:n.isActive("blockquote")?"filled":"subtle",onClick:()=>n.chain().focus().toggleBlockquote().run(),children:T.jsx(pF,{size:16})})}),T.jsx(Qe,{label:"Code Block",children:T.jsx(ze,{variant:n.isActive("codeBlock")?"filled":"subtle",onClick:()=>n.chain().focus().toggleCodeBlock().run(),children:T.jsx(oF,{size:16})})}),T.jsx(Qe,{label:"Clear Formatting",children:T.jsx(ze,{variant:"subtle",onClick:()=>n.chain().focus().clearNodes().unsetAllMarks().run(),children:T.jsx(iF,{size:16})})})]}),T.jsx(se,{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",border:"1px solid var(--mantine-color-gray-3)",borderRadius:"var(--mantine-radius-md)",padding:"1rem",overflow:"auto",minHeight:0},children:T.jsx(Bte,{editor:n,style:{flex:"1 1 auto",display:"flex",flexDirection:"column",height:"100%"}})})]}):null}function _re({content:e}){const t=e.trim()?e.trim().split(/\s+/).length:0,n=e.length,r=Math.ceil(t/200);return T.jsxs(it,{gap:"xs",children:[T.jsxs(qt,{size:"xs",c:"dimmed",children:[t," words"]}),T.jsx(qt,{size:"xs",c:"dimmed",children:"·"}),T.jsxs(qt,{size:"xs",c:"dimmed",children:[n," characters"]}),T.jsx(qt,{size:"xs",c:"dimmed",children:"·"}),T.jsxs(qt,{size:"xs",c:"dimmed",children:[r," min read"]})]})}function Cre({content:e,onChange:t,isMobile:n,defaultView:r="edit",editorType:i="markdown"}){const[o,a]=S.useState(n?"edit":r),[s,l]=S.useState(i),u=()=>s==="richtext"?T.jsx(wre,{content:e,onChange:t}):T.jsx(bE,{value:e,onChange:f=>t(f.currentTarget.value),styles:{root:{height:"100%"},wrapper:{height:"100%"},input:{height:"100%",padding:"1rem",fontSize:n?"16px":void 0,borderRadius:"var(--mantine-radius-md)",border:"1px solid var(--mantine-color-gray-3)",backgroundColor:"var(--mantine-color-body)",transition:"border-color 100ms ease","&:focus":{borderColor:"var(--mantine-color-blue-filled)",outline:"none"},"&:hover":{borderColor:"var(--mantine-color-gray-5)"}}}}),c=()=>T.jsx(se,{className:"markdown-preview",p:"md",style:{height:"100%",overflow:"auto"},children:T.jsx(Rj,{remarkPlugins:[$W],rehypePlugins:[tK,CQ],children:e})}),d=()=>{if(n)return o==="edit"?u():c();switch(o){case"preview":return c();case"split":return T.jsxs(it,{grow:!0,style:{height:"100%"},children:[u(),c()]});default:return u()}};return T.jsxs(se,{style:{height:"100%",display:"flex",flexDirection:"column"},children:[T.jsxs(it,{justify:"space-between",mb:"xs",children:[T.jsx(_re,{content:e}),T.jsx(it,{children:n?T.jsx(ze,{variant:o==="edit"?"filled":"subtle",onClick:()=>a(o==="edit"?"preview":"edit"),children:o==="edit"?T.jsx(Fk,{size:16}):T.jsx(zk,{size:16})}):T.jsxs(T.Fragment,{children:[T.jsx(Qe,{label:"Markdown",children:T.jsx(ze,{variant:s==="markdown"&&o==="edit"?"filled":"subtle",onClick:()=>{l("markdown"),a("edit")},children:T.jsx(zk,{size:16})})}),T.jsx(Qe,{label:"Rich Text",children:T.jsx(ze,{variant:s==="richtext"&&o==="edit"?"filled":"subtle",onClick:()=>{l("richtext"),a("edit")},children:T.jsx(hF,{size:16})})}),T.jsx(Qe,{label:"Preview",children:T.jsx(ze,{variant:o==="preview"?"filled":"subtle",onClick:()=>a("preview"),children:T.jsx(Fk,{size:16})})}),T.jsx(Qe,{label:"Split View",children:T.jsx(ze,{variant:o==="split"?"filled":"subtle",onClick:()=>a("split"),children:T.jsx(aF,{size:16})})})]})})]}),d()]})}function Nre(e){let t=e,n=!1;const r=new Set;return{getState(){return t},updateState(i){t=typeof i=="function"?i(t):i},setState(i){this.updateState(i),r.forEach(o=>o(t))},initialize(i){n||(t=i,n=!0)},subscribe(i){return r.add(i),()=>r.delete(i)}}}function Are(e,t,n){const r=[],i=[],o={};for(const a of e){const s=a.position||t;o[s]=o[s]||0,o[s]+=1,o[s]<=n?i.push(a):r.push(a)}return{notifications:i,queue:r}}const Ore=()=>Nre({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),Wc=Ore();function Ol(e,t){const n=e.getState(),r=t([...n.notifications,...n.queue]),i=Are(r,n.defaultPosition,n.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function Ire(e,t=Wc){const n=e.id||g1();return Ol(t,r=>e.id&&r.some(i=>i.id===e.id)?r:[...r,{...e,id:n}]),n}function Rre(e,t=Wc){return Ol(t,n=>n.filter(r=>{var i;return r.id===e?((i=r.onClose)==null||i.call(r,r),!1):!0})),e}function Mre(e,t=Wc){return Ol(t,n=>n.map(r=>r.id===e.id?{...r,...e}:r)),e.id}function Dre(e=Wc){Ol(e,()=>[])}function Lre(e=Wc){Ol(e,t=>t.slice(0,e.getState().limit))}const Qr={show:Ire,hide:Rre,update:Mre,clean:Dre,cleanQueue:Lre,updateState:Ol};var fi={},Oo={},Ci={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.isBytes=x3;Jn.number=Yp;Jn.bool=k3;Jn.bytes=_v;Jn.hash=S3;Jn.exists=w3;Jn.output=_3;function Yp(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}function k3(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}function x3(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function _v(e,...t){if(!x3(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function S3(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Yp(e.outputLen),Yp(e.blockLen)}function w3(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function _3(e,t){_v(e);const n=t.outputLen;if(e.lengthnew Uint8Array(L.buffer,L.byteOffset,L.byteLength);e.u8=i;const o=L=>new Uint32Array(L.buffer,L.byteOffset,Math.floor(L.byteLength/4));e.u32=o;const a=L=>new DataView(L.buffer,L.byteOffset,L.byteLength);e.createView=a;const s=(L,U)=>L<<32-U|L>>>U;e.rotr=s;const l=(L,U)=>L<>>32-U>>>0;e.rotl=l,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const u=L=>L<<24&4278190080|L<<8&16711680|L>>>8&65280|L>>>24&255;e.byteSwap=u,e.byteSwapIfBE=e.isLE?L=>L:L=>(0,e.byteSwap)(L);function c(L){for(let U=0;UU.toString(16).padStart(2,"0"));function f(L){(0,n.bytes)(L);let U="";for(let V=0;V=p._0&&L<=p._9)return L-p._0;if(L>=p._A&&L<=p._F)return L-(p._A-10);if(L>=p._a&&L<=p._f)return L-(p._a-10)}function m(L){if(typeof L!="string")throw new Error("hex string expected, got "+typeof L);const U=L.length,V=U/2;if(U%2)throw new Error("padded hex string expected, got unpadded hex of length "+U);const H=new Uint8Array(V);for(let B=0,M=0;B{};e.nextTick=y;async function b(L,U,V){let H=Date.now();for(let B=0;B=0&&ML().update(v(H)).digest(),V=L();return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=()=>L(),U}function z(L){const U=(H,B)=>L(B).update(v(H)).digest(),V=L({});return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=H=>L(H),U}function A(L){const U=(H,B)=>L(B).update(v(H)).digest(),V=L({});return U.outputLen=V.outputLen,U.blockLen=V.blockLen,U.create=H=>L(H),U}function j(L=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(L));if(t.crypto&&typeof t.crypto.randomBytes=="function")return t.crypto.randomBytes(L);throw new Error("crypto.getRandomValues must be defined")}})(Ja);Object.defineProperty(Ci,"__esModule",{value:!0});Ci.HashMD=Ci.Maj=Ci.Chi=void 0;const s0=Jn,Ql=Ja;function Bre(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),a=Number(n>>i&o),s=Number(n&o),l=r?4:0,u=r?0:4;e.setUint32(t+l,a,r),e.setUint32(t+u,s,r)}const zre=(e,t,n)=>e&t^~e&n;Ci.Chi=zre;const Fre=(e,t,n)=>e&t^e&n^t&n;Ci.Maj=Fre;class Hre extends Ql.Hash{constructor(t,n,r,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,Ql.createView)(this.buffer)}update(t){(0,s0.exists)(this);const{view:n,buffer:r,blockLen:i}=this;t=(0,Ql.toBytes)(t);const o=t.length;for(let a=0;ai-a&&(this.process(r,0),a=0);for(let d=a;dc.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d>>3,m=(0,tr.rotr)(p,17)^(0,tr.rotr)(p,19)^p>>>10;Yi[d]=m+Yi[d-7]+h+Yi[d-16]|0}let{A:r,B:i,C:o,D:a,E:s,F:l,G:u,H:c}=this;for(let d=0;d<64;d++){const f=(0,tr.rotr)(s,6)^(0,tr.rotr)(s,11)^(0,tr.rotr)(s,25),p=c+f+(0,l0.Chi)(s,l,u)+Ure[d]+Yi[d]|0,m=((0,tr.rotr)(r,2)^(0,tr.rotr)(r,13)^(0,tr.rotr)(r,22))+(0,l0.Maj)(r,i,o)|0;c=u,u=l,l=s,s=a+p|0,a=o,o=i,i=r,r=p+m|0}r=r+this.A|0,i=i+this.B|0,o=o+this.C|0,a=a+this.D|0,s=s+this.E|0,l=l+this.F|0,u=u+this.G|0,c=c+this.H|0,this.set(r,i,o,a,s,l,u,c)}roundClean(){Yi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}Oo.SHA256=Cv;class jre extends Cv{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}Oo.sha256=(0,tr.wrapConstructor)(()=>new Cv);Oo.sha224=(0,tr.wrapConstructor)(()=>new jre);var It={},Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.add5L=Ee.add5H=Ee.add4H=Ee.add4L=Ee.add3H=Ee.add3L=Ee.rotlBL=Ee.rotlBH=Ee.rotlSL=Ee.rotlSH=Ee.rotr32L=Ee.rotr32H=Ee.rotrBL=Ee.rotrBH=Ee.rotrSL=Ee.rotrSH=Ee.shrSL=Ee.shrSH=Ee.toBig=void 0;Ee.fromBig=Nv;Ee.split=C3;Ee.add=U3;const zd=BigInt(2**32-1),my=BigInt(32);function Nv(e,t=!1){return t?{h:Number(e&zd),l:Number(e>>my&zd)}:{h:Number(e>>my&zd)|0,l:Number(e&zd)|0}}function C3(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);Ee.toBig=N3;const A3=(e,t,n)=>e>>>n;Ee.shrSH=A3;const O3=(e,t,n)=>e<<32-n|t>>>n;Ee.shrSL=O3;const I3=(e,t,n)=>e>>>n|t<<32-n;Ee.rotrSH=I3;const R3=(e,t,n)=>e<<32-n|t>>>n;Ee.rotrSL=R3;const M3=(e,t,n)=>e<<64-n|t>>>n-32;Ee.rotrBH=M3;const D3=(e,t,n)=>e>>>n-32|t<<64-n;Ee.rotrBL=D3;const L3=(e,t)=>t;Ee.rotr32H=L3;const P3=(e,t)=>e;Ee.rotr32L=P3;const B3=(e,t,n)=>e<>>32-n;Ee.rotlSH=B3;const z3=(e,t,n)=>t<>>32-n;Ee.rotlSL=z3;const F3=(e,t,n)=>t<>>64-n;Ee.rotlBH=F3;const H3=(e,t,n)=>e<>>64-n;Ee.rotlBL=H3;function U3(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}const j3=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);Ee.add3L=j3;const $3=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;Ee.add3H=$3;const W3=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);Ee.add4L=W3;const V3=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;Ee.add4H=V3;const q3=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);Ee.add5L=q3;const Y3=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;Ee.add5H=Y3;const $re={fromBig:Nv,split:C3,toBig:N3,shrSH:A3,shrSL:O3,rotrSH:I3,rotrSL:R3,rotrBH:M3,rotrBL:D3,rotr32H:L3,rotr32L:P3,rotlSH:B3,rotlSL:z3,rotlBH:F3,rotlBL:H3,add:U3,add3L:j3,add3H:$3,add4L:W3,add4H:V3,add5H:Y3,add5L:q3};Ee.default=$re;Object.defineProperty(It,"__esModule",{value:!0});It.sha384=It.sha512_256=It.sha512_224=It.sha512=It.SHA384=It.SHA512_256=It.SHA512_224=It.SHA512=void 0;const Wre=Ci,Se=Ee,vm=Ja,[Vre,qre]=Se.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Ki=new Uint32Array(80),Gi=new Uint32Array(80);class Vc extends Wre.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:n,Bh:r,Bl:i,Ch:o,Cl:a,Dh:s,Dl:l,Eh:u,El:c,Fh:d,Fl:f,Gh:p,Gl:h,Hh:m,Hl:y}=this;return[t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,y]}set(t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,y){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=o|0,this.Cl=a|0,this.Dh=s|0,this.Dl=l|0,this.Eh=u|0,this.El=c|0,this.Fh=d|0,this.Fl=f|0,this.Gh=p|0,this.Gl=h|0,this.Hh=m|0,this.Hl=y|0}process(t,n){for(let v=0;v<16;v++,n+=4)Ki[v]=t.getUint32(n),Gi[v]=t.getUint32(n+=4);for(let v=16;v<80;v++){const k=Ki[v-15]|0,_=Gi[v-15]|0,x=Se.default.rotrSH(k,_,1)^Se.default.rotrSH(k,_,8)^Se.default.shrSH(k,_,7),I=Se.default.rotrSL(k,_,1)^Se.default.rotrSL(k,_,8)^Se.default.shrSL(k,_,7),R=Ki[v-2]|0,z=Gi[v-2]|0,A=Se.default.rotrSH(R,z,19)^Se.default.rotrBH(R,z,61)^Se.default.shrSH(R,z,6),j=Se.default.rotrSL(R,z,19)^Se.default.rotrBL(R,z,61)^Se.default.shrSL(R,z,6),L=Se.default.add4L(I,j,Gi[v-7],Gi[v-16]),U=Se.default.add4H(L,x,A,Ki[v-7],Ki[v-16]);Ki[v]=U|0,Gi[v]=L|0}let{Ah:r,Al:i,Bh:o,Bl:a,Ch:s,Cl:l,Dh:u,Dl:c,Eh:d,El:f,Fh:p,Fl:h,Gh:m,Gl:y,Hh:b,Hl:E}=this;for(let v=0;v<80;v++){const k=Se.default.rotrSH(d,f,14)^Se.default.rotrSH(d,f,18)^Se.default.rotrBH(d,f,41),_=Se.default.rotrSL(d,f,14)^Se.default.rotrSL(d,f,18)^Se.default.rotrBL(d,f,41),x=d&p^~d&m,I=f&h^~f&y,R=Se.default.add5L(E,_,I,qre[v],Gi[v]),z=Se.default.add5H(R,b,k,x,Vre[v],Ki[v]),A=R|0,j=Se.default.rotrSH(r,i,28)^Se.default.rotrBH(r,i,34)^Se.default.rotrBH(r,i,39),L=Se.default.rotrSL(r,i,28)^Se.default.rotrBL(r,i,34)^Se.default.rotrBL(r,i,39),U=r&o^r&s^o&s,V=i&a^i&l^a&l;b=m|0,E=y|0,m=p|0,y=h|0,p=d|0,h=f|0,{h:d,l:f}=Se.default.add(u|0,c|0,z|0,A|0),u=s|0,c=l|0,s=o|0,l=a|0,o=r|0,a=i|0;const H=Se.default.add3L(A,L,V);r=Se.default.add3H(H,z,j,U),i=H|0}({h:r,l:i}=Se.default.add(this.Ah|0,this.Al|0,r|0,i|0)),{h:o,l:a}=Se.default.add(this.Bh|0,this.Bl|0,o|0,a|0),{h:s,l}=Se.default.add(this.Ch|0,this.Cl|0,s|0,l|0),{h:u,l:c}=Se.default.add(this.Dh|0,this.Dl|0,u|0,c|0),{h:d,l:f}=Se.default.add(this.Eh|0,this.El|0,d|0,f|0),{h:p,l:h}=Se.default.add(this.Fh|0,this.Fl|0,p|0,h|0),{h:m,l:y}=Se.default.add(this.Gh|0,this.Gl|0,m|0,y|0),{h:b,l:E}=Se.default.add(this.Hh|0,this.Hl|0,b|0,E|0),this.set(r,i,o,a,s,l,u,c,d,f,p,h,m,y,b,E)}roundClean(){Ki.fill(0),Gi.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}It.SHA512=Vc;class K3 extends Vc{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}It.SHA512_224=K3;class G3 extends Vc{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}It.SHA512_256=G3;class Q3 extends Vc{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}It.SHA384=Q3;It.sha512=(0,vm.wrapConstructor)(()=>new Vc);It.sha512_224=(0,vm.wrapConstructor)(()=>new K3);It.sha512_256=(0,vm.wrapConstructor)(()=>new G3);It.sha384=(0,vm.wrapConstructor)(()=>new Q3);var Tm={},X3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const t=Jn,n=Ja;class r extends n.Hash{constructor(a,s){super(),this.finished=!1,this.destroyed=!1,(0,t.hash)(a);const l=(0,n.toBytes)(s);if(this.iHash=a.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const u=this.blockLen,c=new Uint8Array(u);c.set(l.length>u?a.create().update(l).digest():l);for(let d=0;dnew r(o,a).update(s).digest();e.hmac=i,e.hmac.create=(o,a)=>new r(o,a)})(X3);Object.defineProperty(Tm,"__esModule",{value:!0});Tm.pbkdf2=Kre;Tm.pbkdf2Async=Gre;const Fd=Jn,Yre=X3,Ks=Ja;function J3(e,t,n,r){(0,Fd.hash)(e);const i=(0,Ks.checkOpts)({dkLen:32,asyncTick:10},r),{c:o,dkLen:a,asyncTick:s}=i;if((0,Fd.number)(o),(0,Fd.number)(a),(0,Fd.number)(s),o<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=(0,Ks.toBytes)(t),u=(0,Ks.toBytes)(n),c=new Uint8Array(a),d=Yre.hmac.create(e,l),f=d._cloneInto().update(u);return{c:o,dkLen:a,asyncTick:s,DK:c,PRF:d,PRFSalt:f}}function Z3(e,t,n,r,i){return e.destroy(),t.destroy(),r&&r.destroy(),i.fill(0),n}function Kre(e,t,n,r){const{c:i,dkLen:o,DK:a,PRF:s,PRFSalt:l}=J3(e,t,n,r);let u;const c=new Uint8Array(4),d=(0,Ks.createView)(c),f=new Uint8Array(s.outputLen);for(let p=1,h=0;h{l._cloneInto(c).update(p).digestInto(p);for(let b=0;brM(t.toString(2),"0",8)).join("")}function aM(e){const n=e.length*8/32,r=aie.sha256(Uint8Array.from(e));return oM(Array.from(r)).slice(0,n)}function sM(e){return"mnemonic"+(e||"")}function uie(e,t){const n=Uint8Array.from(Buffer.from(hc(e),"utf8")),r=Uint8Array.from(Buffer.from(sM(hc(t)),"utf8")),i=tM.pbkdf2(eM.sha512,n,r,{c:2048,dkLen:64});return Buffer.from(i)}var cie=fi.mnemonicToSeedSync=uie;function die(e,t){const n=Uint8Array.from(Buffer.from(hc(e),"utf8")),r=Uint8Array.from(Buffer.from(sM(hc(t)),"utf8"));return tM.pbkdf2Async(eM.sha512,n,r,{c:2048,dkLen:64}).then(i=>Buffer.from(i))}fi.mnemonicToSeed=die;function lM(e,t){if(t=t||pc,!t)throw new Error(nM);const n=hc(e).split(" ");if(n.length%3!==0)throw new Error($w);const r=n.map(c=>{const d=t.indexOf(c);if(d===-1)throw new Error($w);return rM(d.toString(2),"0",11)}).join(""),i=Math.floor(r.length/33)*32,o=r.slice(0,i),a=r.slice(i),s=o.match(/(.{1,8})/g).map(iM);if(s.length<16)throw new Error(Na);if(s.length>32)throw new Error(Na);if(s.length%4!==0)throw new Error(Na);const l=Buffer.from(s);if(aM(l)!==a)throw new Error(lie);return l.toString("hex")}fi.mnemonicToEntropy=lM;function uM(e,t){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"hex")),t=t||pc,!t)throw new Error(nM);if(e.length<16)throw new TypeError(Na);if(e.length>32)throw new TypeError(Na);if(e.length%4!==0)throw new TypeError(Na);const n=oM(Array.from(e)),r=aM(e),a=(n+r).match(/(.{1,11})/g).map(s=>{const l=iM(s);return t[l]});return t[0]==="あいこくしん"?a.join(" "):a.join(" ")}fi.entropyToMnemonic=uM;function fie(e,t,n){if(e=e||128,e%32!==0)throw new TypeError(Na);return t=t||(r=>Buffer.from(sie.randomBytes(r))),uM(t(e/8),n)}fi.generateMnemonic=fie;function pie(e,t){try{lM(e,t)}catch{return!1}return!0}fi.validateMnemonic=pie;function hie(e){const t=Kp.wordlists[e];if(t)pc=t;else throw new Error('Could not find wordlist for language "'+e+'"')}fi.setDefaultWordlist=hie;function mie(){if(!pc)throw new Error("No Default Wordlist set");return Object.keys(Kp.wordlists).filter(e=>e==="JA"||e==="EN"?!1:Kp.wordlists[e].every((t,n)=>t===pc[n]))[0]}fi.getDefaultWordlist=mie;var gie=vn,bie=fi.wordlists=gie.wordlists;const Ww=bie.english;class qc{constructor(t,n,r){Jo(this,"encryptionKey");Jo(this,"signingKey",null);Jo(this,"verifyingKey",null);this.encryptionKey=t,this.signingKey=n,this.verifyingKey=r}static generateNewSeedPhrase(){try{const t=[];for(let n=0;n<12;n++){const r=new Uint8Array(2);crypto.getRandomValues(r);const i=(r[0]<<8|r[1])%Ww.length;t.push(Ww[i])}return t.join(" ")}catch(t){throw console.error("Failed to generate mnemonic:",t),new Error("Failed to generate seed phrase")}}static async new(t){const n=cie(t),r=new Uint8Array(n.slice(0,32)),i=await crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!0,["sign","verify"]),o=await crypto.subtle.digest("SHA-256",n);return localStorage.setItem("user_id",Qi.Buffer.from(o).toString("hex")),new qc(r,i.privateKey,i.publicKey)}async encryptNote(t){if(!t.id)throw new Error("Note must have an ID before encryption");const n=crypto.getRandomValues(new Uint8Array(12)),r=JSON.stringify({title:t.title,content:t.content,created_at:t.created_at,updated_at:t.updated_at,deleted:t.deleted}),i=await crypto.subtle.importKey("raw",this.encryptionKey,{name:"AES-GCM"},!1,["encrypt"]),o=await crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,new TextEncoder().encode(r)),a=await crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},this.signingKey,new Uint8Array(o));return{id:t.id.toString(16).padStart(16,"0"),data:Qi.Buffer.from(o).toString("base64"),nonce:Qi.Buffer.from(n).toString("base64"),timestamp:t.updated_at,signature:Qi.Buffer.from(a).toString("base64")}}async decryptNote(t){const n=Qi.Buffer.from(t.data,"base64"),r=Qi.Buffer.from(t.nonce,"base64"),i=await crypto.subtle.importKey("raw",this.encryptionKey,{name:"AES-GCM"},!1,["decrypt"]),o=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},i,n),a=JSON.parse(new TextDecoder().decode(o));return{id:parseInt(t.id,16),...a}}async getPublicKeyBase64(){const t=await crypto.subtle.exportKey("raw",this.verifyingKey);return Qi.Buffer.from(t).toString("base64")}}class gy{static getEndpoint(t,n){return`${t}/api${n}`}static async healthCheck(t){try{const n=this.getEndpoint(t,"/health"),r=await fetch(n,{headers:{Accept:"application/json"}});if(!r.ok)throw new Error("Health check failed");const i=await r.json();return i.status==="healthy"&&i.database==="connected"}catch(n){return console.error("Health check failed:",n),!1}}static async syncNotes(t,n,r){const i=this.getEndpoint(t,"/sync");console.log("Syncing notes:",{serverUrl:t,endpoint:i,notesCount:r.length,hasPublicKey:!!n});try{const o=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({public_key:n,notes:r,client_version:"0.1.3"})});if(console.log("Server response:",{status:o.status,ok:o.ok,headers:Object.fromEntries(o.headers.entries())}),!o.ok){const s=await o.json().catch(()=>null);throw new Error((s==null?void 0:s.error)||`Sync failed with status ${o.status}`)}const a=await o.json();if(console.log("Sync response data:",a),!a||!Array.isArray(a.notes))throw console.error("Invalid response format:",a),new Error("Invalid server response format");return{notes:a.notes}}catch(o){throw console.error("Sync error:",o),o}}static async validateServer(t){try{const n=this.getEndpoint(t,"/health");console.log("Validate server endpoint:",n);const r=await fetch(n,{headers:{Accept:"application/json"}});if(!r.ok)return!1;const i=await r.json();return i.status==="healthy"&&i.database==="connected"}catch(n){return console.error("Server validation failed:",n),!1}}}class Rt{static async initializeCrypto(t){this.crypto=await qc.new(t)}static async getNotes(){const t=localStorage.getItem(this.NOTES_KEY);return(t?JSON.parse(t):[]).filter(r=>!r.deleted)}static async saveNote(t){const n=await this.getNotes(),r=Date.now(),i={...t,updated_at:r,created_at:t.created_at||r};i.id||(i.id=r);const o=n.findIndex(a=>a.id===i.id);o!==-1?n[o]=i:n.push(i),localStorage.setItem(this.NOTES_KEY,JSON.stringify(n))}static async deleteNote(t){const n=await this.getNotes(),r=n.findIndex(i=>i.id===t);if(r!==-1){const i={...n[r],deleted:!0,updated_at:Date.now()};n[r]=i,localStorage.setItem(this.NOTES_KEY,JSON.stringify(n))}}static async getSyncSettings(){const t=localStorage.getItem(this.SETTINGS_KEY);return t?JSON.parse(t):{auto_sync:!1,sync_interval:300,server_url:"https://notes-sync.toolworks.dev",custom_servers:[],seed_phrase:null}}static async saveSyncSettings(t){const r={...await this.getSyncSettings(),...t};localStorage.setItem(this.SETTINGS_KEY,JSON.stringify(r))}static async syncWithServer(t,n=3){if(!this.crypto)throw new Error("Crypto not initialized");let r=null;for(let i=0;i({...m,id:m.id||Date.now()})),c=await Promise.all(u.map(m=>this.crypto.encryptNote(m)));console.log("Encrypted notes:",c);const d=localStorage.getItem("user_id");if(!d)throw new Error("User ID not found");const f=await gy.syncNotes(t,d,c);console.log("Server response:",f);const p=await Promise.all(f.notes.map(async m=>await this.crypto.decryptNote(m)));console.log("Decrypted server notes:",p);const h=this.mergeNotes(u,p);console.log("Merged notes:",h),localStorage.setItem(this.NOTES_KEY,JSON.stringify(h));return}catch(o){if(console.error(`Sync attempt ${i+1} failed:`,o),r=o,isetTimeout(a,Math.pow(2,i)*1e3));continue}}throw r||new Error("Sync failed after retries")}static async getDeletedNotes(){const t=localStorage.getItem(this.NOTES_KEY);return(t?JSON.parse(t):[]).filter(r=>r.deleted)}static mergeNotes(t,n){const r=new Map;return t.forEach(i=>{i.id&&r.set(i.id,i)}),n.forEach(i=>{if(i.id){const o=r.get(i.id);i.deleted&&(!o||i.updated_at>o.updated_at)?r.delete(i.id):!i.deleted&&(!o||i.updated_at>o.updated_at)&&r.set(i.id,i)}}),Array.from(r.values()).sort((i,o)=>o.updated_at-i.updated_at)}}Jo(Rt,"NOTES_KEY","notes"),Jo(Rt,"SETTINGS_KEY","sync_settings"),Jo(Rt,"crypto",null);const Hd=[{label:"Official Server",value:"https://notes-sync.toolworks.dev"},{label:"Local Server",value:"http://localhost:3222"}];function yie({onSync:e}){const[t,n]=S.useState(""),[r,i]=S.useState(!1),[o,a]=S.useState(!1),[s,l]=S.useState(""),[u,c]=S.useState(!1),[d,f]=S.useState(Hd[0].value),[p,h]=S.useState([]),[m,y]=S.useState(""),[b,E]=S.useState(!1),[v,k]=S.useState(!1),_=H=>{try{return new URL(H),!0}catch{return!1}},x=H=>{y(H),k(_(H))},I=H=>{H.key==="Enter"&&v&&z()};S.useEffect(()=>{(async()=>{try{const B=await Rt.getSyncSettings();i(B.auto_sync),f(B.server_url),h(B.custom_servers||[]),n(B.seed_phrase??"")}catch(B){console.error("Failed to load settings:",B)}})()},[]);const R=async H=>{try{const B=await Rt.getSyncSettings(),M={auto_sync:"auto_sync"in H?H.auto_sync:r,server_url:"server_url"in H?H.server_url:d,custom_servers:"custom_servers"in H?H.custom_servers:p,seed_phrase:"seed_phrase"in H?H.seed_phrase:t,sync_interval:B.sync_interval};await Rt.saveSyncSettings(M)}catch{Qr.show({title:"Error",message:"Failed to save settings",color:"red"})}},z=async()=>{try{if(!v)return;if(p.includes(m)||Hd.some(B=>B.value===m)){Qr.show({title:"Error",message:"Server already exists",color:"red"});return}const H=[...p,m];h(H),f(m),await R({custom_servers:H,server_url:m}),y(""),E(!1),Qr.show({title:"Success",message:"Server added successfully",color:"green"})}catch{Qr.show({title:"Error",message:"Failed to add server",color:"red"})}},A=async H=>{const B=p.filter(M=>M!==H);if(h(B),await R({custom_servers:B}),d===H){const M=Hd[0].value;f(M),await R({server_url:M})}},j=async H=>{H&&(f(H),await R({server_url:H}))},L=async()=>{if(!t){Qr.show({title:"Error",message:"Please enter a seed phrase",color:"red"});return}c(!0);try{if(console.log("Starting sync process..."),await Rt.initializeCrypto(t),console.log("Crypto initialized"),!await gy.healthCheck(d))throw new Error(`Server ${d} is not healthy`);console.log("Server health check passed"),await Rt.syncWithServer(d),console.log("Sync completed"),await Rt.saveSyncSettings({seed_phrase:t}),console.log("Settings saved"),e&&await e(),Qr.show({title:"Success",message:"Notes synced successfully",color:"green"})}catch(H){console.error("Sync error:",H),Qr.show({title:"Error",message:H instanceof Error?H.message:"Failed to sync notes",color:"red",autoClose:!1})}finally{c(!1)}},U=async()=>{try{const H=qc.generateNewSeedPhrase();await Rt.initializeCrypto(H),l(H),n(H),await R({seed_phrase:H}),a(!0)}catch(H){console.error("Failed to generate seed phrase:",H),Qr.show({title:"Error",message:"Failed to generate seed phrase",color:"red"})}},V=[...Hd,...p.map(H=>({label:H,value:H,rightSection:T.jsx(ze,{size:"sm",color:"red",onClick:B=>{B.stopPropagation(),A(H)},children:T.jsx(xE,{size:14})})}))];return T.jsxs(Un,{children:[T.jsx(Pa,{p:"md",withBorder:!0,children:T.jsxs(Un,{children:[T.jsxs(it,{align:"flex-end",children:[T.jsx(TE,{label:"Sync Server",placeholder:"Select a server",data:V,value:d,onChange:j,style:{flex:1}}),T.jsx($t,{variant:"light",onClick:()=>E(!0),leftSection:T.jsx(hu,{size:16}),children:"Add Server"})]}),T.jsx(yE,{label:"Seed Phrase",description:"Enter your seed phrase to sync across devices",value:t,onChange:H=>{n(H.currentTarget.value),R({seed_phrase:H.currentTarget.value})}}),T.jsxs(it,{justify:"space-between",children:[T.jsx($t,{onClick:L,loading:u,children:"Sync Now"}),T.jsx($t,{variant:"light",onClick:U,children:"Generate New Seed Phrase"})]}),T.jsx(qh,{label:"Auto-sync",checked:r,onChange:H=>{i(H.currentTarget.checked),R({auto_sync:H.currentTarget.checked})}})]})}),T.jsx(Yn,{opened:b,onClose:()=>E(!1),title:"Add Custom Server",children:T.jsxs(Un,{children:[T.jsx(Ea,{label:"Server URL",description:"Enter the full URL of your sync server",placeholder:"https://your-server.com",value:m,onChange:H=>x(H.currentTarget.value),onKeyPress:I,error:m&&!v?"Please enter a valid URL":null}),T.jsxs(it,{justify:"flex-end",children:[T.jsx($t,{variant:"light",onClick:()=>E(!1),children:"Cancel"}),T.jsx($t,{onClick:z,disabled:!v,children:"Add Server"})]})]})}),T.jsx(Yn,{opened:o,onClose:()=>a(!1),title:"Your New Seed Phrase",children:T.jsxs(Un,{children:[T.jsx(qt,{fw:500,c:"red",children:"Important: Save this phrase somewhere safe. You'll need it to sync your notes across devices."}),T.jsx(Pa,{p:"md",withBorder:!0,children:T.jsx(qt,{children:s})}),T.jsx(it,{children:T.jsx(j2,{value:s,children:({copied:H,copy:B})=>T.jsx($t,{color:H?"teal":"blue",onClick:B,children:H?"Copied":"Copy"})})})]})})]})}function Eie(e,t){const n=S.useRef(),r=S.useRef(!1);S.useEffect(()=>{async function i(){if(!r.current)try{r.current=!0;const a=await Rt.getSyncSettings();if(!a.seed_phrase)throw new Error("No seed phrase configured");const s=await qc.new(a.seed_phrase),l=await Rt.getNotes(),u=await Promise.all(l.map(d=>s.encryptNote(d))),c=await fetch(`${a.server_url}/api/sync`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({public_key:await s.getPublicKeyBase64(),notes:u,client_version:"0.1.3"})});if(!c.ok)throw new Error(await c.text());Qr.show({title:"Auto-sync Complete",message:"Your notes have been synchronized",color:"green"})}catch(a){console.error("Auto-sync failed:",a),Qr.show({title:"Auto-sync Failed",message:a instanceof Error?a.message:"An unknown error occurred",color:"red"})}finally{r.current=!1}}function o(){e&&(n.current=window.setTimeout(()=>{i().finally(o)},t*60*1e3))}return o(),()=>{n.current&&clearTimeout(n.current)}},[e,t])}function vie({opened:e,onClose:t,onNewNote:n,onSearch:r,searchQuery:i,onToggleTheme:o,colorScheme:a,onShowSyncSettings:s,onExport:l,onImport:u,selectedNote:c,notes:d,onSelectNote:f,onDeleteNote:p}){const h=a==="dark"||a==="auto"&&window.matchMedia("(prefers-color-scheme: dark)").matches;return T.jsx(Fr,{opened:e,onClose:t,size:"100%",padding:"md",title:T.jsxs(it,{children:[T.jsx(Gu,{src:"/trusty.jpg",alt:"Logo",w:30,h:30}),T.jsx(qt,{size:"lg",fw:500,children:"Trusty Notes"})]}),children:T.jsxs(Un,{h:"100%",gap:"md",children:[T.jsx(Ea,{placeholder:"Search notes...",leftSection:T.jsx(rA,{size:16}),value:i,onChange:m=>r(m.currentTarget.value)}),T.jsx($t,{variant:"light",leftSection:T.jsx(hu,{size:16}),onClick:()=>{n(),t()},fullWidth:!0,children:"New Note"}),T.jsx(se,{style:{flex:1,overflowY:"auto"},children:T.jsx(Un,{gap:"xs",children:d.map(m=>T.jsx(Pa,{shadow:"xs",p:"md",onClick:()=>{f(m),t()},style:{cursor:"pointer",backgroundColor:(c==null?void 0:c.id)===m.id?"var(--mantine-color-blue-light)":void 0},children:T.jsxs(it,{justify:"space-between",wrap:"nowrap",children:[T.jsxs(se,{style:{flex:1},children:[T.jsx(qt,{fw:500,truncate:"end",children:m.title||"Untitled"}),T.jsx(qt,{size:"xs",c:"dimmed",children:vb(m.updated_at,"MMM d, yyyy HH:mm")})]}),T.jsx(ze,{variant:"subtle",color:"red",onClick:y=>{y.stopPropagation(),p(m.id)},children:T.jsx(xE,{size:16})})]})},m.id))})}),T.jsxs(Un,{gap:"xs",children:[T.jsx($t,{variant:"light",leftSection:h?T.jsx(xb,{size:16}):T.jsx(kb,{size:16}),onClick:o,fullWidth:!0,children:h?"Light Mode":"Dark Mode"}),T.jsx($t,{variant:"light",leftSection:T.jsx(tA,{size:16}),onClick:()=>{s(),t()},fullWidth:!0,children:"Sync Settings"}),T.jsxs(it,{grow:!0,children:[T.jsx($t,{variant:"light",leftSection:T.jsx(nA,{size:16}),onClick:l,children:"Export"}),T.jsx($t,{variant:"light",leftSection:T.jsx(iA,{size:16}),onClick:u,children:"Import"})]}),T.jsx($t,{variant:"subtle",leftSection:T.jsx(Tb,{size:16}),component:"a",href:"https://github.com/toolworks-dev/trusty-notes",target:"_blank",fullWidth:!0,children:"GitHub"})]})]})})}function Tie(){const[e,t]=S.useState([]),[n,r]=S.useState(null),[i,o]=S.useState(""),[a,s]=S.useState(""),[l,u]=S.useState(null),{colorScheme:c,toggleColorScheme:d}=L6(),[f,p]=S.useState(""),[h,m]=S.useState(!1),[y,b]=S.useState(!1),[E,v]=S.useState(null),k=b1("(max-width: 768px)"),[_,x]=S.useState(!1);S.useEffect(()=>{R()},[]);const I=e.filter(B=>B.title.toLowerCase().includes(f.toLowerCase())||B.content.toLowerCase().includes(f.toLowerCase())),R=async()=>{try{const B=await Rt.getNotes();t(B)}catch(B){console.error("Failed to fetch notes:",B)}},z=Tc(async()=>{if(!(i.trim()===""&&a.trim()==="")){u("saving");try{await L()}catch(B){console.error("Save failed:",B),u(null)}}},1e3);S.useEffect(()=>{(i||a)&&z()},[i,a]);function A(B){r(B),o(B.title),s(B.content)}function j(){r(null),o(""),s("")}S.useEffect(()=>{Rt.getSyncSettings().then(v)},[]),S.useEffect(()=>{(async()=>{if(k){const{initializeMobileApp:M}=await qz(async()=>{const{initializeMobileApp:N}=await import("./mobileInit-BjDn5VWt.js").then(F=>F.m);return{initializeMobileApp:N}},[]);await M()}})()},[k]),Eie((E==null?void 0:E.auto_sync)??!1,(E==null?void 0:E.sync_interval)??5);async function L(){try{const B=Date.now(),M={id:n==null?void 0:n.id,title:i.trim()===""?"Untitled":i,content:a,created_at:(n==null?void 0:n.created_at)||B,updated_at:B};await Rt.saveNote(M),await R(),u("saved"),setTimeout(()=>u(null),2e3)}catch(B){console.error("Failed to save note:",B),u(null),alert(`Failed to save note: ${B}`)}}async function U(B){if(window.confirm("Are you sure you want to delete this note?"))try{await Rt.deleteNote(B),(n==null?void 0:n.id)===B&&j(),await R()}catch(M){console.error("Failed to delete note:",M),alert("Failed to delete note")}}async function V(){const B=await Rt.getNotes(),M=new Blob([JSON.stringify(B)],{type:"application/json"}),N=URL.createObjectURL(M),F=document.createElement("a");F.href=N,F.download=`notes-${vb(new Date,"yyyy-MM-dd")}.json`,document.body.appendChild(F),F.click(),document.body.removeChild(F),URL.revokeObjectURL(N)}async function H(){const B=document.createElement("input");B.type="file",B.accept=".json",B.onchange=async M=>{var w;const N=(w=M.target.files)==null?void 0:w[0];if(!N)return;const F=new FileReader;F.onload=async q=>{var be;const X=(be=q.target)==null?void 0:be.result,D=JSON.parse(X);for(const ge of D)await Rt.saveNote(ge);await R()},F.readAsText(N)},B.click()}return T.jsxs(ur,{header:k?{height:60}:void 0,navbar:{width:k?0:h?80:300,breakpoint:"sm",collapsed:{mobile:!0}},padding:"0",children:[k&&T.jsx(ur.Header,{children:T.jsxs(it,{h:"100%",px:"md",justify:"space-between",children:[T.jsxs(it,{children:[T.jsx(mE,{opened:_,onClick:()=>x(B=>!B),hiddenFrom:"sm",size:"sm"}),T.jsx(Gu,{src:"/trusty.jpg",alt:"Logo",w:30,h:30})]}),T.jsx(Ea,{placeholder:"Note title",value:i,onChange:B=>o(B.currentTarget.value),style:{flex:1}}),T.jsxs(it,{children:[T.jsx(Wf,{href:"https://github.com/toolworks-dev/trusty-notes",target:"_blank",children:T.jsx(ze,{variant:"subtle",children:T.jsx(Tb,{size:20})})}),T.jsx(ze,{variant:"subtle",onClick:j,children:T.jsx(hu,{size:20})})]})]})}),k?T.jsx(vie,{opened:_,onClose:()=>x(!1),onNewNote:j,onSearch:p,searchQuery:f,onToggleTheme:d,colorScheme:c,onShowSyncSettings:()=>b(!0),onExport:V,onImport:H,selectedNote:n,notes:I,onSelectNote:A,onDeleteNote:U}):T.jsx(ur.Navbar,{p:"md",children:T.jsxs(Un,{h:"100%",gap:"sm",children:[T.jsxs(it,{justify:"space-between",children:[T.jsxs(it,{children:[T.jsx(Gu,{src:"/trusty.jpg",alt:"Logo",w:30,h:30}),T.jsx(qt,{size:"lg",fw:500,children:"Trusty Notes"})]}),T.jsxs(it,{children:[!h&&T.jsxs(T.Fragment,{children:[T.jsx(Qe,{label:"GitHub",children:T.jsx(Wf,{href:"https://github.com/toolworks-dev/trusty-notes",target:"_blank",children:T.jsx(ze,{variant:"default",size:30,children:T.jsx(Tb,{size:16})})})}),T.jsx(Qe,{label:"Sync Settings",children:T.jsx(ze,{variant:"default",onClick:()=>b(!0),size:30,children:T.jsx(tA,{size:16})})}),T.jsx(Qe,{label:"Toggle Theme",children:T.jsx(ze,{variant:"default",onClick:()=>d(),size:30,children:c==="dark"?T.jsx(xb,{size:16}):T.jsx(kb,{size:16})})}),T.jsx(Qe,{label:"Export Notes",children:T.jsx(ze,{variant:"default",onClick:V,size:30,children:T.jsx(nA,{size:16})})}),T.jsx(Qe,{label:"Import Notes",children:T.jsx(ze,{variant:"default",onClick:H,size:30,children:T.jsx(iA,{size:16})})})]}),T.jsx(Qe,{label:h?"Expand sidebar":"Collapse sidebar",children:T.jsx(ze,{variant:"default",onClick:()=>m(!h),size:30,children:h?T.jsx(rF,{size:16}):T.jsx(nF,{size:16})})})]})]}),!h&&T.jsxs(T.Fragment,{children:[T.jsx($t,{leftSection:T.jsx(hu,{size:14}),variant:"light",onClick:j,fullWidth:!0,children:"New Note"}),T.jsx(Ea,{placeholder:"Search notes...",leftSection:T.jsx(rA,{size:16}),value:f,onChange:B=>p(B.currentTarget.value)}),T.jsx(Un,{gap:"xs",style:{overflow:"auto",flex:1,minHeight:0},children:I.map(B=>T.jsx(Pa,{shadow:"xs",p:"md",onClick:()=>A(B),style:{cursor:"pointer",backgroundColor:(n==null?void 0:n.id)===B.id?"var(--mantine-color-blue-light)":void 0},children:T.jsxs(it,{justify:"space-between",wrap:"nowrap",children:[T.jsxs(se,{style:{flex:1},children:[T.jsx(qt,{fw:500,truncate:"end",children:B.title||"Untitled"}),T.jsx(qt,{size:"xs",c:"dimmed",children:vb(B.updated_at,"MMM d, yyyy HH:mm")})]}),T.jsx(ze,{variant:"subtle",color:"red",onClick:M=>{M.stopPropagation(),U(B.id)},children:T.jsx(xE,{size:16})})]})},B.id))})]}),h&&T.jsxs(Un,{gap:"xs",align:"center",children:[T.jsx(Qe,{label:"New Note",position:"right",children:T.jsx(ze,{variant:"light",onClick:j,size:"lg",children:T.jsx(hu,{size:20})})}),T.jsx(Qe,{label:"Toggle Theme",position:"right",children:T.jsx(ze,{variant:"light",onClick:()=>d(),size:"lg",children:c==="dark"?T.jsx(xb,{size:20}):T.jsx(kb,{size:20})})})]})]})}),T.jsx(ur.Main,{children:T.jsxs(Un,{h:"100vh",gap:0,children:[!k&&T.jsx(se,{p:"md",style:{borderBottom:"1px solid var(--mantine-color-gray-3)"},children:T.jsxs(it,{justify:"space-between",align:"center",children:[T.jsx(Ea,{placeholder:"Note title",value:i,onChange:B=>o(B.currentTarget.value),size:"lg",style:{flex:1}}),T.jsxs(it,{children:[l&&T.jsxs(it,{gap:"xs",children:[T.jsx(tF,{size:16,style:{color:"var(--mantine-color-green-6)"}}),T.jsx(qt,{size:"sm",c:"dimmed",children:l==="saving"?"Saving...":"Saved"})]}),T.jsx($t,{variant:"light",onClick:j,children:"New Note"})]})]})}),T.jsx(se,{style:{flex:1,position:"relative",minHeight:0,padding:k?"0.5rem":"1rem",paddingTop:k?"0.5rem":"1rem"},children:T.jsx(Cre,{content:a,onChange:s,isMobile:k,defaultView:"edit",editorType:"richtext"})})]})}),T.jsx(Yn,{opened:y,onClose:()=>b(!1),title:"Sync Settings",size:"lg",fullScreen:k,children:T.jsx(yie,{onSync:R})})]})}window.Buffer=Qi.Buffer;const kie={primaryColor:"blue"};u0.createRoot(document.getElementById("root")).render(T.jsx(Et.StrictMode,{children:T.jsx(SN,{theme:kie,defaultColorScheme:"auto",children:T.jsx(Tie,{})})}));export{qz as _}; diff --git a/ios/App/App/public/assets/mobileInit-BjDn5VWt.js b/ios/App/App/public/assets/mobileInit-BjDn5VWt.js new file mode 100644 index 0000000..1bbcad4 --- /dev/null +++ b/ios/App/App/public/assets/mobileInit-BjDn5VWt.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-KEPh1bJr.js","assets/index-DhE_q3AR.js","assets/buffer-Cq5fL-tY.js","assets/index-BHNR0Rya.css","assets/web-BBNafJl7.js"])))=>i.map(i=>d[i]); +import{_ as K}from"./index-DhE_q3AR.js";var _={};/*! Capacitor: https://capacitorjs.com/ - MIT License */const oe=t=>{const e=new Map;e.set("web",{name:"web"});const r=t.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},o=(n,a)=>{r.platforms.set(n,a)},i=n=>{r.platforms.has(n)&&(r.currentPlatform=r.platforms.get(n))};return r.addPlatform=o,r.setPlatform=i,r},ie=t=>t.CapacitorPlatforms=oe(t),V=ie(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof _<"u"?_:{});V.addPlatform;V.setPlatform;var E;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(E||(E={}));class S extends Error{constructor(e,r,o){super(e),this.message=e,this.code=r,this.data=o}}const ae=t=>{var e,r;return t!=null&&t.androidBridge?"android":!((r=(e=t==null?void 0:t.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||r===void 0)&&r.bridge?"ios":"web"},le=t=>{var e,r,o,i,n;const a=t.CapacitorCustomPlatform||null,s=t.Capacitor||{},f=s.Plugins=s.Plugins||{},l=t.CapacitorPlatforms,k=()=>a!==null?a.name:ae(t),P=((e=l==null?void 0:l.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||k,j=()=>P()!=="web",J=((r=l==null?void 0:l.currentPlatform)===null||r===void 0?void 0:r.isNativePlatform)||j,Q=c=>{const d=x.get(c);return!!(d!=null&&d.platforms.has(P())||I(c))},X=((o=l==null?void 0:l.currentPlatform)===null||o===void 0?void 0:o.isPluginAvailable)||Q,Y=c=>{var d;return(d=s.PluginHeaders)===null||d===void 0?void 0:d.find(y=>y.name===c)},I=((i=l==null?void 0:l.currentPlatform)===null||i===void 0?void 0:i.getPluginHeader)||Y,Z=c=>t.console.error(c),N=(c,d,y)=>Promise.reject(`${y} does not have an implementation of "${d}".`),x=new Map,ee=(c,d={})=>{const y=x.get(c);if(y)return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`),y.proxy;const w=P(),L=I(c);let v;const re=async()=>(!v&&w in d?v=typeof d[w]=="function"?v=await d[w]():v=d[w]:a!==null&&!v&&"web"in d&&(v=typeof d.web=="function"?v=await d.web():v=d.web),v),ne=(u,m)=>{var h,p;if(L){const b=L==null?void 0:L.methods.find(g=>m===g.name);if(b)return b.rtype==="promise"?g=>s.nativePromise(c,m.toString(),g):(g,A)=>s.nativeCallback(c,m.toString(),g,A);if(u)return(h=u[m])===null||h===void 0?void 0:h.bind(u)}else{if(u)return(p=u[m])===null||p===void 0?void 0:p.bind(u);throw new S(`"${c}" plugin is not implemented on ${w}`,E.Unimplemented)}},U=u=>{let m;const h=(...p)=>{const b=re().then(g=>{const A=ne(g,u);if(A){const O=A(...p);return m=O==null?void 0:O.remove,O}else throw new S(`"${c}.${u}()" is not implemented on ${w}`,E.Unimplemented)});return u==="addListener"&&(b.remove=async()=>m()),b};return h.toString=()=>`${u.toString()}() { [capacitor code] }`,Object.defineProperty(h,"name",{value:u,writable:!1,configurable:!1}),h},H=U("addListener"),W=U("removeListener"),se=(u,m)=>{const h=H({eventName:u},m),p=async()=>{const g=await h;W({eventName:u,callbackId:g},m)},b=new Promise(g=>h.then(()=>g({remove:p})));return b.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await p()},b},D=new Proxy({},{get(u,m){switch(m){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return L?se:H;case"removeListener":return W;default:return U(m)}}});return f[c]=D,x.set(c,{name:c,proxy:D,platforms:new Set([...Object.keys(d),...L?[w]:[]])}),D},te=((n=l==null?void 0:l.currentPlatform)===null||n===void 0?void 0:n.registerPlugin)||ee;return s.convertFileSrc||(s.convertFileSrc=c=>c),s.getPlatform=P,s.handleError=Z,s.isNativePlatform=J,s.isPluginAvailable=X,s.pluginMethodNoop=N,s.registerPlugin=te,s.Exception=S,s.DEBUG=!!s.DEBUG,s.isLoggingEnabled=!!s.isLoggingEnabled,s.platform=s.getPlatform(),s.isNative=s.isNativePlatform(),s},ce=t=>t.Capacitor=le(t),$=ce(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof _<"u"?_:{}),C=$.registerPlugin;$.Plugins;class z{constructor(e){this.listeners={},this.retainedEventArguments={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,r){let o=!1;this.listeners[e]||(this.listeners[e]=[],o=!0),this.listeners[e].push(r);const n=this.windowListeners[e];n&&!n.registered&&this.addWindowListener(n),o&&this.sendRetainedArgumentsForEvent(e);const a=async()=>this.removeListener(e,r);return Promise.resolve({remove:a})}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,r,o){const i=this.listeners[e];if(!i){if(o){let n=this.retainedEventArguments[e];n||(n=[]),n.push(r),this.retainedEventArguments[e]=n}return}i.forEach(n=>n(r))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,r){this.windowListeners[r]={registered:!1,windowEventName:e,pluginEventName:r,handler:o=>{this.notifyListeners(r,o)}}}unimplemented(e="not implemented"){return new $.Exception(e,E.Unimplemented)}unavailable(e="not available"){return new $.Exception(e,E.Unavailable)}async removeListener(e,r){const o=this.listeners[e];if(!o)return;const i=o.indexOf(r);this.listeners[e].splice(i,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){const r=this.retainedEventArguments[e];r&&(delete this.retainedEventArguments[e],r.forEach(o=>{this.notifyListeners(e,o)}))}}const R=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),F=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class de extends z{async getCookies(){const e=document.cookie,r={};return e.split(";").forEach(o=>{if(o.length<=0)return;let[i,n]=o.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");i=F(i).trim(),n=F(n).trim(),r[i]=n}),r}async setCookie(e){try{const r=R(e.key),o=R(e.value),i=`; expires=${(e.expires||"").replace("expires=","")}`,n=(e.path||"/").replace("path=",""),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${r}=${o||""}${i}; path=${n}; ${a};`}catch(r){return Promise.reject(r)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(r){return Promise.reject(r)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const r of e)document.cookie=r.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}C("CapacitorCookies",{web:()=>new de});const ue=async t=>new Promise((e,r)=>{const o=new FileReader;o.onload=()=>{const i=o.result;e(i.indexOf(",")>=0?i.split(",")[1]:i)},o.onerror=i=>r(i),o.readAsDataURL(t)}),fe=(t={})=>{const e=Object.keys(t);return Object.keys(t).map(i=>i.toLocaleLowerCase()).reduce((i,n,a)=>(i[n]=t[e[a]],i),{})},me=(t,e=!0)=>t?Object.entries(t).reduce((o,i)=>{const[n,a]=i;let s,f;return Array.isArray(a)?(f="",a.forEach(l=>{s=e?encodeURIComponent(l):l,f+=`${n}=${s}&`}),f.slice(0,-1)):(s=e?encodeURIComponent(a):a,f=`${n}=${s}`),`${o}&${f}`},"").substr(1):null,ge=(t,e={})=>{const r=Object.assign({method:t.method||"GET",headers:t.headers},e),i=fe(t.headers)["content-type"]||"";if(typeof t.data=="string")r.body=t.data;else if(i.includes("application/x-www-form-urlencoded")){const n=new URLSearchParams;for(const[a,s]of Object.entries(t.data||{}))n.set(a,s);r.body=n.toString()}else if(i.includes("multipart/form-data")||t.data instanceof FormData){const n=new FormData;if(t.data instanceof FormData)t.data.forEach((s,f)=>{n.append(f,s)});else for(const s of Object.keys(t.data))n.append(s,t.data[s]);r.body=n;const a=new Headers(r.headers);a.delete("content-type"),r.headers=a}else(i.includes("application/json")||typeof t.data=="object")&&(r.body=JSON.stringify(t.data));return r};class he extends z{async request(e){const r=ge(e,e.webFetchExtra),o=me(e.params,e.shouldEncodeUrlParams),i=o?`${e.url}?${o}`:e.url,n=await fetch(i,r),a=n.headers.get("content-type")||"";let{responseType:s="text"}=n.ok?e:{};a.includes("application/json")&&(s="json");let f,l;switch(s){case"arraybuffer":case"blob":l=await n.blob(),f=await ue(l);break;case"json":f=await n.json();break;case"document":case"text":default:f=await n.text()}const k={};return n.headers.forEach((P,j)=>{k[j]=P}),{data:f,headers:k,status:n.status,url:n.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}C("CapacitorHttp",{web:()=>new he});const ve=C("App",{web:()=>K(()=>import("./web-KEPh1bJr.js"),__vite__mapDeps([0,1,2,3])).then(t=>new t.AppWeb)});var T;(function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"})(T||(T={}));var M;(function(t){t.None="NONE",t.Slide="SLIDE",t.Fade="FADE"})(M||(M={}));const pe=C("StatusBar");var B;(function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"})(B||(B={}));var G;(function(t){t.Body="body",t.Ionic="ionic",t.Native="native",t.None="none"})(G||(G={}));const q=C("Keyboard"),be=C("Preferences",{web:()=>K(()=>import("./web-BBNafJl7.js"),__vite__mapDeps([4,1,2,3])).then(t=>new t.PreferencesWeb)}),we=async()=>{try{await pe.setStyle({style:T.Dark}),q.addListener("keyboardWillShow",()=>{document.body.classList.add("keyboard-visible")}),q.addListener("keyboardWillHide",()=>{document.body.classList.remove("keyboard-visible")}),ve.addListener("appStateChange",async({isActive:t})=>{t||await be.set({key:"lastActiveTime",value:new Date().toISOString()})})}catch(t){console.error("Error initializing mobile app:",t)}},ye=Object.freeze(Object.defineProperty({__proto__:null,initializeMobileApp:we},Symbol.toStringTag,{value:"Module"}));export{z as W,ye as m}; diff --git a/ios/App/App/public/assets/web-BBNafJl7.js b/ios/App/App/public/assets/web-BBNafJl7.js new file mode 100644 index 0000000..63bd83f --- /dev/null +++ b/ios/App/App/public/assets/web-BBNafJl7.js @@ -0,0 +1 @@ +import{W as l}from"./mobileInit-BjDn5VWt.js";import"./index-DhE_q3AR.js";import"./buffer-Cq5fL-tY.js";class h extends l{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:p}=await this.get({key:r});typeof p=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}export{h as PreferencesWeb}; diff --git a/ios/App/App/public/assets/web-KEPh1bJr.js b/ios/App/App/public/assets/web-KEPh1bJr.js new file mode 100644 index 0000000..bd2a265 --- /dev/null +++ b/ios/App/App/public/assets/web-KEPh1bJr.js @@ -0,0 +1 @@ +import{W as t}from"./mobileInit-BjDn5VWt.js";import"./index-DhE_q3AR.js";import"./buffer-Cq5fL-tY.js";class r extends t{constructor(){super(),this.handleVisibilityChange=()=>{const e={isActive:document.hidden!==!0};this.notifyListeners("appStateChange",e),document.hidden?this.notifyListeners("pause",null):this.notifyListeners("resume",null)},document.addEventListener("visibilitychange",this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented("Not implemented on web.")}async getInfo(){throw this.unimplemented("Not implemented on web.")}async getLaunchUrl(){return{url:""}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented("Not implemented on web.")}}export{r as AppWeb}; diff --git a/ios/App/App/public/cordova.js b/ios/App/App/public/cordova.js new file mode 100644 index 0000000..e69de29 diff --git a/ios/App/App/public/cordova_plugins.js b/ios/App/App/public/cordova_plugins.js new file mode 100644 index 0000000..e69de29 diff --git a/ios/App/App/public/favicon-16x16.png b/ios/App/App/public/favicon-16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..e65193e08d9177fa4665af0f272e3e1c3281d188 GIT binary patch literal 318 zcmV-E0m1%>P)UGV$&?+HvyOt=63{mTT@tjNmB zT12z~w{PEOS5#D-3bZ)|qzUMfxy;PW=|F@2pc{hK1wVfLPzBna1@y*zpoafIjYxt?48xv_qB{NVUI1s0YA*KuHh zTW}J4a{yds9boXZ&02kaG?~23e(O%)nS4AR@2>-N{z-B^%yNV-gw&+!fj0O5@kYJ# z(lqysu@^)ndFBVV;@iGXfuF;6^NjC{Xg7!Z`Ogqw=)ll{fjjUUSz0hKwyh$+00000 LNkvXXu0mjf&#yuP literal 0 HcmV?d00001 diff --git a/ios/App/App/public/favicon.ico b/ios/App/App/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..156eb8975563c924c2478ad3983cbd4ec8a7580a GIT binary patch literal 15406 zcmeI2Yiv|S6vuB%MJ<7%28`lkjY2?$w!~l)Bv_-tpiw~sYF`*4!5F_7l!!6-89@mF z29CuyUv~262wzjru(nr4S(XFEG z56I_^V|T`4`fFgil=hWisC8YZmpPyT)UC(84GXtN!^Uj+M0g|9{b! zbtZt^kI4F@9>suSKrwK+GQfJjnEk2=sW%<7fjy*w{3_Enw?)HY+1Kl&j{UT8czC#` z(0sM*LgNzMmAk@<^IUxJlcw2D^H? z8oG2So*gt`8k)ZEd|m08s9Wed(KTn3bM=#$gM-ZV~(7 z(EI!QYemN||D|s@D8aw)Q@q>u5%L>6Jh9mD@z(CvazE`02Kn~k8xpfJ{{O{-<2q(2 z6j}(TdeJN7L!XVA{qg>>XP=ln$5_0J)HXLaPx8Zm`dpi7pE#H&^ALGZ;?k>=@yXWp z>c*0?rp$_)@#nF782;Def1MeN)niN6ojS^1pze^^?(6HjVJxHKUR z$`&vV5)2jDb%lB#8XB4*>(6NRgL<%1V$x6h^gWsJ9!6GV`^0#xf}1cpld|gy`Ht|gKoE3tw7zp2~dmHCxocPe(i#a@W?Aaa;|gmG!1Zi-)aGy4^eiSuW%y%*U> z{u#e{&$O@diUGxdVxSNV$Tek|C(&zB`rcMigUb$h!zU(;NQ3>=^90`6nC^~-O61;Ut+>06VUEsUdG>so6e$w|6 z)=(%k_;OcQ*VWQyBH@=aWH5i`;ddP;%-T}R7*xaY&w`(G+=OAozZw`AxO1Z62ant@ ztRar{k=QrDy`1=-gI~>_Uz9}#2m3dkJb7|*vH1r}D*lB_c_NX>bztSZI6ariw=suB zoYbTqnb(ZL3HG*X!B5fhbnEf|3#S+07X>2Rd;QkfaL%vDoLQ6}_`8zqm zk9$R1Ke?}}1=B@$MqrZrqzAyal$e=?q}EFrn~X>1`)axO&nO$$EI8$x=M8Y~2g@M>b!#IfkhsZv#zs_1ZZCpW*Vk{I71uV<>35;(E9{egD zP2^h|oo&QYD`Pivl&*?W#9A_2?q40pIw}}*f#42)I=ml~`OI@;F1_(CXP>=8miWBz zJLZJL&pqo+#6$x5BpeQ3n~T5n{$_oOp8S(UPQ6_1{VFHc%b1(8UUrZVKv3-Ca(cY!a* + + + + + + + + Trusty Notes + + + + + + + +
+ + diff --git a/ios/App/App/public/site.webmanifest b/ios/App/App/public/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/ios/App/App/public/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/ios/App/App/public/tauri.svg b/ios/App/App/public/tauri.svg new file mode 100644 index 0000000..31b62c9 --- /dev/null +++ b/ios/App/App/public/tauri.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/ios/App/App/public/trusty.jpg b/ios/App/App/public/trusty.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c54ce6265a3f2a28f3579a5750cb67bd052368c9 GIT binary patch literal 36951 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 P@JCKsS*k+fbHM)sgoamZ literal 0 HcmV?d00001 diff --git a/ios/App/App/public/vite.svg b/ios/App/App/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/ios/App/App/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ios/capacitor-cordova-ios-plugins/CordovaPlugins.podspec b/ios/capacitor-cordova-ios-plugins/CordovaPlugins.podspec new file mode 100644 index 0000000..2d786a2 --- /dev/null +++ b/ios/capacitor-cordova-ios-plugins/CordovaPlugins.podspec @@ -0,0 +1,16 @@ + + Pod::Spec.new do |s| + s.name = 'CordovaPlugins' + s.version = '6.1.2' + s.summary = 'Autogenerated spec' + s.license = 'Unknown' + s.homepage = 'https://example.com' + s.authors = { 'Capacitor Generator' => 'hi@example.com' } + s.source = { :git => 'https://github.com/ionic-team/does-not-exist.git', :tag => '6.1.2' } + s.source_files = 'sources/**/*.{swift,h,m,c,cc,mm,cpp}' + s.ios.deployment_target = '13.0' + s.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) COCOAPODS=1 WK_WEB_VIEW_ONLY=1' } + s.dependency 'CapacitorCordova' + s.swift_version = '5.1' + + end \ No newline at end of file diff --git a/ios/capacitor-cordova-ios-plugins/CordovaPluginsResources.podspec b/ios/capacitor-cordova-ios-plugins/CordovaPluginsResources.podspec new file mode 100644 index 0000000..0826364 --- /dev/null +++ b/ios/capacitor-cordova-ios-plugins/CordovaPluginsResources.podspec @@ -0,0 +1,11 @@ +Pod::Spec.new do |s| + s.name = 'CordovaPluginsResources' + s.version = '0.0.105' + s.summary = 'Resources for Cordova plugins' + s.social_media_url = 'https://twitter.com/capacitorjs' + s.license = 'MIT' + s.homepage = 'https://capacitorjs.com/' + s.authors = { 'Ionic Team' => 'hi@ionicframework.com' } + s.source = { :git => 'https://github.com/ionic-team/capacitor.git', :tag => s.version.to_s } + s.resources = ['resources/*'] +end diff --git a/ios/capacitor-cordova-ios-plugins/CordovaPluginsStatic.podspec b/ios/capacitor-cordova-ios-plugins/CordovaPluginsStatic.podspec new file mode 100644 index 0000000..375781a --- /dev/null +++ b/ios/capacitor-cordova-ios-plugins/CordovaPluginsStatic.podspec @@ -0,0 +1,16 @@ + + Pod::Spec.new do |s| + s.name = 'CordovaPluginsStatic' + s.version = '6.1.2' + s.summary = 'Autogenerated spec' + s.license = 'Unknown' + s.homepage = 'https://example.com' + s.authors = { 'Capacitor Generator' => 'hi@example.com' } + s.source = { :git => 'https://github.com/ionic-team/does-not-exist.git', :tag => '6.1.2' } + s.source_files = 'sourcesstatic/**/*.{swift,h,m,c,cc,mm,cpp}' + s.ios.deployment_target = '13.0' + s.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) COCOAPODS=1 WK_WEB_VIEW_ONLY=1' } + s.dependency 'CapacitorCordova' + s.swift_version = '5.1' + s.static_framework = true + end \ No newline at end of file diff --git a/ios/capacitor-cordova-ios-plugins/resources/.gitkeep b/ios/capacitor-cordova-ios-plugins/resources/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/ios/capacitor-cordova-ios-plugins/resources/.gitkeep @@ -0,0 +1 @@ + diff --git a/ios/capacitor-cordova-ios-plugins/sources/.gitkeep b/ios/capacitor-cordova-ios-plugins/sources/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/ios/capacitor-cordova-ios-plugins/sources/.gitkeep @@ -0,0 +1 @@ + diff --git a/package-lock.json b/package-lock.json index a794e70..a169a00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,15 @@ "name": "trusty-notes-web", "version": "0.1.3", "dependencies": { + "@capacitor/android": "^6.1.2", + "@capacitor/app": "^6.0.0", + "@capacitor/cli": "^6.1.2", + "@capacitor/core": "^6.1.2", + "@capacitor/ios": "^6.1.2", + "@capacitor/keyboard": "^6.0.0", + "@capacitor/preferences": "^6.0.2", + "@capacitor/splash-screen": "^6.0.0", + "@capacitor/status-bar": "^6.0.0", "@emotion/react": "^11.13.3", "@mantine/core": "^7.14.0", "@mantine/hooks": "^7.14.0", @@ -341,6 +350,123 @@ "node": ">=6.9.0" } }, + "node_modules/@capacitor/android": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-6.1.2.tgz", + "integrity": "sha512-Yh0gQDY1bgRrL25J6ecIlvvs2kF8iNSwIPXjyw6Yz9mnwYxBazF5KZbjpKtGPnJgicJhFkYGsqOkEtxrve0EoQ==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": "^6.1.0" + } + }, + "node_modules/@capacitor/app": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@capacitor/app/-/app-6.0.1.tgz", + "integrity": "sha512-0kXbOl7LPPMFVcAii3u/7Ps0DvXlr7dtHT97r9J1faDlgdQLQUvtGp48tjvFm48gqHI0aOPRJnTBr5JXW4ETYg==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": "^6.0.0" + } + }, + "node_modules/@capacitor/cli": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-6.1.2.tgz", + "integrity": "sha512-HKCNGE0RP8U7aiEF2vg5wTivJROS8BVfu8a3yYJb1mRQvzv+czpmtHNsTWS/WukvwoxUjyjRmsNQSAACHfMTmQ==", + "license": "MIT", + "dependencies": { + "@ionic/cli-framework-output": "^2.2.5", + "@ionic/utils-fs": "^3.1.6", + "@ionic/utils-process": "^2.1.11", + "@ionic/utils-subprocess": "2.1.11", + "@ionic/utils-terminal": "^2.3.3", + "commander": "^9.3.0", + "debug": "^4.3.4", + "env-paths": "^2.2.0", + "kleur": "^4.1.4", + "native-run": "^2.0.0", + "open": "^8.4.0", + "plist": "^3.0.5", + "prompts": "^2.4.2", + "rimraf": "^4.4.1", + "semver": "^7.3.7", + "tar": "^6.1.11", + "tslib": "^2.4.0", + "xml2js": "^0.5.0" + }, + "bin": { + "cap": "bin/capacitor", + "capacitor": "bin/capacitor" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@capacitor/cli/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@capacitor/core": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-6.1.2.tgz", + "integrity": "sha512-xFy1/4qLFLp5WCIzIhtwUuVNNoz36+V7/BzHmLqgVJcvotc4MMjswW/TshnPQaLLujEOaLkA4h8ZJ0uoK3ImGg==", + "license": "MIT", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@capacitor/ios": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-6.1.2.tgz", + "integrity": "sha512-HaeW68KisBd/7TmavzPDlL2bpoDK5AjR2ZYrqU4TlGwM88GtQfvduBCAlSCj20X0w/4+rWMkseD9dAAkacjiyQ==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": "^6.1.0" + } + }, + "node_modules/@capacitor/keyboard": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@capacitor/keyboard/-/keyboard-6.0.2.tgz", + "integrity": "sha512-fOfO3rQ0ZXuTHpK03INVTwmBnpqMiH8EHPpNaHjwjKwdrVRWBvtgIFhuyHNXh53rdcXw+uHB+1RIiNabnCrITw==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": "^6.0.0" + } + }, + "node_modules/@capacitor/preferences": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@capacitor/preferences/-/preferences-6.0.2.tgz", + "integrity": "sha512-ccD4/9ybnipJncLeCWlRPNQS2jv3nn8ivVLKzdVIWkiUHLo/hvuSSP7awVzvBwDNtAhNxIipjjWH6TyzZgLCcg==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": "^6.0.0" + } + }, + "node_modules/@capacitor/splash-screen": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@capacitor/splash-screen/-/splash-screen-6.0.2.tgz", + "integrity": "sha512-WC0KYZ+ev15up03xs4fTnoTKwBVUSxXsKKQr/8XAncvi/nAG8qrpanW8OlavSC5zF5e1IZZDLsI2GSv0SkZ7VQ==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": "^6.0.0" + } + }, + "node_modules/@capacitor/status-bar": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@capacitor/status-bar/-/status-bar-6.0.1.tgz", + "integrity": "sha512-Usd9hZZQVAqy+jJfL7jRcYI7dcsxN09Na1yttwdl+F1bk3Ztoukk7CGPDm5VgKUSs53ihQBOy1+sczCACxhNiw==", + "license": "MIT", + "peerDependencies": { + "@capacitor/core": "^6.0.0" + } + }, "node_modules/@emotion/babel-plugin": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.12.0.tgz", @@ -899,6 +1025,195 @@ "integrity": "sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==", "license": "MIT" }, + "node_modules/@ionic/cli-framework-output": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/@ionic/cli-framework-output/-/cli-framework-output-2.2.8.tgz", + "integrity": "sha512-TshtaFQsovB4NWRBydbNFawql6yul7d5bMiW1WYYf17hd99V6xdDdk3vtF51bw6sLkxON3bDQpWsnUc9/hVo3g==", + "license": "MIT", + "dependencies": { + "@ionic/utils-terminal": "2.3.5", + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-array": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@ionic/utils-array/-/utils-array-2.1.5.tgz", + "integrity": "sha512-HD72a71IQVBmQckDwmA8RxNVMTbxnaLbgFOl+dO5tbvW9CkkSFCv41h6fUuNsSEVgngfkn0i98HDuZC8mk+lTA==", + "license": "MIT", + "dependencies": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=10.3.0" + } + }, + "node_modules/@ionic/utils-fs": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@ionic/utils-fs/-/utils-fs-3.1.7.tgz", + "integrity": "sha512-2EknRvMVfhnyhL1VhFkSLa5gOcycK91VnjfrTB0kbqkTFCOXyXgVLI5whzq7SLrgD9t1aqos3lMMQyVzaQ5gVA==", + "license": "MIT", + "dependencies": { + "@types/fs-extra": "^8.0.0", + "debug": "^4.0.0", + "fs-extra": "^9.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-object": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@ionic/utils-object/-/utils-object-2.1.6.tgz", + "integrity": "sha512-vCl7sl6JjBHFw99CuAqHljYJpcE88YaH2ZW4ELiC/Zwxl5tiwn4kbdP/gxi2OT3MQb1vOtgAmSNRtusvgxI8ww==", + "license": "MIT", + "dependencies": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-process": { + "version": "2.1.12", + "resolved": "https://registry.npmjs.org/@ionic/utils-process/-/utils-process-2.1.12.tgz", + "integrity": "sha512-Jqkgyq7zBs/v/J3YvKtQQiIcxfJyplPgECMWgdO0E1fKrrH8EF0QGHNJ9mJCn6PYe2UtHNS8JJf5G21e09DfYg==", + "license": "MIT", + "dependencies": { + "@ionic/utils-object": "2.1.6", + "@ionic/utils-terminal": "2.3.5", + "debug": "^4.0.0", + "signal-exit": "^3.0.3", + "tree-kill": "^1.2.2", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@ionic/utils-stream": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@ionic/utils-stream/-/utils-stream-3.1.5.tgz", + "integrity": "sha512-hkm46uHvEC05X/8PHgdJi4l4zv9VQDELZTM+Kz69odtO9zZYfnt8DkfXHJqJ+PxmtiE5mk/ehJWLnn/XAczTUw==", + "license": "MIT", + "dependencies": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=10.3.0" + } + }, + "node_modules/@ionic/utils-subprocess": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/@ionic/utils-subprocess/-/utils-subprocess-2.1.11.tgz", + "integrity": "sha512-6zCDixNmZCbMCy5np8klSxOZF85kuDyzZSTTQKQP90ZtYNCcPYmuFSzaqDwApJT4r5L3MY3JrqK1gLkc6xiUPw==", + "license": "MIT", + "dependencies": { + "@ionic/utils-array": "2.1.5", + "@ionic/utils-fs": "3.1.6", + "@ionic/utils-process": "2.1.10", + "@ionic/utils-stream": "3.1.5", + "@ionic/utils-terminal": "2.3.3", + "cross-spawn": "^7.0.3", + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=10.3.0" + } + }, + "node_modules/@ionic/utils-subprocess/node_modules/@ionic/utils-fs": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/@ionic/utils-fs/-/utils-fs-3.1.6.tgz", + "integrity": "sha512-eikrNkK89CfGPmexjTfSWl4EYqsPSBh0Ka7by4F0PLc1hJZYtJxUZV3X4r5ecA8ikjicUmcbU7zJmAjmqutG/w==", + "license": "MIT", + "dependencies": { + "@types/fs-extra": "^8.0.0", + "debug": "^4.0.0", + "fs-extra": "^9.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=10.3.0" + } + }, + "node_modules/@ionic/utils-subprocess/node_modules/@ionic/utils-object": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@ionic/utils-object/-/utils-object-2.1.5.tgz", + "integrity": "sha512-XnYNSwfewUqxq+yjER1hxTKggftpNjFLJH0s37jcrNDwbzmbpFTQTVAp4ikNK4rd9DOebX/jbeZb8jfD86IYxw==", + "license": "MIT", + "dependencies": { + "debug": "^4.0.0", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=10.3.0" + } + }, + "node_modules/@ionic/utils-subprocess/node_modules/@ionic/utils-process": { + "version": "2.1.10", + "resolved": "https://registry.npmjs.org/@ionic/utils-process/-/utils-process-2.1.10.tgz", + "integrity": "sha512-mZ7JEowcuGQK+SKsJXi0liYTcXd2bNMR3nE0CyTROpMECUpJeAvvaBaPGZf5ERQUPeWBVuwqAqjUmIdxhz5bxw==", + "license": "MIT", + "dependencies": { + "@ionic/utils-object": "2.1.5", + "@ionic/utils-terminal": "2.3.3", + "debug": "^4.0.0", + "signal-exit": "^3.0.3", + "tree-kill": "^1.2.2", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=10.3.0" + } + }, + "node_modules/@ionic/utils-subprocess/node_modules/@ionic/utils-terminal": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@ionic/utils-terminal/-/utils-terminal-2.3.3.tgz", + "integrity": "sha512-RnuSfNZ5fLEyX3R5mtcMY97cGD1A0NVBbarsSQ6yMMfRJ5YHU7hHVyUfvZeClbqkBC/pAqI/rYJuXKCT9YeMCQ==", + "license": "MIT", + "dependencies": { + "@types/slice-ansi": "^4.0.0", + "debug": "^4.0.0", + "signal-exit": "^3.0.3", + "slice-ansi": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "tslib": "^2.0.1", + "untildify": "^4.0.0", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=10.3.0" + } + }, + "node_modules/@ionic/utils-terminal": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@ionic/utils-terminal/-/utils-terminal-2.3.5.tgz", + "integrity": "sha512-3cKScz9Jx2/Pr9ijj1OzGlBDfcmx7OMVBt4+P1uRR0SSW4cm1/y3Mo4OY3lfkuaYifMNBW8Wz6lQHbs1bihr7A==", + "license": "MIT", + "dependencies": { + "@types/slice-ansi": "^4.0.0", + "debug": "^4.0.0", + "signal-exit": "^3.0.3", + "slice-ansi": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "tslib": "^2.0.1", + "untildify": "^4.0.0", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.5", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", @@ -1812,6 +2127,15 @@ "@types/estree": "*" } }, + "node_modules/@types/fs-extra": { + "version": "8.1.5", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.5.tgz", + "integrity": "sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/hast": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", @@ -1868,10 +2192,7 @@ "version": "22.9.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.0.tgz", "integrity": "sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==", - "dev": true, "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "undici-types": "~6.19.8" } @@ -1908,6 +2229,12 @@ "@types/react": "*" } }, + "node_modules/@types/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-+OpjSaq85gvlZAYINyzKpLeiFkSC4EsC6IIiT6v6TLSU5k5U83fHGj9Lel8oKEXM0HqgrMVCjXPDPVICtxF7EQ==", + "license": "MIT" + }, "node_modules/@types/unist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", @@ -1946,12 +2273,63 @@ "vite": "^4.2.0 || ^5.0.0" } }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", + "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "license": "Python-2.0" }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "license": "ISC", + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/available-typed-arrays": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", @@ -1992,6 +2370,12 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" + }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -2012,6 +2396,15 @@ ], "license": "MIT" }, + "node_modules/big-integer": { + "version": "1.6.52", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", + "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", + "license": "Unlicense", + "engines": { + "node": ">=0.6" + } + }, "node_modules/bip39": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/bip39/-/bip39-3.1.0.tgz", @@ -2021,6 +2414,27 @@ "@noble/hashes": "^1.2.0" } }, + "node_modules/bplist-parser": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.3.2.tgz", + "integrity": "sha512-apC2+fspHGI3mMKj+dGevkGo/tCqVB8jMb6i+OX+E29p0Iposz07fABkRIfVUPNd5A5VbuOz1bZbnmkKLYF+wQ==", + "license": "MIT", + "dependencies": { + "big-integer": "1.6.x" + }, + "engines": { + "node": ">= 5.10.0" + } + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, "node_modules/browserify-zlib": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", @@ -2087,6 +2501,15 @@ "ieee754": "^1.2.1" } }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "license": "MIT", + "engines": { + "node": "*" + } + }, "node_modules/call-bind": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", @@ -2186,6 +2609,15 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, "node_modules/clsx": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", @@ -2195,6 +2627,24 @@ "node": ">=6" } }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, "node_modules/comma-separated-tokens": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", @@ -2205,6 +2655,15 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "license": "MIT", + "engines": { + "node": "^12.20.0 || >=14" + } + }, "node_modules/convert-source-map": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", @@ -2233,6 +2692,20 @@ "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==", "license": "MIT" }, + "node_modules/cross-spawn": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.5.tgz", + "integrity": "sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/csstype": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", @@ -2296,6 +2769,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -2341,6 +2823,24 @@ "dev": true, "license": "ISC" }, + "node_modules/elementtree": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/elementtree/-/elementtree-0.1.7.tgz", + "integrity": "sha512-wkgGT6kugeQk/P6VZ/f4T+4HB41BVgNBq5CDIZVbQ02nvTVqAiVTbskxxu3eA/X96lMlfYOwnLQpN2v5E1zDEg==", + "license": "Apache-2.0", + "dependencies": { + "sax": "1.1.4" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, "node_modules/entities": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", @@ -2353,6 +2853,15 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -2466,6 +2975,15 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "license": "MIT" }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "license": "MIT", + "dependencies": { + "pend": "~1.2.0" + } + }, "node_modules/find-root": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", @@ -2481,6 +2999,57 @@ "is-callable": "^1.1.3" } }, + "node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs-minipass/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -2543,6 +3112,24 @@ "node": ">=6" } }, + "node_modules/glob": { + "version": "9.3.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz", + "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "minimatch": "^8.0.2", + "minipass": "^4.2.4", + "path-scurry": "^1.6.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", @@ -2564,6 +3151,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, "node_modules/has-property-descriptors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", @@ -2870,6 +3463,15 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "license": "ISC" }, + "node_modules/ini": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz", + "integrity": "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==", + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, "node_modules/inline-style-parser": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.4.tgz", @@ -2968,6 +3570,30 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/is-generator-function": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", @@ -3011,15 +3637,33 @@ "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", "license": "MIT", "dependencies": { - "which-typed-array": "^1.1.14" + "which-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "license": "MIT", + "dependencies": { + "is-docker": "^2.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -3057,6 +3701,27 @@ "node": ">=6" } }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", @@ -4012,6 +4677,73 @@ ], "license": "MIT" }, + "node_modules/minimatch": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.4.tgz", + "integrity": "sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", + "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==", + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -4037,6 +4769,31 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/native-run": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/native-run/-/native-run-2.0.1.tgz", + "integrity": "sha512-XfG1FBZLM50J10xH9361whJRC9SHZ0Bub4iNRhhI61C8Jv0e1ud19muex6sNKB51ibQNUJNuYn25MuYET/rE6w==", + "license": "MIT", + "dependencies": { + "@ionic/utils-fs": "^3.1.7", + "@ionic/utils-terminal": "^2.3.4", + "bplist-parser": "^0.3.2", + "debug": "^4.3.4", + "elementtree": "^0.1.7", + "ini": "^4.1.1", + "plist": "^3.1.0", + "split2": "^4.2.0", + "through2": "^4.0.2", + "tslib": "^2.6.2", + "yauzl": "^2.10.0" + }, + "bin": { + "native-run": "bin/native-run" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/node-releases": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", @@ -4053,6 +4810,23 @@ "node": ">=0.10.0" } }, + "node_modules/open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "license": "MIT", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/orderedmap": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz", @@ -4133,12 +4907,52 @@ "url": "https://github.com/inikulin/parse5?sponsor=1" } }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "license": "MIT" }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "license": "ISC" + }, + "node_modules/path-scurry/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -4148,12 +4962,32 @@ "node": ">=8" } }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "license": "MIT" + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "license": "ISC" }, + "node_modules/plist": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", + "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", + "license": "MIT", + "dependencies": { + "@xmldom/xmldom": "^0.8.8", + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" + }, + "engines": { + "node": ">=10.4.0" + } + }, "node_modules/possible-typed-array-names": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", @@ -4201,6 +5035,28 @@ "node": ">= 0.6.0" } }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/prompts/node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", @@ -4750,6 +5606,24 @@ "node": ">=4" } }, + "node_modules/rimraf": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.1.tgz", + "integrity": "sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==", + "license": "ISC", + "dependencies": { + "glob": "^9.2.0" + }, + "bin": { + "rimraf": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/rollup": { "version": "4.26.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.26.0.tgz", @@ -4814,6 +5688,12 @@ ], "license": "MIT" }, + "node_modules/sax": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.1.4.tgz", + "integrity": "sha512-5f3k2PbGGp+YtKJjOItpg3P99IMD84E4HOvcfleTb5joCHNXYLsR9yWFPOYGgaeMPDubQILTCMdsFb2OMeOjtg==", + "license": "ISC" + }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", @@ -4850,6 +5730,56 @@ "node": ">= 0.4" } }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "license": "MIT" + }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, "node_modules/source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -4879,6 +5809,15 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, "node_modules/stream-browserify": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", @@ -4898,6 +5837,20 @@ "safe-buffer": "~5.2.0" } }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/stringify-entities": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", @@ -4912,6 +5865,18 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/style-to-object": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.8.tgz", @@ -4945,6 +5910,47 @@ "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==", "license": "MIT" }, + "node_modules/tar": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/tar/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/through2": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", + "license": "MIT", + "dependencies": { + "readable-stream": "3" + } + }, "node_modules/tippy.js": { "version": "6.3.7", "resolved": "https://registry.npmjs.org/tippy.js/-/tippy.js-6.3.7.tgz", @@ -4954,6 +5960,15 @@ "@popperjs/core": "^2.9.0" } }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "license": "MIT", + "bin": { + "tree-kill": "cli.js" + } + }, "node_modules/trim-lines": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", @@ -5016,10 +6031,7 @@ "version": "6.19.8", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true + "license": "MIT" }, "node_modules/unified": { "version": "11.0.5", @@ -5122,6 +6134,24 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/update-browserslist-db": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", @@ -5382,6 +6412,21 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/which-typed-array": { "version": "1.1.15", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", @@ -5401,6 +6446,54 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/xml2js": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", + "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", + "license": "MIT", + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xml2js/node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "license": "MIT", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "license": "MIT", + "engines": { + "node": ">=8.0" + } + }, "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", @@ -5417,6 +6510,16 @@ "node": ">= 6" } }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "license": "MIT", + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, "node_modules/zwitch": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", diff --git a/package.json b/package.json index 8c662b4..08a8f8c 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,19 @@ "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview" + "preview": "vite preview", + "android": "npm run build && npx cap sync android && npx cap open android" }, "dependencies": { + "@capacitor/android": "^6.1.2", + "@capacitor/cli": "^6.1.2", + "@capacitor/core": "^6.1.2", + "@capacitor/ios": "^6.1.2", + "@capacitor/preferences": "^6.0.2", + "@capacitor/keyboard": "^6.0.2", + "@capacitor/status-bar": "^6.0.1", + "@capacitor/splash-screen": "^6.0.2", + "@capacitor/app": "^6.0.1", "@emotion/react": "^11.13.3", "@mantine/core": "^7.14.0", "@mantine/hooks": "^7.14.0", @@ -22,15 +32,15 @@ "@tiptap/pm": "^2.9.1", "@tiptap/react": "^2.9.1", "@tiptap/starter-kit": "^2.9.1", - "@types/highlight.js": "^9.12.4", + "@types/highlight.js": "^10.1.0", "bip39": "^3.1.0", "browserify-zlib": "^0.2.0", "buffer": "^6.0.3", "date-fns": "^4.1.0", "highlight.js": "^11.10.0", "process": "^0.11.10", - "react": "^18.2.0", - "react-dom": "^18.2.0", + "react": "^18.3.1", + "react-dom": "^18.3.1", "react-markdown": "^9.0.1", "rehype-highlight": "^7.0.1", "rehype-raw": "^7.0.0", @@ -39,10 +49,10 @@ "util": "^0.12.5" }, "devDependencies": { - "@types/react": "^18.2.15", - "@types/react-dom": "^18.2.7", - "@vitejs/plugin-react": "^4.2.1", - "typescript": "^5.2.2", - "vite": "^5.3.1" + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", + "@vitejs/plugin-react": "^4.3.3", + "typescript": "^5.6.3", + "vite": "^5.4.11" } } diff --git a/src/App.tsx b/src/App.tsx index 5549581..7119b46 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -115,6 +115,17 @@ function App() { WebStorageService.getSyncSettings().then(setSyncSettings); }, []); + useEffect(() => { + const initMobile = async () => { + if (isMobile) { + const { initializeMobileApp } = await import('./services/mobileInit'); + await initializeMobileApp(); + } + }; + + initMobile(); + }, [isMobile]); + useAutoSync( syncSettings?.auto_sync ?? false, syncSettings?.sync_interval ?? 5 diff --git a/src/services/mobileInit.ts b/src/services/mobileInit.ts new file mode 100644 index 0000000..832fcb5 --- /dev/null +++ b/src/services/mobileInit.ts @@ -0,0 +1,30 @@ +import { App } from '@capacitor/app'; +import { StatusBar, Style } from '@capacitor/status-bar'; +import { Keyboard } from '@capacitor/keyboard'; +import { Preferences } from '@capacitor/preferences'; + +export const initializeMobileApp = async () => { + try { + await StatusBar.setStyle({ style: Style.Dark }); + + Keyboard.addListener('keyboardWillShow', () => { + document.body.classList.add('keyboard-visible'); + }); + + Keyboard.addListener('keyboardWillHide', () => { + document.body.classList.remove('keyboard-visible'); + }); + + App.addListener('appStateChange', async ({ isActive }) => { + if (!isActive) { + await Preferences.set({ + key: 'lastActiveTime', + value: new Date().toISOString() + }); + } + }); + + } catch (error) { + console.error('Error initializing mobile app:', error); + } +}; \ No newline at end of file diff --git a/src/services/webStorage.ts b/src/services/webStorage.ts index a25b8d1..68530f2 100644 --- a/src/services/webStorage.ts +++ b/src/services/webStorage.ts @@ -173,7 +173,6 @@ export class WebStorageService { private static mergeNotes(localNotes: Note[], serverNotes: Note[]): Note[] { const notesMap = new Map(); - // First, add all local notes to the map localNotes.forEach(note => { if (note.id) { notesMap.set(note.id, note); diff --git a/src/styles/mobile.css b/src/styles/mobile.css new file mode 100644 index 0000000..aed1dc9 --- /dev/null +++ b/src/styles/mobile.css @@ -0,0 +1,21 @@ +.ios { + --ion-safe-area-top: env(safe-area-inset-top); + --ion-safe-area-bottom: env(safe-area-inset-bottom); + padding-top: var(--ion-safe-area-top); + padding-bottom: var(--ion-safe-area-bottom); + } + + .keyboard-visible .markdown-editor { + max-height: calc(100vh - 270px); + } + + @media (max-width: 768px) { + .mantine-AppShell-main { + padding: 8px !important; + } + + .mantine-TextInput-input, + .mantine-Textarea-input { + font-size: 16px !important; + } + } \ No newline at end of file