@swiftcast/clip-editor-react 0.0.1-alpha.3 → 0.0.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/mf-manifest.json +1198 -35
- package/dist/mf-stats.json +1565 -37
- package/dist/remoteEntry.js +5 -5
- package/dist/static/js/{94.233614b7.js → 8094.03bf5edc.js} +3 -3
- package/dist/static/js/async/109.256a32bd.js +2 -0
- package/dist/static/js/async/109.256a32bd.js.LICENSE.txt +9 -0
- package/dist/static/js/async/1099.7ec4a1d4.js +1 -0
- package/dist/static/js/async/1167.eafb458c.js +1 -0
- package/dist/static/js/async/1229.3824b191.js +1 -0
- package/dist/static/js/async/1358.c5623f2c.js +2 -0
- package/dist/static/js/async/1358.c5623f2c.js.LICENSE.txt +9 -0
- package/dist/static/js/async/1359.c78c33cc.js +1 -0
- package/dist/static/js/async/1408.45dd942f.js +1 -0
- package/dist/static/js/async/1475.ca68a958.js +2 -0
- package/dist/static/js/async/1475.ca68a958.js.LICENSE.txt +9 -0
- package/dist/static/js/async/1491.afc05a88.js +1 -0
- package/dist/static/js/async/1536.acd44187.js +2 -0
- package/dist/static/js/async/1536.acd44187.js.LICENSE.txt +9 -0
- package/dist/static/js/async/1545.339b9e4a.js +1 -0
- package/dist/static/js/async/1663.0a34b1a6.js +2 -0
- package/dist/static/js/async/1663.0a34b1a6.js.LICENSE.txt +9 -0
- package/dist/static/js/async/1677.4c84f733.js +2 -0
- package/dist/static/js/async/1677.4c84f733.js.LICENSE.txt +9 -0
- package/dist/static/js/async/1690.28cd4402.js +2 -0
- package/dist/static/js/async/{510.e827048d.js.LICENSE.txt → 1690.28cd4402.js.LICENSE.txt} +0 -36
- package/dist/static/js/async/1855.dc79d72c.js +1 -0
- package/dist/static/js/async/1921.7437e362.js +1 -0
- package/dist/static/js/async/2068.600661ee.js +1 -0
- package/dist/static/js/async/2111.5db2cfc1.js +2 -0
- package/dist/static/js/async/2111.5db2cfc1.js.LICENSE.txt +9 -0
- package/dist/static/js/async/213.94b97063.js +1 -0
- package/dist/static/js/async/2199.65d29190.js +1 -0
- package/dist/static/js/async/2305.9e6f32d6.js +2 -0
- package/dist/static/js/async/2305.9e6f32d6.js.LICENSE.txt +8 -0
- package/dist/static/js/async/2375.042f6260.js +1 -0
- package/dist/static/js/async/2469.fc8a042e.js +1 -0
- package/dist/static/js/async/2746.01a51768.js +2 -0
- package/dist/static/js/async/2746.01a51768.js.LICENSE.txt +1 -0
- package/dist/static/js/async/2790.ff501683.js +5 -0
- package/dist/static/js/async/2900.6ab855e9.js +1 -0
- package/dist/static/js/async/2927.6711b41c.js +2 -0
- package/dist/static/js/async/2927.6711b41c.js.LICENSE.txt +45 -0
- package/dist/static/js/async/3126.500697e8.js +1 -0
- package/dist/static/js/async/3145.6d46bb3e.js +1 -0
- package/dist/static/js/async/3328.3edb2c5f.js +7 -0
- package/dist/static/js/async/3328.3edb2c5f.js.LICENSE.txt +9 -0
- package/dist/static/js/async/3357.3cc4b057.js +1 -0
- package/dist/static/js/async/3358.f439fe77.js +3 -0
- package/dist/static/js/async/3436.02b7dced.js +2 -0
- package/dist/static/js/async/3436.02b7dced.js.LICENSE.txt +9 -0
- package/dist/static/js/async/35.63ec382c.js +2 -0
- package/dist/static/js/async/35.63ec382c.js.LICENSE.txt +9 -0
- package/dist/static/js/async/3500.2a5e861e.js +2 -0
- package/dist/static/js/async/3500.2a5e861e.js.LICENSE.txt +5 -0
- package/dist/static/js/async/3714.3de0cc07.js +1 -0
- package/dist/static/js/async/3761.30e06c21.js +2 -0
- package/dist/static/js/async/4437.c013a47e.js +1 -0
- package/dist/static/js/async/4516.86f759b3.js +1 -0
- package/dist/static/js/async/4588.381756a4.js +4 -0
- package/dist/static/js/async/4617.3c1cb2e1.js +1 -0
- package/dist/static/js/async/4804.4b5a6c4b.js +1 -0
- package/dist/static/js/async/4964.31141e42.js +1 -0
- package/dist/static/js/async/5040.ad9e108f.js +2 -0
- package/dist/static/js/async/5040.ad9e108f.js.LICENSE.txt +9 -0
- package/dist/static/js/async/5058.6c88d364.js +2 -0
- package/dist/static/js/async/5058.6c88d364.js.LICENSE.txt +62 -0
- package/dist/static/js/async/5083.a594c3b4.js +2 -0
- package/dist/static/js/async/5083.a594c3b4.js.LICENSE.txt +9 -0
- package/dist/static/js/async/5127.095785dd.js +2 -0
- package/dist/static/js/async/5127.095785dd.js.LICENSE.txt +9 -0
- package/dist/static/js/async/5128.27f2ad05.js +2 -0
- package/dist/static/js/async/{355.7bff4544.js.LICENSE.txt → 5128.27f2ad05.js.LICENSE.txt} +2 -14
- package/dist/static/js/async/5184.c393a127.js +1 -0
- package/dist/static/js/async/5218.87494e0c.js +1 -0
- package/dist/static/js/async/5285.fe1791d9.js +5 -0
- package/dist/static/js/async/{661.83de2736.js.LICENSE.txt → 5285.fe1791d9.js.LICENSE.txt} +1 -8
- package/dist/static/js/async/5408.253200ee.js +1 -0
- package/dist/static/js/async/5450.359d95c3.js +1 -0
- package/dist/static/js/async/5469.f0179be1.js +1 -0
- package/dist/static/js/async/5522.cc016a92.js +1 -0
- package/dist/static/js/async/5770.c3d8277f.js +1 -0
- package/dist/static/js/async/5876.36f8e85a.js +2 -0
- package/dist/static/js/async/5876.36f8e85a.js.LICENSE.txt +9 -0
- package/dist/static/js/async/5921.bfb648cb.js +1 -0
- package/dist/static/js/async/6127.1257e70c.js +1 -0
- package/dist/static/js/async/6140.5479e7b9.js +2 -0
- package/dist/static/js/async/6140.5479e7b9.js.LICENSE.txt +9 -0
- package/dist/static/js/async/6297.336e7ffc.js +2 -0
- package/dist/static/js/async/6297.336e7ffc.js.LICENSE.txt +9 -0
- package/dist/static/js/async/6452.a2c7f164.js +2 -0
- package/dist/static/js/async/{__federation_expose_ProjectsPage.e597d172.js.LICENSE.txt → 6452.a2c7f164.js.LICENSE.txt} +1 -1
- package/dist/static/js/async/6504.53e9c9c5.js +1 -0
- package/dist/static/js/async/6678.fe09eab0.js +1 -0
- package/dist/static/js/async/6682.e0084aeb.js +2 -0
- package/dist/static/js/async/6703.f8fca121.js +1 -0
- package/dist/static/js/async/6716.50326c01.js +2 -0
- package/dist/static/js/async/6716.50326c01.js.LICENSE.txt +8 -0
- package/dist/static/js/async/6734.4a52d73f.js +6 -0
- package/dist/static/js/async/6964.d244eb15.js +7 -0
- package/dist/static/js/async/7300.69a06cf8.js +1 -0
- package/dist/static/js/async/7420.4846bd05.js +2 -0
- package/dist/static/js/async/7420.4846bd05.js.LICENSE.txt +9 -0
- package/dist/static/js/async/7426.2ccadab1.js +1 -0
- package/dist/static/js/async/747.3568c169.js +2 -0
- package/dist/static/js/async/747.3568c169.js.LICENSE.txt +9 -0
- package/dist/static/js/async/753.c9fb4bb6.js +2 -0
- package/dist/static/js/async/753.c9fb4bb6.js.LICENSE.txt +8 -0
- package/dist/static/js/async/7560.cfdf6fc1.js +3 -0
- package/dist/static/js/async/7560.cfdf6fc1.js.LICENSE.txt +19 -0
- package/dist/static/js/async/7693.99348793.js +2 -0
- package/dist/static/js/async/7693.99348793.js.LICENSE.txt +6 -0
- package/dist/static/js/async/7785.4146afc2.js +1 -0
- package/dist/static/js/async/7855.3a70056f.js +1 -0
- package/dist/static/js/async/787.fe3d07c6.js +1 -0
- package/dist/static/js/async/7889.09b20686.js +1 -0
- package/dist/static/js/async/7961.5d19744b.js +1 -0
- package/dist/static/js/async/8062.09a6fdbd.js +2 -0
- package/dist/static/js/async/8062.09a6fdbd.js.LICENSE.txt +9 -0
- package/dist/static/js/async/8112.26771b29.js +1 -0
- package/dist/static/js/async/8145.7711418b.js +1 -0
- package/dist/static/js/async/8194.e3680a0e.js +1 -0
- package/dist/static/js/async/8247.71ad8780.js +1 -0
- package/dist/static/js/async/8314.4fbcc580.js +2 -0
- package/dist/static/js/async/8314.4fbcc580.js.LICENSE.txt +9 -0
- package/dist/static/js/async/8327.d70b6d2b.js +2 -0
- package/dist/static/js/async/8327.d70b6d2b.js.LICENSE.txt +9 -0
- package/dist/static/js/async/8377.491112d2.js +1 -0
- package/dist/static/js/async/8430.cc4ab0b0.js +2 -0
- package/dist/static/js/async/8430.cc4ab0b0.js.LICENSE.txt +9 -0
- package/dist/static/js/async/8512.ae31acae.js +2 -0
- package/dist/static/js/async/8512.ae31acae.js.LICENSE.txt +9 -0
- package/dist/static/js/async/8522.7b59f26a.js +17 -0
- package/dist/static/js/async/8572.889a2f0f.js +1 -0
- package/dist/static/js/async/8636.3a0609ce.js +4 -0
- package/dist/static/js/async/8652.231efd09.js +1 -0
- package/dist/static/js/async/8719.d5d23e80.js +1 -0
- package/dist/static/js/async/8865.2104211d.js +8 -0
- package/dist/static/js/async/8895.153ddc5f.js +2 -0
- package/dist/static/js/async/8895.153ddc5f.js.LICENSE.txt +19 -0
- package/dist/static/js/async/8913.64eea008.js +1 -0
- package/dist/static/js/async/8964.196834ba.js +1 -0
- package/dist/static/js/async/9047.c6fa7623.js +452 -0
- package/dist/static/js/async/9047.c6fa7623.js.LICENSE.txt +117 -0
- package/dist/static/js/async/905.4340e6d5.js +2 -0
- package/dist/static/js/async/905.4340e6d5.js.LICENSE.txt +5 -0
- package/dist/static/js/async/9146.efbecec7.js +1 -0
- package/dist/static/js/async/9149.82308d8f.js +1 -0
- package/dist/static/js/async/9249.622a286f.js +2 -0
- package/dist/static/js/async/9249.622a286f.js.LICENSE.txt +5 -0
- package/dist/static/js/async/9525.2192486e.js +1 -0
- package/dist/static/js/async/9594.516654c9.js +2 -0
- package/dist/static/js/async/9594.516654c9.js.LICENSE.txt +9 -0
- package/dist/static/js/async/9630.c795adce.js +1 -0
- package/dist/static/js/async/9669.dc59da89.js +75 -0
- package/dist/static/js/async/9798.20a5011c.js +2 -0
- package/dist/static/js/async/9798.20a5011c.js.LICENSE.txt +9 -0
- package/dist/static/js/async/9854.c86b795e.js +1 -0
- package/dist/static/js/async/9905.e5456d13.js +2 -0
- package/dist/static/js/async/9905.e5456d13.js.LICENSE.txt +9 -0
- package/dist/static/js/async/9973.04e09e35.js +1 -0
- package/dist/static/js/async/__federation_expose_ProjectsPage.d61a8a68.js +1 -0
- package/dist/static/js/async/__federation_expose_SniffingPage.79823a67.js +1 -0
- package/dist/static/js/async/__federation_expose_WorkFlow.39bd1b8e.js +11 -0
- package/dist/static/js/index.03348712.js +1 -0
- package/package.json +4 -4
- package/dist/static/js/async/194.fb5067a8.js +0 -1
- package/dist/static/js/async/216.dd2d476e.js +0 -3
- package/dist/static/js/async/216.dd2d476e.js.LICENSE.txt +0 -38
- package/dist/static/js/async/353.1d23abc7.js +0 -175
- package/dist/static/js/async/353.1d23abc7.js.LICENSE.txt +0 -144
- package/dist/static/js/async/355.7bff4544.js +0 -3
- package/dist/static/js/async/375.444c8914.js +0 -1
- package/dist/static/js/async/491.179841c1.js +0 -1
- package/dist/static/js/async/510.e827048d.js +0 -36
- package/dist/static/js/async/525.9c60477e.js +0 -1
- package/dist/static/js/async/661.83de2736.js +0 -8
- package/dist/static/js/async/682.f9ec3784.js +0 -2
- package/dist/static/js/async/738.b950a194.js +0 -1
- package/dist/static/js/async/852.1a544322.js +0 -6
- package/dist/static/js/async/__federation_expose_ProjectsPage.e597d172.js +0 -2
- package/dist/static/js/async/__federation_expose_SniffingPage.ad10d51a.js +0 -1
- package/dist/static/js/async/__federation_expose_WorkFlow.e18339ec.js +0 -11
- package/dist/static/js/async/lib-axios.64c3f6d8.js +0 -1
- package/dist/static/js/index.e9f49efa.js +0 -1
- /package/dist/static/css/async/{555.ecec5306.css → 9139.ecec5306.css} +0 -0
- /package/dist/static/js/async/{852.1a544322.js.LICENSE.txt → 3761.30e06c21.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/{682.f9ec3784.js.LICENSE.txt → 6682.e0084aeb.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! For license information please see 2746.01a51768.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["2746"],{40021:function(e,t,n){n.r(t),n.d(t,{CORE_SCHEMA:()=>eR,DEFAULT_SCHEMA:()=>eB,FAILSAFE_SCHEMA:()=>eq,JSON_SCHEMA:()=>eY,Schema:()=>eU,Type:()=>eD,YAMLException:()=>eP,default:()=>eJ,dump:()=>eH,load:()=>eK,loadAll:()=>eW,safeDump:()=>eZ,safeLoad:()=>eG,safeLoadAll:()=>eV,types:()=>e$});var i={isNothing:function(e){return null==e},isObject:function(e){return"object"==typeof e&&null!==e},repeat:function(e,t){var n,i="";for(n=0;n<t;n+=1)i+=e;return i},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}};function r(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),i+" "+n):i}function o(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=r(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function a(e,t,n,i,r){var o="",a="",l=Math.floor(r/2)-1;return i-t>l&&(t=i-l+(o=" ... ").length),n-i>l&&(n=i+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:i-t+o.length}}function l(e,t){return i.repeat(" ",t-e.length)+e}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.toString=function(e){return this.name+": "+r(this,e)};var c=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],o=[],c=-1;s=n.exec(e.buffer);)o.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&c<0&&(c=r.length-2);c<0&&(c=r.length-1);var s,u,p,f="",d=Math.min(e.line+t.linesAfter,o.length).toString().length,h=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(c-u<0);u++)p=a(e.buffer,r[c-u],o[c-u],e.position-(r[c]-r[c-u]),h),f=i.repeat(" ",t.indent)+l((e.line-u+1).toString(),d)+" | "+p.str+"\n"+f;for(p=a(e.buffer,r[c],o[c],e.position,h),f+=i.repeat(" ",t.indent)+l((e.line+1).toString(),d)+" | "+p.str+"\n"+i.repeat("-",t.indent+d+3+p.pos)+"^\n",u=1;u<=t.linesAfter&&!(c+u>=o.length);u++)p=a(e.buffer,r[c+u],o[c+u],e.position-(r[c]-r[c+u]),h),f+=i.repeat(" ",t.indent)+l((e.line+u+1).toString(),d)+" | "+p.str+"\n";return f.replace(/\n$/,"")},s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],u=["scalar","sequence","mapping"],p=function(e,t){var n,i;if(Object.keys(t=t||{}).forEach(function(t){if(-1===s.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,i={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){i[String(t)]=e})}),i),-1===u.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function f(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)}),n[t]=e}),n}function d(e){return this.extend(e)}d.prototype.extend=function(e){var t=[],n=[];if(e instanceof p)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new o("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(d.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=f(i,"implicit"),i.compiledExplicit=f(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(i);return n}(i.compiledImplicit,i.compiledExplicit),i};var h=new p("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),g=new p("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),m=new p("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),y=new d({explicit:[h,g,m]}),b=new p("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),A=new p("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),v=new p("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i,r,o=e.length,a=0,l=!1;if(!o)return!1;if(("-"===(r=e[a])||"+"===r)&&(r=e[++a]),"0"===r){if(a+1===o)return!0;if("b"===(r=e[++a])){for(a++;a<o;a++)if("_"!==(r=e[a])){if("0"!==r&&"1"!==r)return!1;l=!0}return l&&"_"!==r}if("x"===r){for(a++;a<o;a++)if("_"!==(r=e[a])){if(!(48<=(t=e.charCodeAt(a))&&t<=57||65<=t&&t<=70||97<=t&&t<=102))return!1;l=!0}return l&&"_"!==r}if("o"===r){for(a++;a<o;a++)if("_"!==(r=e[a])){if(!(48<=(n=e.charCodeAt(a))&&n<=55))return!1;l=!0}return l&&"_"!==r}}if("_"===r)return!1;for(;a<o;a++)if("_"!==(r=e[a])){if(!(48<=(i=e.charCodeAt(a))&&i<=57))return!1;l=!0}return!!l&&"_"!==r},construct:function(e){var t,n=e,i=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),("-"===(t=n[0])||"+"===t)&&("-"===t&&(i=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return i*parseInt(n.slice(2),2);if("x"===n[1])return i*parseInt(n.slice(2),16);if("o"===n[1])return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!i.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),k=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),C=/^[-+]?[0-9]+e/,w=new p("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!k.test(e)&&"_"!==e[e.length-1]},construct:function(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||i.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(i.isNegativeZero(e))return"-0.0";return n=e.toString(10),C.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),x=y.extend({implicit:[b,A,v,w]}),I=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),S=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),O=new p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==I.exec(e)||null!==S.exec(e))},construct:function(e){var t,n,i,r,o,a,l,c,s=0,u=null;if(null===(t=I.exec(e))&&(t=S.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s*=1}return t[9]&&(u=(60*+t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(n,i,r,o,a,l,s)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}}),j=new p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",N=new p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,r=e.length;for(n=0;n<r;n++)if(!((t=T.indexOf(e.charAt(n)))>64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=0,a=[];for(t=0;t<r;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|T.indexOf(i.charAt(t));return 0==(n=r%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===n?(a.push(o>>10&255),a.push(o>>2&255)):12===n&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",r=0,o=e.length;for(t=0;t<o;t++)t%3==0&&t&&(i+=T[r>>18&63],i+=T[r>>12&63],i+=T[r>>6&63],i+=T[63&r]),r=(r<<8)+e[t];return 0==(n=o%3)?(i+=T[r>>18&63],i+=T[r>>12&63],i+=T[r>>6&63],i+=T[63&r]):2===n?(i+=T[r>>10&63],i+=T[r>>4&63],i+=T[r<<2&63],i+=T[64]):1===n&&(i+=T[r>>2&63],i+=T[r<<4&63],i+=T[64],i+=T[64]),i}}),F=Object.prototype.hasOwnProperty,E=Object.prototype.toString,M=new p("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=[];for(t=0,n=e.length;t<n;t+=1){if(i=e[t],o=!1,"[object Object]"!==E.call(i))return!1;for(r in i)if(F.call(i,r))if(o)return!1;else o=!0;if(!o||-1!==a.indexOf(r))return!1;a.push(r)}return!0},construct:function(e){return null!==e?e:[]}}),L=Object.prototype.toString,_=new p("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){var t,n,i,r,o;if(null===e)return!0;for(t=0,o=Array(e.length),n=e.length;t<n;t+=1){if(i=e[t],"[object Object]"!==L.call(i)||1!==(r=Object.keys(i)).length)return!1;o[t]=[r[0],i[r[0]]]}return!0},construct:function(e){var t,n,i,r,o;if(null===e)return[];for(t=0,o=Array(e.length),n=e.length;t<n;t+=1)r=Object.keys(i=e[t]),o[t]=[r[0],i[r[0]]];return o}}),D=Object.prototype.hasOwnProperty,U=new p("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){var t;if(null===e)return!0;for(t in e)if(D.call(e,t)&&null!==e[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),q=x.extend({implicit:[O,j],explicit:[N,M,_,U]}),Y=Object.prototype.hasOwnProperty,R=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,B=/[\x85\u2028\u2029]/,K=/[,\[\]\{\}]/,W=/^(?:!|!!|![a-z\-]+!)$/i,H=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function P(e){return Object.prototype.toString.call(e)}function $(e){return 10===e||13===e}function G(e){return 9===e||32===e}function V(e){return 9===e||32===e||10===e||13===e}function Z(e){return 44===e||91===e||93===e||123===e||125===e}function J(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}for(var Q=Array(256),z=Array(256),X=0;X<256;X++)Q[X]=+!!J(X),z[X]=J(X);function ee(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||q,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function et(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=c(n),new o(t,n)}function en(e,t){throw et(e,t)}function ei(e,t){e.onWarning&&e.onWarning.call(null,et(e,t))}var er={YAML:function(e,t,n){var i,r,o;null!==e.version&&en(e,"duplication of %YAML directive"),1!==n.length&&en(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&en(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&en(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&ei(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&en(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],W.test(i)||en(e,"ill-formed tag handle (first argument) of the TAG directive"),Y.call(e.tagMap,i)&&en(e,'there is a previously declared suffix for "'+i+'" tag handle'),H.test(r)||en(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){en(e,"tag prefix is malformed: "+r)}e.tagMap[i]=r}};function eo(e,t,n,i){var r,o,a,l;if(t<n){if(l=e.input.slice(t,n),i)for(r=0,o=l.length;r<o;r+=1)9===(a=l.charCodeAt(r))||32<=a&&a<=1114111||en(e,"expected valid JSON character");else R.test(l)&&en(e,"the stream contains non-printable characters");e.result+=l}}function ea(e,t,n,r){var o,a,l,c;for(i.isObject(n)||en(e,"cannot merge mappings; the provided source object is unacceptable"),l=0,c=(o=Object.keys(n)).length;l<c;l+=1)a=o[l],Y.call(t,a)||(t[a]=n[a],r[a]=!0)}function el(e,t,n,i,r,o,a,l,c){var s,u;if(Array.isArray(r))for(s=0,u=(r=Array.prototype.slice.call(r)).length;s<u;s+=1)Array.isArray(r[s])&&en(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===P(r[s])&&(r[s]="[object Object]");if("object"==typeof r&&"[object Object]"===P(r)&&(r="[object Object]"),r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(s=0,u=o.length;s<u;s+=1)ea(e,t,o[s],n);else ea(e,t,o,n);else!e.json&&!Y.call(n,r)&&Y.call(t,r)&&(e.line=a||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,en(e,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[r]=o,delete n[r];return t}function ec(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):en(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function es(e,t,n){for(var i=0,r=e.input.charCodeAt(e.position);0!==r;){for(;G(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&35===r)do r=e.input.charCodeAt(++e.position);while(10!==r&&13!==r&&0!==r);if($(r))for(ec(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return -1!==n&&0!==i&&e.lineIndent<n&&ei(e,"deficient indentation"),i}function eu(e){var t,n=e.position;return!!((45===(t=e.input.charCodeAt(n))||46===t)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,0===(t=e.input.charCodeAt(n))||V(t)))||!1}function ep(e,t){1===t?e.result+=" ":t>1&&(e.result+=i.repeat("\n",t-1))}function ef(e,t){var n,i,r=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,en(e,"tab characters must not be used in indentation")),45===i&&V(e.input.charCodeAt(e.position+1)));){if(l=!0,e.position++,es(e,!0,-1)&&e.lineIndent<=t){a.push(null),i=e.input.charCodeAt(e.position);continue}if(n=e.line,ed(e,t,3,!1,!0),a.push(e.result),es(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)en(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!l&&(e.tag=r,e.anchor=o,e.kind="sequence",e.result=a,!0)}function ed(e,t,n,r,o){var a,l,c,s,u,p,f,d,h,g=1,m=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=l=c=4===n||3===n,r&&es(e,!0,-1)&&(m=!0,e.lineIndent>t?g=1:e.lineIndent===t?g=0:e.lineIndent<t&&(g=-1)),1===g)for(;function(e){var t,n,i,r,o=!1,a=!1;if(33!==(r=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&en(e,"duplication of a tag property"),60===(r=e.input.charCodeAt(++e.position))?(o=!0,r=e.input.charCodeAt(++e.position)):33===r?(a=!0,n="!!",r=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do r=e.input.charCodeAt(++e.position);while(0!==r&&62!==r);e.position<e.length?(i=e.input.slice(t,e.position),r=e.input.charCodeAt(++e.position)):en(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!V(r);)33===r&&(a?en(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),W.test(n)||en(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),r=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),K.test(i)&&en(e,"tag suffix cannot contain flow indicator characters")}i&&!H.test(i)&&en(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(t){en(e,"tag name is malformed: "+i)}return o?e.tag=i:Y.call(e.tagMap,n)?e.tag=e.tagMap[n]+i:"!"===n?e.tag="!"+i:"!!"===n?e.tag="tag:yaml.org,2002:"+i:en(e,'undeclared tag handle "'+n+'"'),!0}(e)||function(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&en(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!V(n)&&!Z(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&en(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)es(e,!0,-1)?(m=!0,c=a,e.lineIndent>t?g=1:e.lineIndent===t?g=0:e.lineIndent<t&&(g=-1)):c=!1;if(c&&(c=m||o),(1===g||4===n)&&(d=1===n||2===n?t:t+1,h=e.position-e.lineStart,1===g?c&&(ef(e,h)||function(e,t,n){var i,r,o,a,l,c,s,u=e.tag,p=e.anchor,f={},d=Object.create(null),h=null,g=null,m=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=f),s=e.input.charCodeAt(e.position);0!==s;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,en(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),o=e.line,(63===s||58===s)&&V(i))63===s?(y&&(el(e,f,d,h,g,null,a,l,c),h=g=m=null),b=!0,y=!0,r=!0):y?(y=!1,r=!0):en(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=i;else{if(a=e.line,l=e.lineStart,c=e.position,!ed(e,n,2,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);G(s);)s=e.input.charCodeAt(++e.position);if(58===s)V(s=e.input.charCodeAt(++e.position))||en(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(el(e,f,d,h,g,null,a,l,c),h=g=m=null),b=!0,y=!1,r=!1,h=e.tag,g=e.result;else{if(!b)return e.tag=u,e.anchor=p,!0;en(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=p,!0;en(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===o||e.lineIndent>t)&&(y&&(a=e.line,l=e.lineStart,c=e.position),ed(e,t,4,!0,r)&&(y?g=e.result:m=e.result),y||(el(e,f,d,h,g,m,a,l,c),h=g=m=null),es(e,!0,-1),s=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==s)en(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&el(e,f,d,h,g,null,a,l,c),b&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=f),b}(e,h,d))||function(e,t){var n,i,r,o,a,l,c,s,u,p,f,d,h=!0,g=e.tag,m=e.anchor,y=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))a=93,s=!1,o=[];else{if(123!==d)return!1;a=125,s=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),d=e.input.charCodeAt(++e.position);0!==d;){if(es(e,!0,t),(d=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=g,e.anchor=m,e.kind=s?"mapping":"sequence",e.result=o,!0;h?44===d&&en(e,"expected the node content, but found ','"):en(e,"missed comma between flow collection entries"),p=u=f=null,l=c=!1,63===d&&V(e.input.charCodeAt(e.position+1))&&(l=c=!0,e.position++,es(e,!0,t)),n=e.line,i=e.lineStart,r=e.position,ed(e,t,1,!1,!0),p=e.tag,u=e.result,es(e,!0,t),d=e.input.charCodeAt(e.position),(c||e.line===n)&&58===d&&(l=!0,d=e.input.charCodeAt(++e.position),es(e,!0,t),ed(e,t,1,!1,!0),f=e.result),s?el(e,o,y,p,u,f,n,i,r):l?o.push(el(e,null,y,p,u,f,n,i,r)):o.push(u),es(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(h=!0,d=e.input.charCodeAt(++e.position)):h=!1}en(e,"unexpected end of the stream within a flow collection")}(e,d)?y=!0:(l&&function(e,t){var n,r,o,a,l,c=1,s=!1,u=!1,p=t,f=0,d=!1;if(124===(l=e.input.charCodeAt(e.position)))o=!1;else{if(62!==l)return!1;o=!0}for(e.kind="scalar",e.result="";0!==l;)if(43===(l=e.input.charCodeAt(++e.position))||45===l)1===c?c=43===l?3:2:en(e,"repeat of a chomping mode identifier");else if((a=48<=(n=l)&&n<=57?n-48:-1)>=0)0===a?en(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?en(e,"repeat of an indentation width identifier"):(p=t+a-1,u=!0);else break;if(G(l)){do l=e.input.charCodeAt(++e.position);while(G(l));if(35===l)do l=e.input.charCodeAt(++e.position);while(!$(l)&&0!==l)}for(;0!==l;){for(ec(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!u||e.lineIndent<p)&&32===l;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>p&&(p=e.lineIndent),$(l)){f++;continue}if(e.lineIndent<p){3===c?e.result+=i.repeat("\n",s?1+f:f):1===c&&s&&(e.result+="\n");break}for(o?G(l)?(d=!0,e.result+=i.repeat("\n",s?1+f:f)):d?(d=!1,e.result+=i.repeat("\n",f+1)):0===f?s&&(e.result+=" "):e.result+=i.repeat("\n",f):e.result+=i.repeat("\n",s?1+f:f),s=!0,u=!0,f=0,r=e.position;!$(l)&&0!==l;)l=e.input.charCodeAt(++e.position);eo(e,r,e.position,!1)}return!0}(e,d)||function(e,t){var n,i,r;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(eo(e,i,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;i=e.position,e.position++,r=e.position}else $(n)?(eo(e,i,r,!0),ep(e,es(e,!1,t)),i=r=e.position):e.position===e.lineStart&&eu(e)?en(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);en(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var n,i,r,o,a,l,c,s;if(34!==(l=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(l=e.input.charCodeAt(e.position));)if(34===l)return eo(e,n,e.position,!0),e.position++,!0;else if(92===l){if(eo(e,n,e.position,!0),$(l=e.input.charCodeAt(++e.position)))es(e,!1,t);else if(l<256&&Q[l])e.result+=z[l],e.position++;else if((a=120===(c=l)?2:117===c?4:8*(85===c))>0){for(r=a,o=0;r>0;r--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:en(e,"expected hexadecimal character");e.result+=(s=o)<=65535?String.fromCharCode(s):String.fromCharCode((s-65536>>10)+55296,(s-65536&1023)+56320),e.position++}else en(e,"unknown escape sequence");n=i=e.position}else $(l)?(eo(e,n,i,!0),ep(e,es(e,!1,t)),n=i=e.position):e.position===e.lineStart&&eu(e)?en(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position);en(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?y=!0:!function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!V(i)&&!Z(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&en(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Y.call(e.anchorMap,n)||en(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],es(e,!0,-1),!0}(e)?function(e,t,n){var i,r,o,a,l,c,s,u,p=e.kind,f=e.result;if(V(u=e.input.charCodeAt(e.position))||Z(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(V(i=e.input.charCodeAt(e.position+1))||n&&Z(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==u;){if(58===u){if(V(i=e.input.charCodeAt(e.position+1))||n&&Z(i))break}else if(35===u){if(V(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&eu(e)||n&&Z(u))break;else if($(u)){if(l=e.line,c=e.lineStart,s=e.lineIndent,es(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=c,e.lineIndent=s;break}a&&(eo(e,r,o,!1),ep(e,e.line-l),r=o=e.position,a=!1),G(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return eo(e,r,o,!1),!!e.result||(e.kind=p,e.result=f,!1)}(e,d,1===n)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,(null!==e.tag||null!==e.anchor)&&en(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(y=c&&ef(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&en(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,u=e.implicitTypes.length;s<u;s+=1)if((f=e.implicitTypes[s]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Y.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(s=0,f=null,u=(p=e.typeMap.multi[e.kind||"fallback"]).length;s<u;s+=1)if(e.tag.slice(0,p[s].tag.length)===p[s].tag){f=p[s];break}f||en(e,"unknown tag !<"+e.tag+">"),null!==e.result&&f.kind!==e.kind&&en(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):en(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function eh(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new ee(e,t),i=e.indexOf("\0");for(-1!==i&&(n.position=i,en(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)!function(e){var t,n,i,r,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(es(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===r);){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!V(r);)r=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&en(e,"directive name must not be less than one character in length");0!==r;){for(;G(r);)r=e.input.charCodeAt(++e.position);if(35===r){do r=e.input.charCodeAt(++e.position);while(0!==r&&!$(r));break}if($(r))break;for(t=e.position;0!==r&&!V(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&ec(e),Y.call(er,n)?er[n](e,n,i):ei(e,'unknown document directive "'+n+'"')}if(es(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,es(e,!0,-1)):a&&en(e,"directives end mark is expected"),ed(e,e.lineIndent-1,4,!1,!0),es(e,!0,-1),e.checkLineBreaks&&B.test(e.input.slice(o,e.position))&&ei(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&eu(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,es(e,!0,-1));return}e.position<e.length-1&&en(e,"end of the stream or a document separator is expected")}(n);return n.documents}var eg=Object.prototype.toString,em=Object.prototype.hasOwnProperty,ey={};ey[0]="\\0",ey[7]="\\a",ey[8]="\\b",ey[9]="\\t",ey[10]="\\n",ey[11]="\\v",ey[12]="\\f",ey[13]="\\r",ey[27]="\\e",ey[34]='\\"',ey[92]="\\\\",ey[133]="\\N",ey[160]="\\_",ey[8232]="\\L",ey[8233]="\\P";var eb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],eA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ev(e){this.schema=e.schema||q,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=i.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,i,r,o,a,l,c;if(null===t)return{};for(r=0,n={},o=(i=Object.keys(t)).length;r<o;r+=1)l=String(t[a=i[r]]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(c=e.compiledTypeMap.fallback[a])&&em.call(c.styleAliases,l)&&(l=c.styleAliases[l]),n[a]=l;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ek(e,t){for(var n,r=i.repeat(" ",t),o=0,a=-1,l="",c=e.length;o<c;)-1===(a=e.indexOf("\n",o))?(n=e.slice(o),o=c):(n=e.slice(o,a+1),o=a+1),n.length&&"\n"!==n&&(l+=r),l+=n;return l}function eC(e,t){return"\n"+i.repeat(" ",e.indent*t)}function ew(e){return 32===e||9===e}function ex(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function eI(e){return ex(e)&&65279!==e&&13!==e&&10!==e}function eS(e,t,n){var i=eI(e),r=i&&!ew(e);return(n?i:i&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!r)||eI(t)&&!ew(t)&&35===e||58===t&&r}function eO(e,t){var n,i=e.charCodeAt(t);return i>=55296&&i<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?(i-55296)*1024+n-56320+65536:i}function ej(e){return/^\n* /.test(e)}function eT(e,t){var n=ej(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function eN(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function eF(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,a=0,l=0,c="";n=r.exec(e);)(l=n.index)-o>t&&(i=a>o?a:l,c+="\n"+e.slice(o,i),o=i+1),a=l;return c+="\n",e.length-o>t&&a>o?c+=e.slice(o,a)+"\n"+e.slice(a+1):c+=e.slice(o),c.slice(1)}function eE(e,t,n,i){var r,o,a,l="",c=e.tag;for(r=0,o=n.length;r<o;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(eL(e,t+1,a,!0,!0,!1,!0)||void 0===a&&eL(e,t+1,null,!0,!0,!1,!0))&&(i&&""===l||(l+=eC(e,t)),e.dump&&10===e.dump.charCodeAt(0)?l+="-":l+="- ",l+=e.dump);e.tag=c,e.dump=l||"[]"}function eM(e,t,n){var i,r,a,l,c,s;for(a=0,l=(r=n?e.explicitTypes:e.implicitTypes).length;a<l;a+=1)if(((c=r[a]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof t&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(s=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===eg.call(c.represent))i=c.represent(t,s);else if(em.call(c.represent,s))i=c.represent[s](t,s);else throw new o("!<"+c.tag+'> tag resolver accepts not "'+s+'" style');e.dump=i}return!0}return!1}function eL(e,t,n,r,a,l,c){e.tag=null,e.dump=n,eM(e,n,!1)||eM(e,n,!0);var s,u=eg.call(e.dump),p=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var f,d,h,g="[object Object]"===u||"[object Array]"===u;if(g&&(h=-1!==(d=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&t>0)&&(a=!1),h&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(g&&h&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),"[object Object]"===u)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,i){var r,a,l,c,s,u,p="",f=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(r=0,a=d.length;r<a;r+=1)u="",i&&""===p||(u+=eC(e,t)),c=n[l=d[r]],e.replacer&&(c=e.replacer.call(n,l,c)),eL(e,t+1,l,!0,!0,!0)&&((s=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,s&&(u+=eC(e,t)),eL(e,t+1,c,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,p+=u));e.tag=f,e.dump=p||"{}"}(e,t,e.dump,a),h&&(e.dump="&ref_"+d+e.dump)):(!function(e,t,n){var i,r,o,a,l,c="",s=e.tag,u=Object.keys(n);for(i=0,r=u.length;i<r;i+=1)l="",""!==c&&(l+=", "),e.condenseFlow&&(l+='"'),a=n[o=u[i]],e.replacer&&(a=e.replacer.call(n,o,a)),eL(e,t,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),eL(e,t,a,!1,!1)&&(l+=e.dump,c+=l));e.tag=s,e.dump="{"+c+"}"}(e,t,e.dump),h&&(e.dump="&ref_"+d+" "+e.dump));else if("[object Array]"===u)r&&0!==e.dump.length?(e.noArrayIndent&&!c&&t>0?eE(e,t-1,e.dump,a):eE(e,t,e.dump,a),h&&(e.dump="&ref_"+d+e.dump)):(!function(e,t,n){var i,r,o,a="",l=e.tag;for(i=0,r=n.length;i<r;i+=1)o=n[i],e.replacer&&(o=e.replacer.call(n,String(i),o)),(eL(e,t,o,!1,!1)||void 0===o&&eL(e,t,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=l,e.dump="["+a+"]"}(e,t,e.dump),h&&(e.dump="&ref_"+d+" "+e.dump));else if("[object String]"===u)"?"!==e.tag&&(s=e.dump,e.dump=function(){if(0===s.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==eb.indexOf(s)||eA.test(s)))return 2===e.quotingType?'"'+s+'"':"'"+s+"'";var n=e.indent*Math.max(1,t),r=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-n);switch(function(e,t,n,i,r,o,a,l){var c,s,u,p=0,f=null,d=!1,h=!1,g=-1!==i,m=-1,y=ex(c=eO(e,0))&&65279!==c&&!ew(c)&&45!==c&&63!==c&&58!==c&&44!==c&&91!==c&&93!==c&&123!==c&&125!==c&&35!==c&&38!==c&&42!==c&&33!==c&&124!==c&&61!==c&&62!==c&&39!==c&&34!==c&&37!==c&&64!==c&&96!==c&&!ew(s=eO(e,e.length-1))&&58!==s;if(t||a)for(u=0;u<e.length;p>=65536?u+=2:u++){if(!ex(p=eO(e,u)))return 5;y=y&&eS(p,f,l),f=p}else{for(u=0;u<e.length;p>=65536?u+=2:u++){if(10===(p=eO(e,u)))d=!0,g&&(h=h||u-m-1>i&&" "!==e[m+1],m=u);else if(!ex(p))return 5;y=y&&eS(p,f,l),f=p}h=h||g&&u-m-1>i&&" "!==e[m+1]}return d||h?n>9&&ej(e)?5:a?2===o?5:2:h?4:3:!y||a||r(e)?2===o?5:2:1}(s,l||e.flowLevel>-1&&t>=e.flowLevel,e.indent,r,function(t){var n,i;for(n=0,i=e.implicitTypes.length;n<i;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1},e.quotingType,e.forceQuotes&&!l,p)){case 1:return s;case 2:return"'"+s.replace(/'/g,"''")+"'";case 3:return"|"+eT(s,e.indent)+eN(ek(s,n));case 4:return">"+eT(s,e.indent)+eN(ek(function(e,t){for(var n,i,r,o=/(\n+)([^\n]*)/g,a=(o.lastIndex=n=-1!==(n=e.indexOf("\n"))?n:e.length,eF(e.slice(0,n),t)),l="\n"===e[0]||" "===e[0];r=o.exec(e);){var c=r[1],s=r[2];i=" "===s[0],a+=c+(l||i||""===s?"":"\n")+eF(s,t),l=i}return a}(s,r),n));case 5:return'"'+function(e){for(var t,n="",r=0,a=0;a<e.length;r>=65536?a+=2:a++)!(t=ey[r=eO(e,a)])&&ex(r)?(n+=e[a],r>=65536&&(n+=e[a+1])):n+=t||function(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=0xffffffff)n="U",r=8;else throw new o("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+i.repeat("0",r-t.length)+t}(r);return n}(s)+'"';default:throw new o("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===u||e.skipInvalid)return!1;throw new o("unacceptable kind of an object to dump "+u)}null!==e.tag&&"?"!==e.tag&&(f=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),f="!"===e.tag[0]?"!"+f:"tag:yaml.org,2002:"===f.slice(0,18)?"!!"+f.slice(18):"!<"+f+">",e.dump=f+" "+e.dump)}return!0}function e_(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var eD=p,eU=d,eq=y,eY=x,eR=x,eB=q,eK=function(e,t){var n=eh(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new o("expected a single document in the stream, but found more")}},eW=function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var i=eh(e,n);if("function"!=typeof t)return i;for(var r=0,o=i.length;r<o;r+=1)t(i[r])},eH=function(e,t){var n=new ev(t=t||{});n.noRefs||function(e,t){var n,i,r=[],o=[];for(function e(t,n,i){var r,o,a;if(null!==t&&"object"==typeof t)if(-1!==(o=n.indexOf(t)))-1===i.indexOf(o)&&i.push(o);else if(n.push(t),Array.isArray(t))for(o=0,a=t.length;o<a;o+=1)e(t[o],n,i);else for(o=0,a=(r=Object.keys(t)).length;o<a;o+=1)e(t[r[o]],n,i)}(e,r,o),n=0,i=o.length;n<i;n+=1)t.duplicates.push(r[o[n]]);t.usedDuplicates=Array(i)}(e,n);var i=e;return(n.replacer&&(i=n.replacer.call({"":i},"",i)),eL(n,0,i,!0,!0))?n.dump+"\n":""},eP=o,e$={binary:N,float:w,map:m,null:b,pairs:_,set:U,timestamp:O,bool:A,int:v,merge:j,omap:M,seq:g,str:h},eG=e_("safeLoad","load"),eV=e_("safeLoadAll","loadAll"),eZ=e_("safeDump","dump");let eJ={Type:eD,Schema:eU,FAILSAFE_SCHEMA:eq,JSON_SCHEMA:eY,CORE_SCHEMA:eR,DEFAULT_SCHEMA:eB,load:eK,loadAll:eW,dump:eH,YAMLException:eP,types:e$,safeLoad:eG,safeLoadAll:eV,safeDump:eZ}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["2790"],{71115:function(e,t,n){n.d(t,{M:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},88905:function(e,t,n){n.d(t,{F:()=>i,e:()=>u});var r=n(8491);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function u(...e){return r.useCallback(i(...e),e)}},76418:function(e,t,n){n.d(t,{b:()=>u,k:()=>i});var r=n(8491),o=n(31549);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,u=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:u,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function u(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let u=r.createContext(i),a=n.length;n=[...n,i];let s=t=>{let{scope:n,children:i,...s}=t,l=n?.[e]?.[a]||u,c=r.useMemo(()=>s,Object.values(s));return(0,o.jsx)(l.Provider,{value:c,children:i})};return s.displayName=t+"Provider",[s,function(n,o){let s=o?.[e]?.[a]||u,l=r.useContext(s);if(l)return l;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},73752:function(e,t,n){n.r(t),n.d(t,{Close:()=>ei,Content:()=>en,Description:()=>eo,Dialog:()=>N,DialogClose:()=>H,DialogContent:()=>_,DialogDescription:()=>B,DialogOverlay:()=>W,DialogPortal:()=>j,DialogTitle:()=>U,DialogTrigger:()=>x,Overlay:()=>et,Portal:()=>ee,Root:()=>Q,Title:()=>er,Trigger:()=>Y,WarningProvider:()=>q,createDialogScope:()=>D});var r=n(8491),o=n(71115),i=n(88905),u=n(76418),a=n(1563),s=n(81183),l=n(46938),c=n(55568),d=n(36278),f=n(36387),p=n(78737),m=n(49319),v=n(47319),g=n(50726),y=n(30638),b=n(31549),E="Dialog",[h,D]=(0,u.b)(E),[w,C]=h(E),N=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:u,modal:l=!0}=e,c=r.useRef(null),d=r.useRef(null),[f=!1,p]=(0,s.T)({prop:o,defaultProp:i,onChange:u});return(0,b.jsx)(w,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.M)(),titleId:(0,a.M)(),descriptionId:(0,a.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:l,children:n})};N.displayName=E;var O="DialogTrigger",x=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,u=C(O,n),a=(0,i.e)(t,u.triggerRef);return(0,b.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":X(u.open),...r,ref:a,onClick:(0,o.M)(e.onClick,u.onOpenToggle)})});x.displayName=O;var R="DialogPortal",[P,M]=h(R,{forceMount:void 0}),j=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,u=C(R,t);return(0,b.jsx)(P,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,b.jsx)(f.z,{present:n||u.open,children:(0,b.jsx)(d.h,{asChild:!0,container:i,children:e})}))})};j.displayName=R;var T="DialogOverlay",W=r.forwardRef((e,t)=>{let n=M(T,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=C(T,e.__scopeDialog);return i.modal?(0,b.jsx)(f.z,{present:r||i.open,children:(0,b.jsx)(L,{...o,ref:t})}):null});W.displayName=T;var I=(0,y.createSlot)("DialogOverlay.RemoveScroll"),L=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(T,n);return(0,b.jsx)(v.Z,{as:I,allowPinchZoom:!0,shards:[o.contentRef],children:(0,b.jsx)(p.WV.div,{"data-state":X(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),S="DialogContent",_=r.forwardRef((e,t)=>{let n=M(S,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=C(S,e.__scopeDialog);return(0,b.jsx)(f.z,{present:r||i.open,children:i.modal?(0,b.jsx)(F,{...o,ref:t}):(0,b.jsx)(k,{...o,ref:t})})});_.displayName=S;var F=r.forwardRef((e,t)=>{let n=C(S,e.__scopeDialog),u=r.useRef(null),a=(0,i.e)(t,n.contentRef,u);return r.useEffect(()=>{let e=u.current;if(e)return(0,g.Ry)(e)},[]),(0,b.jsx)(A,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),k=r.forwardRef((e,t)=>{let n=C(S,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,b.jsx)(A,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),A=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:u,onCloseAutoFocus:a,...s}=e,d=C(S,n),f=r.useRef(null),p=(0,i.e)(t,f);return(0,m.EW)(),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:u,onUnmountAutoFocus:a,children:(0,b.jsx)(l.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":X(d.open),...s,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(G,{titleId:d.titleId}),(0,b.jsx)(J,{contentRef:f,descriptionId:d.descriptionId})]})]})}),$="DialogTitle",U=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C($,n);return(0,b.jsx)(p.WV.h2,{id:o.titleId,...r,ref:t})});U.displayName=$;var V="DialogDescription",B=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(V,n);return(0,b.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:t})});B.displayName=V;var z="DialogClose",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(z,n);return(0,b.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});function X(e){return e?"open":"closed"}H.displayName=z;var Z="DialogTitleWarning",[q,K]=(0,u.k)(Z,{contentName:S,titleName:$,docsSlug:"dialog"}),G=({titleId:e})=>{let t=K(Z),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
2
|
+
|
3
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
4
|
+
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return r.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},J=({contentRef:e,descriptionId:t})=>{let n=K("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return r.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Q=N,Y=x,ee=j,et=W,en=_,er=U,eo=B,ei=H},46938:function(e,t,n){n.d(t,{XB:()=>f});var r,o=n(8491),i=n(71115),u=n(78737),a=n(88905),s=n(81820),l=n(31549),c="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:y,onDismiss:b,...E}=e,h=o.useContext(d),[D,w]=o.useState(null),C=D?.ownerDocument??globalThis?.document,[,N]=o.useState({}),O=(0,a.e)(t,e=>w(e)),x=Array.from(h.layers),[R]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),P=x.indexOf(R),M=D?x.indexOf(D):-1,j=h.layersWithOutsidePointerEventsDisabled.size>0,T=M>=P,W=function(e,t=globalThis?.document){let n=(0,s.W)(e),r=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){m("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));T&&!n&&(v?.(e),y?.(e),e.defaultPrevented||b?.())},C),I=function(e,t=globalThis?.document){let n=(0,s.W)(e),r=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!r.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...h.branches].some(e=>e.contains(t))&&(g?.(e),y?.(e),e.defaultPrevented||b?.())},C);return!function(e,t=globalThis?.document){let n=(0,s.W)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{M===h.layers.size-1&&(f?.(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},C),o.useEffect(()=>{if(D)return n&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(D)),h.layers.add(D),p(),()=>{n&&1===h.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[D,C,n,h]),o.useEffect(()=>()=>{D&&(h.layers.delete(D),h.layersWithOutsidePointerEventsDisabled.delete(D),p())},[D,h]),o.useEffect(()=>{let e=()=>N({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,l.jsx)(u.WV.div,{...E,ref:O,style:{pointerEvents:j?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,W.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,u.jH)(o,i):o.dispatchEvent(i)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(d),r=o.useRef(null),i=(0,a.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,l.jsx)(u.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},1563:function(e,t,n){n.d(t,{M:()=>s});var r,o=n(8491),i=n(82836),u=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function s(e){let[t,n]=o.useState(u());return(0,i.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},36278:function(e,t,n){n.d(t,{h:()=>s});var r=n(8491),o=n(96853),i=n(78737),u=n(82836),a=n(31549),s=r.forwardRef((e,t)=>{let{container:n,...s}=e,[l,c]=r.useState(!1);(0,u.b)(()=>c(!0),[]);let d=n||l&&globalThis?.document?.body;return d?o.createPortal((0,a.jsx)(i.WV.div,{...s,ref:t}),d):null});s.displayName="Portal"},36387:function(e,t,n){n.d(t,{z:()=>u});var r=n(8491),o=n(88905),i=n(82836),u=e=>{var t;let n,u,{present:s,children:l}=e,c=function(e){var t,n;let[o,u]=r.useState(),s=r.useRef({}),l=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=a(s.current);c.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let t=s.current,n=l.current;if(n!==e){let r=c.current,o=a(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),(0,i.b)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,n=n=>{let r=a(s.current).includes(n.animationName);if(n.target===o&&r&&(f("ANIMATION_END"),!l.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(c.current=a(s.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),u(e)},[])}}(s),d="function"==typeof l?l({present:c.isPresent}):r.Children.only(l),f=(0,o.e)(c.ref,(t=d,(u=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(u=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof l||c.isPresent?r.cloneElement(d,{ref:f}):null};function a(e){return e?.animationName||"none"}u.displayName="Presence"},78737:function(e,t,n){n.d(t,{WV:()=>a,jH:()=>s});var r=n(8491),o=n(96853),i=n(30638),u=n(31549),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.createSlot)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},81820:function(e,t,n){n.d(t,{W:()=>o});var r=n(8491);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},81183:function(e,t,n){n.d(t,{T:()=>i});var r=n(8491),o=n(81820);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,u]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,u=r.useRef(i),a=(0,o.W)(t);return r.useEffect(()=>{u.current!==i&&(a(i),u.current=i)},[i,u,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:i,l=(0,o.W)(n);return[s,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else u(t)},[a,e,u,l])]}},82836:function(e,t,n){n.d(t,{b:()=>o});var r=n(8491),o=globalThis?.document?r.useLayoutEffect:()=>{}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["2900"],{51845:function(e,r,t){t.r(r),t.d(r,{Anchor:()=>X,Arrow:()=>J,Close:()=>H,Content:()=>G,Popover:()=>A,PopoverAnchor:()=>b,PopoverArrow:()=>Z,PopoverClose:()=>z,PopoverContent:()=>_,PopoverPortal:()=>I,PopoverTrigger:()=>T,Portal:()=>q,Root:()=>K,Trigger:()=>Y,createPopoverScope:()=>O});var n=t(8491),o=t(71115),a=t(88905),i=t(76418),u=t(46938),s=t(49319),l=t(55568),c=t(1563),d=t(51603),p=t(36278),f=t(36387),v=t(78737),m=t(30638),g=t(81183),h=t(50726),P=t(47319),C=t(31549),N="Popover",[x,O]=(0,i.b)(N,[d.D7]),w=(0,d.D7)(),[R,y]=x(N),A=e=>{let{__scopePopover:r,children:t,open:o,defaultOpen:a,onOpenChange:i,modal:u=!1}=e,s=w(r),l=n.useRef(null),[p,f]=n.useState(!1),[v=!1,m]=(0,g.T)({prop:o,defaultProp:a,onChange:i});return(0,C.jsx)(d.fC,{...s,children:(0,C.jsx)(R,{scope:r,contentId:(0,c.M)(),triggerRef:l,open:v,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:p,onCustomAnchorAdd:n.useCallback(()=>f(!0),[]),onCustomAnchorRemove:n.useCallback(()=>f(!1),[]),modal:u,children:t})})};A.displayName=N;var M="PopoverAnchor",b=n.forwardRef((e,r)=>{let{__scopePopover:t,...o}=e,a=y(M,t),i=w(t),{onCustomAnchorAdd:u,onCustomAnchorRemove:s}=a;return n.useEffect(()=>(u(),()=>s()),[u,s]),(0,C.jsx)(d.ee,{...i,...o,ref:r})});b.displayName=M;var j="PopoverTrigger",T=n.forwardRef((e,r)=>{let{__scopePopover:t,...n}=e,i=y(j,t),u=w(t),s=(0,a.e)(r,i.triggerRef),l=(0,C.jsx)(v.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":B(i.open),...n,ref:s,onClick:(0,o.M)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:(0,C.jsx)(d.ee,{asChild:!0,...u,children:l})});T.displayName=j;var E="PopoverPortal",[D,F]=x(E,{forceMount:void 0}),I=e=>{let{__scopePopover:r,forceMount:t,children:n,container:o}=e,a=y(E,r);return(0,C.jsx)(D,{scope:r,forceMount:t,children:(0,C.jsx)(f.z,{present:t||a.open,children:(0,C.jsx)(p.h,{asChild:!0,container:o,children:n})})})};I.displayName=E;var k="PopoverContent",_=n.forwardRef((e,r)=>{let t=F(k,e.__scopePopover),{forceMount:n=t.forceMount,...o}=e,a=y(k,e.__scopePopover);return(0,C.jsx)(f.z,{present:n||a.open,children:a.modal?(0,C.jsx)(S,{...o,ref:r}):(0,C.jsx)(W,{...o,ref:r})})});_.displayName=k;var U=(0,m.createSlot)("PopoverContent.RemoveScroll"),S=n.forwardRef((e,r)=>{let t=y(k,e.__scopePopover),i=n.useRef(null),u=(0,a.e)(r,i),s=n.useRef(!1);return n.useEffect(()=>{let e=i.current;if(e)return(0,h.Ry)(e)},[]),(0,C.jsx)(P.Z,{as:U,allowPinchZoom:!0,children:(0,C.jsx)(L,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||t.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let r=e.detail.originalEvent,t=0===r.button&&!0===r.ctrlKey;s.current=2===r.button||t},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),W=n.forwardRef((e,r)=>{let t=y(k,e.__scopePopover),o=n.useRef(!1),a=n.useRef(!1);return(0,C.jsx)(L,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{e.onCloseAutoFocus?.(r),r.defaultPrevented||(o.current||t.triggerRef.current?.focus(),r.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:r=>{e.onInteractOutside?.(r),r.defaultPrevented||(o.current=!0,"pointerdown"===r.detail.originalEvent.type&&(a.current=!0));let n=r.target;t.triggerRef.current?.contains(n)&&r.preventDefault(),"focusin"===r.detail.originalEvent.type&&a.current&&r.preventDefault()}})}),L=n.forwardRef((e,r)=>{let{__scopePopover:t,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:v,...m}=e,g=y(k,t),h=w(t);return(0,s.EW)(),(0,C.jsx)(l.M,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,C.jsx)(u.XB,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:v,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1),children:(0,C.jsx)(d.VY,{"data-state":B(g.open),role:"dialog",id:g.contentId,...h,...m,ref:r,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),V="PopoverClose",z=n.forwardRef((e,r)=>{let{__scopePopover:t,...n}=e,a=y(V,t);return(0,C.jsx)(v.WV.button,{type:"button",...n,ref:r,onClick:(0,o.M)(e.onClick,()=>a.onOpenChange(!1))})});z.displayName=V;var Z=n.forwardRef((e,r)=>{let{__scopePopover:t,...n}=e,o=w(t);return(0,C.jsx)(d.Eh,{...o,...n,ref:r})});function B(e){return e?"open":"closed"}Z.displayName="PopoverArrow";var K=A,X=b,Y=T,q=I,G=_,H=z,J=Z},36387:function(e,r,t){t.d(r,{z:()=>i});var n=t(8491),o=t(88905),a=t(82836),i=e=>{var r;let t,i,{present:s,children:l}=e,c=function(e){var r,t;let[o,i]=n.useState(),s=n.useRef({}),l=n.useRef(e),c=n.useRef("none"),[d,p]=(r=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,r)=>t[e][r]??e,r));return n.useEffect(()=>{let e=u(s.current);c.current="mounted"===d?e:"none"},[d]),(0,a.b)(()=>{let r=s.current,t=l.current;if(t!==e){let n=c.current,o=u(r);e?p("MOUNT"):"none"===o||r?.display==="none"?p("UNMOUNT"):t&&n!==o?p("ANIMATION_OUT"):p("UNMOUNT"),l.current=e}},[e,p]),(0,a.b)(()=>{if(o){let e,r=o.ownerDocument.defaultView??window,t=t=>{let n=u(s.current).includes(t.animationName);if(t.target===o&&n&&(p("ANIMATION_END"),!l.current)){let t=o.style.animationFillMode;o.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=t)})}},n=e=>{e.target===o&&(c.current=u(s.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",t),o.addEventListener("animationend",t),()=>{r.clearTimeout(e),o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",t),o.removeEventListener("animationend",t)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{e&&(s.current=getComputedStyle(e)),i(e)},[])}}(s),d="function"==typeof l?l({present:c.isPresent}):n.Children.only(l),p=(0,o.e)(c.ref,(r=d,(i=(t=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?r.ref:(i=(t=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?r.props.ref:r.props.ref||r.ref));return"function"==typeof l||c.isPresent?n.cloneElement(d,{ref:p}):null};function u(e){return e?.animationName||"none"}i.displayName="Presence"}}]);
|
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! For license information please see 2927.6711b41c.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["2927"],{75404:function(e,t,n){n.r(t),n.d(t,{getTextBetween:()=>c.Eh,EditorProvider:()=>ty,isMarkActive:()=>c.yw,nodePasteRule:()=>c.Ss,getNodeAttributes:()=>c.GF,splitExtensions:()=>c.BT,isPlainObject:()=>c.PO,textInputRule:()=>c.DS,posToDOMRect:()=>c.pr,Editor:()=>c.ML,callOrReturn:()=>c.nU,Tracker:()=>c.fX,isNodeActive:()=>c.Ig,textblockTypeInputRule:()=>c.zK,getTextContentFromNodes:()=>c.nb,useEditorState:()=>td,useReactNodeView:()=>tE,ReactNodeView:()=>tD,createChainableState:()=>c.FI,getNodeType:()=>c.jo,PureEditorContent:()=>tt,PasteRule:()=>c.hD,Extension:()=>c.hj,NodePos:()=>c.vx,findParentNodeClosestToPos:()=>c.qv,NodeViewWrapper:()=>tS,getMarkAttributes:()=>c.Jo,getSchemaTypeByName:()=>c.h$,getMarkRange:()=>c.IH,injectExtensionAttributesToParseRule:()=>c.cN,mergeDeep:()=>c.Ee,isAtEndOfNode:()=>c.rI,useCurrentEditor:()=>tg,wrappingInputRule:()=>c.S0,textPasteRule:()=>c.Z7,isAtStartOfNode:()=>c.Sz,getSchema:()=>c.J1,markInputRule:()=>c.Cf,rewriteUnknownContent:()=>c.ew,getRenderedAttributes:()=>c.m7,isRegExp:()=>c.Kj,FloatingMenu:()=>tw,selectionToInsertionEnd:()=>c.nj,extensions:()=>c.Rw,NodeView:()=>c.DK,getNodeAtPosition:()=>c.NY,objectIncludes:()=>c.i5,elementFromString:()=>c.q_,EditorContext:()=>tm,useEditor:()=>th,createNodeFromContent:()=>c.hT,getSchemaTypeNameByName:()=>c.HM,EditorContent:()=>ti,inputRulesPlugin:()=>c.iN,getTextSerializersFromSchema:()=>c.Is,getSplittedAttributes:()=>c.YD,escapeForRegEx:()=>c.Ov,isiOS:()=>c.Tt,pasteRulesPlugin:()=>c.bc,isFunction:()=>c.mf,CommandManager:()=>c.fF,getText:()=>c.Q,Mark:()=>c.vc,ReactNodeViewContext:()=>tx,Node:()=>c.NB,findChildrenInRange:()=>c.b5,fromString:()=>c.mL,isExtensionRulesEnabled:()=>c.wU,NodeViewContent:()=>tO,isList:()=>c.nq,combineTransactionSteps:()=>c.XP,BubbleMenu:()=>tb,getAttributesFromExtensions:()=>c.P6,findChildren:()=>c.N2,generateJSON:()=>c.AW,getMarkType:()=>c.TP,isNodeEmpty:()=>c.bR,findDuplicates:()=>c.RA,createDocument:()=>c.OE,isActive:()=>c.zh,isNumber:()=>c.Id,deleteProps:()=>c.cP,findParentNode:()=>c.Kk,createStyleTag:()=>c.pB,defaultBlockAt:()=>c.Jx,getExtensionField:()=>c.Nl,getChangedRanges:()=>c.QC,isNodeSelection:()=>c.EG,isString:()=>c.HD,isTextSelection:()=>c.xh,minMax:()=>c._z,getHTMLFromFragment:()=>c.d1,isEmptyObject:()=>c.Qr,markPasteRule:()=>c.K9,mergeAttributes:()=>c.P1,nodeInputRule:()=>c.x2,removeDuplicates:()=>c.R1,generateHTML:()=>c.ar,isMacOS:()=>c.eE,getSchemaByResolvedExtensions:()=>c.Ry,resolveFocusPosition:()=>c.I6,getMarksBetween:()=>c.tI,InputRule:()=>c.VK,ReactNodeViewRenderer:()=>tT,getDebugJSON:()=>c.Q2,ReactRenderer:()=>tC,generateText:()=>c._4,EditorConsumer:()=>tv,getAttributes:()=>c.u9});var i,r,o,s,a,u,l,d,c=n(13938),p=n(77549);function f(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function h(e){var t=f(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=f(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function v(e){if("undefined"==typeof ShadowRoot)return!1;var t=f(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var g=Math.max,y=Math.min,b=Math.round;function w(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function x(){return!/^((?!chrome|android).)*safari/i.test(w())}function E(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&m(e)&&(r=e.offsetWidth>0&&b(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&b(i.height)/e.offsetHeight||1);var s=(h(e)?f(e):window).visualViewport,a=!x()&&n,u=(i.left+(a&&s?s.offsetLeft:0))/r,l=(i.top+(a&&s?s.offsetTop:0))/o,d=i.width/r,c=i.height/o;return{width:d,height:c,top:l,right:u+d,bottom:l+c,left:u,x:u,y:l}}function O(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function S(e){return e?(e.nodeName||"").toLowerCase():null}function C(e){return((h(e)?e.ownerDocument:e.document)||window.document).documentElement}function D(e){return E(C(e)).left+O(e).scrollLeft}function T(e){return f(e).getComputedStyle(e)}function A(e){var t=T(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function R(e){var t=E(e),n=e.offsetWidth,i=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-i)&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function M(e){return"html"===S(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||C(e)}function N(e,t){void 0===t&&(t=[]);var n,i=function e(t){return["html","body","#document"].indexOf(S(t))>=0?t.ownerDocument.body:m(t)&&A(t)?t:e(M(t))}(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=f(i),s=r?[o].concat(o.visualViewport||[],A(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(N(M(s)))}function P(e){return m(e)&&"fixed"!==T(e).position?e.offsetParent:null}function j(e){for(var t=f(e),n=P(e);n&&["table","td","th"].indexOf(S(n))>=0&&"static"===T(n).position;)n=P(n);return n&&("html"===S(n)||"body"===S(n)&&"static"===T(n).position)?t:n||function(e){var t=/firefox/i.test(w());if(/Trident/i.test(w())&&m(e)&&"fixed"===T(e).position)return null;var n=M(e);for(v(n)&&(n=n.host);m(n)&&0>["html","body"].indexOf(S(n));){var i=T(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var H="bottom",L="right",k="left",I="auto",V=["top",H,L,k],B="start",U="viewport",W="popper",F=V.reduce(function(e,t){return e.concat([t+"-"+B,t+"-end"])},[]),q=[].concat(V,[I]).reduce(function(e,t){return e.concat([t,t+"-"+B,t+"-end"])},[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],K={placement:"bottom",modifiers:[],strategy:"absolute"};function _(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var $={passive:!0};function J(e){return e.split("-")[0]}function Q(e){return e.split("-")[1]}function X(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?J(r):null,s=r?Q(r):null,a=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2;switch(o){case"top":t={x:a,y:n.y-i.height};break;case H:t={x:a,y:n.y+n.height};break;case L:t={x:n.x+n.width,y:u};break;case k:t={x:n.x-i.width,y:u};break;default:t={x:n.x,y:n.y}}var l=o?X(o):null;if(null!=l){var d="y"===l?"height":"width";switch(s){case B:t[l]=t[l]-(n[d]/2-i[d]/2);break;case"end":t[l]=t[l]+(n[d]/2-i[d]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(e){var t,n,i,r,o,s,a,u=e.popper,l=e.popperRect,d=e.placement,c=e.variation,p=e.offsets,h=e.position,m=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,y=e.isFixed,w=p.x,x=void 0===w?0:w,E=p.y,O=void 0===E?0:E,S="function"==typeof g?g({x:x,y:O}):{x:x,y:O};x=S.x,O=S.y;var D=p.hasOwnProperty("x"),A=p.hasOwnProperty("y"),R=k,M="top",N=window;if(v){var P=j(u),I="clientHeight",V="clientWidth";P===f(u)&&"static"!==T(P=C(u)).position&&"absolute"===h&&(I="scrollHeight",V="scrollWidth"),("top"===d||(d===k||d===L)&&"end"===c)&&(M=H,O-=(y&&P===N&&N.visualViewport?N.visualViewport.height:P[I])-l.height,O*=m?1:-1),(d===k||("top"===d||d===H)&&"end"===c)&&(R=L,x-=(y&&P===N&&N.visualViewport?N.visualViewport.width:P[V])-l.width,x*=m?1:-1)}var B=Object.assign({position:h},v&&G),U=!0===g?(t={x:x,y:O},n=f(u),i=t.x,r=t.y,{x:b(i*(o=n.devicePixelRatio||1))/o||0,y:b(r*o)/o||0}):{x:x,y:O};return(x=U.x,O=U.y,m)?Object.assign({},B,((a={})[M]=A?"0":"",a[R]=D?"0":"",a.transform=1>=(N.devicePixelRatio||1)?"translate("+x+"px, "+O+"px)":"translate3d("+x+"px, "+O+"px, 0)",a)):Object.assign({},B,((s={})[M]=A?O+"px":"",s[R]=D?x+"px":"",s.transform="",s))}let ee={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];m(r)&&S(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});m(i)&&S(i)&&(Object.assign(i.style,o),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};var et={left:"right",right:"left",bottom:"top",top:"bottom"};function en(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var ei={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return ei[e]})}function eo(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&v(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,n){var i,r,o,s,a,u,l,d,c,p;return t===U?es(function(e,t){var n=f(e),i=C(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,u=0;if(r){o=r.width,s=r.height;var l=x();(l||!l&&"fixed"===t)&&(a=r.offsetLeft,u=r.offsetTop)}return{width:o,height:s,x:a+D(e),y:u}}(e,n)):h(t)?((i=E(t,!1,"fixed"===n)).top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i):es((r=C(e),s=C(r),a=O(r),u=null==(o=r.ownerDocument)?void 0:o.body,l=g(s.scrollWidth,s.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),d=g(s.scrollHeight,s.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),c=-a.scrollLeft+D(r),p=-a.scrollTop,"rtl"===T(u||s).direction&&(c+=g(s.clientWidth,u?u.clientWidth:0)-l),{width:l,height:d,x:c,y:p}))}function eu(){return{top:0,right:0,bottom:0,left:0}}function el(e){return Object.assign({},eu(),e)}function ed(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ec(e,t){void 0===t&&(t={});var n,i,r,o,s,a,u,l,d=t,c=d.placement,p=void 0===c?e.placement:c,f=d.strategy,v=void 0===f?e.strategy:f,b=d.boundary,w=d.rootBoundary,x=d.elementContext,O=void 0===x?W:x,D=d.altBoundary,A=d.padding,R=void 0===A?0:A,P=el("number"!=typeof R?R:ed(R,V)),k=e.rects.popper,I=e.elements[void 0!==D&&D?O===W?"reference":W:O],B=(n=h(I)?I:I.contextElement||C(e.elements.popper),i=void 0===b?"clippingParents":b,r=void 0===w?U:w,u=(a=[].concat("clippingParents"===i?(o=N(M(n)),!h(s=["absolute","fixed"].indexOf(T(n).position)>=0&&m(n)?j(n):n)?[]:o.filter(function(e){return h(e)&&eo(e,s)&&"body"!==S(e)})):[].concat(i),[r]))[0],(l=a.reduce(function(e,t){var i=ea(n,t,v);return e.top=g(i.top,e.top),e.right=y(i.right,e.right),e.bottom=y(i.bottom,e.bottom),e.left=g(i.left,e.left),e},ea(n,u,v))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),F=E(e.elements.reference),q=Y({reference:F,element:k,strategy:"absolute",placement:p}),z=es(Object.assign({},k,q)),K=O===W?z:F,_={top:B.top-K.top+P.top,bottom:K.bottom-B.bottom+P.bottom,left:B.left-K.left+P.left,right:K.right-B.right+P.right},$=e.modifiersData.offset;if(O===W&&$){var J=$[p];Object.keys(_).forEach(function(e){var t=[L,H].indexOf(e)>=0?1:-1,n=["top",H].indexOf(e)>=0?"y":"x";_[e]+=J[n]*t})}return _}function ep(e,t,n){return g(e,y(t,n))}function ef(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eh(e){return["top",L,H,k].some(function(t){return e[t]>=0})}var em=(o=void 0===(r=(i={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,u=f(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(e){e.addEventListener("scroll",n.update,$)}),a&&u.addEventListener("resize",n.update,$),function(){o&&l.forEach(function(e){e.removeEventListener("scroll",n.update,$)}),a&&u.removeEventListener("resize",n.update,$)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=n.adaptive,o=n.roundOffsets,s=void 0===o||o,a={placement:J(t.placement),variation:Q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===i||i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Z(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ee,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=q.reduce(function(e,n){var i,r,s,a,u,l;return e[n]=(i=t.rects,s=[k,"top"].indexOf(r=J(n))>=0?-1:1,u=(a="function"==typeof o?o(Object.assign({},i,{placement:n})):o)[0],l=a[1],u=u||0,l=(l||0)*s,[k,L].indexOf(r)>=0?{x:l,y:u}:{x:u,y:l}),e},{}),a=s[t.placement],u=a.x,l=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,u=n.fallbackPlacements,l=n.padding,d=n.boundary,c=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,v=t.options.placement,g=J(v)===v,y=u||(g||!h?[en(v)]:function(e){if(J(e)===I)return[];var t=en(e);return[er(e),t,er(t)]}(v)),b=[v].concat(y).reduce(function(e,n){var i,r,o,s,a,u,p,f,v,g,y,b;return e.concat(J(n)===I?(r=(i={placement:n,boundary:d,rootBoundary:c,padding:l,flipVariations:h,allowedAutoPlacements:m}).placement,o=i.boundary,s=i.rootBoundary,a=i.padding,u=i.flipVariations,f=void 0===(p=i.allowedAutoPlacements)?q:p,0===(y=(g=(v=Q(r))?u?F:F.filter(function(e){return Q(e)===v}):V).filter(function(e){return f.indexOf(e)>=0})).length&&(y=g),Object.keys(b=y.reduce(function(e,n){return e[n]=ec(t,{placement:n,boundary:o,rootBoundary:s,padding:a})[J(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),w=t.rects.reference,x=t.rects.popper,E=new Map,O=!0,S=b[0],C=0;C<b.length;C++){var D=b[C],T=J(D),A=Q(D)===B,R=["top",H].indexOf(T)>=0,M=R?"width":"height",N=ec(t,{placement:D,boundary:d,rootBoundary:c,altBoundary:p,padding:l}),P=R?A?L:k:A?H:"top";w[M]>x[M]&&(P=en(P));var j=en(P),U=[];if(o&&U.push(N[T]<=0),a&&U.push(N[P]<=0,N[j]<=0),U.every(function(e){return e})){S=D,O=!1;break}E.set(D,U)}if(O)for(var W=h?3:1,z=function(e){var t=b.find(function(t){var n=E.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},K=W;K>0&&"break"!==z(K);K--);t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=n.altAxis,s=n.boundary,a=n.rootBoundary,u=n.altBoundary,l=n.padding,d=n.tether,c=void 0===d||d,p=n.tetherOffset,f=void 0===p?0:p,h=ec(t,{boundary:s,rootBoundary:a,padding:l,altBoundary:u}),m=J(t.placement),v=Q(t.placement),b=!v,w=X(m),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,C="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,D="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(E){if(void 0===r||r){var M,N="y"===w?"top":k,P="y"===w?H:L,I="y"===w?"height":"width",V=E[w],U=V+h[N],W=V-h[P],F=c?-S[I]/2:0,q=v===B?O[I]:S[I],z=v===B?-S[I]:-O[I],K=t.elements.arrow,_=c&&K?R(K):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eu(),Y=$[N],G=$[P],Z=ep(0,O[I],_[I]),ee=b?O[I]/2-F-Z-Y-D.mainAxis:q-Z-Y-D.mainAxis,et=b?-O[I]/2+F+Z+G+D.mainAxis:z+Z+G+D.mainAxis,en=t.elements.arrow&&j(t.elements.arrow),ei=en?"y"===w?en.clientTop||0:en.clientLeft||0:0,er=null!=(M=null==T?void 0:T[w])?M:0,eo=ep(c?y(U,V+ee-er-ei):U,V,c?g(W,V+et-er):W);E[w]=eo,A[w]=eo-V}if(void 0!==o&&o){var es,ea,el="x"===w?"top":k,ed="x"===w?H:L,ef=E[x],eh="y"===x?"height":"width",em=ef+h[el],ev=ef-h[ed],eg=-1!==["top",k].indexOf(m),ey=null!=(ea=null==T?void 0:T[x])?ea:0,eb=eg?em:ef-O[eh]-S[eh]-ey+D.altAxis,ew=eg?ef+O[eh]+S[eh]-ey-D.altAxis:ev,ex=c&&eg?(es=ep(eb,ef,ew))>ew?ew:es:ep(c?eb:em,ef,c?ew:ev);E[x]=ex,A[x]=ex-ef}t.modifiersData[i]=A}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=J(n.placement),u=X(a),l=[k,L].indexOf(a)>=0?"height":"width";if(o&&s){var d,c=(d=r.padding,el("number"!=typeof(d="function"==typeof d?d(Object.assign({},n.rects,{placement:n.placement})):d)?d:ed(d,V))),p=R(o),f="y"===u?"top":k,h="y"===u?H:L,m=n.rects.reference[l]+n.rects.reference[u]-s[u]-n.rects.popper[l],v=s[u]-n.rects.reference[u],g=j(o),y=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,b=c[f],w=y-p[l]-c[h],x=y/2-p[l]/2+(m/2-v/2),E=ep(b,x,w);n.modifiersData[i]=((t={})[u]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;if(null!=i)("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&eo(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ec(t,{elementContext:"reference"}),a=ec(t,{altBoundary:!0}),u=ef(s,i),l=ef(a,r,o),d=eh(u),c=eh(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":c})}}]}).defaultModifiers)?[]:r,a=void 0===(s=i.defaultOptions)?K:s,function(e,t,n){void 0===n&&(n=a);var i,r,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,d={state:s,setOptions:function(n){var i,r,l,p,f,m,v="function"==typeof n?n(s.options):n;c(),s.options=Object.assign({},a,s.options,v),s.scrollParents={reference:h(e)?N(e):e.contextElement?N(e.contextElement):[],popper:N(t)};var g=(r=Object.keys(i=[].concat(o,s.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return i[e]}),l=new Map,p=new Set,f=[],r.forEach(function(e){l.set(e.name,e)}),r.forEach(function(e){p.has(e.name)||function e(t){p.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!p.has(t)){var n=l.get(t);n&&e(n)}}),f.push(t)}(e)}),m=f,z.reduce(function(e,t){return e.concat(m.filter(function(e){return e.phase===t}))},[]));return s.orderedModifiers=g.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=e.effect;if("function"==typeof i){var r=i({state:s,name:t,instance:d,options:void 0===n?{}:n});u.push(r||function(){})}}),d.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(_(t,n)){s.rects={reference:(i=j(n),r="fixed"===s.options.strategy,o=m(i),p=m(i)&&(u=b((a=i.getBoundingClientRect()).width)/i.offsetWidth||1,c=b(a.height)/i.offsetHeight||1,1!==u||1!==c),h=C(i),v=E(t,p,r),g={scrollLeft:0,scrollTop:0},y={x:0,y:0},(o||!o&&!r)&&(("body"!==S(i)||A(h))&&(g=function(e){return e!==f(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:O(e)}(i)),m(i)?(y=E(i,!0),y.x+=i.clientLeft,y.y+=i.clientTop):h&&(y.x=D(h))),{x:v.left+g.scrollLeft-y.x,y:v.top+g.scrollTop-y.y,width:v.width,height:v.height}),popper:R(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var i,r,o,a,u,c,p,h,v,g,y,w=0;w<s.orderedModifiers.length;w++){if(!0===s.reset){s.reset=!1,w=-1;continue}var x=s.orderedModifiers[w],T=x.fn,M=x.options,N=void 0===M?{}:M,P=x.name;"function"==typeof T&&(s=T({state:s,options:N,name:P,instance:d})||s)}}}},update:(i=function(){return new Promise(function(e){d.forceUpdate(),e(s)})},function(){return r||(r=new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(i())})})),r}),destroy:function(){c(),l=!0}};if(!_(e,t))return d;function c(){u.forEach(function(e){return e()}),u=[]}return d.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}),ev="tippy-content",eg="tippy-arrow",ey="tippy-svg-arrow",eb={passive:!0,capture:!0},ew=function(){return document.body};function ex(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function eE(e,t){var n=({}).toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function eO(e,t){return"function"==typeof e?e.apply(void 0,t):e}function eS(e,t){var n;return 0===t?e:function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)}}function eC(e){return[].concat(e)}function eD(e,t){-1===e.indexOf(t)&&e.push(t)}function eT(e){return[].slice.call(e)}function eA(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function eR(){return document.createElement("div")}function eM(e){return["Element","Fragment"].some(function(t){return eE(e,t)})}function eN(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function eP(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function ej(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[i](t,n)})}function eH(e,t){for(var n,i=t;i;){if(e.contains(i))return!0;i=null==i.getRootNode||null==(n=i.getRootNode())?void 0:n.host}return!1}var eL={isTouch:!1},ek=0;function eI(){!eL.isTouch&&(eL.isTouch=!0,window.performance&&document.addEventListener("mousemove",eV))}function eV(){var e=performance.now();e-ek<20&&(eL.isTouch=!1,document.removeEventListener("mousemove",eV)),ek=e}function eB(){var e=document.activeElement;if(e&&e._tippy&&e._tippy.reference===e){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var eU="undefined"!=typeof window&&"undefined"!=typeof document&&!!window.msCrypto,eW=Object.assign({appendTo:ew,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),eF=Object.keys(eW);function eq(e){var t=(e.plugins||[]).reduce(function(t,n){var i,r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=eW[r])?i:o),t},{});return Object.assign({},e,t)}function ez(e,t){var n,i=Object.assign({},t,{content:eO(t.content,[e])},t.ignoreAttributes?{}:((n=t.plugins)?Object.keys(eq(Object.assign({},eW,{plugins:n}))):eF).reduce(function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t},{}));return i.aria=Object.assign({},eW.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?t.interactive:i.aria.expanded,content:"auto"===i.aria.content?t.interactive?null:"describedby":i.aria.content},i}function eK(e,t){e.innerHTML=t}function e_(e){var t=eR();return!0===e?t.className=eg:(t.className=ey,eM(e)?t.appendChild(e):eK(t,e)),t}function e$(e,t){eM(t.content)?(eK(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?eK(e,t.content):e.textContent=t.content)}function eJ(e){var t=e.firstElementChild,n=eT(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(ev)}),arrow:n.find(function(e){return e.classList.contains(eg)||e.classList.contains(ey)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function eQ(e){var t=eR(),n=eR();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=eR();function r(n,i){var r=eJ(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),(n.content!==i.content||n.allowHTML!==i.allowHTML)&&e$(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(e_(i.arrow))):o.appendChild(e_(i.arrow)):a&&o.removeChild(a)}return i.className=ev,i.setAttribute("data-state","hidden"),e$(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}eQ.$$tippy=!0;var eX=1,eY=[],eG=[];function eZ(e,t){void 0===t&&(t={});var n,i=eW.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",eI,eb),window.addEventListener("blur",eB);var r=Object.assign({},t,{plugins:i}),o=(eM(n=e)?[n]:eE(n,"NodeList")?eT(n):Array.isArray(n)?n:eT(document.querySelectorAll(n))).reduce(function(e,t){var n=t&&function(e,t){var n,i,r,o,s,a,u,l,d=ez(e,Object.assign({},eW,eq(eA(t)))),c=!1,p=!1,f=!1,h=!1,m=[],v=eS(K,d.interactiveDebounce),g=eX++,y=(n=d.plugins).filter(function(e,t){return n.indexOf(e)===t}),b={id:g,reference:e,popper:eR(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){if(!b.state.isDestroyed){N("onBeforeUpdate",[b,t]),q();var n=b.props,i=ez(e,Object.assign({},n,eA(t),{ignoreAttributes:!0}));b.props=i,F(),n.interactiveDebounce!==i.interactiveDebounce&&(H(),v=eS(K,i.interactiveDebounce)),n.triggerTarget&&!i.triggerTarget?eC(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):i.triggerTarget&&e.removeAttribute("aria-expanded"),j(),M(),E&&E(n,i),b.popperInstance&&(Q(),Y().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),N("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var t=b.state.isVisible,n=b.state.isDestroyed,i=!b.state.isEnabled,r=eL.isTouch&&!b.props.touch,o=ex(b.props.duration,0,eW.duration);if(!(t||n||i||r||(l||e).hasAttribute("disabled"))&&(N("onShow",[b],!1),!1!==b.props.onShow(b))){if(b.state.isVisible=!0,T()&&(x.style.visibility="visible"),M(),V(),b.state.isMounted||(x.style.transition="none"),T()){var s,a,d,c=eJ(x);eN([c.box,c.content],0)}u=function(){var e;if(b.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,T()&&b.props.animation){var t=eJ(x),n=t.box,i=t.content;eN([n,i],o),eP([n,i],"visible")}P(),j(),eD(eG,b),null==(e=b.popperInstance)||e.forceUpdate(),N("onMount",[b]),b.props.animation&&T()&&U(o,function(){b.state.isShown=!0,N("onShown",[b])})}},a=b.props.appendTo,d=l||e,(s=b.props.interactive&&a===ew||"parent"===a?d.parentNode:eO(a,[d])).contains(x)||s.appendChild(x),b.state.isMounted=!0,Q()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=ex(b.props.duration,1,eW.duration);if(!e&&!t&&!n&&(N("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,h=!1,c=!1,T()&&(x.style.visibility="hidden"),H(),B(),M(!0),T()){var r,o=eJ(x),s=o.box,a=o.content;b.props.animation&&(eN([s,a],i),eP([s,a],"hidden"))}(P(),j(),b.props.animation)?T()&&(r=b.unmount,U(i,function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&r()})):b.unmount()}},hideWithInteractivity:function(e){A().addEventListener("mousemove",v),eD(eY,v),v(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(X(),Y().forEach(function(e){e._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),eG=eG.filter(function(e){return e!==b}),b.state.isMounted=!1,N("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),q(),delete e._tippy,b.state.isDestroyed=!0,N("onDestroy",[b]))}};if(!d.render)return b;var w=d.render(b),x=w.popper,E=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var O=y.map(function(e){return e.fn(b)}),S=e.hasAttribute("aria-expanded");return F(),j(),M(),N("onCreate",[b]),d.showOnCreate&&G(),x.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&A().addEventListener("mousemove",v)}),b;function C(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function D(){return"hold"===C()[0]}function T(){var e;return!!(null!=(e=b.props.render)&&e.$$tippy)}function A(){var t,n,i=(l||e).parentNode;return i&&null!=(n=eC(i)[0])&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function R(e){return b.state.isMounted&&!b.state.isVisible||eL.isTouch||s&&"focus"===s.type?0:ex(b.props.delay,+!e,eW.delay)}function M(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function N(e,t,n){if(void 0===n&&(n=!0),O.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var i;(i=b.props)[e].apply(i,t)}}function P(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=x.id;eC(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}})}}function j(){!S&&b.props.aria.expanded&&eC(b.props.triggerTarget||e).forEach(function(t){b.props.interactive?t.setAttribute("aria-expanded",b.state.isVisible&&t===(l||e)?"true":"false"):t.removeAttribute("aria-expanded")})}function H(){A().removeEventListener("mousemove",v),eY=eY.filter(function(e){return e!==v})}function L(t){if(!eL.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(b.props.interactive&&eH(x,n))){if(eC(b.props.triggerTarget||e).some(function(e){return eH(e,n)})){if(eL.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout(function(){p=!1}),b.state.isMounted||B())}}}function k(){f=!0}function I(){f=!1}function V(){var e=A();e.addEventListener("mousedown",L,!0),e.addEventListener("touchend",L,eb),e.addEventListener("touchstart",I,eb),e.addEventListener("touchmove",k,eb)}function B(){var e=A();e.removeEventListener("mousedown",L,!0),e.removeEventListener("touchend",L,eb),e.removeEventListener("touchstart",I,eb),e.removeEventListener("touchmove",k,eb)}function U(e,t){var n=eJ(x).box;function i(e){e.target===n&&(ej(n,"remove",i),t())}if(0===e)return t();ej(n,"remove",a),ej(n,"add",i),a=i}function W(t,n,i){void 0===i&&(i=!1),eC(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,i),m.push({node:e,eventType:t,handler:n,options:i})})}function F(){D()&&(W("touchstart",z,{passive:!0}),W("touchend",_,{passive:!0})),b.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(W(e,z),e){case"mouseenter":W("mouseleave",_);break;case"focus":W(eU?"focusout":"blur",$);break;case"focusin":W("focusout",$)}})}function q(){m.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)}),m=[]}function z(e){var t,n=!1;if(!(!b.state.isEnabled||J(e))&&!p){var i=(null==(t=s)?void 0:t.type)==="focus";s=e,l=e.currentTarget,j(),!b.state.isVisible&&eE(e,"MouseEvent")&&eY.forEach(function(t){return t(e)}),"click"===e.type&&(0>b.props.trigger.indexOf("mouseenter")||c)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:G(e),"click"===e.type&&(c=!n),n&&!i&&Z(e)}}function K(t){var n,i,r,o=t.target,s=(l||e).contains(o)||x.contains(o);("mousemove"!==t.type||!s)&&(n=Y().concat(x).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean),i=t.clientX,r=t.clientY,n.every(function(e){var t=e.popperRect,n=e.popperState,o=e.props.interactiveBorder,s=n.placement.split("-")[0],a=n.modifiersData.offset;if(!a)return!0;var u="bottom"===s?a.top.y:0,l="top"===s?a.bottom.y:0,d="right"===s?a.left.x:0,c="left"===s?a.right.x:0,p=t.top-r+u>o,f=r-t.bottom-l>o,h=t.left-i+d>o,m=i-t.right-c>o;return p||f||h||m})&&(H(),Z(t)))}function _(e){if(!(J(e)||b.props.trigger.indexOf("click")>=0&&c)){if(b.props.interactive)return void b.hideWithInteractivity(e);Z(e)}}function $(t){(!(0>b.props.trigger.indexOf("focusin"))||t.target===(l||e))&&(b.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||Z(t))}function J(e){return!!eL.isTouch&&D()!==e.type.indexOf("touch")>=0}function Q(){X();var t=b.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,a=T()?eJ(x).arrow:null,d=o?{getBoundingClientRect:o,contextElement:o.contextElement||l||e}:e,c=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var n=eJ(x).box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];T()&&a&&c.push({name:"arrow",options:{element:a,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),b.popperInstance=em(d,x,Object.assign({},n,{placement:i,onFirstUpdate:u,modifiers:c}))}function X(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Y(){return eT(x.querySelectorAll("[data-tippy-root]"))}function G(e){b.clearDelayTimeouts(),e&&N("onTrigger",[b,e]),V();var t=R(!0),n=C(),r=n[0],o=n[1];eL.isTouch&&"hold"===r&&o&&(t=o),t?i=setTimeout(function(){b.show()},t):b.show()}function Z(e){if(b.clearDelayTimeouts(),N("onUntrigger",[b,e]),!b.state.isVisible)return void B();if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0)||!c){var t=R(!1);t?r=setTimeout(function(){b.state.isVisible&&b.hide()},t):o=requestAnimationFrame(function(){b.hide()})}}}(t,r);return n&&e.push(n),e},[]);return eM(e)?o[0]:o}eZ.defaultProps=eW,eZ.setDefaultProps=function(e){Object.keys(e).forEach(function(t){eW[t]=e[t]})},eZ.currentInput=eL,Object.assign({},ee,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),eZ.setDefaultProps({render:eQ});class e0{constructor({editor:e,element:t,view:n,tippyOptions:i={},updateDelay:r=250,shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:e,state:t,from:n,to:i})=>{let{doc:r,selection:o}=t,{empty:s}=o,a=!r.textBetween(n,i).length&&(0,c.xh)(t.selection),u=this.element.contains(document.activeElement);return!!(e.hasFocus()||u)&&!s&&!a&&!!this.editor.isEditable},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;if(this.preventHide){this.preventHide=!1;return}(null==e?void 0:e.relatedTarget)&&(null==(t=this.element.parentNode)?void 0:t.contains(e.relatedTarget))||(null==e?void 0:e.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.handleDebouncedUpdate=(e,t)=>{let n=!(null==t?void 0:t.selection.eq(e.state.selection)),i=!(null==t?void 0:t.doc.eq(e.state.doc));(n||i)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(e,n,i,t)},this.updateDelay))},this.updateHandler=(e,t,n,i)=>{var r,o,s;let{state:a,composing:u}=e,{selection:l}=a;if(u||!t&&!n)return;this.createTooltip();let{ranges:d}=l,p=Math.min(...d.map(e=>e.$from.pos)),f=Math.max(...d.map(e=>e.$to.pos));if(!(null==(r=this.shouldShow)?void 0:r.call(this,{editor:this.editor,element:this.element,view:e,state:a,oldState:i,from:p,to:f})))return void this.hide();null==(o=this.tippy)||o.setProps({getReferenceClientRect:(null==(s=this.tippyOptions)?void 0:s.getReferenceClientRect)||(()=>{if((0,c.EG)(a.selection)){let t=e.nodeDOM(p);if(t){let e=t.dataset.nodeViewWrapper?t:t.querySelector("[data-node-view-wrapper]");if(e&&(t=e.firstChild),t)return t.getBoundingClientRect()}}return(0,c.pr)(e,p,f)})}),this.show()},this.editor=e,this.element=t,this.view=n,this.updateDelay=r,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){let{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=eZ(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){let{state:n}=e,i=n.selection.from!==n.selection.to;if(this.updateDelay>0&&i)return void this.handleDebouncedUpdate(e,t);let r=!(null==t?void 0:t.selection.eq(e.state.selection)),o=!(null==t?void 0:t.doc.eq(e.state.doc));this.updateHandler(e,r,o,t)}show(){var e;null==(e=this.tippy)||e.show()}hide(){var e;null==(e=this.tippy)||e.hide()}destroy(){var e,t;(null==(e=this.tippy)?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null==(t=this.tippy)||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}let e1=e=>new p.Sy({key:"string"==typeof e.pluginKey?new p.H$(e.pluginKey):e.pluginKey,view:t=>new e0({view:t,...e})});c.hj.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[e1({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});var e2=n(8491),e9=n(96853);class e5{getTextContent(e){return(0,c.Q)(e,{textSerializers:(0,c.Is)(this.editor.schema)})}constructor({editor:e,element:t,view:n,tippyOptions:i={},shouldShow:r}){this.preventHide=!1,this.shouldShow=({view:e,state:t})=>{let{selection:n}=t,{$anchor:i,empty:r}=n,o=1===i.depth,s=i.parent.isTextblock&&!i.parent.type.spec.code&&!i.parent.textContent&&0===i.parent.childCount&&!this.getTextContent(i.parent);return!!e.hasFocus()&&!!r&&!!o&&!!s&&!!this.editor.isEditable},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;if(this.preventHide){this.preventHide=!1;return}(null==e?void 0:e.relatedTarget)&&(null==(t=this.element.parentNode)?void 0:t.contains(e.relatedTarget))||(null==e?void 0:e.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.editor=e,this.element=t,this.view=n,r&&(this.shouldShow=r),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){let{element:e}=this.editor.options,t=!!e.parentElement;!this.tippy&&t&&(this.tippy=eZ(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var n,i,r;let{state:o}=e,{doc:s,selection:a}=o,{from:u,to:l}=a;if(!(t&&t.doc.eq(s)&&t.selection.eq(a))){if(this.createTooltip(),!(null==(n=this.shouldShow)?void 0:n.call(this,{editor:this.editor,view:e,state:o,oldState:t})))return void this.hide();null==(i=this.tippy)||i.setProps({getReferenceClientRect:(null==(r=this.tippyOptions)?void 0:r.getReferenceClientRect)||(()=>(0,c.pr)(e,u,l))}),this.show()}}show(){var e;null==(e=this.tippy)||e.show()}hide(){var e;null==(e=this.tippy)||e.hide()}destroy(){var e,t;(null==(e=this.tippy)?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null==(t=this.tippy)||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}let e3=e=>new p.Sy({key:"string"==typeof e.pluginKey?new p.H$(e.pluginKey):e.pluginKey,view:t=>new e5({view:t,...e})});c.hj.create({name:"floatingMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[e3({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});var e7={exports:{}},e4={};e7.exports=function(){if(l)return e4;l=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=e2.useState,n=e2.useEffect,i=e2.useLayoutEffect,r=e2.useDebugValue;function o(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!e(t,i)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,s){var a=s(),u=t({inst:{value:a,getSnapshot:s}}),l=u[0].inst,d=u[1];return i(function(){l.value=a,l.getSnapshot=s,o(l)&&d({inst:l})},[e,a,s]),n(function(){return o(l)&&d({inst:l}),e(function(){o(l)&&d({inst:l})})},[e]),r(a),a};return e4.useSyncExternalStore=void 0!==e2.useSyncExternalStore?e2.useSyncExternalStore:s,e4}();var e6=e7.exports;let e8=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},te=({contentComponent:e})=>{let t=e6.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return e2.createElement(e2.Fragment,null,Object.values(t))};class tt extends e2.Component{constructor(e){var t;super(e),this.editorContentRef=e2.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(null==(t=e.editor)?void 0:t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=function(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(n,i){t={...t,[n]:e9.createPortal(i.reactElement,i.element,n)},e.forEach(e=>e())},removeRenderer(n){let i={...t};delete i[n],t=i,e.forEach(e=>e())}}}(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){let e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;let t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){let{editor:e,innerRef:t,...n}=this.props;return e2.createElement(e2.Fragment,null,e2.createElement("div",{ref:e8(t,this.editorContentRef),...n}),(null==e?void 0:e.contentComponent)&&e2.createElement(te,{contentComponent:e.contentComponent}))}}let tn=(0,e2.forwardRef)((e,t)=>{let n=e2.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return e2.createElement(tt,{key:n,innerRef:t,...e})}),ti=e2.memo(tn);var tr=(u=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(t[r]!==n[r])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((i=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=i;0!=r--;){var i,r,o,s=o[r];if(("_owner"!==s||!t.$$typeof)&&!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}).__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u,to={exports:{}},ts={};to.exports=function(){if(d)return ts;d=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=e6.useSyncExternalStore,n=e2.useRef,i=e2.useEffect,r=e2.useMemo,o=e2.useDebugValue;return ts.useSyncExternalStoreWithSelector=function(s,a,u,l,d){var c=n(null);if(null===c.current){var p={hasValue:!1,value:null};c.current=p}else p=c.current;var f=t(s,(c=r(function(){function t(t){if(!r){if(r=!0,n=t,t=l(t),void 0!==d&&p.hasValue){var o=p.value;if(d(o,t))return i=o}return i=t}if(o=i,e(n,t))return o;var s=l(t);return void 0!==d&&d(o,s)?o:(n=t,i=s)}var n,i,r=!1,o=void 0===u?null:u;return[function(){return t(a())},null===o?void 0:function(){return t(o())}]},[a,u,l,d]))[0],c[1]);return i(function(){p.hasValue=!0,p.value=f},[f]),o(f),f},ts}();var ta=to.exports;let tu="undefined"!=typeof window?e2.useLayoutEffect:e2.useEffect;class tl{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,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.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}}function td(e){var t;let[n]=(0,e2.useState)(()=>new tl(e.editor)),i=ta.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:tr);return tu(()=>n.watch(e.editor),[e.editor,n]),(0,e2.useDebugValue)(i),i}let tc="undefined"==typeof window,tp=tc||!!("undefined"!=typeof window&&window.next);class tf{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,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(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){return void 0===this.options.current.immediatelyRender?tc||tp?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onBeforeCreate)?void 0:n.call(t,...e)},onBlur:(...e)=>{var t,n;return null==(n=(t=this.options.current).onBlur)?void 0:n.call(t,...e)},onCreate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onCreate)?void 0:n.call(t,...e)},onDestroy:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDestroy)?void 0:n.call(t,...e)},onFocus:(...e)=>{var t,n;return null==(n=(t=this.options.current).onFocus)?void 0:n.call(t,...e)},onSelectionUpdate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onSelectionUpdate)?void 0:n.call(t,...e)},onTransaction:(...e)=>{var t,n;return null==(n=(t=this.options.current).onTransaction)?void 0:n.call(t,...e)},onUpdate:(...e)=>{var t,n;return null==(n=(t=this.options.current).onUpdate)?void 0:n.call(t,...e)},onContentError:(...e)=>{var t,n;return null==(n=(t=this.options.current).onContentError)?void 0:n.call(t,...e)},onDrop:(...e)=>{var t,n;return null==(n=(t=this.options.current).onDrop)?void 0:n.call(t,...e)},onPaste:(...e)=>{var t,n;return null==(n=(t=this.options.current).onPaste)?void 0:n.call(t,...e)}};return new c.ML(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)||("extensions"===n&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>{var i;return e===(null==(i=t.extensions)?void 0:i[n])}):e[n]===t[n]))}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===e.length?tf.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function th(e={},t=[]){let n=(0,e2.useRef)(e);n.current=e;let[i]=(0,e2.useState)(()=>new tf(n)),r=e6.useSyncExternalStore(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,e2.useDebugValue)(r),(0,e2.useEffect)(i.onRender(t)),td({editor:r,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),r}let tm=(0,e2.createContext)({editor:null}),tv=tm.Consumer,tg=()=>(0,e2.useContext)(tm);function ty({children:e,slotAfter:t,slotBefore:n,editorContainerProps:i={},...r}){let o=th(r);return o?e2.createElement(tm.Provider,{value:{editor:o}},n,e2.createElement(tv,null,({editor:e})=>e2.createElement(ti,{editor:e,...i})),e,t):null}let tb=e=>{let[t,n]=(0,e2.useState)(null),{editor:i}=tg();return(0,e2.useEffect)(()=>{var n;if(!t||(null==(n=e.editor)?void 0:n.isDestroyed)||(null==i?void 0:i.isDestroyed))return;let{pluginKey:r="bubbleMenu",editor:o,tippyOptions:s={},updateDelay:a,shouldShow:u=null}=e,l=o||i;if(!l)return void console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");let d=e1({updateDelay:a,editor:l,element:t,pluginKey:r,shouldShow:u,tippyOptions:s});return l.registerPlugin(d),()=>{l.unregisterPlugin(r)}},[e.editor,i,t]),e2.createElement("div",{ref:n,className:e.className,style:{visibility:"hidden"}},e.children)},tw=e=>{let[t,n]=(0,e2.useState)(null),{editor:i}=tg();return(0,e2.useEffect)(()=>{var n;if(!t||(null==(n=e.editor)?void 0:n.isDestroyed)||(null==i?void 0:i.isDestroyed))return;let{pluginKey:r="floatingMenu",editor:o,tippyOptions:s={},shouldShow:a=null}=e,u=o||i;if(!u)return void console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");let l=e3({pluginKey:r,editor:u,element:t,tippyOptions:s,shouldShow:a});return u.registerPlugin(l),()=>{u.unregisterPlugin(r)}},[e.editor,i,t]),e2.createElement("div",{ref:n,className:e.className,style:{visibility:"hidden"}},e.children)},tx=(0,e2.createContext)({onDragStart:void 0}),tE=()=>(0,e2.useContext)(tx),tO=e=>{let t=e.as||"div",{nodeViewContentRef:n}=tE();return e2.createElement(t,{...e,ref:n,"data-node-view-content":"",style:{whiteSpace:"pre-wrap",...e.style}})},tS=e2.forwardRef((e,t)=>{let{onDragStart:n}=tE(),i=e.as||"div";return e2.createElement(i,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});class tC{constructor(e,{editor:t,props:n={},as:i="div",className:r=""}){this.ref=null,this.id=Math.floor(0xffffffff*Math.random()).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(i),this.element.classList.add("react-renderer"),r&&this.element.classList.add(...r.split(" ")),this.editor.isInitialized?(0,e9.flushSync)(()=>{this.render()}):this.render()}render(){var e,t;let n=this.component,i=this.props,r=this.editor;("function"==typeof n&&n.prototype&&n.prototype.isReactComponent||"object"==typeof n&&(null==(t=n.$$typeof)?void 0:t.toString())==="Symbol(react.forward_ref)")&&(i.ref=e=>{this.ref=e}),this.reactElement=e2.createElement(n,{...i}),null==(e=null==r?void 0:r.contentComponent)||e.setRenderer(this.id,this)}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e;let t=this.editor;null==(e=null==t?void 0:t.contentComponent)||e.removeRenderer(this.id)}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}}class tD extends c.DK{mount(){let e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode()};if(!this.component.displayName){let e;this.component.displayName=(e=this.extension.name).charAt(0).toUpperCase()+e.substring(1)}let t={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:e=>{e&&this.contentDOMElement&&e.firstChild!==this.contentDOMElement&&e.appendChild(this.contentDOMElement)}},n=this.component,i=e2.memo(e=>e2.createElement(tx.Provider,{value:t},e2.createElement(n,e)));i.displayName="ReactNodeView",this.node.isLeaf?this.contentDOMElement=null:this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.style.whiteSpace="inherit");let r=this.node.isInline?"span":"div";this.options.as&&(r=this.options.as);let{className:o=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new tC(i,{editor:this.editor,props:e,as:r,className:`node-${this.node.type.name} ${o}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var e;if(this.renderer.element.firstElementChild&&!(null==(e=this.renderer.element.firstElementChild)?void 0:e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){let{from:e,to:t}=this.editor.state.selection,n=this.getPos();if("number"==typeof n)if(e<=n&&t>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(e,t,n){let i=e=>{this.renderer.updateProps(e),"function"==typeof this.options.attrs&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if("function"==typeof this.options.update){let r=this.node,o=this.decorations,s=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=n,this.options.update({oldNode:r,oldDecorations:o,newNode:e,newDecorations:t,oldInnerDecorations:s,innerDecorations:n,updateProps:()=>i({node:e,decorations:t,innerDecorations:n})})}return e===this.node&&this.decorations===t&&this.innerDecorations===n||(this.node=e,this.decorations=t,this.innerDecorations=n,i({node:e,decorations:t,innerDecorations:n}),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}updateElementAttributes(){if(this.options.attrs){let e={};if("function"==typeof this.options.attrs){let t=this.editor.extensionManager.attributes,n=(0,c.m7)(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:n})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}}function tT(e,t){return n=>n.editor.contentComponent?new tD(e,n,t):{}}}}]);
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* @license React
|
3
|
+
* use-sync-external-store-shim.development.js
|
4
|
+
*
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @license React
|
13
|
+
* use-sync-external-store-shim.production.min.js
|
14
|
+
*
|
15
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
16
|
+
*
|
17
|
+
* This source code is licensed under the MIT license found in the
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
19
|
+
*/
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @license React
|
23
|
+
* use-sync-external-store-shim/with-selector.development.js
|
24
|
+
*
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
26
|
+
*
|
27
|
+
* This source code is licensed under the MIT license found in the
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
29
|
+
*/
|
30
|
+
|
31
|
+
/**
|
32
|
+
* @license React
|
33
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
34
|
+
*
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
36
|
+
*
|
37
|
+
* This source code is licensed under the MIT license found in the
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
39
|
+
*/
|
40
|
+
|
41
|
+
/**!
|
42
|
+
* tippy.js v6.3.7
|
43
|
+
* (c) 2017-2021 atomiks
|
44
|
+
* MIT License
|
45
|
+
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["3126"],{6546:function(e,t,n){n.r(t),n.d(t,{defaultCoordinates:()=>W,useDroppable:()=>e3,closestCorners:()=>H,getClientRect:()=>Z,useDraggable:()=>e2,KeyboardSensor:()=>eb,TouchSensor:()=>eL,TraversalOrder:()=>y,KeyboardCode:()=>v,defaultDropAnimationSideEffects:()=>tn,defaultKeyboardCoordinateGetter:()=>ey,rectIntersection:()=>V,closestCenter:()=>j,useSensor:()=>I,applyModifiers:()=>eQ,MeasuringStrategy:()=>b,DragOverlay:()=>ti,DndContext:()=>e$,useSensors:()=>z,MouseSensor:()=>eM,AutoScrollActivator:()=>m,useDndMonitor:()=>k,PointerSensor:()=>eC,useDndContext:()=>e5,getFirstCollision:()=>X,defaultDropAnimation:()=>tr,getScrollableAncestors:()=>ee,defaultAnnouncements:()=>N,defaultScreenReaderInstructions:()=>T,pointerWithin:()=>q,MeasuringFrequency:()=>w});var r,l,i,a,o,u,s,d,c,h,f,g,v,p,m,y,b,w,x,E=n(8491),D=n.n(E),C=n(96853),S=n(83973);let M={display:"none"};function R(e){let{id:t,value:n}=e;return D().createElement("div",{id:t,style:M},n)}function L(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return D().createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let O=(0,E.createContext)(null);function k(e){let t=(0,E.useContext)(O);(0,E.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}let T={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},N={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function P(e){let{announcements:t=N,container:n,hiddenTextDescribedById:r,screenReaderInstructions:l=T}=e,{announce:i,announcement:a}=function(){let[e,t]=(0,E.useState)("");return{announce:(0,E.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),o=(0,S.useUniqueId)("DndLiveRegion"),[u,s]=(0,E.useState)(!1);if((0,E.useEffect)(()=>{s(!0)},[]),k((0,E.useMemo)(()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&i(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;i(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;i(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;i(t.onDragCancel({active:n,over:r}))}}),[i,t])),!u)return null;let d=D().createElement(D().Fragment,null,D().createElement(R,{id:r,value:l.draggable}),D().createElement(L,{id:o,announcement:a}));return n?(0,C.createPortal)(d,n):d}function A(){}function I(e,t){return(0,E.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function z(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,E.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(r=h||(h={})).DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable";let W=Object.freeze({x:0,y:0});function B(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function F(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function U(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function K(e){let{left:t,top:n,height:r,width:l}=e;return[{x:t,y:n},{x:t+l,y:n},{x:t,y:n+r},{x:t+l,y:n+r}]}function X(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function Y(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}let j=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=Y(t,t.left,t.top),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=B(Y(r),l);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(F)},H=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=K(t),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=K(r),a=Number((l.reduce((e,t,r)=>e+B(n[r],t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(F)},V=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=[];for(let e of r){let{id:r}=e,i=n.get(r);if(i){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),l=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height);if(r<l&&n<i){let a=t.width*t.height,o=e.width*e.height,u=(l-r)*(i-n);return Number((u/(a+o-u)).toFixed(4))}return 0}(i,t);n>0&&l.push({id:r,data:{droppableContainer:e,value:n}})}}return l.sort(U)},q=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let l=[];for(let e of t){let{id:t}=e,i=n.get(t);if(i&&function(e,t){let{top:n,left:r,bottom:l,right:i}=t;return n<=e.y&&e.y<=l&&r<=e.x&&e.x<=i}(r,i)){let n=Number((K(i).reduce((e,t)=>e+B(r,t),0)/4).toFixed(4));l.push({id:t,data:{droppableContainer:e,value:n}})}}return l.sort(F)};function J(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:W}let _=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((e,t)=>({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})};function G(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let Q={ignoreTransform:!1};function Z(e,t){void 0===t&&(t=Q);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,S.getWindow)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=G(t);if(!r)return e;let{scaleX:l,scaleY:i,x:a,y:o}=r,u=e.left-a-(1-l)*parseFloat(n),s=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=l?e.width/l:e.width,c=i?e.height/i:e.height;return{width:d,height:c,top:s,right:u+d,bottom:s+c,left:u}}(n,t,r))}let{top:r,left:l,width:i,height:a,bottom:o,right:u}=n;return{top:r,left:l,width:i,height:a,bottom:o,right:u}}function $(e){return Z(e,{ignoreTransform:!0})}function ee(e,t){let n=[];return e?function r(l){var i;if(null!=t&&n.length>=t||!l)return n;if((0,S.isDocument)(l)&&null!=l.scrollingElement&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!(0,S.isHTMLElement)(l)||(0,S.isSVGElement)(l)||n.includes(l))return n;let a=(0,S.getWindow)(e).getComputedStyle(l);return(l!==e&&function(e,t){void 0===t&&(t=(0,S.getWindow)(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(l,a)&&n.push(l),void 0===(i=a)&&(i=(0,S.getWindow)(l).getComputedStyle(l)),"fixed"===i.position)?n:r(l.parentNode)}(e):n}function et(e){let[t]=ee(e,1);return null!=t?t:null}function en(e){return S.canUseDOM&&e?(0,S.isWindow)(e)?e:(0,S.isNode)(e)?(0,S.isDocument)(e)||e===(0,S.getOwnerDocument)(e).scrollingElement?window:(0,S.isHTMLElement)(e)?e:null:null:null}function er(e){return(0,S.isWindow)(e)?e.scrollX:e.scrollLeft}function el(e){return(0,S.isWindow)(e)?e.scrollY:e.scrollTop}function ei(e){return{x:er(e),y:el(e)}}function ea(e){return!!S.canUseDOM&&!!e&&e===document.scrollingElement}function eo(e){let t={x:0,y:0},n=ea(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},l=e.scrollTop<=t.y,i=e.scrollLeft<=t.x;return{isTop:l,isLeft:i,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(l=f||(f={}))[l.Forward=1]="Forward",l[l.Backward=-1]="Backward";let eu={x:.2,y:.2};function es(e){return e.reduce((e,t)=>(0,S.add)(e,ei(t)),W)}function ed(e,t){if(void 0===t&&(t=Z),!e)return;let{top:n,left:r,bottom:l,right:i}=t(e);et(e)&&(l<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let ec=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+er(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+el(t),0)}]];class eh{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=ee(t),r=es(n);for(let[t,l,i]of(this.rect={...e},this.width=e.width,this.height=e.height,ec))for(let e of l)Object.defineProperty(this,e,{get:()=>{let l=i(n),a=r[t]-l;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ef{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function eg(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function ev(e){e.preventDefault()}function ep(e){e.stopPropagation()}(i=g||(g={})).Click="click",i.DragStart="dragstart",i.Keydown="keydown",i.ContextMenu="contextmenu",i.Resize="resize",i.SelectionChange="selectionchange",i.VisibilityChange="visibilitychange",(a=v||(v={})).Space="Space",a.Down="ArrowDown",a.Right="ArrowRight",a.Left="ArrowLeft",a.Up="ArrowUp",a.Esc="Escape",a.Enter="Enter",a.Tab="Tab";let em={start:[v.Space,v.Enter],cancel:[v.Esc],end:[v.Space,v.Enter,v.Tab]},ey=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case v.Right:return{...n,x:n.x+25};case v.Left:return{...n,x:n.x-25};case v.Down:return{...n,y:n.y+25};case v.Up:return{...n,y:n.y-25}}};class eb{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new ef((0,S.getOwnerDocument)(t)),this.windowListeners=new ef((0,S.getWindow)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(g.Resize,this.handleCancel),this.windowListeners.add(g.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(g.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ed(n),t(W)}handleKeyDown(e){if((0,S.isKeyboardEvent)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:l=em,coordinateGetter:i=ey,scrollBehavior:a="smooth"}=r,{code:o}=e;if(l.end.includes(o))return void this.handleEnd(e);if(l.cancel.includes(o))return void this.handleCancel(e);let{collisionRect:u}=n.current,s=u?{x:u.left,y:u.top}:W;this.referenceCoordinates||(this.referenceCoordinates=s);let d=i(e,{active:t,context:n.current,currentCoordinates:s});if(d){let t=(0,S.subtract)(d,s),r={x:0,y:0},{scrollableAncestors:l}=n.current;for(let n of l){let l=e.code,{isTop:i,isRight:o,isLeft:u,isBottom:s,maxScroll:c,minScroll:h}=eo(n),f=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:l}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:l,width:e.clientWidth,height:e.clientHeight}}(n),g={x:Math.min(l===v.Right?f.right-f.width/2:f.right,Math.max(l===v.Right?f.left:f.left+f.width/2,d.x)),y:Math.min(l===v.Down?f.bottom-f.height/2:f.bottom,Math.max(l===v.Down?f.top:f.top+f.height/2,d.y))},p=l===v.Right&&!o||l===v.Left&&!u,m=l===v.Down&&!s||l===v.Up&&!i;if(p&&g.x!==d.x){let e=n.scrollLeft+t.x,i=l===v.Right&&e<=c.x||l===v.Left&&e>=h.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});i?r.x=n.scrollLeft-e:r.x=l===v.Right?n.scrollLeft-c.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&g.y!==d.y){let e=n.scrollTop+t.y,i=l===v.Down&&e<=c.y||l===v.Up&&e>=h.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});i?r.y=n.scrollTop-e:r.y=l===v.Down?n.scrollTop-c.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,(0,S.add)((0,S.subtract)(d,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ew(e){return!!(e&&"distance"in e)}function ex(e){return!!(e&&"delay"in e)}eb.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=em,onActivation:l}=t,{active:i}=n,{code:a}=e.nativeEvent;if(r.start.includes(a)){let t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];class eE{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,S.getWindow)(e);return e instanceof t?e:(0,S.getOwnerDocument)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:l}=e,{target:i}=l;this.props=e,this.events=t,this.document=(0,S.getOwnerDocument)(i),this.documentListeners=new ef(this.document),this.listeners=new ef(n),this.windowListeners=new ef((0,S.getWindow)(i)),this.initialCoordinates=null!=(r=(0,S.getEventCoordinates)(l))?r:W,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(g.Resize,this.handleCancel),this.windowListeners.add(g.DragStart,ev),this.windowListeners.add(g.VisibilityChange,this.handleCancel),this.windowListeners.add(g.ContextMenu,ev),this.documentListeners.add(g.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ex(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(ew(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(g.Click,ep,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(g.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:l}=this,{onMove:i,options:{activationConstraint:a}}=l;if(!r)return;let o=null!=(t=(0,S.getEventCoordinates)(e))?t:W,u=(0,S.subtract)(r,o);if(!n&&a){if(ew(a)){if(null!=a.tolerance&&eg(u,a.tolerance))return this.handleCancel();if(eg(u,a.distance))return this.handleStart()}return ex(a)&&eg(u,a.tolerance)?this.handleCancel():void this.handlePending(a,u)}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===v.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eD={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eC extends eE{constructor(e){let{event:t}=e;super(e,eD,(0,S.getOwnerDocument)(t.target))}}eC.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let eS={move:{name:"mousemove"},end:{name:"mouseup"}};(o=p||(p={}))[o.RightClick=2]="RightClick";class eM extends eE{constructor(e){super(e,eS,(0,S.getOwnerDocument)(e.event.target))}}eM.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==p.RightClick&&(null==r||r({event:n}),!0)}}];let eR={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class eL extends eE{constructor(e){super(e,eR)}static setup(){return window.addEventListener(eR.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(eR.move.name,e)};function e(){}}}eL.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:l}=n;return!(l.length>1)&&(null==r||r({event:n}),!0)}}],(u=m||(m={}))[u.Pointer=0]="Pointer",u[u.DraggableRect=1]="DraggableRect",(s=y||(y={}))[s.TreeOrder=0]="TreeOrder",s[s.ReversedTreeOrder=1]="ReversedTreeOrder";let eO={x:{[f.Backward]:!1,[f.Forward]:!1},y:{[f.Backward]:!1,[f.Forward]:!1}};(d=b||(b={}))[d.Always=0]="Always",d[d.BeforeDragging=1]="BeforeDragging",d[d.WhileDragging=2]="WhileDragging",(w||(w={})).Optimized="optimized";let ek=new Map;function eT(e,t){return(0,S.useLazyMemo)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eN(e){let{callback:t,disabled:n}=e,r=(0,S.useEvent)(t),l=(0,E.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,E.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}function eP(e){return new eh(Z(e),e)}function eA(e,t,n){void 0===t&&(t=eP);let[r,l]=(0,E.useState)(null);function i(){l(r=>{if(!e)return null;if(!1===e.isConnected){var l;return null!=(l=null!=r?r:n)?l:null}let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let a=function(e){let{callback:t,disabled:n}=e,r=(0,S.useEvent)(t),l=(0,E.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,E.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),o=eN({callback:i});return(0,S.useIsomorphicLayoutEffect)(()=>{i(),e?(null==o||o.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==a||a.disconnect())},[e]),r}let eI=[];function ez(e,t){void 0===t&&(t=[]);let n=(0,E.useRef)(null);return(0,E.useEffect)(()=>{n.current=null},t),(0,E.useEffect)(()=>{let t=e!==W;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,S.subtract)(e,n.current):W}function eW(e){return(0,E.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let eB=[];function eF(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,S.isHTMLElement)(t)?t:e}let eU=[{sensor:eC,options:{}},{sensor:eb,options:{}}],eK={current:{}},eX={draggable:{measure:$},droppable:{measure:$,strategy:b.WhileDragging,frequency:w.Optimized},dragOverlay:{measure:Z}};class eY extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let ej={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eY,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:A},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eX,measureDroppableContainers:A,windowRect:null,measuringScheduled:!1},eH={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:A,draggableNodes:new Map,over:null,measureDroppableContainers:A},eV=(0,E.createContext)(eH),eq=(0,E.createContext)(ej);function eJ(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eY}}}function e_(e,t){switch(t.type){case h.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case h.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case h.DragEnd:case h.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case h.RegisterDroppable:{let{element:n}=t,{id:r}=n,l=new eY(e.droppable.containers);return l.set(r,n),{...e,droppable:{...e.droppable,containers:l}}}case h.SetDroppableDisabled:{let{id:n,key:r,disabled:l}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new eY(e.droppable.containers);return a.set(n,{...i,disabled:l}),{...e,droppable:{...e.droppable,containers:a}}}case h.UnregisterDroppable:{let{id:n,key:r}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;let i=new eY(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function eG(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:l}=(0,E.useContext)(eV),i=(0,S.usePrevious)(r),a=(0,S.usePrevious)(null==n?void 0:n.id);return(0,E.useEffect)(()=>{if(!t&&!r&&i&&null!=a){if(!(0,S.isKeyboardEvent)(i)||document.activeElement===i.target)return;let e=l.get(a);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,S.findFirstFocusableNode)(e);if(t){t.focus();break}}})}},[r,t,l,a,i]),null}function eQ(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let eZ=(0,E.createContext)({...W,scaleX:1,scaleY:1});(c=x||(x={}))[c.Uninitialized=0]="Uninitialized",c[c.Initializing=1]="Initializing",c[c.Initialized=2]="Initialized";let e$=(0,E.memo)(function(e){var t,n,r,l,i,a;let{id:o,accessibility:u,autoScroll:s=!0,children:d,sensors:c=eU,collisionDetection:g=V,measuring:v,modifiers:p,...w}=e,[M,R]=(0,E.useReducer)(e_,void 0,eJ),[L,k]=function(){let[e]=(0,E.useState)(()=>new Set),t=(0,E.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,E.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[T,N]=(0,E.useState)(x.Uninitialized),A=T===x.Initialized,{draggable:{active:I,nodes:z,translate:B},droppable:{containers:F}}=M,U=null!=I?z.get(I):null,K=(0,E.useRef)({initial:null,translated:null}),Y=(0,E.useMemo)(()=>{var e;return null!=I?{id:I,data:null!=(e=null==U?void 0:U.data)?e:eK,rect:K}:null},[I,U]),j=(0,E.useRef)(null),[H,q]=(0,E.useState)(null),[G,Q]=(0,E.useState)(null),$=(0,S.useLatestValue)(w,Object.values(w)),er=(0,S.useUniqueId)("DndDescribedBy",o),el=(0,E.useMemo)(()=>F.getEnabled(),[F]),ed=(0,E.useMemo)(()=>({draggable:{...eX.draggable,...null==v?void 0:v.draggable},droppable:{...eX.droppable,...null==v?void 0:v.droppable},dragOverlay:{...eX.dragOverlay,...null==v?void 0:v.dragOverlay}}),[null==v?void 0:v.draggable,null==v?void 0:v.droppable,null==v?void 0:v.dragOverlay]),{droppableRects:ec,measureDroppableContainers:ef,measuringScheduled:eg}=function(e,t){let{dragging:n,dependencies:r,config:l}=t,[i,a]=(0,E.useState)(null),{frequency:o,measure:u,strategy:s}=l,d=(0,E.useRef)(e),c=function(){switch(s){case b.Always:return!1;case b.BeforeDragging:return n;default:return!n}}(),h=(0,S.useLatestValue)(c),f=(0,E.useCallback)(function(e){void 0===e&&(e=[]),h.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),g=(0,E.useRef)(null),v=(0,S.useLazyMemo)(t=>{if(c&&!n)return ek;if(!t||t===ek||d.current!==e||null!=i){let t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new eh(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,i,n,c,u]);return(0,E.useEffect)(()=>{d.current=e},[e]),(0,E.useEffect)(()=>{c||f()},[n,c]),(0,E.useEffect)(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),(0,E.useEffect)(()=>{c||"number"!=typeof o||null!==g.current||(g.current=setTimeout(()=>{f(),g.current=null},o))},[o,c,f,...r]),{droppableRects:v,measureDroppableContainers:f,measuringScheduled:null!=i}}(el,{dragging:A,dependencies:[B.x,B.y],config:ed.droppable}),ev=function(e,t){let n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,S.useLazyMemo)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(z,I),ep=(0,E.useMemo)(()=>G?(0,S.getEventCoordinates)(G):null,[G]),em=function(){let e=(null==H?void 0:H.autoScrollEnabled)===!1,t="object"==typeof s?!1===s.enabled:!1===s,n=A&&!e&&!t;return"object"==typeof s?{...s,enabled:n}:{enabled:n}}(),ey=eT(ev,ed.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:l=!0}=e,i=(0,E.useRef)(!1),{x:a,y:o}="boolean"==typeof l?{x:l,y:l}:l;(0,S.useIsomorphicLayoutEffect)(()=>{if(!a&&!o||!t){i.current=!1;return}if(i.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let l=J(n(e),r);if(a||(l.x=0),o||(l.y=0),i.current=!0,Math.abs(l.x)>0||Math.abs(l.y)>0){let t=et(e);t&&t.scrollBy({top:l.y,left:l.x})}},[t,a,o,r,n])}({activeNode:null!=I?z.get(I):null,config:em.layoutShiftCompensation,initialRect:ey,measure:ed.draggable.measure});let eb=eA(ev,ed.draggable.measure,ey),ew=eA(ev?ev.parentElement:null),ex=(0,E.useRef)({activatorEvent:null,active:null,activeNode:ev,collisionRect:null,collisions:null,droppableRects:ec,draggableNodes:z,draggingNode:null,draggingNodeRect:null,droppableContainers:F,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eE=F.getNodeFor(null==(t=ex.current.over)?void 0:t.id),eD=function(e){let{measure:t}=e,[n,r]=(0,E.useState)(null),l=eN({callback:(0,E.useCallback)(e=>{for(let{target:n}of e)if((0,S.isHTMLElement)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),i=(0,E.useCallback)(e=>{let n=eF(e);null==l||l.disconnect(),n&&(null==l||l.observe(n)),r(n?t(n):null)},[t,l]),[a,o]=(0,S.useNodeRef)(i);return(0,E.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}({measure:ed.dragOverlay.measure}),eC=null!=(n=eD.nodeRef.current)?n:ev,eS=A?null!=(r=eD.rect)?r:eb:null,eM=!!(eD.nodeRef.current&&eD.rect),eR=function(e){let t=eT(e);return J(e,t)}(eM?null:eb),eL=eW(eC?(0,S.getWindow)(eC):null),eP=function(e){let t=(0,E.useRef)(e),n=(0,S.useLazyMemo)(n=>e?n&&n!==eI&&e&&t.current&&e.parentNode===t.current.parentNode?n:ee(e):eI,[e]);return(0,E.useEffect)(()=>{t.current=e},[e]),n}(A?null!=eE?eE:ev:null),eY=function(e,t){void 0===t&&(t=Z);let[n]=e,r=eW(n?(0,S.getWindow)(n):null),[l,i]=(0,E.useState)(eB);function a(){i(()=>e.length?e.map(e=>ea(e)?r:new eh(t(e),e)):eB)}let o=eN({callback:a});return(0,S.useIsomorphicLayoutEffect)(()=>{null==o||o.disconnect(),a(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),l}(eP),ej=eQ(p,{transform:{x:B.x-eR.x,y:B.y-eR.y,scaleX:1,scaleY:1},activatorEvent:G,active:Y,activeNodeRect:eb,containerNodeRect:ew,draggingNodeRect:eS,over:ex.current.over,overlayNodeRect:eD.rect,scrollableAncestors:eP,scrollableAncestorRects:eY,windowRect:eL}),eH=ep?(0,S.add)(ep,B):null,e$=function(e){let[t,n]=(0,E.useState)(null),r=(0,E.useRef)(e),l=(0,E.useCallback)(e=>{let t=en(e.target);t&&n(e=>e?(e.set(t,ei(t)),new Map(e)):null)},[]);return(0,E.useEffect)(()=>{let t=r.current;if(e!==t){i(t);let a=e.map(e=>{let t=en(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,ei(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{let t=en(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,E.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,S.add)(e,t),W):es(e):W,[e,t])}(eP),e0=ez(e$),e1=ez(e$,[eb]),e2=(0,S.add)(ej,e0),e5=eS?_(eS,ej):null,e4=Y&&e5?g({active:Y,collisionRect:e5,droppableRects:ec,droppableContainers:el,pointerCoordinates:eH}):null,e3=X(e4,"id"),[e9,e6]=(0,E.useState)(null),e8=(i=eM?ej:(0,S.add)(ej,e1),a=null!=(l=null==e9?void 0:e9.rect)?l:null,{...i,scaleX:a&&eb?a.width/eb.width:1,scaleY:a&&eb?a.height/eb.height:1}),e7=(0,E.useRef)(null),te=(0,E.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==j.current)return;let l=z.get(j.current);if(!l)return;let i=e.nativeEvent,a=new n({active:j.current,activeNode:l,event:i,options:r,context:ex,onAbort(e){if(!z.get(e))return;let{onDragAbort:t}=$.current,n={id:e};null==t||t(n),L({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!z.get(e))return;let{onDragPending:l}=$.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==l||l(i),L({type:"onDragPending",event:i})},onStart(e){let t=j.current;if(null==t)return;let n=z.get(t);if(!n)return;let{onDragStart:r}=$.current,l={activatorEvent:i,active:{id:t,data:n.data,rect:K}};(0,C.unstable_batchedUpdates)(()=>{null==r||r(l),N(x.Initializing),R({type:h.DragStart,initialCoordinates:e,active:t}),L({type:"onDragStart",event:l}),q(e7.current),Q(i)})},onMove(e){R({type:h.DragMove,coordinates:e})},onEnd:o(h.DragEnd),onCancel:o(h.DragCancel)});function o(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:l}=ex.current,a=null;if(t&&l){let{cancelDrop:o}=$.current;a={activatorEvent:i,active:t,collisions:n,delta:l,over:r},e===h.DragEnd&&"function"==typeof o&&await Promise.resolve(o(a))&&(e=h.DragCancel)}j.current=null,(0,C.unstable_batchedUpdates)(()=>{R({type:e}),N(x.Uninitialized),e6(null),q(null),Q(null),e7.current=null;let t=e===h.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=$.current[t];null==e||e(a),L({type:t,event:a})}})}}e7.current=a},[z]),tt=(0,E.useCallback)((e,t)=>(n,r)=>{let l=n.nativeEvent,i=z.get(r);null!==j.current||!i||l.dndKit||l.defaultPrevented||!0===e(n,t.options,{active:i})&&(l.dndKit={capturedBy:t.sensor},j.current=r,te(n,t))},[z,te]),tn=(0,E.useMemo)(()=>c.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:tt(e.handler,t)}))]},[]),[c,tt]);(0,E.useEffect)(()=>{if(!S.canUseDOM)return;let e=c.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},c.map(e=>{let{sensor:t}=e;return t})),(0,S.useIsomorphicLayoutEffect)(()=>{eb&&T===x.Initializing&&N(x.Initialized)},[eb,T]),(0,E.useEffect)(()=>{let{onDragMove:e}=$.current,{active:t,activatorEvent:n,collisions:r,over:l}=ex.current;if(!t||!n)return;let i={active:t,activatorEvent:n,collisions:r,delta:{x:e2.x,y:e2.y},over:l};(0,C.unstable_batchedUpdates)(()=>{null==e||e(i),L({type:"onDragMove",event:i})})},[e2.x,e2.y]),(0,E.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:l}=ex.current;if(!e||null==j.current||!t||!l)return;let{onDragOver:i}=$.current,a=r.get(e3),o=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:l.x,y:l.y},over:o};(0,C.unstable_batchedUpdates)(()=>{e6(o),null==i||i(u),L({type:"onDragOver",event:u})})},[e3]),(0,S.useIsomorphicLayoutEffect)(()=>{ex.current={activatorEvent:G,active:Y,activeNode:ev,collisionRect:e5,collisions:e4,droppableRects:ec,draggableNodes:z,draggingNode:eC,draggingNodeRect:eS,droppableContainers:F,over:e9,scrollableAncestors:eP,scrollAdjustedTranslate:e2},K.current={initial:eS,translated:e5}},[Y,ev,e4,e5,z,eC,eS,ec,F,e9,eP,e2]),function(e){let{acceleration:t,activator:n=m.Pointer,canScroll:r,draggingRect:l,enabled:i,interval:a=5,order:o=y.TreeOrder,pointerCoordinates:u,scrollableAncestors:s,scrollableAncestorRects:d,delta:c,threshold:h}=e,g=function(e){let{delta:t,disabled:n}=e,r=(0,S.usePrevious)(t);return(0,S.useLazyMemo)(e=>{if(n||!r||!e)return eO;let l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[f.Backward]:e.x[f.Backward]||-1===l.x,[f.Forward]:e.x[f.Forward]||1===l.x},y:{[f.Backward]:e.y[f.Backward]||-1===l.y,[f.Forward]:e.y[f.Forward]||1===l.y}}},[n,t,r])}({delta:c,disabled:!i}),[v,p]=(0,S.useInterval)(),b=(0,E.useRef)({x:0,y:0}),w=(0,E.useRef)({x:0,y:0}),x=(0,E.useMemo)(()=>{switch(n){case m.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case m.DraggableRect:return l}},[n,l,u]),D=(0,E.useRef)(null),C=(0,E.useCallback)(()=>{let e=D.current;if(!e)return;let t=b.current.x*w.current.x,n=b.current.y*w.current.y;e.scrollBy(t,n)},[]),M=(0,E.useMemo)(()=>o===y.TreeOrder?[...s].reverse():s,[o,s]);(0,E.useEffect)(()=>{if(!i||!s.length||!x)return void p();for(let e of M){if((null==r?void 0:r(e))===!1)continue;let n=d[s.indexOf(e)];if(!n)continue;let{direction:l,speed:i}=function(e,t,n,r,l){let{top:i,left:a,right:o,bottom:u}=n;void 0===r&&(r=10),void 0===l&&(l=eu);let{isTop:s,isBottom:d,isLeft:c,isRight:h}=eo(e),g={x:0,y:0},v={x:0,y:0},p={height:t.height*l.y,width:t.width*l.x};return!s&&i<=t.top+p.height?(g.y=f.Backward,v.y=r*Math.abs((t.top+p.height-i)/p.height)):!d&&u>=t.bottom-p.height&&(g.y=f.Forward,v.y=r*Math.abs((t.bottom-p.height-u)/p.height)),!h&&o>=t.right-p.width?(g.x=f.Forward,v.x=r*Math.abs((t.right-p.width-o)/p.width)):!c&&a<=t.left+p.width&&(g.x=f.Backward,v.x=r*Math.abs((t.left+p.width-a)/p.width)),{direction:g,speed:v}}(e,n,x,t,h);for(let e of["x","y"])g[e][l[e]]||(i[e]=0,l[e]=0);if(i.x>0||i.y>0){p(),D.current=e,v(C,a),b.current=i,w.current=l;return}}b.current={x:0,y:0},w.current={x:0,y:0},p()},[t,C,r,p,i,a,JSON.stringify(x),JSON.stringify(g),v,s,M,d,JSON.stringify(h)])}({...em,delta:B,draggingRect:e5,pointerCoordinates:eH,scrollableAncestors:eP,scrollableAncestorRects:eY});let tr=(0,E.useMemo)(()=>({active:Y,activeNode:ev,activeNodeRect:eb,activatorEvent:G,collisions:e4,containerNodeRect:ew,dragOverlay:eD,draggableNodes:z,droppableContainers:F,droppableRects:ec,over:e9,measureDroppableContainers:ef,scrollableAncestors:eP,scrollableAncestorRects:eY,measuringConfiguration:ed,measuringScheduled:eg,windowRect:eL}),[Y,ev,eb,G,e4,ew,eD,z,F,ec,e9,ef,eP,eY,ed,eg,eL]),tl=(0,E.useMemo)(()=>({activatorEvent:G,activators:tn,active:Y,activeNodeRect:eb,ariaDescribedById:{draggable:er},dispatch:R,draggableNodes:z,over:e9,measureDroppableContainers:ef}),[G,tn,Y,eb,R,er,z,e9,ef]);return D().createElement(O.Provider,{value:k},D().createElement(eV.Provider,{value:tl},D().createElement(eq.Provider,{value:tr},D().createElement(eZ.Provider,{value:e8},d)),D().createElement(eG,{disabled:(null==u?void 0:u.restoreFocus)===!1})),D().createElement(P,{...u,hiddenTextDescribedById:er}))}),e0=(0,E.createContext)(null),e1="button";function e2(e){let{id:t,data:n,disabled:r=!1,attributes:l}=e,i=(0,S.useUniqueId)("Draggable"),{activators:a,activatorEvent:o,active:u,activeNodeRect:s,ariaDescribedById:d,draggableNodes:c,over:h}=(0,E.useContext)(eV),{role:f=e1,roleDescription:g="draggable",tabIndex:v=0}=null!=l?l:{},p=(null==u?void 0:u.id)===t,m=(0,E.useContext)(p?eZ:e0),[y,b]=(0,S.useNodeRef)(),[w,x]=(0,S.useNodeRef)(),D=(0,E.useMemo)(()=>a.reduce((e,n)=>{let{eventName:r,handler:l}=n;return e[r]=e=>{l(e,t)},e},{}),[a,t]),C=(0,S.useLatestValue)(n);return(0,S.useIsomorphicLayoutEffect)(()=>(c.set(t,{id:t,key:i,node:y,activatorNode:w,data:C}),()=>{let e=c.get(t);e&&e.key===i&&c.delete(t)}),[c,t]),{active:u,activatorEvent:o,activeNodeRect:s,attributes:(0,E.useMemo)(()=>({role:f,tabIndex:v,"aria-disabled":r,"aria-pressed":!!p&&f===e1||void 0,"aria-roledescription":g,"aria-describedby":d.draggable}),[r,f,v,p,g,d.draggable]),isDragging:p,listeners:r?void 0:D,node:y,over:h,setNodeRef:b,setActivatorNodeRef:x,transform:m}}function e5(){return(0,E.useContext)(eq)}let e4={timeout:25};function e3(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:l}=e,i=(0,S.useUniqueId)("Droppable"),{active:a,dispatch:o,over:u,measureDroppableContainers:s}=(0,E.useContext)(eV),d=(0,E.useRef)({disabled:n}),c=(0,E.useRef)(!1),f=(0,E.useRef)(null),g=(0,E.useRef)(null),{disabled:v,updateMeasurementsFor:p,timeout:m}={...e4,...l},y=(0,S.useLatestValue)(null!=p?p:r),b=eN({callback:(0,E.useCallback)(()=>{if(!c.current){c.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{s(Array.isArray(y.current)?y.current:[y.current]),g.current=null},m)},[m]),disabled:v||!a}),w=(0,E.useCallback)((e,t)=>{b&&(t&&(b.unobserve(t),c.current=!1),e&&b.observe(e))},[b]),[x,D]=(0,S.useNodeRef)(w),C=(0,S.useLatestValue)(t);return(0,E.useEffect)(()=>{b&&x.current&&(b.disconnect(),c.current=!1,b.observe(x.current))},[x,b]),(0,E.useEffect)(()=>(o({type:h.RegisterDroppable,element:{id:r,key:i,disabled:n,node:x,rect:f,data:C}}),()=>o({type:h.UnregisterDroppable,key:i,id:r})),[r]),(0,E.useEffect)(()=>{n!==d.current.disabled&&(o({type:h.SetDroppableDisabled,id:r,key:i,disabled:n}),d.current.disabled=n)},[r,i,n,o]),{active:a,rect:f,isOver:(null==u?void 0:u.id)===r,node:x,over:u,setNodeRef:D}}function e9(e){let{animation:t,children:n}=e,[r,l]=(0,E.useState)(null),[i,a]=(0,E.useState)(null),o=(0,S.usePrevious)(n);return n||r||!o||l(o),(0,S.useIsomorphicLayoutEffect)(()=>{if(!i)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n)return void l(null);Promise.resolve(t(n,i)).then(()=>{l(null)})},[t,r,i]),D().createElement(D().Fragment,null,n,r?(0,E.cloneElement)(r,{ref:a}):null)}let e6={x:0,y:0,scaleX:1,scaleY:1};function e8(e){let{children:t}=e;return D().createElement(eV.Provider,{value:eH},D().createElement(eZ.Provider,{value:e6},t))}let e7={position:"fixed",touchAction:"none"},te=e=>(0,S.isKeyboardEvent)(e)?"transform 250ms ease":void 0,tt=(0,E.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:l,children:i,className:a,rect:o,style:u,transform:s,transition:d=te}=e;if(!o)return null;let c=l?s:{...s,scaleX:1,scaleY:1},h={...e7,width:o.width,height:o.height,top:o.top,left:o.left,transform:S.CSS.Transform.toString(c),transformOrigin:l&&r?function(e,t){let n=(0,S.getEventCoordinates)(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,o):void 0,transition:"function"==typeof d?d(r):d,...u};return D().createElement(n,{className:a,style:h,ref:t},i)}),tn=e=>t=>{let{active:n,dragOverlay:r}=t,l={},{styles:i,className:a}=e;if(null!=i&&i.active)for(let[e,t]of Object.entries(i.active))void 0!==t&&(l[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(let[e,t]of Object.entries(l))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},tr={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:S.CSS.Transform.toString(t)},{transform:S.CSS.Transform.toString(n)}]},sideEffects:tn({styles:{active:{opacity:"0"}}})},tl=0,ti=D().memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:l,style:i,transition:a,modifiers:o,wrapperElement:u="div",className:s,zIndex:d=999}=e,{activatorEvent:c,active:h,activeNodeRect:f,containerNodeRect:g,draggableNodes:v,droppableContainers:p,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:C}=e5(),M=(0,E.useContext)(eZ),R=(t=null==h?void 0:h.id,(0,E.useMemo)(()=>{if(null!=t)return++tl},[t])),L=eQ(o,{activatorEvent:c,active:h,activeNodeRect:f,containerNodeRect:g,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:M,windowRect:C}),O=eT(f),k=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:l}=e;return(0,S.useEvent)((e,i)=>{if(null===t)return;let a=n.get(e);if(!a)return;let o=a.node.current;if(!o)return;let u=eF(i);if(!u)return;let{transform:s}=(0,S.getWindow)(i).getComputedStyle(i),d=G(s);if(!d)return;let c="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:l}={...tr,...e};return e=>{let{active:i,dragOverlay:a,transform:o,...u}=e;if(!t)return;let s={x:a.rect.left-i.rect.left,y:a.rect.top-i.rect.top},d={scaleX:1!==o.scaleX?i.rect.width*o.scaleX/a.rect.width:1,scaleY:1!==o.scaleY?i.rect.height*o.scaleY/a.rect.height:1},c={x:o.x-s.x,y:o.y-s.y,...d},h=l({...u,active:i,dragOverlay:a,transform:{initial:o,final:c}}),[f]=h,g=h[h.length-1];if(JSON.stringify(f)===JSON.stringify(g))return;let v=null==r?void 0:r({active:i,dragOverlay:a,...u}),p=a.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{p.onfinish=()=>{null==v||v(),e()}})}}(t);return ed(o,l.draggable.measure),c({active:{id:e,data:a.data,node:o,rect:l.draggable.measure(o)},draggableNodes:n,dragOverlay:{node:i,rect:l.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:l,transform:d})})}({config:l,draggableNodes:v,droppableContainers:p,measuringConfiguration:b}),T=O?m.setRef:void 0;return D().createElement(e8,null,D().createElement(e9,{animation:k},h&&R?D().createElement(tt,{key:R,id:h.id,ref:T,as:u,activatorEvent:c,adjustScale:n,className:s,transition:a,rect:O,style:{zIndex:d,...i},transform:L},r):null))})}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["3145"],{23974:function(t,e,r){r.r(e),r.d(e,{createSnapModifier:()=>i,restrictToFirstScrollableAncestor:()=>s,restrictToHorizontalAxis:()=>l,restrictToParentElement:()=>u,restrictToVerticalAxis:()=>c,restrictToWindowEdges:()=>h,snapCenterToCursor:()=>f});var o=r(83973);function i(t){return e=>{let{transform:r}=e;return{...r,x:Math.ceil(r.x/t)*t,y:Math.ceil(r.y/t)*t}}}let l=t=>{let{transform:e}=t;return{...e,y:0}};function n(t,e,r){let o={...t};return e.top+t.y<=r.top?o.y=r.top-e.top:e.bottom+t.y>=r.top+r.height&&(o.y=r.top+r.height-e.bottom),e.left+t.x<=r.left?o.x=r.left-e.left:e.right+t.x>=r.left+r.width&&(o.x=r.left+r.width-e.right),o}let u=t=>{let{containerNodeRect:e,draggingNodeRect:r,transform:o}=t;return r&&e?n(o,r,e):o},s=t=>{let{draggingNodeRect:e,transform:r,scrollableAncestorRects:o}=t,i=o[0];return e&&i?n(r,e,i):r},c=t=>{let{transform:e}=t;return{...e,x:0}},h=t=>{let{transform:e,draggingNodeRect:r,windowRect:o}=t;return r&&o?n(e,r,o):e},f=t=>{let{activatorEvent:e,draggingNodeRect:r,transform:i}=t;if(r&&e){let t=(0,o.getEventCoordinates)(e);if(!t)return i;let l=t.x-r.left,n=t.y-r.top;return{...i,x:i.x+l-r.width/2,y:i.y+n-r.height/2}}return i}}}]);
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*! For license information please see 3328.3edb2c5f.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["3328"],{92293:function(e,r,t){var n=t(8491),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var n,a={},s=null,f=null;for(n in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(f=r.ref),r)u.call(r,n)&&!l.hasOwnProperty(n)&&(a[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===a[n]&&(a[n]=r[n]);return{$$typeof:o,type:e,key:s,ref:f,props:a,_owner:i.current}}r.Fragment=a,r.jsx=s,r.jsxs=s},31549:function(e,r,t){e.exports=t(92293)},76418:function(e,r,t){t.d(r,{b:()=>u,k:()=>a});var n=t(8491),o=t(31549);function a(e,r){let t=n.createContext(r),a=e=>{let{children:r,...a}=e,u=n.useMemo(()=>a,Object.values(a));return(0,o.jsx)(t.Provider,{value:u,children:r})};return a.displayName=e+"Provider",[a,function(o){let a=n.useContext(t);if(a)return a;if(void 0!==r)return r;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function u(e,r=[]){let t=[],a=()=>{let r=t.map(e=>n.createContext(e));return function(t){let o=t?.[e]||r;return n.useMemo(()=>({[`__scope${e}`]:{...t,[e]:o}}),[t,o])}};return a.scopeName=e,[function(r,a){let u=n.createContext(a),i=t.length;t=[...t,a];let l=r=>{let{scope:t,children:a,...l}=r,s=t?.[e]?.[i]||u,f=n.useMemo(()=>l,Object.values(l));return(0,o.jsx)(s.Provider,{value:f,children:a})};return l.displayName=r+"Provider",[l,function(t,o){let l=o?.[e]?.[i]||u,s=n.useContext(l);if(s)return s;if(void 0!==a)return a;throw Error(`\`${t}\` must be used within \`${r}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=t.reduce((r,{useScope:t,scopeName:n})=>{let o=t(e)[`__scope${n}`];return{...r,...o}},{});return n.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return t.scopeName=r.scopeName,t}(a,...r)]}},78737:function(e,r,t){t.d(r,{WV:()=>i,jH:()=>l});var n=t(8491),o=t(96853),a=t(30638),u=t(31549),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>{let t=(0,a.createSlot)(`Primitive.${r}`),o=n.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(o?t:r,{...a,ref:n})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});function l(e,r){e&&o.flushSync(()=>e.dispatchEvent(r))}},65039:function(e,r,t){t.r(r),t.d(r,{Indicator:()=>g,Progress:()=>c,ProgressIndicator:()=>v,Root:()=>b,createProgressScope:()=>s});var n=t(8491),o=t(76418),a=t(78737),u=t(31549),i="Progress",[l,s]=(0,o.b)(i),[f,d]=l(i),c=n.forwardRef((e,r)=>{var t,n;let{__scopeProgress:o,value:i=null,max:l,getValueLabel:s=m,...d}=e;(l||0===l)&&!_(l)&&console.error((t=`${l}`,`Invalid prop \`max\` of value \`${t}\` supplied to \`Progress\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`));let c=_(l)?l:100;null===i||y(i,c)||console.error((n=`${i}`,`Invalid prop \`value\` of value \`${n}\` supplied to \`Progress\`. The \`value\` prop must be:
|
3
|
+
- a positive number
|
4
|
+
- less than the value passed to \`max\` (or 100 if no \`max\` prop is set)
|
5
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
6
|
+
|
7
|
+
Defaulting to \`null\`.`));let p=y(i,c)?i:null,v=h(p)?s(p,c):void 0;return(0,u.jsx)(f,{scope:o,value:p,max:c,children:(0,u.jsx)(a.WV.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":h(p)?p:void 0,"aria-valuetext":v,role:"progressbar","data-state":x(p,c),"data-value":p??void 0,"data-max":c,...d,ref:r})})});c.displayName=i;var p="ProgressIndicator",v=n.forwardRef((e,r)=>{let{__scopeProgress:t,...n}=e,o=d(p,t);return(0,u.jsx)(a.WV.div,{"data-state":x(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:r})});function m(e,r){return`${Math.round(e/r*100)}%`}function x(e,r){return null==e?"indeterminate":e===r?"complete":"loading"}function h(e){return"number"==typeof e}function _(e){return h(e)&&!isNaN(e)&&e>0}function y(e,r){return h(e)&&!isNaN(e)&&e<=r&&e>=0}v.displayName=p;var b=c,g=v}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["3357"],{71115:function(e,t,n){n.d(t,{M:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},70588:function(e,t,n){n.r(t),n.d(t,{Collapsible:()=>y,CollapsibleContent:()=>w,CollapsibleTrigger:()=>C,Content:()=>O,Root:()=>R,Trigger:()=>x,createCollapsibleScope:()=>v});var r=n(8491),i=n(71115),o=n(76418),u=n(81183),a=n(82836),l=n(88905),s=n(78737),c=n(36387),d=n(1563),f=n(31549),m="Collapsible",[p,v]=(0,o.b)(m),[b,N]=p(m),y=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:i,defaultOpen:o,disabled:a,onOpenChange:l,...c}=e,[m=!1,p]=(0,u.T)({prop:i,defaultProp:o,onChange:l});return(0,f.jsx)(b,{scope:n,disabled:a,contentId:(0,d.M)(),open:m,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),children:(0,f.jsx)(s.WV.div,{"data-state":T(m),"data-disabled":a?"":void 0,...c,ref:t})})});y.displayName=m;var g="CollapsibleTrigger",C=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=N(g,n);return(0,f.jsx)(s.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":T(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,i.M)(e.onClick,o.onOpenToggle)})});C.displayName=g;var h="CollapsibleContent",w=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=N(h,e.__scopeCollapsible);return(0,f.jsx)(c.z,{present:n||i.open,children:({present:e})=>(0,f.jsx)(M,{...r,ref:t,present:e})})});w.displayName=h;var M=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:i,children:o,...u}=e,c=N(h,n),[d,m]=r.useState(i),p=r.useRef(null),v=(0,l.e)(t,p),b=r.useRef(0),y=b.current,g=r.useRef(0),C=g.current,w=c.open||d,M=r.useRef(w),R=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>M.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,a.b)(()=>{let e=p.current;if(e){R.current=R.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();b.current=t.height,g.current=t.width,M.current||(e.style.transitionDuration=R.current.transitionDuration,e.style.animationName=R.current.animationName),m(i)}},[c.open,i]),(0,f.jsx)(s.WV.div,{"data-state":T(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!w,...u,ref:v,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":C?`${C}px`:void 0,...e.style},children:w&&o})});function T(e){return e?"open":"closed"}var R=y,x=C,O=w},88905:function(e,t,n){n.d(t,{F:()=>o,e:()=>u});var r=n(8491);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function u(...e){return r.useCallback(o(...e),e)}},76418:function(e,t,n){n.d(t,{b:()=>u,k:()=>o});var r=n(8491),i=n(31549);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,u=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:u,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function u(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let u=r.createContext(o),a=n.length;n=[...n,o];let l=t=>{let{scope:n,children:o,...l}=t,s=n?.[e]?.[a]||u,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(s.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[a]||u,s=r.useContext(l);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},1563:function(e,t,n){n.d(t,{M:()=>l});var r,i=n(8491),o=n(82836),u=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function l(e){let[t,n]=i.useState(u());return(0,o.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},36387:function(e,t,n){n.d(t,{z:()=>u});var r=n(8491),i=n(88905),o=n(82836),u=e=>{var t;let n,u,{present:l,children:s}=e,c=function(e){var t,n;let[i,u]=r.useState(),l=r.useRef({}),s=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=a(l.current);c.current="mounted"===d?e:"none"},[d]),(0,o.b)(()=>{let t=l.current,n=s.current;if(n!==e){let r=c.current,i=a(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,o.b)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=a(l.current).includes(n.animationName);if(n.target===i&&r&&(f("ANIMATION_END"),!s.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(c.current=a(l.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),u(e)},[])}}(l),d="function"==typeof s?s({present:c.isPresent}):r.Children.only(s),f=(0,i.e)(c.ref,(t=d,(u=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(u=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof s||c.isPresent?r.cloneElement(d,{ref:f}):null};function a(e){return e?.animationName||"none"}u.displayName="Presence"},78737:function(e,t,n){n.d(t,{WV:()=>a,jH:()=>l});var r=n(8491),i=n(96853),o=n(30638),u=n(31549),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,o.createSlot)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},81820:function(e,t,n){n.d(t,{W:()=>i});var r=n(8491);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},81183:function(e,t,n){n.d(t,{T:()=>o});var r=n(8491),i=n(81820);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,u]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,u=r.useRef(o),a=(0,i.W)(t);return r.useEffect(()=>{u.current!==o&&(a(o),u.current=o)},[o,u,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:o,s=(0,i.W)(n);return[l,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else u(t)},[a,e,u,s])]}},82836:function(e,t,n){n.d(t,{b:()=>i});var r=n(8491),i=globalThis?.document?r.useLayoutEffect:()=>{}}}]);
|