@gis_victory/gismap 1.0.10 → 1.0.12

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.es.js CHANGED
@@ -82793,16 +82793,27 @@ class MapInit {
82793
82793
  this.fogManager = new FogManager(this.map);
82794
82794
  }
82795
82795
  }
82796
- const _sfc_main$h = defineComponent({
82797
- name: "GisMapView",
82796
+ const _hoisted_1$4 = {
82797
+ key: 0,
82798
+ class: "gismap-control"
82799
+ };
82800
+ const _hoisted_2$3 = { class: "widget top-left" };
82801
+ const _hoisted_3$3 = { class: "widget top-right" };
82802
+ const _hoisted_4$3 = { class: "widget bottom-left" };
82803
+ const _hoisted_5$3 = { class: "widget bottom-right" };
82804
+ const __default__$d = {
82805
+ name: "MapView"
82806
+ };
82807
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
82808
+ ...__default__$d,
82798
82809
  props: {
82799
82810
  accessToken: {
82800
82811
  type: String,
82801
- default: ""
82812
+ default: () => ""
82802
82813
  },
82803
82814
  tdtToken: {
82804
82815
  type: String,
82805
- default: ""
82816
+ default: () => ""
82806
82817
  },
82807
82818
  options: {
82808
82819
  type: Object,
@@ -82810,7 +82821,9 @@ const _sfc_main$h = defineComponent({
82810
82821
  }
82811
82822
  },
82812
82823
  emits: ["load"],
82813
- setup(props, { emit }) {
82824
+ setup(__props, { emit: __emit }) {
82825
+ const emit = __emit;
82826
+ const props = __props;
82814
82827
  const isLoad = ref(false);
82815
82828
  const mapContainer = ref();
82816
82829
  onMounted(() => {
@@ -82820,9 +82833,24 @@ const _sfc_main$h = defineComponent({
82820
82833
  const config2 = {
82821
82834
  container: mapContainer.value,
82822
82835
  center: [120.65851, 29.5714],
82836
+ minZoom: 8,
82837
+ maxZoom: 20,
82823
82838
  zoom: 15,
82839
+ pitch: 0,
82840
+ bearing: 0,
82841
+ maxPitch: 65,
82842
+ attributionControl: false,
82843
+ spriteFormat: "auto",
82824
82844
  ...props.options
82825
82845
  };
82846
+ config2.style = {
82847
+ ...{
82848
+ version: 8,
82849
+ sources: {},
82850
+ layers: []
82851
+ },
82852
+ ...config2.style || {}
82853
+ };
82826
82854
  const map2 = new GSMap(config2);
82827
82855
  map2.on("load", async () => {
82828
82856
  map2.manager = new MapInit(map2, props.tdtToken);
@@ -82833,51 +82861,32 @@ const _sfc_main$h = defineComponent({
82833
82861
  });
82834
82862
  provide("map", map2);
82835
82863
  });
82836
- return {
82837
- isLoad
82864
+ return (_ctx, _cache) => {
82865
+ return openBlock(), createElementBlock(Fragment, null, [
82866
+ createElementVNode("div", {
82867
+ ref_key: "mapContainer",
82868
+ ref: mapContainer,
82869
+ class: "gismap-container"
82870
+ }, null, 512),
82871
+ isLoad.value ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
82872
+ createElementVNode("div", _hoisted_2$3, [
82873
+ renderSlot(_ctx.$slots, "top-left")
82874
+ ]),
82875
+ createElementVNode("div", _hoisted_3$3, [
82876
+ renderSlot(_ctx.$slots, "top-right")
82877
+ ]),
82878
+ createElementVNode("div", _hoisted_4$3, [
82879
+ renderSlot(_ctx.$slots, "bottom-left")
82880
+ ]),
82881
+ createElementVNode("div", _hoisted_5$3, [
82882
+ renderSlot(_ctx.$slots, "bottom-right")
82883
+ ]),
82884
+ renderSlot(_ctx.$slots, "default")
82885
+ ])) : createCommentVNode("", true)
82886
+ ], 64);
82838
82887
  };
82839
82888
  }
82840
82889
  });
82841
- const _export_sfc$1 = (sfc, props) => {
82842
- const target = sfc.__vccOpts || sfc;
82843
- for (const [key, val] of props) {
82844
- target[key] = val;
82845
- }
82846
- return target;
82847
- };
82848
- const _hoisted_1$4 = {
82849
- ref: "mapContainer",
82850
- class: "gismap-container"
82851
- };
82852
- const _hoisted_2$3 = {
82853
- key: 0,
82854
- class: "gismap-control"
82855
- };
82856
- const _hoisted_3$3 = { class: "widget top-left" };
82857
- const _hoisted_4$3 = { class: "widget top-right" };
82858
- const _hoisted_5$3 = { class: "widget bottom-left" };
82859
- const _hoisted_6$2 = { class: "widget bottom-right" };
82860
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
82861
- return openBlock(), createElementBlock(Fragment, null, [
82862
- createElementVNode("div", _hoisted_1$4, null, 512),
82863
- _ctx.isLoad ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
82864
- createElementVNode("div", _hoisted_3$3, [
82865
- renderSlot(_ctx.$slots, "top-left")
82866
- ]),
82867
- createElementVNode("div", _hoisted_4$3, [
82868
- renderSlot(_ctx.$slots, "top-right")
82869
- ]),
82870
- createElementVNode("div", _hoisted_5$3, [
82871
- renderSlot(_ctx.$slots, "bottom-left")
82872
- ]),
82873
- createElementVNode("div", _hoisted_6$2, [
82874
- renderSlot(_ctx.$slots, "bottom-right")
82875
- ]),
82876
- renderSlot(_ctx.$slots, "default")
82877
- ])) : createCommentVNode("", true)
82878
- ], 64);
82879
- }
82880
- const GisMapView = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$2]]);
82881
82890
  const defaultNamespace = "el";
82882
82891
  const statePrefix = "is-";
82883
82892
  const _bem = (namespace, block, blockSuffix, element, modifier) => {
@@ -88710,7 +88719,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
88710
88719
  });
88711
88720
  return (_ctx, _cache) => {
88712
88721
  return openBlock(), createElementBlock("div", _hoisted_1, [
88713
- createVNode(unref(GisMapView), {
88722
+ createVNode(unref(_sfc_main$h), {
88714
88723
  options: formData.mapViewData,
88715
88724
  onLoad: onMapLoad
88716
88725
  }, {
@@ -88755,7 +88764,7 @@ export {
88755
88764
  _sfc_main$3 as GisMapLegend,
88756
88765
  _sfc_main$1 as GisMapSwitch,
88757
88766
  _sfc_main$2 as GisMapTools,
88758
- GisMapView,
88767
+ _sfc_main$h as GisMapView,
88759
88768
  GSMap as GsMap,
88760
88769
  _sfc_main as MapPage,
88761
88770
  MarkerLayer,
package/dist/index.umd.js CHANGED
@@ -25,11 +25,11 @@
25
25
  * limitations under the License.
26
26
  *
27
27
  * SPDX-License-Identifier: Apache-2.0
28
- */var lA=null;try{lA=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function cA(e,t,i){this.low=0|e,this.high=0|t,this.unsigned=!!i}function uA(e){return!0===(e&&e.__isLong__)}function hA(e){var t=Math.clz32(e&-e);return e?31-t:t}cA.prototype.__isLong__,Object.defineProperty(cA.prototype,"__isLong__",{value:!0}),cA.isLong=uA;var dA={},pA={};function fA(e,t){var i,n,r;return t?(r=0<=(e>>>=0)&&e<256)&&(n=pA[e])?n:(i=gA(e,0,!0),r&&(pA[e]=i),i):(r=-128<=(e|=0)&&e<128)&&(n=dA[e])?n:(i=gA(e,e<0?-1:0,!1),r&&(dA[e]=i),i)}function mA(e,t){if(isNaN(e))return t?TA:AA;if(t){if(e<0)return TA;if(e>=bA)return RA}else{if(e<=-wA)return PA;if(e+1>=wA)return MA}return e<0?mA(-e,t).neg():gA(e%xA|0,e/xA|0,t)}function gA(e,t,i){return new cA(e,t,i)}cA.fromInt=fA,cA.fromNumber=mA,cA.fromBits=gA;var _A=Math.pow;function yA(e,t,i){if(0===e.length)throw Error("empty string");if("number"==typeof t?(i=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?TA:AA;if((i=i||10)<2||36<i)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return yA(e.substring(1),t,i).neg();for(var r=mA(_A(i,8)),s=AA,o=0;o<e.length;o+=8){var a=Math.min(8,e.length-o),l=parseInt(e.substring(o,o+a),i);if(a<8){var c=mA(_A(i,a));s=s.mul(c).add(mA(l))}else s=(s=s.mul(r)).add(mA(l))}return s.unsigned=t,s}function vA(e,t){return"number"==typeof e?mA(e,t):"string"==typeof e?yA(e,t):gA(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}cA.fromString=yA,cA.fromValue=vA;var xA=4294967296,bA=xA*xA,wA=bA/2,EA=fA(1<<24),AA=fA(0);cA.ZERO=AA;var TA=fA(0,!0);cA.UZERO=TA;var SA=fA(1);cA.ONE=SA;var CA=fA(1,!0);cA.UONE=CA;var IA=fA(-1);cA.NEG_ONE=IA;var MA=gA(-1,2147483647,!1);cA.MAX_VALUE=MA;var RA=gA(-1,-1,!0);cA.MAX_UNSIGNED_VALUE=RA;var PA=gA(0,-2147483648,!1);cA.MIN_VALUE=PA;var BA=cA.prototype;BA.toInt=function(){return this.unsigned?this.low>>>0:this.low},BA.toNumber=function(){return this.unsigned?(this.high>>>0)*xA+(this.low>>>0):this.high*xA+(this.low>>>0)},BA.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(PA)){var t=mA(e),i=this.div(t),n=i.mul(t).sub(this);return i.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var r=mA(_A(e,6),this.unsigned),s=this,o="";;){var a=s.div(r),l=(s.sub(a.mul(r)).toInt()>>>0).toString(e);if((s=a).isZero())return l+o;for(;l.length<6;)l="0"+l;o=""+l+o}},BA.getHighBits=function(){return this.high},BA.getHighBitsUnsigned=function(){return this.high>>>0},BA.getLowBits=function(){return this.low},BA.getLowBitsUnsigned=function(){return this.low>>>0},BA.getNumBitsAbs=function(){if(this.isNegative())return this.eq(PA)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},BA.isSafeInteger=function(){var e=this.high>>21;return!e||!this.unsigned&&(-1===e&&!(0===this.low&&-2097152===this.high))},BA.isZero=function(){return 0===this.high&&0===this.low},BA.eqz=BA.isZero,BA.isNegative=function(){return!this.unsigned&&this.high<0},BA.isPositive=function(){return this.unsigned||this.high>=0},BA.isOdd=function(){return!(1&~this.low)},BA.isEven=function(){return!(1&this.low)},BA.equals=function(e){return uA(e)||(e=vA(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},BA.eq=BA.equals,BA.notEquals=function(e){return!this.eq(e)},BA.neq=BA.notEquals,BA.ne=BA.notEquals,BA.lessThan=function(e){return this.comp(e)<0},BA.lt=BA.lessThan,BA.lessThanOrEqual=function(e){return this.comp(e)<=0},BA.lte=BA.lessThanOrEqual,BA.le=BA.lessThanOrEqual,BA.greaterThan=function(e){return this.comp(e)>0},BA.gt=BA.greaterThan,BA.greaterThanOrEqual=function(e){return this.comp(e)>=0},BA.gte=BA.greaterThanOrEqual,BA.ge=BA.greaterThanOrEqual,BA.compare=function(e){if(uA(e)||(e=vA(e)),this.eq(e))return 0;var t=this.isNegative(),i=e.isNegative();return t&&!i?-1:!t&&i?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},BA.comp=BA.compare,BA.negate=function(){return!this.unsigned&&this.eq(PA)?PA:this.not().add(SA)},BA.neg=BA.negate,BA.add=function(e){uA(e)||(e=vA(e));var t=this.high>>>16,i=65535&this.high,n=this.low>>>16,r=65535&this.low,s=e.high>>>16,o=65535&e.high,a=e.low>>>16,l=0,c=0,u=0,h=0;return u+=(h+=r+(65535&e.low))>>>16,c+=(u+=n+a)>>>16,l+=(c+=i+o)>>>16,l+=t+s,gA((u&=65535)<<16|(h&=65535),(l&=65535)<<16|(c&=65535),this.unsigned)},BA.subtract=function(e){return uA(e)||(e=vA(e)),this.add(e.neg())},BA.sub=BA.subtract,BA.multiply=function(e){if(this.isZero())return this;if(uA(e)||(e=vA(e)),lA)return gA(lA.mul(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned);if(e.isZero())return this.unsigned?TA:AA;if(this.eq(PA))return e.isOdd()?PA:AA;if(e.eq(PA))return this.isOdd()?PA:AA;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(EA)&&e.lt(EA))return mA(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,i=65535&this.high,n=this.low>>>16,r=65535&this.low,s=e.high>>>16,o=65535&e.high,a=e.low>>>16,l=65535&e.low,c=0,u=0,h=0,d=0;return h+=(d+=r*l)>>>16,u+=(h+=n*l)>>>16,h&=65535,u+=(h+=r*a)>>>16,c+=(u+=i*l)>>>16,u&=65535,c+=(u+=n*a)>>>16,u&=65535,c+=(u+=r*o)>>>16,c+=t*l+i*a+n*o+r*s,gA((h&=65535)<<16|(d&=65535),(c&=65535)<<16|(u&=65535),this.unsigned)},BA.mul=BA.multiply,BA.divide=function(e){if(uA(e)||(e=vA(e)),e.isZero())throw Error("division by zero");var t,i,n;if(lA)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?gA((this.unsigned?lA.div_u:lA.div_s)(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?TA:AA;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return TA;if(e.gt(this.shru(1)))return CA;n=TA}else{if(this.eq(PA))return e.eq(SA)||e.eq(IA)?PA:e.eq(PA)?SA:(t=this.shr(1).div(e).shl(1)).eq(AA)?e.isNegative()?SA:IA:(i=this.sub(e.mul(t)),n=t.add(i.div(e)));if(e.eq(PA))return this.unsigned?TA:AA;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();n=AA}for(i=this;i.gte(e);){t=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var r=Math.ceil(Math.log(t)/Math.LN2),s=r<=48?1:_A(2,r-48),o=mA(t),a=o.mul(e);a.isNegative()||a.gt(i);)a=(o=mA(t-=s,this.unsigned)).mul(e);o.isZero()&&(o=SA),n=n.add(o),i=i.sub(a)}return n},BA.div=BA.divide,BA.modulo=function(e){return uA(e)||(e=vA(e)),lA?gA((this.unsigned?lA.rem_u:lA.rem_s)(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},BA.mod=BA.modulo,BA.rem=BA.modulo,BA.not=function(){return gA(~this.low,~this.high,this.unsigned)},BA.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},BA.clz=BA.countLeadingZeros,BA.countTrailingZeros=function(){return this.low?hA(this.low):hA(this.high)+32},BA.ctz=BA.countTrailingZeros,BA.and=function(e){return uA(e)||(e=vA(e)),gA(this.low&e.low,this.high&e.high,this.unsigned)},BA.or=function(e){return uA(e)||(e=vA(e)),gA(this.low|e.low,this.high|e.high,this.unsigned)},BA.xor=function(e){return uA(e)||(e=vA(e)),gA(this.low^e.low,this.high^e.high,this.unsigned)},BA.shiftLeft=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):gA(0,this.low<<e-32,this.unsigned)},BA.shl=BA.shiftLeft,BA.shiftRight=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):gA(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},BA.shr=BA.shiftRight,BA.shiftRightUnsigned=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):gA(32===e?this.high:this.high>>>e-32,0,this.unsigned)},BA.shru=BA.shiftRightUnsigned,BA.shr_u=BA.shiftRightUnsigned,BA.rotateLeft=function(e){var t;return uA(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?gA(this.high,this.low,this.unsigned):e<32?(t=32-e,gA(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),gA(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},BA.rotl=BA.rotateLeft,BA.rotateRight=function(e){var t;return uA(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?gA(this.high,this.low,this.unsigned):e<32?(t=32-e,gA(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),gA(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},BA.rotr=BA.rotateRight,BA.toSigned=function(){return this.unsigned?gA(this.low,this.high,!1):this},BA.toUnsigned=function(){return this.unsigned?this:gA(this.low,this.high,!0)},BA.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},BA.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},BA.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},cA.fromBytes=function(e,t,i){return i?cA.fromBytesLE(e,t):cA.fromBytesBE(e,t)},cA.fromBytesLE=function(e,t){return new cA(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},cA.fromBytesBE=function(e,t){return new cA(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},"function"==typeof BigInt&&(cA.fromBigInt=function(e,t){return gA(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},cA.fromValue=function(e,t){return"bigint"==typeof e?cA.fromBigInt(e,t):vA(e,t)},BA.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e});function LA(e){"X"===e&&(e="");const t=e.padEnd(16,"0");return cA.fromString(t,!0,16)}const DA=180/Math.PI;function OA(e,t,i){const n=1<<t;return[(e[0]+i[0])/n,(e[1]+i[1])/n]}function kA(e){return e>=.5?1/3*(4*e*e-1):1/3*(1-4*(1-e)*(1-e))}function FA(e){return[kA(e[0]),kA(e[1])]}function NA(e,[t,i]){switch(e){case 0:return[1,t,i];case 1:return[-t,1,i];case 2:return[-t,-i,1];case 3:return[-1,-i,-t];case 4:return[i,-1,-t];case 5:return[i,t,-1];default:throw new Error("Invalid face")}}function zA([e,t,i]){const n=Math.atan2(i,Math.sqrt(e*e+t*t));return[Math.atan2(t,e)*DA,n*DA]}function UA(e,t,i,n){if(0===n){1===i&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);const n=t[0];t[0]=t[1],t[1]=n}}function VA(e){const{face:t,ij:i,level:n}=e,r=[[0,0],[0,1],[1,1],[1,0],[0,0]],s=Math.max(1,Math.ceil(100*Math.pow(2,-n))),o=new Float64Array(4*s*2+2);let a=0,l=0;for(let c=0;c<4;c++){const e=r[c].slice(0),u=r[c+1],h=(u[0]-e[0])/s,d=(u[1]-e[1])/s;for(let r=0;r<s;r++){e[0]+=h,e[1]+=d;const r=zA(NA(t,FA(OA(i,n,e))));Math.abs(r[1])>89.999&&(r[0]=l);const s=r[0]-l;r[0]+=s>180?-360:s<-180?360:0,o[a++]=r[0],o[a++]=r[1],l=r[0]}}return o[a++]=o[0],o[a++]=o[1],o}function GA(e){const t=function(e){if(e.indexOf("/")>0)return e;const t=LA(e);return function(e){if(e.isZero())return"";let t=e.toString(2);for(;t.length<64;)t="0"+t;const i=t.lastIndexOf("1"),n=t.substring(0,3),r=t.substring(3,i),s=r.length/2,o=cA.fromString(n,!0,2).toString(10);let a="";if(0!==s)for(a=cA.fromString(r,!0,2).toString(4);a.length<s;)a="0"+a;return`${o}/${a}`}(t)}(e);return function(e){if(0===e.length)throw new Error(`Invalid Hilbert quad key ${e}`);const t=e.split("/"),i=parseInt(t[0],10),n=t[1],r=n.length;let s=0;const o=[0,0];for(let a=r-1;a>=0;a--){s=r-a;const e=n[a];let t=0,i=0;"1"===e?i=1:"2"===e?(t=1,i=1):"3"===e&&(t=1);const l=Math.pow(2,s-1);UA(l,o,t,i),o[0]+=l*t,o[1]+=l*i}if(i%2==1){const e=o[0];o[0]=o[1],o[1]=e}return{face:i,ij:o,level:s}}(t)}function jA(e){return function(e){const t=FA(OA(e.ij,e.level,[.5,.5]));return zA(NA(e.face,t))}(GA(e))}function HA(e){if(e.length%2!=0)throw new Error("Invalid corners");const t=[],i=[];for(let n=0;n<e.length;n+=2)t.push(e[n]),i.push(e[n+1]);return t.sort((e,t)=>e-t),i.sort((e,t)=>e-t),{west:t[0],east:t[t.length-1],north:i[i.length-1],south:i[0]}}function WA(e,t){const i=t?.minimumHeight||0,n=t?.maximumHeight||0,r=function(e){let t;if(2===e.face||5===e.face){let i=null,n=0;for(let t=0;t<4;t++){const r=VA(GA(`${e.face}/${t}`));null==i&&(i=new Float64Array(4*r.length)),i.set(r,n),n+=r.length}t=HA(i)}else t=HA(VA(e));return t}(GA(e)),s=r.west,o=r.south,a=r.east,l=r.north,c=[];return c.push(new ca(s,l,i)),c.push(new ca(a,l,i)),c.push(new ca(a,o,i)),c.push(new ca(s,o,i)),c.push(new ca(s,l,n)),c.push(new ca(a,l,n)),c.push(new ca(a,o,n)),c.push(new ca(s,o,n)),c}function $A(e){const t=e.token,i={minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight},n=WA(t,i),r=jA(t),s=r[0],o=r[1],a=Xb.WGS84.cartographicToCartesian([s,o,i.maximumHeight]),l=new ca(a[0],a[1],a[2]);n.push(l);const c=function(e,t=new __){if(!e||0===e.length)return t.halfAxes=new _a([0,0,0,0,0,0,0,0,0]),t.center=new ca,t;const i=e.length,n=new ca(0,0,0);for(const T of e)n.add(T);const r=1/i;n.multiplyByScalar(r);let s=0,o=0,a=0,l=0,c=0,u=0;for(const T of e){const e=O_.copy(T).subtract(n);s+=e.x*e.x,o+=e.x*e.y,a+=e.x*e.z,l+=e.y*e.y,c+=e.y*e.z,u+=e.z*e.z}s*=r,o*=r,a*=r,l*=r,c*=r,u*=r;const h=U_;h[0]=s,h[1]=o,h[2]=a,h[3]=o,h[4]=l,h[5]=c,h[6]=a,h[7]=c,h[8]=u;const{unitary:d}=R_(h,V_),p=t.halfAxes.copy(d);let f=p.getColumn(0,F_),m=p.getColumn(1,N_),g=p.getColumn(2,z_),_=-Number.MAX_VALUE,y=-Number.MAX_VALUE,v=-Number.MAX_VALUE,x=Number.MAX_VALUE,b=Number.MAX_VALUE,w=Number.MAX_VALUE;for(const T of e)O_.copy(T),_=Math.max(O_.dot(f),_),y=Math.max(O_.dot(m),y),v=Math.max(O_.dot(g),v),x=Math.min(O_.dot(f),x),b=Math.min(O_.dot(m),b),w=Math.min(O_.dot(g),w);f=f.multiplyByScalar(.5*(x+_)),m=m.multiplyByScalar(.5*(b+y)),g=g.multiplyByScalar(.5*(w+v)),t.center.copy(f).add(m).add(g);const E=k_.set(_-x,y-b,v-w).multiplyByScalar(.5),A=new _a([E[0],0,0,0,E[1],0,0,0,E[2]]);return t.halfAxes.multiplyRight(A),t}(n);return[...c.center,...c.halfAxes]}const XA={QUADTREE:4,OCTREE:8};function qA(e,t,i){if(e?.box){const n=function(e,t){const i=function(e){return e.and(e.not().add(1))}(e).shiftRightUnsigned(2);return e.add(cA.fromNumber(2*t+1-4).multiply(i))}(LA(e.s2VolumeInfo.token),t),r=function(e){if(e.isZero())return"X";let t=e.countTrailingZeros();t=(t-t%4)/4;const i=t;t*=4;const n=e.shiftRightUnsigned(t).toString(16).replace(/0+$/,"");return Array(17-i-n.length).join("0")+n}(n),s={...e.s2VolumeInfo};if(s.token=r,"OCTREE"===i){const t=e.s2VolumeInfo,i=t.maximumHeight-t.minimumHeight,n=i/2,r=t.minimumHeight+i/2;t.minimumHeight=r-n,t.maximumHeight=r+n}return{box:$A(s),s2VolumeInfo:s}}}async function ZA(e){const{subtree:t,subtreeData:i={level:0,x:0,y:0,z:0},parentData:n={mortonIndex:0,localLevel:-1,localX:0,localY:0,localZ:0},childIndex:r=0,implicitOptions:s,loaderOptions:o,s2VolumeBox:a}=e,{subdivisionScheme:l,subtreeLevels:c,maximumLevel:u,contentUrlTemplate:h,subtreesUriTemplate:d,basePath:p}=s,f={children:[],lodMetricValue:0,contentUrl:""};if(!u)return D.once(`Missing 'maximumLevel' or 'availableLevels' property. The subtree ${h} won't be loaded...`),f;const m=n.localLevel+1,g=i.level+m;if(g>u)return f;const _=XA[l],y=Math.log2(_),v=1&r,x=r>>1&1,b=r>>2&1,w=YA(n.localX,v,1),E=YA(n.localY,x,1),A=YA(n.localZ,b,1),T=YA(i.x,w,m),S=YA(i.y,E,m),C=YA(i.z,A,m),I=YA(n.mortonIndex,r,y);let M,R,P,B;if(m===c&&KA(t.childSubtreeAvailability,I)){const e=JA(`${p}/${d}`,g,T,S,C);M=await Et(e,aA,o),B=0,R={level:g,x:T,y:S,z:C},P={mortonIndex:0,localLevel:0,localX:0,localY:0,localZ:0}}else{M=t;B=(_**m-1)/(_-1)+I,R=i,P={mortonIndex:I,localLevel:m,localX:w,localY:E,localZ:A}}if(!KA(M.tileAvailability,B))return f;KA(M.contentAvailability,B)&&(f.contentUrl=JA(h,g,T,S,C));for(let L=0;L<_;L++){const e=qA(a,L,l),t=await ZA({subtree:M,subtreeData:R,parentData:P,childIndex:L,implicitOptions:s,loaderOptions:o,s2VolumeBox:e});(t.contentUrl||t.children.length)&&f.children.push(t)}if(f.contentUrl||f.children.length){const e=function(e,t,i,n){const{basePath:r,refine:s,getRefine:o,lodMetricType:a,getTileType:l,rootLodMetricValue:c,rootBoundingVolume:u}=i,h=e.contentUrl&&e.contentUrl.replace(`${r}/`,""),d=c/2**t.level,p=n?.box?{box:n.box}:u,f=function(e,t,i){if(e.region){const{level:n,x:r,y:s,z:o}=t,[a,l,c,u,h,d]=e.region,p=2**n,f=(c-a)/p,[m,g]=[a+f*r,a+f*(r+1)],_=(u-l)/p,[y,v]=[l+_*s,l+_*(s+1)];let x,b;if("OCTREE"===i){const e=(d-h)/p;[x,b]=[h+e*o,h+e*(o+1)]}else[x,b]=[h,d];return{region:[m,y,g,v,x,b]}}if(e.box)return e;throw new Error(`Unsupported bounding volume type ${JSON.stringify(e)}`)}(p,t,i.subdivisionScheme);return{children:e.children,contentUrl:e.contentUrl,content:{uri:h},id:e.contentUrl,refine:o(s),type:l(e),lodMetricType:a,lodMetricValue:d,geometricError:d,transform:e.transform,boundingVolume:f}}(f,{level:g,x:T,y:S,z:C},s,a);return e}return f}function KA(e,t){let i;return Array.isArray(e)?(i=e[0],e.length>1&&D.once('Not supported extension "3DTILES_multiple_contents" has been detected')):i=e,"constant"in i?Boolean(i.constant):!!i.explicitBitstream&&function(e,t){const i=Math.floor(e/8),n=e%8;return 1==(t[i]>>n&1)}(t,i.explicitBitstream)}function YA(e,t,i){return(e<<i)+t}function JA(e,t,i,n,r){const s=function(e){const t={};for(const i in e)t[`{${i}}`]=e[i];return t}({level:t,x:i,y:n,z:r});return e.replace(/{level}|{x}|{y}|{z}/gi,e=>s[e])}function QA(e,t=""){if(!t)return fw.EMPTY;const i=t.split("?")[0].split(".").pop();switch(i){case"pnts":return fw.POINTCLOUD;case"i3dm":case"b3dm":case"glb":case"gltf":return fw.SCENEGRAPH;default:return i||fw.EMPTY}}function eT(e){switch(e){case"REPLACE":case"replace":return dw.REPLACE;case"ADD":case"add":return dw.ADD;default:return e}}function tT(e,t){if(/^[a-z][0-9a-z+.-]*:/i.test(t)){const i=new URL(e,`${t}/`);return decodeURI(i.toString())}return e.startsWith("/")?e:Ae(t,e)}function iT(e,t){if(!e)return null;let i;if(e.content){const n=e.content.uri||e.content?.url;void 0!==n&&(i=tT(n,t))}return{...e,id:i,contentUrl:i,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:e.geometricError,transformMatrix:e.transform,type:QA(0,i),refine:eT(e.refine)}}async function nT(e,t,i,n,r){const{subdivisionScheme:s,maximumLevel:o,availableLevels:a,subtreeLevels:l,subtrees:{uri:c}}=n,u=tT(JA(c,0,0,0,0),i),h=await Et(u,aA,r),d=e.content?.uri,p=d?tT(d,i):"",f=t?.root?.refine,m=e.geometricError,g=e.boundingVolume.extensions?.["3DTILES_bounding_volume_S2"];if(g){const t={box:$A(g),s2VolumeInfo:g};e.boundingVolume=t}const _=e.boundingVolume,y={contentUrlTemplate:p,subtreesUriTemplate:c,subdivisionScheme:s,subtreeLevels:l,maximumLevel:Number.isFinite(a)?a-1:o,refine:f,basePath:i,lodMetricType:yw.GEOMETRIC_ERROR,rootLodMetricValue:m,rootBoundingVolume:_,getTileType:QA,getRefine:eT};return await async function(e,t,i,n,r){if(!e)return null;const{children:s,contentUrl:o}=await ZA({subtree:i,implicitOptions:n,loaderOptions:r});let a,l=null;o&&(a=o,l={uri:o.replace(`${t}/`,"")});const c={...e,id:a,contentUrl:a,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:e.geometricError,transformMatrix:e.transform,type:QA(0,a),refine:eT(e.refine),content:l||e.content,children:s};return c}(e,i,h,y,r)}function rT(e){return e?.extensions?.["3DTILES_implicit_tiling"]||e?.implicitTiling}const sT={dataType:null,batchType:null,id:"3d-tiles",name:"3D Tiles",module:"3d-tiles",version:mE,extensions:["cmpt","pnts","b3dm","i3dm"],mimeTypes:["application/octet-stream"],tests:["cmpt","pnts","b3dm","i3dm"],parse:async function(e,t={},i){const n=t["3d-tiles"]||{};let r;r="auto"===n.isTileset?i?.url&&-1!==i.url.indexOf(".json"):n.isTileset;return r?async function(e,t,i){const n=JSON.parse((new TextDecoder).decode(e)),r=i?.url||"",s=function(e){return Ee(e)}(r),o=await async function(e,t,i){let n=null;const r=rT(e.root);n=r&&e.root?await nT(e.root,e,t,r,i):iT(e.root,t);const s=[];for(s.push(n);s.length>0;){const n=s.pop()||{},r=n.children||[],o=[];for(const a of r){const n=rT(a);let r;r=n?await nT(a,e,t,n,i):iT(a,t),r&&(o.push(r),s.push(r))}n.children=o}return n}(n,s,t||{}),a={...n,shape:"tileset3d",loader:sT,url:r,queryString:i?.queryString||"",basePath:s,root:o||n.root,type:gw.TILES3D,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:n.root?.geometricError||0};return a}(e,t,i):async function(e,t,i){const n={content:{shape:"tile3d",featureIds:null}},r=0;return await rA(e,r,t,i,n.content),n.content}(e,t,i)},options:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!1,isTileset:"auto",assetGltfUpAxis:null}}};const oT=[0],aT={getPointColor:{type:"accessor",value:[0,0,0,255]},pointSize:1,data:"",loader:sT,onTilesetLoad:{type:"function",value:e=>{}},onTileLoad:{type:"function",value:e=>{}},onTileUnload:{type:"function",value:e=>{}},onTileError:{type:"function",value:(e,t,i)=>{}},_getMeshColor:{type:"function",value:e=>[255,255,255]}};let lT=class extends _g{initializeState(){"onTileLoadFail"in this.props&&Xt.removed("onTileLoadFail","onTileError")(),this.state={layerMap:{},tileset3d:null,activeViewports:{},lastUpdatedViewports:null}}get isLoaded(){return Boolean(this.state?.tileset3d?.isLoaded()&&super.isLoaded)}shouldUpdateState({changeFlags:e}){return e.somethingChanged}updateState({props:e,oldProps:t,changeFlags:i}){if(e.data&&e.data!==t.data&&this._loadTileset(e.data),i.viewportChanged){const{activeViewports:e}=this.state;Object.keys(e).length&&(this._updateTileset(e),this.state.lastUpdatedViewports=e,this.state.activeViewports={})}if(i.propsChanged){const{layerMap:e}=this.state;for(const t in e)e[t].needsUpdate=!0}}activateViewport(e){const{activeViewports:t,lastUpdatedViewports:i}=this.state;this.internalState.viewport=e,t[e.id]=e;const n=i?.[e.id];n&&e.equals(n)||(this.setChangeFlags({viewportChanged:!0}),this.setNeedsUpdate())}getPickingInfo({info:e,sourceLayer:t}){const i=t&&t.props.tile;return e.picked&&(e.object=i),e.sourceTile=i,e}filterSubLayer({layer:e,viewport:t}){const{tile:i}=e.props,{id:n}=t;return i.selected&&i.viewportIds.includes(n)}_updateAutoHighlight(e){const t=e.sourceTile,i=this.state.layerMap[t?.id];i&&i.layer&&i.layer.updateAutoHighlight(e)}async _loadTileset(e){const{loadOptions:t={}}=this.props,i=this.props.loader||this.props.loaders,n=Array.isArray(i)?i[0]:i,r={loadOptions:{...t}};let s=e;if(n.preload){const i=await n.preload(e,t);i.url&&(s=i.url),i.headers&&(r.loadOptions.fetch={...r.loadOptions.fetch,headers:i.headers}),Object.assign(r,i)}const o=await Et(s,n,r.loadOptions),a=new fE(o,{onTileLoad:this._onTileLoad.bind(this),onTileUnload:this._onTileUnload.bind(this),onTileError:this.props.onTileError,...r});this.setState({tileset3d:a,layerMap:{}}),this._updateTileset(this.state.activeViewports),this.props.onTilesetLoad(a)}_onTileLoad(e){const{lastUpdatedViewports:t}=this.state;this.props.onTileLoad(e),this._updateTileset(t),this.setNeedsUpdate()}_onTileUnload(e){delete this.state.layerMap[e.id],this.props.onTileUnload(e)}_updateTileset(e){if(!e)return;const{tileset3d:t}=this.state,{timeline:i}=this.context,n=Object.keys(e).length;i&&n&&t&&t.selectTiles(Object.values(e)).then(e=>{this.state.frameNumber!==e&&this.setState({frameNumber:e})})}_getSubLayer(e,t){if(!e.content)return null;switch(e.type){case fw.POINTCLOUD:return this._makePointCloudLayer(e,t);case fw.SCENEGRAPH:return this._make3DModelLayer(e);case fw.MESH:return this._makeSimpleMeshLayer(e,t);default:throw new Error(`Tile3DLayer: Failed to render layer of type ${e.content.type}`)}}_makePointCloudLayer(e,t){const{attributes:i,pointCount:n,constantRGBA:r,cartographicOrigin:s,modelMatrix:o}=e.content,{positions:a,normals:l,colors:c}=i;if(!a)return null;const u=t&&t.props.data||{header:{vertexCount:n},attributes:{POSITION:a,NORMAL:l,COLOR_0:c}},{pointSize:h,getPointColor:d}=this.props;return new(this.getSubLayerClass("pointcloud",qg))({pointSize:h},this.getSubLayerProps({id:"pointcloud"}),{id:`${this.id}-pointcloud-${e.id}`,tile:e,data:u,coordinateSystem:Ec.METER_OFFSETS,coordinateOrigin:s,modelMatrix:o,getColor:r||d,_offset:0})}_make3DModelLayer(e){const{gltf:t,instances:i,cartographicOrigin:n,modelMatrix:r}=e.content;return new(this.getSubLayerClass("scenegraph",Eb))({_lighting:"pbr"},this.getSubLayerProps({id:"scenegraph"}),{id:`${this.id}-scenegraph-${e.id}`,tile:e,data:i||oT,scenegraph:t,coordinateSystem:Ec.METER_OFFSETS,coordinateOrigin:n,modelMatrix:r,getTransformMatrix:e=>e.modelMatrix,getPosition:[0,0,0],_offset:0})}_makeSimpleMeshLayer(e,t){const i=e.content,{attributes:n,indices:r,modelMatrix:s,cartographicOrigin:o,coordinateSystem:a=Ec.METER_OFFSETS,material:l,featureIds:c}=i,{_getMeshColor:u}=this.props,h=t&&t.props.mesh||new Oh({topology:"triangle-list",attributes:cT(n),indices:r});return new(this.getSubLayerClass("mesh",Sb))(this.getSubLayerProps({id:"mesh"}),{id:`${this.id}-mesh-${e.id}`,tile:e,mesh:h,data:oT,getColor:u(e),pbrMaterial:l,modelMatrix:s,coordinateOrigin:o,coordinateSystem:a,featureIds:c,_offset:0})}renderLayers(){const{tileset3d:e,layerMap:t}=this.state;return e?e.tiles.map(e=>{const i=t[e.id]=t[e.id]||{tile:e};let{layer:n}=i;return e.selected&&(n?i.needsUpdate&&(n=this._getSubLayer(e,n),i.needsUpdate=!1):n=this._getSubLayer(e)),i.layer=n,n}).filter(Boolean):null}};function cT(e){const t={};return t.positions={...e.positions,value:new Float32Array(e.positions.value)},e.normals&&(t.normals=e.normals),e.texCoords&&(t.texCoords=e.texCoords),e.colors&&(t.colors=e.colors),e.uvRegions&&(t.uvRegions=e.uvRegions),t}lT.defaultProps=aT,lT.layerName="Tile3DLayer";class uT{map;sourceId=`gismap_placeholder_source_${Math.random().toString(10)}`;static symbolPointId="gismap_placeholder_symbol_point";static layerPointId="gismap_placeholder_layer_point";static layerLineId="gismap_placeholder_layer_line";static layerPolygonId="gismap_placeholder_layer_polygon";static maskLayerId="gismap_placeholder_mask_layer";constructor(e){this.map=e,this.map.addSource(this.sourceId,{type:"geojson",data:{type:"FeatureCollection",features:[]}})}addLayer(e){this.map.addLayer({id:uT.layerPolygonId,type:"fill",source:this.sourceId,paint:{}},e?.beforeLayerFillId),this.map.addLayer({id:uT.layerLineId,type:"line",source:this.sourceId,paint:{}},e?.beforeLayerLineId),this.map.addLayer({id:uT.layerPointId,type:"circle",source:this.sourceId,paint:{}},e?.beforeLayerPointId),this.map.addLayer({id:uT.symbolPointId,type:"symbol",source:this.sourceId,paint:{}},e?.beforeLayerPointId),this.map.addLayer({id:uT.maskLayerId,type:"circle",source:this.sourceId,paint:{}},e?.beforeMaskLayerId)}}class hT{map;layerId="";isQuery=!1;dataExtension={};templateId=void 0;feature=void 0;constructor(e){this.map=e}addSource(e){if(!this.map.getSource(e.id)){const t=Object.assign({type:"vector",tiles:[e.url]},e);this.map.addSource(e.id,t)}return this}add(e,t){this.addSource(e.source);const i=e.source.id,n=Object.assign({id:e.id,source:i},e.layer);"vector"===this.map.getSource(i).type&&(n["source-layer"]||(n["source-layer"]="layer")),this.dataExtension=e.dataExt||{},this.templateId=e.templateId||this.dataExtension?.templateId||void 0;let r=t;this.map.addLayer(n,r),this.layerId=n.id,(e.isQuery||e.query)&&(this.isQuery=!0,this.addInteraction())}remove(){this.map.getLayer(this.layerId)&&this.map.removeLayer(this.layerId),this.isQuery&&this.removeInteraction()}addInteraction(){this.map.on("click",`${this.layerId}`,e=>{e.features.length>0&&(this.feature=e.features[0],this.map.pubsub.emit("layer:click",{layerId:this.layerId,templateId:this.templateId,feature:this.feature,features:e.features}))}),this.map.on("mouseenter",`${this.layerId}`,e=>{this.map.getCanvas().style.cursor="pointer"}),this.map.on("mouseleave",`${this.layerId}`,e=>{this.map.getCanvas().style.cursor="default"})}removeInteraction(){this.map.off("click",`${this.layerId}`,e=>{}),this.map.off("mouseenter",`${this.layerId}`,e=>{}),this.map.off("mouseleave",`${this.layerId}`,e=>{})}}class dT{map;checkedParentLayers=new Map;checkedLayers=new Map;queryLayerIds=[];symbolLayerIds=[];pointLayerIds=[];lineLayerIds=[];polygonLayerIds=[];constructor(e){this.map=e}addSource(e){this.map.getSource(e.id)||this.map.addSource(e.id,e)}addLayer(e,t){const i=new hT(this.map);let n=t;switch(e.layerType){case"symbol":n=uT.symbolPointId,this.symbolLayerIds.push(e.id);break;case"point":n=uT.layerPointId,this.pointLayerIds.push(e.id);break;case"line":n=uT.layerLineId,this.lineLayerIds.push(e.id);break;case"fill":case"fill-extrusion":n=uT.layerPolygonId,this.polygonLayerIds.push(e.id)}return i.add(e,n),this.checkedLayers.set(e.id,i),i.isQuery&&this.queryLayerIds.push(e.id),this}addGroupLayer(e){const{id:t,layers:i}=e;i&&(i.forEach(e=>{e.layer=Object.assign({id:e.id,source:e.source.id||e.id},e.layer),e.source=Object.assign({id:e.id},e.source),e.source.id||(e.source.id=t),e.layer.id||(e.layer.id=t,e.layer.source=t),this.map.getLayer(e.layer.id)||this.addLayer(e)}),this.checkedParentLayers.get(t)||this.checkedParentLayers.set(t,e))}removeLayer(e){this.map.getLayer(e.layer.id)&&this.map.removeLayer(e.layer.id),this.checkedLayers.delete(e.layer.id),e.isQuery&&(this.queryLayerIds=this.queryLayerIds.filter(t=>t!==e.layer.id))}removeGroupLayer(e){const{id:t,layers:i}=e;i&&i.forEach(e=>{e.layer=Object.assign({id:e.id},e.layer),e.source=Object.assign({id:e.id},e.source),this.removeLayer(e)}),this.checkedParentLayers.delete(t)}getLayer(e){return e?this.checkedLayers.get(e):null}}class pT{map;eraserLayerId="eraser_layer";eraserDebugLayerId="eraser_debug_layer";constructor(e){this.map=e}add(e,t){this.map.addSource(this.eraserLayerId,{type:"geojson",data:e}),this.map.addLayer({id:this.eraserLayerId,source:this.eraserLayerId,type:"clip",layout:{"clip-layer-types":t,"clip-layer-scope":["basemap"]}})}remove(){this.map.removeLayer(this.eraserLayerId),this.map.removeSource(this.eraserLayerId)}showPolygon(){this.map.addLayer({id:this.eraserDebugLayerId,type:"line",source:this.eraserLayerId,paint:{"line-color":"rgba(255, 0, 0, 0.9)","line-dasharray":[0,4,3],"line-width":5}})}hidePolygon(){this.map.getLayer(this.eraserDebugLayerId)&&this.map.removeLayer(this.eraserDebugLayerId)}}class fT{map;layerId="mask_layer";constructor(e){this.map=e}add(e,t={},i){this.map.getSource(this.layerId)||this.map.addSource(this.layerId,{type:"geojson",data:e}),i||(i=uT.maskLayerId);const n=Object.assign({id:this.layerId,source:this.layerId,type:"fill",paint:{"fill-color":"#000000","fill-opacity":.7}},t);return this.map.getLayer(this.layerId)||this.map.addLayer(n,i),this}addLine(e,t={}){this.map.getSource(this.layerId)||this.map.addSource(this.layerId,{type:"geojson",data:e});const i=Object.assign({id:`${this.layerId}_line`,source:this.layerId,type:"line",paint:{"line-color":"#ff0000","line-width":2}},t);this.map.addLayer(i,this.layerId)}remove(){this.map.removeLayer(this.layerId),this.map.removeLayer(`${this.layerId}_line`),this.map.removeSource(this.layerId)}}class mT{map;popup;constructor(e){this.map=e,this.popup=new o.Popup({closeOnClick:!1,closeOnMove:!1,className:"gismap-popup",anchor:"bottom"})}show({position:e,html:t,offset:i=[0,-10],flyTo:n=!1}){t&&this.popup.setHTML(t),i&&this.popup.setOffset(i),this.popup.setLngLat(e),this.popup.addTo(this.map),n&&this.map.flyTo({center:e})}close(){this.popup.remove()}}class gT{map;tdtImgId="tdt-img";tdtVecId="tdt-vec";tdtCiaId="tdt-cia";tdtLayer=new Map;token="6c8a0fffe8f584f8310306723f5bc776";constructor(e,t){this.map=e,this.token=t||this.token,this.tdtLayer.set(this.tdtImgId,{type:"raster",tiles:[`https://t0.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t1.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t2.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t3.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t4.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t5.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t6.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t7.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:512,buffer:128,tolerance:0,maxzoom:17,scheme:"xyz",roundZoom:!0,crs:"EPSG:4326"}),this.tdtLayer.set(this.tdtCiaId,{type:"raster",tiles:[`https://t0.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t1.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t2.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t3.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t4.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t5.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t6.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t7.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:256,maxzoom:17,crs:"EPSG:4326"}),this.tdtLayer.set(this.tdtVecId,{type:"raster",tiles:[`http://t0.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t1.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t2.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t3.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t4.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t5.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t6.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t7.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:256,maxzoom:18,crs:"EPSG:4326"})}addImgLayer(e){let t=this.map.getSource(this.tdtImgId);t||(t=this.tdtLayer.get(this.tdtImgId),this.map.addSource(this.tdtImgId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtImgId,type:"raster",source:this.tdtImgId},e):this.map.addLayer({id:this.tdtImgId,type:"raster",source:this.tdtImgId})}removeImgLayer(){this.map.getLayer(this.tdtImgId)&&this.map.removeLayer(this.tdtImgId)}addVecLayer(e){let t=this.map.getSource(this.tdtVecId);t||(t=this.tdtLayer.get(this.tdtVecId),this.map.addSource(this.tdtVecId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtVecId,type:"raster",source:this.tdtVecId},e):this.map.addLayer({id:this.tdtVecId,type:"raster",source:this.tdtVecId})}removeVecLayer(){this.map.getLayer(this.tdtVecId)&&this.map.removeLayer(this.tdtVecId)}addCiaLayer(e){let t=this.map.getSource(this.tdtCiaId);t||(t=this.tdtLayer.get(this.tdtCiaId),this.map.addSource(this.tdtCiaId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtCiaId,type:"raster",source:this.tdtCiaId},e):this.map.addLayer({id:this.tdtCiaId,type:"raster",source:this.tdtCiaId})}removeCiaLayer(){this.map.getLayer(this.tdtCiaId)&&this.map.removeLayer(this.tdtCiaId)}clear(){this.removeImgLayer(),this.removeVecLayer(),this.removeCiaLayer()}}class _T{map;constructor(e){this.map=e}addSource(){return this.map.addSource("raster-dem",{type:"raster-dem",url:"mapbox://mapbox.mapbox-terrain-dem-v1",minzoom:6,maxzoom:18,tileSize:256}),this}updateSource(e){const t=this.map.getSource("raster-dem");return t&&t.setUrl(e.url),this}setTerrain(e){return this.map.getSource("raster-dem")||this.addSource(),this.map.setTerrain({source:"raster-dem",exaggeration:1.5,...e}),this}removeTerrain(){return this.map.setTerrain(null),this}addHillshade(){return this.map.getSource("raster-dem")||this.addSource(),this.map.addLayer({id:"hillshade",type:"hillshade",source:"raster-dem",paint:{"hillshade-exaggeration":.5,"hillshade-highlight-color":"#FFFFFF","hillshade-shadow-color":"#025505"}}),this}}class yT{map;constructor(e){this.map=e}addSource(e){if(!this.map.getSource(e.id)){const t=Object.assign({type:"geojson",tiles:[e.url],tileSize:256},e);this.map.addSource(e.id,t)}return this}addLayer(e){if(!this.map.getLayer(e.id)){const t=Object.assign({id:e.id,source:e.source},e);this.map.addLayer(t)}return this}removeSource(e){return this.map.getSource(e)&&this.map.removeSource(e),this}removeLayer(e){return this.map.getLayer(e)&&this.map.removeLayer(e),this}}function vT(e,t){return e.replace(/\{(?:p\.)?([^}]+)\}|\$\{(?:p\.)?([^}]+)\}/g,(e,i,n)=>{return r=t,(i||n).split(".").reduce((e,t)=>{const i=(e||{})[t];return void 0!==i?String(i):""},r);var r})}function xT(e,t,i="children"){function n(e){"function"==typeof t&&t(e),Array.isArray(e[i])&&e[i].forEach(e=>{n(e)})}Array.isArray(e)&&e.forEach(e=>{n(e)})}class bT{templates=new Map;constructor(){}add(e,t){this.templates.set(e,t)}get(e){return this.templates.get(e)}renderHtml(e,t){const i=this.templates.get(e);if(i){return this._unionFromTemplate(i,t)}}_unionFromTemplate(e,t){let i="";const n=[],r=[],{width:s,labelWidth:o,header:a,body:l,footer:c}=e,u=[];return u.push(`<div class="gismap-popup-box" style="width: ${s||260}px;">`),a&&(i=vT(a,t)),l&&(n.push('<div class="gismap-row gismap-popup-body no-scrollbar">'),l.forEach(e=>{n.push(`<div class="gismap-col gismap-col-${e.style.span||12}">`),n.push(`<div class="popup-label" style="width: ${o||80}px;">${e.fieldLabel}:</div>`);let i=t[e.fieldName]||"";switch(n.push('<div class="popup-value">'),e.fieldType){case"date":case"dateTime":case"number":break;default:n.push(`${i}`)}""!=i&&e.unit&&n.push(`<span class="popup-unit">${e.unit}</span>`),n.push("</div>"),n.push("</div>")}),n.push("</div>")),c&&c.length>0&&(r.push('<div class="gismap-popup-footer">'),c.forEach(e=>{if("click"===e.type)r.push(`<span class="footer-btn" @click=""><span class="s"></span> ${e.label}</span>`)}),r.push("</div>")),u.push(i),u.push(...n),u.push(...r),u.push("</div>"),u.join("")}remove(e){this.templates.delete(e)}}class wT{map;marker;constructor(e){this.map=e}show({position:e,html:t,markerIcon:i="marker",offset:n=[0,-30],iconName:r,flyTo:s=!1}){this.marker&&this.marker.remove();const a=document.createElement("div");a.className="marker-container";const l=document.createElement("div");l.className=`${i}`,r&&(l.innerHTML=`<img src='${r}' class="marker-icon" />`),a.appendChild(l),this.marker=new o.Marker({element:a,anchor:"bottom"}).setLngLat(e).addTo(this.map),t&&this.marker.setPopup(new o.Popup({closeOnClick:!1,closeOnMove:!1,className:"gismap-popup",anchor:"bottom",offset:n}).setHTML(t)).togglePopup(),s&&this.map.flyTo({center:e})}close(){this.marker?.remove()}}class ET{map;constructor(e){this.map=e}load(e){let t=[];for(let i of e)t.push(this._loadImage(i));return new Promise((e,i)=>{Promise.all(t).then(t=>{e(!0)}).catch(e=>{i(e)})})}_loadImage(e){return new Promise((t,i)=>{this.map.loadImage(e.url,(n,r)=>{if(n)throw i(!1),n;this.map.hasImage(e.name)?this.map.updateImage(e.name,r):this.map.addImage(e.name,r),t(!0)})})}}class AT{map;options;constructor(e){this.map=e,this.options={range:[-1,10],"horizon-blend":.3,color:"white","high-color":"#add8e6","space-color":"#d8f2ff","star-intensity":0}}setFog(e={}){this.map.setFog({...this.options,...e})}}class TT{map;layerManager;maskManager;tdtManager;eraserManager;popupManager;markerManager;terrainManager;vectorManager;templateManager;placeholderManager;iconManager;fogManager;constructor(e,t){this.map=e,this.layerManager=new dT(this.map),this.maskManager=new fT(this.map),this.tdtManager=new gT(this.map,t),this.eraserManager=new pT(this.map),this.popupManager=new mT(this.map),this.markerManager=new wT(this.map),this.terrainManager=new _T(this.map),this.vectorManager=new yT(this.map),this.templateManager=new bT,this.placeholderManager=new uT(this.map),this.iconManager=new ET(this.map),this.fogManager=new AT(this.map)}}const ST=t.defineComponent({name:"GisMapView",props:{accessToken:{type:String,default:""},tdtToken:{type:String,default:""},options:{type:Object,default:()=>({})}},emits:["load"],setup(e,{emit:i}){const n=t.ref(!1),r=t.ref();return t.onMounted(()=>{e.accessToken&&(o.accessToken=e.accessToken);const s={container:r.value,center:[120.65851,29.5714],zoom:15,...e.options},a=new l(s);a.on("load",async()=>{a.manager=new TT(a,e.tdtToken),await a.manager.iconManager.load(e.options?.icons||[]),a.manager.placeholderManager.addLayer(),n.value=!0,i("load",a)}),t.provide("map",a)}),{isLoad:n}}}),CT={ref:"mapContainer",class:"gismap-container"},IT={key:0,class:"gismap-control"},MT={class:"widget top-left"},RT={class:"widget top-right"},PT={class:"widget bottom-left"},BT={class:"widget bottom-right"};const LT=((e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i})(ST,[["render",function(e,i,n,r,s,o){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",CT,null,512),e.isLoad?(t.openBlock(),t.createElementBlock("div",IT,[t.createElementVNode("div",MT,[t.renderSlot(e.$slots,"top-left")]),t.createElementVNode("div",RT,[t.renderSlot(e.$slots,"top-right")]),t.createElementVNode("div",PT,[t.renderSlot(e.$slots,"bottom-left")]),t.createElementVNode("div",BT,[t.renderSlot(e.$slots,"bottom-right")]),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)],64)}]]),DT="el",OT=(e,t,i,n,r)=>{let s=`${e}-${t}`;return i&&(s+=`-${i}`),n&&(s+=`__${n}`),r&&(s+=`--${r}`),s},kT=Symbol("namespaceContextKey"),FT=e=>{const i=t.getCurrentInstance()?t.inject(kT,t.ref(DT)):t.ref(DT);return t.computed(()=>t.unref(i)||DT)},NT=(e,t)=>{const i=FT();return{namespace:i,b:(t="")=>OT(i.value,e,t,"",""),e:t=>t?OT(i.value,e,"",t,""):"",m:t=>t?OT(i.value,e,"","",t):"",be:(t,n)=>t&&n?OT(i.value,e,t,n,""):"",em:(t,n)=>t&&n?OT(i.value,e,"",t,n):"",bm:(t,n)=>t&&n?OT(i.value,e,t,"",n):"",bem:(t,n,r)=>t&&n&&r?OT(i.value,e,t,n,r):"",is:(e,...t)=>{const i=!(t.length>=1)||t[0];return e&&i?`is-${e}`:""},cssVar:e=>{const t={};for(const n in e)e[n]&&(t[`--${i.value}-${n}`]=e[n]);return t},cssVarName:e=>`--${i.value}-${e}`,cssVarBlock:t=>{const n={};for(const r in t)t[r]&&(n[`--${i.value}-${e}-${r}`]=t[r]);return n},cssVarBlockName:t=>`--${i.value}-${e}-${t}`}};
28
+ */var lA=null;try{lA=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function cA(e,t,i){this.low=0|e,this.high=0|t,this.unsigned=!!i}function uA(e){return!0===(e&&e.__isLong__)}function hA(e){var t=Math.clz32(e&-e);return e?31-t:t}cA.prototype.__isLong__,Object.defineProperty(cA.prototype,"__isLong__",{value:!0}),cA.isLong=uA;var dA={},pA={};function fA(e,t){var i,n,r;return t?(r=0<=(e>>>=0)&&e<256)&&(n=pA[e])?n:(i=gA(e,0,!0),r&&(pA[e]=i),i):(r=-128<=(e|=0)&&e<128)&&(n=dA[e])?n:(i=gA(e,e<0?-1:0,!1),r&&(dA[e]=i),i)}function mA(e,t){if(isNaN(e))return t?TA:AA;if(t){if(e<0)return TA;if(e>=bA)return RA}else{if(e<=-wA)return PA;if(e+1>=wA)return MA}return e<0?mA(-e,t).neg():gA(e%xA|0,e/xA|0,t)}function gA(e,t,i){return new cA(e,t,i)}cA.fromInt=fA,cA.fromNumber=mA,cA.fromBits=gA;var _A=Math.pow;function yA(e,t,i){if(0===e.length)throw Error("empty string");if("number"==typeof t?(i=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?TA:AA;if((i=i||10)<2||36<i)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return yA(e.substring(1),t,i).neg();for(var r=mA(_A(i,8)),s=AA,o=0;o<e.length;o+=8){var a=Math.min(8,e.length-o),l=parseInt(e.substring(o,o+a),i);if(a<8){var c=mA(_A(i,a));s=s.mul(c).add(mA(l))}else s=(s=s.mul(r)).add(mA(l))}return s.unsigned=t,s}function vA(e,t){return"number"==typeof e?mA(e,t):"string"==typeof e?yA(e,t):gA(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}cA.fromString=yA,cA.fromValue=vA;var xA=4294967296,bA=xA*xA,wA=bA/2,EA=fA(1<<24),AA=fA(0);cA.ZERO=AA;var TA=fA(0,!0);cA.UZERO=TA;var SA=fA(1);cA.ONE=SA;var CA=fA(1,!0);cA.UONE=CA;var IA=fA(-1);cA.NEG_ONE=IA;var MA=gA(-1,2147483647,!1);cA.MAX_VALUE=MA;var RA=gA(-1,-1,!0);cA.MAX_UNSIGNED_VALUE=RA;var PA=gA(0,-2147483648,!1);cA.MIN_VALUE=PA;var BA=cA.prototype;BA.toInt=function(){return this.unsigned?this.low>>>0:this.low},BA.toNumber=function(){return this.unsigned?(this.high>>>0)*xA+(this.low>>>0):this.high*xA+(this.low>>>0)},BA.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(PA)){var t=mA(e),i=this.div(t),n=i.mul(t).sub(this);return i.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var r=mA(_A(e,6),this.unsigned),s=this,o="";;){var a=s.div(r),l=(s.sub(a.mul(r)).toInt()>>>0).toString(e);if((s=a).isZero())return l+o;for(;l.length<6;)l="0"+l;o=""+l+o}},BA.getHighBits=function(){return this.high},BA.getHighBitsUnsigned=function(){return this.high>>>0},BA.getLowBits=function(){return this.low},BA.getLowBitsUnsigned=function(){return this.low>>>0},BA.getNumBitsAbs=function(){if(this.isNegative())return this.eq(PA)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},BA.isSafeInteger=function(){var e=this.high>>21;return!e||!this.unsigned&&(-1===e&&!(0===this.low&&-2097152===this.high))},BA.isZero=function(){return 0===this.high&&0===this.low},BA.eqz=BA.isZero,BA.isNegative=function(){return!this.unsigned&&this.high<0},BA.isPositive=function(){return this.unsigned||this.high>=0},BA.isOdd=function(){return!(1&~this.low)},BA.isEven=function(){return!(1&this.low)},BA.equals=function(e){return uA(e)||(e=vA(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},BA.eq=BA.equals,BA.notEquals=function(e){return!this.eq(e)},BA.neq=BA.notEquals,BA.ne=BA.notEquals,BA.lessThan=function(e){return this.comp(e)<0},BA.lt=BA.lessThan,BA.lessThanOrEqual=function(e){return this.comp(e)<=0},BA.lte=BA.lessThanOrEqual,BA.le=BA.lessThanOrEqual,BA.greaterThan=function(e){return this.comp(e)>0},BA.gt=BA.greaterThan,BA.greaterThanOrEqual=function(e){return this.comp(e)>=0},BA.gte=BA.greaterThanOrEqual,BA.ge=BA.greaterThanOrEqual,BA.compare=function(e){if(uA(e)||(e=vA(e)),this.eq(e))return 0;var t=this.isNegative(),i=e.isNegative();return t&&!i?-1:!t&&i?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},BA.comp=BA.compare,BA.negate=function(){return!this.unsigned&&this.eq(PA)?PA:this.not().add(SA)},BA.neg=BA.negate,BA.add=function(e){uA(e)||(e=vA(e));var t=this.high>>>16,i=65535&this.high,n=this.low>>>16,r=65535&this.low,s=e.high>>>16,o=65535&e.high,a=e.low>>>16,l=0,c=0,u=0,h=0;return u+=(h+=r+(65535&e.low))>>>16,c+=(u+=n+a)>>>16,l+=(c+=i+o)>>>16,l+=t+s,gA((u&=65535)<<16|(h&=65535),(l&=65535)<<16|(c&=65535),this.unsigned)},BA.subtract=function(e){return uA(e)||(e=vA(e)),this.add(e.neg())},BA.sub=BA.subtract,BA.multiply=function(e){if(this.isZero())return this;if(uA(e)||(e=vA(e)),lA)return gA(lA.mul(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned);if(e.isZero())return this.unsigned?TA:AA;if(this.eq(PA))return e.isOdd()?PA:AA;if(e.eq(PA))return this.isOdd()?PA:AA;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(EA)&&e.lt(EA))return mA(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,i=65535&this.high,n=this.low>>>16,r=65535&this.low,s=e.high>>>16,o=65535&e.high,a=e.low>>>16,l=65535&e.low,c=0,u=0,h=0,d=0;return h+=(d+=r*l)>>>16,u+=(h+=n*l)>>>16,h&=65535,u+=(h+=r*a)>>>16,c+=(u+=i*l)>>>16,u&=65535,c+=(u+=n*a)>>>16,u&=65535,c+=(u+=r*o)>>>16,c+=t*l+i*a+n*o+r*s,gA((h&=65535)<<16|(d&=65535),(c&=65535)<<16|(u&=65535),this.unsigned)},BA.mul=BA.multiply,BA.divide=function(e){if(uA(e)||(e=vA(e)),e.isZero())throw Error("division by zero");var t,i,n;if(lA)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?gA((this.unsigned?lA.div_u:lA.div_s)(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?TA:AA;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return TA;if(e.gt(this.shru(1)))return CA;n=TA}else{if(this.eq(PA))return e.eq(SA)||e.eq(IA)?PA:e.eq(PA)?SA:(t=this.shr(1).div(e).shl(1)).eq(AA)?e.isNegative()?SA:IA:(i=this.sub(e.mul(t)),n=t.add(i.div(e)));if(e.eq(PA))return this.unsigned?TA:AA;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();n=AA}for(i=this;i.gte(e);){t=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var r=Math.ceil(Math.log(t)/Math.LN2),s=r<=48?1:_A(2,r-48),o=mA(t),a=o.mul(e);a.isNegative()||a.gt(i);)a=(o=mA(t-=s,this.unsigned)).mul(e);o.isZero()&&(o=SA),n=n.add(o),i=i.sub(a)}return n},BA.div=BA.divide,BA.modulo=function(e){return uA(e)||(e=vA(e)),lA?gA((this.unsigned?lA.rem_u:lA.rem_s)(this.low,this.high,e.low,e.high),lA.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},BA.mod=BA.modulo,BA.rem=BA.modulo,BA.not=function(){return gA(~this.low,~this.high,this.unsigned)},BA.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},BA.clz=BA.countLeadingZeros,BA.countTrailingZeros=function(){return this.low?hA(this.low):hA(this.high)+32},BA.ctz=BA.countTrailingZeros,BA.and=function(e){return uA(e)||(e=vA(e)),gA(this.low&e.low,this.high&e.high,this.unsigned)},BA.or=function(e){return uA(e)||(e=vA(e)),gA(this.low|e.low,this.high|e.high,this.unsigned)},BA.xor=function(e){return uA(e)||(e=vA(e)),gA(this.low^e.low,this.high^e.high,this.unsigned)},BA.shiftLeft=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):gA(0,this.low<<e-32,this.unsigned)},BA.shl=BA.shiftLeft,BA.shiftRight=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):gA(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},BA.shr=BA.shiftRight,BA.shiftRightUnsigned=function(e){return uA(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?gA(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):gA(32===e?this.high:this.high>>>e-32,0,this.unsigned)},BA.shru=BA.shiftRightUnsigned,BA.shr_u=BA.shiftRightUnsigned,BA.rotateLeft=function(e){var t;return uA(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?gA(this.high,this.low,this.unsigned):e<32?(t=32-e,gA(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),gA(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},BA.rotl=BA.rotateLeft,BA.rotateRight=function(e){var t;return uA(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?gA(this.high,this.low,this.unsigned):e<32?(t=32-e,gA(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),gA(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},BA.rotr=BA.rotateRight,BA.toSigned=function(){return this.unsigned?gA(this.low,this.high,!1):this},BA.toUnsigned=function(){return this.unsigned?this:gA(this.low,this.high,!0)},BA.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},BA.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},BA.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},cA.fromBytes=function(e,t,i){return i?cA.fromBytesLE(e,t):cA.fromBytesBE(e,t)},cA.fromBytesLE=function(e,t){return new cA(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},cA.fromBytesBE=function(e,t){return new cA(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},"function"==typeof BigInt&&(cA.fromBigInt=function(e,t){return gA(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},cA.fromValue=function(e,t){return"bigint"==typeof e?cA.fromBigInt(e,t):vA(e,t)},BA.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e});function LA(e){"X"===e&&(e="");const t=e.padEnd(16,"0");return cA.fromString(t,!0,16)}const DA=180/Math.PI;function OA(e,t,i){const n=1<<t;return[(e[0]+i[0])/n,(e[1]+i[1])/n]}function kA(e){return e>=.5?1/3*(4*e*e-1):1/3*(1-4*(1-e)*(1-e))}function FA(e){return[kA(e[0]),kA(e[1])]}function NA(e,[t,i]){switch(e){case 0:return[1,t,i];case 1:return[-t,1,i];case 2:return[-t,-i,1];case 3:return[-1,-i,-t];case 4:return[i,-1,-t];case 5:return[i,t,-1];default:throw new Error("Invalid face")}}function zA([e,t,i]){const n=Math.atan2(i,Math.sqrt(e*e+t*t));return[Math.atan2(t,e)*DA,n*DA]}function UA(e,t,i,n){if(0===n){1===i&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);const n=t[0];t[0]=t[1],t[1]=n}}function VA(e){const{face:t,ij:i,level:n}=e,r=[[0,0],[0,1],[1,1],[1,0],[0,0]],s=Math.max(1,Math.ceil(100*Math.pow(2,-n))),o=new Float64Array(4*s*2+2);let a=0,l=0;for(let c=0;c<4;c++){const e=r[c].slice(0),u=r[c+1],h=(u[0]-e[0])/s,d=(u[1]-e[1])/s;for(let r=0;r<s;r++){e[0]+=h,e[1]+=d;const r=zA(NA(t,FA(OA(i,n,e))));Math.abs(r[1])>89.999&&(r[0]=l);const s=r[0]-l;r[0]+=s>180?-360:s<-180?360:0,o[a++]=r[0],o[a++]=r[1],l=r[0]}}return o[a++]=o[0],o[a++]=o[1],o}function GA(e){const t=function(e){if(e.indexOf("/")>0)return e;const t=LA(e);return function(e){if(e.isZero())return"";let t=e.toString(2);for(;t.length<64;)t="0"+t;const i=t.lastIndexOf("1"),n=t.substring(0,3),r=t.substring(3,i),s=r.length/2,o=cA.fromString(n,!0,2).toString(10);let a="";if(0!==s)for(a=cA.fromString(r,!0,2).toString(4);a.length<s;)a="0"+a;return`${o}/${a}`}(t)}(e);return function(e){if(0===e.length)throw new Error(`Invalid Hilbert quad key ${e}`);const t=e.split("/"),i=parseInt(t[0],10),n=t[1],r=n.length;let s=0;const o=[0,0];for(let a=r-1;a>=0;a--){s=r-a;const e=n[a];let t=0,i=0;"1"===e?i=1:"2"===e?(t=1,i=1):"3"===e&&(t=1);const l=Math.pow(2,s-1);UA(l,o,t,i),o[0]+=l*t,o[1]+=l*i}if(i%2==1){const e=o[0];o[0]=o[1],o[1]=e}return{face:i,ij:o,level:s}}(t)}function jA(e){return function(e){const t=FA(OA(e.ij,e.level,[.5,.5]));return zA(NA(e.face,t))}(GA(e))}function HA(e){if(e.length%2!=0)throw new Error("Invalid corners");const t=[],i=[];for(let n=0;n<e.length;n+=2)t.push(e[n]),i.push(e[n+1]);return t.sort((e,t)=>e-t),i.sort((e,t)=>e-t),{west:t[0],east:t[t.length-1],north:i[i.length-1],south:i[0]}}function WA(e,t){const i=t?.minimumHeight||0,n=t?.maximumHeight||0,r=function(e){let t;if(2===e.face||5===e.face){let i=null,n=0;for(let t=0;t<4;t++){const r=VA(GA(`${e.face}/${t}`));null==i&&(i=new Float64Array(4*r.length)),i.set(r,n),n+=r.length}t=HA(i)}else t=HA(VA(e));return t}(GA(e)),s=r.west,o=r.south,a=r.east,l=r.north,c=[];return c.push(new ca(s,l,i)),c.push(new ca(a,l,i)),c.push(new ca(a,o,i)),c.push(new ca(s,o,i)),c.push(new ca(s,l,n)),c.push(new ca(a,l,n)),c.push(new ca(a,o,n)),c.push(new ca(s,o,n)),c}function $A(e){const t=e.token,i={minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight},n=WA(t,i),r=jA(t),s=r[0],o=r[1],a=Xb.WGS84.cartographicToCartesian([s,o,i.maximumHeight]),l=new ca(a[0],a[1],a[2]);n.push(l);const c=function(e,t=new __){if(!e||0===e.length)return t.halfAxes=new _a([0,0,0,0,0,0,0,0,0]),t.center=new ca,t;const i=e.length,n=new ca(0,0,0);for(const T of e)n.add(T);const r=1/i;n.multiplyByScalar(r);let s=0,o=0,a=0,l=0,c=0,u=0;for(const T of e){const e=O_.copy(T).subtract(n);s+=e.x*e.x,o+=e.x*e.y,a+=e.x*e.z,l+=e.y*e.y,c+=e.y*e.z,u+=e.z*e.z}s*=r,o*=r,a*=r,l*=r,c*=r,u*=r;const h=U_;h[0]=s,h[1]=o,h[2]=a,h[3]=o,h[4]=l,h[5]=c,h[6]=a,h[7]=c,h[8]=u;const{unitary:d}=R_(h,V_),p=t.halfAxes.copy(d);let f=p.getColumn(0,F_),m=p.getColumn(1,N_),g=p.getColumn(2,z_),_=-Number.MAX_VALUE,y=-Number.MAX_VALUE,v=-Number.MAX_VALUE,x=Number.MAX_VALUE,b=Number.MAX_VALUE,w=Number.MAX_VALUE;for(const T of e)O_.copy(T),_=Math.max(O_.dot(f),_),y=Math.max(O_.dot(m),y),v=Math.max(O_.dot(g),v),x=Math.min(O_.dot(f),x),b=Math.min(O_.dot(m),b),w=Math.min(O_.dot(g),w);f=f.multiplyByScalar(.5*(x+_)),m=m.multiplyByScalar(.5*(b+y)),g=g.multiplyByScalar(.5*(w+v)),t.center.copy(f).add(m).add(g);const E=k_.set(_-x,y-b,v-w).multiplyByScalar(.5),A=new _a([E[0],0,0,0,E[1],0,0,0,E[2]]);return t.halfAxes.multiplyRight(A),t}(n);return[...c.center,...c.halfAxes]}const XA={QUADTREE:4,OCTREE:8};function qA(e,t,i){if(e?.box){const n=function(e,t){const i=function(e){return e.and(e.not().add(1))}(e).shiftRightUnsigned(2);return e.add(cA.fromNumber(2*t+1-4).multiply(i))}(LA(e.s2VolumeInfo.token),t),r=function(e){if(e.isZero())return"X";let t=e.countTrailingZeros();t=(t-t%4)/4;const i=t;t*=4;const n=e.shiftRightUnsigned(t).toString(16).replace(/0+$/,"");return Array(17-i-n.length).join("0")+n}(n),s={...e.s2VolumeInfo};if(s.token=r,"OCTREE"===i){const t=e.s2VolumeInfo,i=t.maximumHeight-t.minimumHeight,n=i/2,r=t.minimumHeight+i/2;t.minimumHeight=r-n,t.maximumHeight=r+n}return{box:$A(s),s2VolumeInfo:s}}}async function ZA(e){const{subtree:t,subtreeData:i={level:0,x:0,y:0,z:0},parentData:n={mortonIndex:0,localLevel:-1,localX:0,localY:0,localZ:0},childIndex:r=0,implicitOptions:s,loaderOptions:o,s2VolumeBox:a}=e,{subdivisionScheme:l,subtreeLevels:c,maximumLevel:u,contentUrlTemplate:h,subtreesUriTemplate:d,basePath:p}=s,f={children:[],lodMetricValue:0,contentUrl:""};if(!u)return D.once(`Missing 'maximumLevel' or 'availableLevels' property. The subtree ${h} won't be loaded...`),f;const m=n.localLevel+1,g=i.level+m;if(g>u)return f;const _=XA[l],y=Math.log2(_),v=1&r,x=r>>1&1,b=r>>2&1,w=YA(n.localX,v,1),E=YA(n.localY,x,1),A=YA(n.localZ,b,1),T=YA(i.x,w,m),S=YA(i.y,E,m),C=YA(i.z,A,m),I=YA(n.mortonIndex,r,y);let M,R,P,B;if(m===c&&KA(t.childSubtreeAvailability,I)){const e=JA(`${p}/${d}`,g,T,S,C);M=await Et(e,aA,o),B=0,R={level:g,x:T,y:S,z:C},P={mortonIndex:0,localLevel:0,localX:0,localY:0,localZ:0}}else{M=t;B=(_**m-1)/(_-1)+I,R=i,P={mortonIndex:I,localLevel:m,localX:w,localY:E,localZ:A}}if(!KA(M.tileAvailability,B))return f;KA(M.contentAvailability,B)&&(f.contentUrl=JA(h,g,T,S,C));for(let L=0;L<_;L++){const e=qA(a,L,l),t=await ZA({subtree:M,subtreeData:R,parentData:P,childIndex:L,implicitOptions:s,loaderOptions:o,s2VolumeBox:e});(t.contentUrl||t.children.length)&&f.children.push(t)}if(f.contentUrl||f.children.length){const e=function(e,t,i,n){const{basePath:r,refine:s,getRefine:o,lodMetricType:a,getTileType:l,rootLodMetricValue:c,rootBoundingVolume:u}=i,h=e.contentUrl&&e.contentUrl.replace(`${r}/`,""),d=c/2**t.level,p=n?.box?{box:n.box}:u,f=function(e,t,i){if(e.region){const{level:n,x:r,y:s,z:o}=t,[a,l,c,u,h,d]=e.region,p=2**n,f=(c-a)/p,[m,g]=[a+f*r,a+f*(r+1)],_=(u-l)/p,[y,v]=[l+_*s,l+_*(s+1)];let x,b;if("OCTREE"===i){const e=(d-h)/p;[x,b]=[h+e*o,h+e*(o+1)]}else[x,b]=[h,d];return{region:[m,y,g,v,x,b]}}if(e.box)return e;throw new Error(`Unsupported bounding volume type ${JSON.stringify(e)}`)}(p,t,i.subdivisionScheme);return{children:e.children,contentUrl:e.contentUrl,content:{uri:h},id:e.contentUrl,refine:o(s),type:l(e),lodMetricType:a,lodMetricValue:d,geometricError:d,transform:e.transform,boundingVolume:f}}(f,{level:g,x:T,y:S,z:C},s,a);return e}return f}function KA(e,t){let i;return Array.isArray(e)?(i=e[0],e.length>1&&D.once('Not supported extension "3DTILES_multiple_contents" has been detected')):i=e,"constant"in i?Boolean(i.constant):!!i.explicitBitstream&&function(e,t){const i=Math.floor(e/8),n=e%8;return 1==(t[i]>>n&1)}(t,i.explicitBitstream)}function YA(e,t,i){return(e<<i)+t}function JA(e,t,i,n,r){const s=function(e){const t={};for(const i in e)t[`{${i}}`]=e[i];return t}({level:t,x:i,y:n,z:r});return e.replace(/{level}|{x}|{y}|{z}/gi,e=>s[e])}function QA(e,t=""){if(!t)return fw.EMPTY;const i=t.split("?")[0].split(".").pop();switch(i){case"pnts":return fw.POINTCLOUD;case"i3dm":case"b3dm":case"glb":case"gltf":return fw.SCENEGRAPH;default:return i||fw.EMPTY}}function eT(e){switch(e){case"REPLACE":case"replace":return dw.REPLACE;case"ADD":case"add":return dw.ADD;default:return e}}function tT(e,t){if(/^[a-z][0-9a-z+.-]*:/i.test(t)){const i=new URL(e,`${t}/`);return decodeURI(i.toString())}return e.startsWith("/")?e:Ae(t,e)}function iT(e,t){if(!e)return null;let i;if(e.content){const n=e.content.uri||e.content?.url;void 0!==n&&(i=tT(n,t))}return{...e,id:i,contentUrl:i,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:e.geometricError,transformMatrix:e.transform,type:QA(0,i),refine:eT(e.refine)}}async function nT(e,t,i,n,r){const{subdivisionScheme:s,maximumLevel:o,availableLevels:a,subtreeLevels:l,subtrees:{uri:c}}=n,u=tT(JA(c,0,0,0,0),i),h=await Et(u,aA,r),d=e.content?.uri,p=d?tT(d,i):"",f=t?.root?.refine,m=e.geometricError,g=e.boundingVolume.extensions?.["3DTILES_bounding_volume_S2"];if(g){const t={box:$A(g),s2VolumeInfo:g};e.boundingVolume=t}const _=e.boundingVolume,y={contentUrlTemplate:p,subtreesUriTemplate:c,subdivisionScheme:s,subtreeLevels:l,maximumLevel:Number.isFinite(a)?a-1:o,refine:f,basePath:i,lodMetricType:yw.GEOMETRIC_ERROR,rootLodMetricValue:m,rootBoundingVolume:_,getTileType:QA,getRefine:eT};return await async function(e,t,i,n,r){if(!e)return null;const{children:s,contentUrl:o}=await ZA({subtree:i,implicitOptions:n,loaderOptions:r});let a,l=null;o&&(a=o,l={uri:o.replace(`${t}/`,"")});const c={...e,id:a,contentUrl:a,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:e.geometricError,transformMatrix:e.transform,type:QA(0,a),refine:eT(e.refine),content:l||e.content,children:s};return c}(e,i,h,y,r)}function rT(e){return e?.extensions?.["3DTILES_implicit_tiling"]||e?.implicitTiling}const sT={dataType:null,batchType:null,id:"3d-tiles",name:"3D Tiles",module:"3d-tiles",version:mE,extensions:["cmpt","pnts","b3dm","i3dm"],mimeTypes:["application/octet-stream"],tests:["cmpt","pnts","b3dm","i3dm"],parse:async function(e,t={},i){const n=t["3d-tiles"]||{};let r;r="auto"===n.isTileset?i?.url&&-1!==i.url.indexOf(".json"):n.isTileset;return r?async function(e,t,i){const n=JSON.parse((new TextDecoder).decode(e)),r=i?.url||"",s=function(e){return Ee(e)}(r),o=await async function(e,t,i){let n=null;const r=rT(e.root);n=r&&e.root?await nT(e.root,e,t,r,i):iT(e.root,t);const s=[];for(s.push(n);s.length>0;){const n=s.pop()||{},r=n.children||[],o=[];for(const a of r){const n=rT(a);let r;r=n?await nT(a,e,t,n,i):iT(a,t),r&&(o.push(r),s.push(r))}n.children=o}return n}(n,s,t||{}),a={...n,shape:"tileset3d",loader:sT,url:r,queryString:i?.queryString||"",basePath:s,root:o||n.root,type:gw.TILES3D,lodMetricType:yw.GEOMETRIC_ERROR,lodMetricValue:n.root?.geometricError||0};return a}(e,t,i):async function(e,t,i){const n={content:{shape:"tile3d",featureIds:null}},r=0;return await rA(e,r,t,i,n.content),n.content}(e,t,i)},options:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!1,isTileset:"auto",assetGltfUpAxis:null}}};const oT=[0],aT={getPointColor:{type:"accessor",value:[0,0,0,255]},pointSize:1,data:"",loader:sT,onTilesetLoad:{type:"function",value:e=>{}},onTileLoad:{type:"function",value:e=>{}},onTileUnload:{type:"function",value:e=>{}},onTileError:{type:"function",value:(e,t,i)=>{}},_getMeshColor:{type:"function",value:e=>[255,255,255]}};let lT=class extends _g{initializeState(){"onTileLoadFail"in this.props&&Xt.removed("onTileLoadFail","onTileError")(),this.state={layerMap:{},tileset3d:null,activeViewports:{},lastUpdatedViewports:null}}get isLoaded(){return Boolean(this.state?.tileset3d?.isLoaded()&&super.isLoaded)}shouldUpdateState({changeFlags:e}){return e.somethingChanged}updateState({props:e,oldProps:t,changeFlags:i}){if(e.data&&e.data!==t.data&&this._loadTileset(e.data),i.viewportChanged){const{activeViewports:e}=this.state;Object.keys(e).length&&(this._updateTileset(e),this.state.lastUpdatedViewports=e,this.state.activeViewports={})}if(i.propsChanged){const{layerMap:e}=this.state;for(const t in e)e[t].needsUpdate=!0}}activateViewport(e){const{activeViewports:t,lastUpdatedViewports:i}=this.state;this.internalState.viewport=e,t[e.id]=e;const n=i?.[e.id];n&&e.equals(n)||(this.setChangeFlags({viewportChanged:!0}),this.setNeedsUpdate())}getPickingInfo({info:e,sourceLayer:t}){const i=t&&t.props.tile;return e.picked&&(e.object=i),e.sourceTile=i,e}filterSubLayer({layer:e,viewport:t}){const{tile:i}=e.props,{id:n}=t;return i.selected&&i.viewportIds.includes(n)}_updateAutoHighlight(e){const t=e.sourceTile,i=this.state.layerMap[t?.id];i&&i.layer&&i.layer.updateAutoHighlight(e)}async _loadTileset(e){const{loadOptions:t={}}=this.props,i=this.props.loader||this.props.loaders,n=Array.isArray(i)?i[0]:i,r={loadOptions:{...t}};let s=e;if(n.preload){const i=await n.preload(e,t);i.url&&(s=i.url),i.headers&&(r.loadOptions.fetch={...r.loadOptions.fetch,headers:i.headers}),Object.assign(r,i)}const o=await Et(s,n,r.loadOptions),a=new fE(o,{onTileLoad:this._onTileLoad.bind(this),onTileUnload:this._onTileUnload.bind(this),onTileError:this.props.onTileError,...r});this.setState({tileset3d:a,layerMap:{}}),this._updateTileset(this.state.activeViewports),this.props.onTilesetLoad(a)}_onTileLoad(e){const{lastUpdatedViewports:t}=this.state;this.props.onTileLoad(e),this._updateTileset(t),this.setNeedsUpdate()}_onTileUnload(e){delete this.state.layerMap[e.id],this.props.onTileUnload(e)}_updateTileset(e){if(!e)return;const{tileset3d:t}=this.state,{timeline:i}=this.context,n=Object.keys(e).length;i&&n&&t&&t.selectTiles(Object.values(e)).then(e=>{this.state.frameNumber!==e&&this.setState({frameNumber:e})})}_getSubLayer(e,t){if(!e.content)return null;switch(e.type){case fw.POINTCLOUD:return this._makePointCloudLayer(e,t);case fw.SCENEGRAPH:return this._make3DModelLayer(e);case fw.MESH:return this._makeSimpleMeshLayer(e,t);default:throw new Error(`Tile3DLayer: Failed to render layer of type ${e.content.type}`)}}_makePointCloudLayer(e,t){const{attributes:i,pointCount:n,constantRGBA:r,cartographicOrigin:s,modelMatrix:o}=e.content,{positions:a,normals:l,colors:c}=i;if(!a)return null;const u=t&&t.props.data||{header:{vertexCount:n},attributes:{POSITION:a,NORMAL:l,COLOR_0:c}},{pointSize:h,getPointColor:d}=this.props;return new(this.getSubLayerClass("pointcloud",qg))({pointSize:h},this.getSubLayerProps({id:"pointcloud"}),{id:`${this.id}-pointcloud-${e.id}`,tile:e,data:u,coordinateSystem:Ec.METER_OFFSETS,coordinateOrigin:s,modelMatrix:o,getColor:r||d,_offset:0})}_make3DModelLayer(e){const{gltf:t,instances:i,cartographicOrigin:n,modelMatrix:r}=e.content;return new(this.getSubLayerClass("scenegraph",Eb))({_lighting:"pbr"},this.getSubLayerProps({id:"scenegraph"}),{id:`${this.id}-scenegraph-${e.id}`,tile:e,data:i||oT,scenegraph:t,coordinateSystem:Ec.METER_OFFSETS,coordinateOrigin:n,modelMatrix:r,getTransformMatrix:e=>e.modelMatrix,getPosition:[0,0,0],_offset:0})}_makeSimpleMeshLayer(e,t){const i=e.content,{attributes:n,indices:r,modelMatrix:s,cartographicOrigin:o,coordinateSystem:a=Ec.METER_OFFSETS,material:l,featureIds:c}=i,{_getMeshColor:u}=this.props,h=t&&t.props.mesh||new Oh({topology:"triangle-list",attributes:cT(n),indices:r});return new(this.getSubLayerClass("mesh",Sb))(this.getSubLayerProps({id:"mesh"}),{id:`${this.id}-mesh-${e.id}`,tile:e,mesh:h,data:oT,getColor:u(e),pbrMaterial:l,modelMatrix:s,coordinateOrigin:o,coordinateSystem:a,featureIds:c,_offset:0})}renderLayers(){const{tileset3d:e,layerMap:t}=this.state;return e?e.tiles.map(e=>{const i=t[e.id]=t[e.id]||{tile:e};let{layer:n}=i;return e.selected&&(n?i.needsUpdate&&(n=this._getSubLayer(e,n),i.needsUpdate=!1):n=this._getSubLayer(e)),i.layer=n,n}).filter(Boolean):null}};function cT(e){const t={};return t.positions={...e.positions,value:new Float32Array(e.positions.value)},e.normals&&(t.normals=e.normals),e.texCoords&&(t.texCoords=e.texCoords),e.colors&&(t.colors=e.colors),e.uvRegions&&(t.uvRegions=e.uvRegions),t}lT.defaultProps=aT,lT.layerName="Tile3DLayer";class uT{map;sourceId=`gismap_placeholder_source_${Math.random().toString(10)}`;static symbolPointId="gismap_placeholder_symbol_point";static layerPointId="gismap_placeholder_layer_point";static layerLineId="gismap_placeholder_layer_line";static layerPolygonId="gismap_placeholder_layer_polygon";static maskLayerId="gismap_placeholder_mask_layer";constructor(e){this.map=e,this.map.addSource(this.sourceId,{type:"geojson",data:{type:"FeatureCollection",features:[]}})}addLayer(e){this.map.addLayer({id:uT.layerPolygonId,type:"fill",source:this.sourceId,paint:{}},e?.beforeLayerFillId),this.map.addLayer({id:uT.layerLineId,type:"line",source:this.sourceId,paint:{}},e?.beforeLayerLineId),this.map.addLayer({id:uT.layerPointId,type:"circle",source:this.sourceId,paint:{}},e?.beforeLayerPointId),this.map.addLayer({id:uT.symbolPointId,type:"symbol",source:this.sourceId,paint:{}},e?.beforeLayerPointId),this.map.addLayer({id:uT.maskLayerId,type:"circle",source:this.sourceId,paint:{}},e?.beforeMaskLayerId)}}class hT{map;layerId="";isQuery=!1;dataExtension={};templateId=void 0;feature=void 0;constructor(e){this.map=e}addSource(e){if(!this.map.getSource(e.id)){const t=Object.assign({type:"vector",tiles:[e.url]},e);this.map.addSource(e.id,t)}return this}add(e,t){this.addSource(e.source);const i=e.source.id,n=Object.assign({id:e.id,source:i},e.layer);"vector"===this.map.getSource(i).type&&(n["source-layer"]||(n["source-layer"]="layer")),this.dataExtension=e.dataExt||{},this.templateId=e.templateId||this.dataExtension?.templateId||void 0;let r=t;this.map.addLayer(n,r),this.layerId=n.id,(e.isQuery||e.query)&&(this.isQuery=!0,this.addInteraction())}remove(){this.map.getLayer(this.layerId)&&this.map.removeLayer(this.layerId),this.isQuery&&this.removeInteraction()}addInteraction(){this.map.on("click",`${this.layerId}`,e=>{e.features.length>0&&(this.feature=e.features[0],this.map.pubsub.emit("layer:click",{layerId:this.layerId,templateId:this.templateId,feature:this.feature,features:e.features}))}),this.map.on("mouseenter",`${this.layerId}`,e=>{this.map.getCanvas().style.cursor="pointer"}),this.map.on("mouseleave",`${this.layerId}`,e=>{this.map.getCanvas().style.cursor="default"})}removeInteraction(){this.map.off("click",`${this.layerId}`,e=>{}),this.map.off("mouseenter",`${this.layerId}`,e=>{}),this.map.off("mouseleave",`${this.layerId}`,e=>{})}}class dT{map;checkedParentLayers=new Map;checkedLayers=new Map;queryLayerIds=[];symbolLayerIds=[];pointLayerIds=[];lineLayerIds=[];polygonLayerIds=[];constructor(e){this.map=e}addSource(e){this.map.getSource(e.id)||this.map.addSource(e.id,e)}addLayer(e,t){const i=new hT(this.map);let n=t;switch(e.layerType){case"symbol":n=uT.symbolPointId,this.symbolLayerIds.push(e.id);break;case"point":n=uT.layerPointId,this.pointLayerIds.push(e.id);break;case"line":n=uT.layerLineId,this.lineLayerIds.push(e.id);break;case"fill":case"fill-extrusion":n=uT.layerPolygonId,this.polygonLayerIds.push(e.id)}return i.add(e,n),this.checkedLayers.set(e.id,i),i.isQuery&&this.queryLayerIds.push(e.id),this}addGroupLayer(e){const{id:t,layers:i}=e;i&&(i.forEach(e=>{e.layer=Object.assign({id:e.id,source:e.source.id||e.id},e.layer),e.source=Object.assign({id:e.id},e.source),e.source.id||(e.source.id=t),e.layer.id||(e.layer.id=t,e.layer.source=t),this.map.getLayer(e.layer.id)||this.addLayer(e)}),this.checkedParentLayers.get(t)||this.checkedParentLayers.set(t,e))}removeLayer(e){this.map.getLayer(e.layer.id)&&this.map.removeLayer(e.layer.id),this.checkedLayers.delete(e.layer.id),e.isQuery&&(this.queryLayerIds=this.queryLayerIds.filter(t=>t!==e.layer.id))}removeGroupLayer(e){const{id:t,layers:i}=e;i&&i.forEach(e=>{e.layer=Object.assign({id:e.id},e.layer),e.source=Object.assign({id:e.id},e.source),this.removeLayer(e)}),this.checkedParentLayers.delete(t)}getLayer(e){return e?this.checkedLayers.get(e):null}}class pT{map;eraserLayerId="eraser_layer";eraserDebugLayerId="eraser_debug_layer";constructor(e){this.map=e}add(e,t){this.map.addSource(this.eraserLayerId,{type:"geojson",data:e}),this.map.addLayer({id:this.eraserLayerId,source:this.eraserLayerId,type:"clip",layout:{"clip-layer-types":t,"clip-layer-scope":["basemap"]}})}remove(){this.map.removeLayer(this.eraserLayerId),this.map.removeSource(this.eraserLayerId)}showPolygon(){this.map.addLayer({id:this.eraserDebugLayerId,type:"line",source:this.eraserLayerId,paint:{"line-color":"rgba(255, 0, 0, 0.9)","line-dasharray":[0,4,3],"line-width":5}})}hidePolygon(){this.map.getLayer(this.eraserDebugLayerId)&&this.map.removeLayer(this.eraserDebugLayerId)}}class fT{map;layerId="mask_layer";constructor(e){this.map=e}add(e,t={},i){this.map.getSource(this.layerId)||this.map.addSource(this.layerId,{type:"geojson",data:e}),i||(i=uT.maskLayerId);const n=Object.assign({id:this.layerId,source:this.layerId,type:"fill",paint:{"fill-color":"#000000","fill-opacity":.7}},t);return this.map.getLayer(this.layerId)||this.map.addLayer(n,i),this}addLine(e,t={}){this.map.getSource(this.layerId)||this.map.addSource(this.layerId,{type:"geojson",data:e});const i=Object.assign({id:`${this.layerId}_line`,source:this.layerId,type:"line",paint:{"line-color":"#ff0000","line-width":2}},t);this.map.addLayer(i,this.layerId)}remove(){this.map.removeLayer(this.layerId),this.map.removeLayer(`${this.layerId}_line`),this.map.removeSource(this.layerId)}}class mT{map;popup;constructor(e){this.map=e,this.popup=new o.Popup({closeOnClick:!1,closeOnMove:!1,className:"gismap-popup",anchor:"bottom"})}show({position:e,html:t,offset:i=[0,-10],flyTo:n=!1}){t&&this.popup.setHTML(t),i&&this.popup.setOffset(i),this.popup.setLngLat(e),this.popup.addTo(this.map),n&&this.map.flyTo({center:e})}close(){this.popup.remove()}}class gT{map;tdtImgId="tdt-img";tdtVecId="tdt-vec";tdtCiaId="tdt-cia";tdtLayer=new Map;token="6c8a0fffe8f584f8310306723f5bc776";constructor(e,t){this.map=e,this.token=t||this.token,this.tdtLayer.set(this.tdtImgId,{type:"raster",tiles:[`https://t0.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t1.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t2.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t3.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t4.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t5.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t6.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t7.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:512,buffer:128,tolerance:0,maxzoom:17,scheme:"xyz",roundZoom:!0,crs:"EPSG:4326"}),this.tdtLayer.set(this.tdtCiaId,{type:"raster",tiles:[`https://t0.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t1.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t2.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t3.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t4.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t5.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t6.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`,`https://t7.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:256,maxzoom:17,crs:"EPSG:4326"}),this.tdtLayer.set(this.tdtVecId,{type:"raster",tiles:[`http://t0.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t1.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t2.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t3.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t4.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t5.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t6.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`,`http://t7.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=${this.token}`],tileSize:256,maxzoom:18,crs:"EPSG:4326"})}addImgLayer(e){let t=this.map.getSource(this.tdtImgId);t||(t=this.tdtLayer.get(this.tdtImgId),this.map.addSource(this.tdtImgId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtImgId,type:"raster",source:this.tdtImgId},e):this.map.addLayer({id:this.tdtImgId,type:"raster",source:this.tdtImgId})}removeImgLayer(){this.map.getLayer(this.tdtImgId)&&this.map.removeLayer(this.tdtImgId)}addVecLayer(e){let t=this.map.getSource(this.tdtVecId);t||(t=this.tdtLayer.get(this.tdtVecId),this.map.addSource(this.tdtVecId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtVecId,type:"raster",source:this.tdtVecId},e):this.map.addLayer({id:this.tdtVecId,type:"raster",source:this.tdtVecId})}removeVecLayer(){this.map.getLayer(this.tdtVecId)&&this.map.removeLayer(this.tdtVecId)}addCiaLayer(e){let t=this.map.getSource(this.tdtCiaId);t||(t=this.tdtLayer.get(this.tdtCiaId),this.map.addSource(this.tdtCiaId,t)),e&&this.map.getLayer(e)?this.map.addLayer({id:this.tdtCiaId,type:"raster",source:this.tdtCiaId},e):this.map.addLayer({id:this.tdtCiaId,type:"raster",source:this.tdtCiaId})}removeCiaLayer(){this.map.getLayer(this.tdtCiaId)&&this.map.removeLayer(this.tdtCiaId)}clear(){this.removeImgLayer(),this.removeVecLayer(),this.removeCiaLayer()}}class _T{map;constructor(e){this.map=e}addSource(){return this.map.addSource("raster-dem",{type:"raster-dem",url:"mapbox://mapbox.mapbox-terrain-dem-v1",minzoom:6,maxzoom:18,tileSize:256}),this}updateSource(e){const t=this.map.getSource("raster-dem");return t&&t.setUrl(e.url),this}setTerrain(e){return this.map.getSource("raster-dem")||this.addSource(),this.map.setTerrain({source:"raster-dem",exaggeration:1.5,...e}),this}removeTerrain(){return this.map.setTerrain(null),this}addHillshade(){return this.map.getSource("raster-dem")||this.addSource(),this.map.addLayer({id:"hillshade",type:"hillshade",source:"raster-dem",paint:{"hillshade-exaggeration":.5,"hillshade-highlight-color":"#FFFFFF","hillshade-shadow-color":"#025505"}}),this}}class yT{map;constructor(e){this.map=e}addSource(e){if(!this.map.getSource(e.id)){const t=Object.assign({type:"geojson",tiles:[e.url],tileSize:256},e);this.map.addSource(e.id,t)}return this}addLayer(e){if(!this.map.getLayer(e.id)){const t=Object.assign({id:e.id,source:e.source},e);this.map.addLayer(t)}return this}removeSource(e){return this.map.getSource(e)&&this.map.removeSource(e),this}removeLayer(e){return this.map.getLayer(e)&&this.map.removeLayer(e),this}}function vT(e,t){return e.replace(/\{(?:p\.)?([^}]+)\}|\$\{(?:p\.)?([^}]+)\}/g,(e,i,n)=>{return r=t,(i||n).split(".").reduce((e,t)=>{const i=(e||{})[t];return void 0!==i?String(i):""},r);var r})}function xT(e,t,i="children"){function n(e){"function"==typeof t&&t(e),Array.isArray(e[i])&&e[i].forEach(e=>{n(e)})}Array.isArray(e)&&e.forEach(e=>{n(e)})}class bT{templates=new Map;constructor(){}add(e,t){this.templates.set(e,t)}get(e){return this.templates.get(e)}renderHtml(e,t){const i=this.templates.get(e);if(i){return this._unionFromTemplate(i,t)}}_unionFromTemplate(e,t){let i="";const n=[],r=[],{width:s,labelWidth:o,header:a,body:l,footer:c}=e,u=[];return u.push(`<div class="gismap-popup-box" style="width: ${s||260}px;">`),a&&(i=vT(a,t)),l&&(n.push('<div class="gismap-row gismap-popup-body no-scrollbar">'),l.forEach(e=>{n.push(`<div class="gismap-col gismap-col-${e.style.span||12}">`),n.push(`<div class="popup-label" style="width: ${o||80}px;">${e.fieldLabel}:</div>`);let i=t[e.fieldName]||"";switch(n.push('<div class="popup-value">'),e.fieldType){case"date":case"dateTime":case"number":break;default:n.push(`${i}`)}""!=i&&e.unit&&n.push(`<span class="popup-unit">${e.unit}</span>`),n.push("</div>"),n.push("</div>")}),n.push("</div>")),c&&c.length>0&&(r.push('<div class="gismap-popup-footer">'),c.forEach(e=>{if("click"===e.type)r.push(`<span class="footer-btn" @click=""><span class="s"></span> ${e.label}</span>`)}),r.push("</div>")),u.push(i),u.push(...n),u.push(...r),u.push("</div>"),u.join("")}remove(e){this.templates.delete(e)}}class wT{map;marker;constructor(e){this.map=e}show({position:e,html:t,markerIcon:i="marker",offset:n=[0,-30],iconName:r,flyTo:s=!1}){this.marker&&this.marker.remove();const a=document.createElement("div");a.className="marker-container";const l=document.createElement("div");l.className=`${i}`,r&&(l.innerHTML=`<img src='${r}' class="marker-icon" />`),a.appendChild(l),this.marker=new o.Marker({element:a,anchor:"bottom"}).setLngLat(e).addTo(this.map),t&&this.marker.setPopup(new o.Popup({closeOnClick:!1,closeOnMove:!1,className:"gismap-popup",anchor:"bottom",offset:n}).setHTML(t)).togglePopup(),s&&this.map.flyTo({center:e})}close(){this.marker?.remove()}}class ET{map;constructor(e){this.map=e}load(e){let t=[];for(let i of e)t.push(this._loadImage(i));return new Promise((e,i)=>{Promise.all(t).then(t=>{e(!0)}).catch(e=>{i(e)})})}_loadImage(e){return new Promise((t,i)=>{this.map.loadImage(e.url,(n,r)=>{if(n)throw i(!1),n;this.map.hasImage(e.name)?this.map.updateImage(e.name,r):this.map.addImage(e.name,r),t(!0)})})}}class AT{map;options;constructor(e){this.map=e,this.options={range:[-1,10],"horizon-blend":.3,color:"white","high-color":"#add8e6","space-color":"#d8f2ff","star-intensity":0}}setFog(e={}){this.map.setFog({...this.options,...e})}}class TT{map;layerManager;maskManager;tdtManager;eraserManager;popupManager;markerManager;terrainManager;vectorManager;templateManager;placeholderManager;iconManager;fogManager;constructor(e,t){this.map=e,this.layerManager=new dT(this.map),this.maskManager=new fT(this.map),this.tdtManager=new gT(this.map,t),this.eraserManager=new pT(this.map),this.popupManager=new mT(this.map),this.markerManager=new wT(this.map),this.terrainManager=new _T(this.map),this.vectorManager=new yT(this.map),this.templateManager=new bT,this.placeholderManager=new uT(this.map),this.iconManager=new ET(this.map),this.fogManager=new AT(this.map)}}const ST={key:0,class:"gismap-control"},CT={class:"widget top-left"},IT={class:"widget top-right"},MT={class:"widget bottom-left"},RT={class:"widget bottom-right"},PT=t.defineComponent({name:"MapView",props:{accessToken:{type:String,default:()=>""},tdtToken:{type:String,default:()=>""},options:{type:Object,default:()=>({})}},emits:["load"],setup(e,{emit:i}){const n=i,r=e,s=t.ref(!1),a=t.ref();return t.onMounted(()=>{r.accessToken&&(o.accessToken=r.accessToken);const e={container:a.value,center:[120.65851,29.5714],minZoom:8,maxZoom:20,zoom:15,pitch:0,bearing:0,maxPitch:65,attributionControl:!1,spriteFormat:"auto",...r.options};e.style={version:8,sources:{},layers:[],...e.style||{}};const i=new l(e);i.on("load",async()=>{i.manager=new TT(i,r.tdtToken),await i.manager.iconManager.load(r.options?.icons||[]),i.manager.placeholderManager.addLayer(),s.value=!0,n("load",i)}),t.provide("map",i)}),(e,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{ref_key:"mapContainer",ref:a,class:"gismap-container"},null,512),s.value?(t.openBlock(),t.createElementBlock("div",ST,[t.createElementVNode("div",CT,[t.renderSlot(e.$slots,"top-left")]),t.createElementVNode("div",IT,[t.renderSlot(e.$slots,"top-right")]),t.createElementVNode("div",MT,[t.renderSlot(e.$slots,"bottom-left")]),t.createElementVNode("div",RT,[t.renderSlot(e.$slots,"bottom-right")]),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)],64))}}),BT="el",LT=(e,t,i,n,r)=>{let s=`${e}-${t}`;return i&&(s+=`-${i}`),n&&(s+=`__${n}`),r&&(s+=`--${r}`),s},DT=Symbol("namespaceContextKey"),OT=e=>{const i=t.getCurrentInstance()?t.inject(DT,t.ref(BT)):t.ref(BT);return t.computed(()=>t.unref(i)||BT)},kT=(e,t)=>{const i=OT();return{namespace:i,b:(t="")=>LT(i.value,e,t,"",""),e:t=>t?LT(i.value,e,"",t,""):"",m:t=>t?LT(i.value,e,"","",t):"",be:(t,n)=>t&&n?LT(i.value,e,t,n,""):"",em:(t,n)=>t&&n?LT(i.value,e,"",t,n):"",bm:(t,n)=>t&&n?LT(i.value,e,t,"",n):"",bem:(t,n,r)=>t&&n&&r?LT(i.value,e,t,n,r):"",is:(e,...t)=>{const i=!(t.length>=1)||t[0];return e&&i?`is-${e}`:""},cssVar:e=>{const t={};for(const n in e)e[n]&&(t[`--${i.value}-${n}`]=e[n]);return t},cssVarName:e=>`--${i.value}-${e}`,cssVarBlock:t=>{const n={};for(const r in t)t[r]&&(n[`--${i.value}-${e}-${r}`]=t[r]);return n},cssVarBlockName:t=>`--${i.value}-${e}-${t}`}};
29
29
  /**
30
30
  * @vue/shared v3.5.21
31
31
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
32
32
  * @license MIT
33
33
  **/
34
- "production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);const zT=()=>{},UT=Object.prototype.hasOwnProperty,VT=(e,t)=>UT.call(e,t),GT=Array.isArray,jT=e=>"function"==typeof e,HT=e=>"string"==typeof e,WT=e=>null!==e&&"object"==typeof e;var $T="object"==typeof global&&global&&global.Object===Object&&global,XT="object"==typeof self&&self&&self.Object===Object&&self,qT=$T||XT||Function("return this")(),ZT=qT.Symbol,KT=Object.prototype,YT=KT.hasOwnProperty,JT=KT.toString,QT=ZT?ZT.toStringTag:void 0;var eS=Object.prototype.toString;var tS=ZT?ZT.toStringTag:void 0;function iS(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tS&&tS in Object(e)?function(e){var t=YT.call(e,QT),i=e[QT];try{e[QT]=void 0;var n=!0}catch(cr){}var r=JT.call(e);return n&&(t?e[QT]=i:delete e[QT]),r}(e):function(e){return eS.call(e)}(e)}function nS(e){return null!=e&&"object"==typeof e}function rS(e){return"symbol"==typeof e||nS(e)&&"[object Symbol]"==iS(e)}var sS=Array.isArray,oS=ZT?ZT.prototype:void 0,aS=oS?oS.toString:void 0;function lS(e){if("string"==typeof e)return e;if(sS(e))return function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}(e,lS)+"";if(rS(e))return aS?aS.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function cS(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function uS(e){if(!cS(e))return!1;var t=iS(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var hS,dS=qT["__core-js_shared__"],pS=(hS=/[^.]+$/.exec(dS&&dS.keys&&dS.keys.IE_PROTO||""))?"Symbol(src)_1."+hS:"";var fS=Function.prototype.toString;function mS(e){if(null!=e){try{return fS.call(e)}catch(cr){}try{return e+""}catch(cr){}}return""}var gS=/^\[object .+?Constructor\]$/,_S=Function.prototype,yS=Object.prototype,vS=_S.toString,xS=yS.hasOwnProperty,bS=RegExp("^"+vS.call(xS).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wS(e){return!(!cS(e)||(t=e,pS&&pS in t))&&(uS(e)?bS:gS).test(mS(e));var t}function ES(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return wS(i)?i:void 0}var AS=ES(qT,"WeakMap");var TS=Date.now;var SS,CS,IS,MS=function(){try{var e=ES(Object,"defineProperty");return e({},"",{}),e}catch(cr){}}(),RS=MS?function(e,t){return MS(e,"toString",{configurable:!0,enumerable:!1,value:(i=t,function(){return i}),writable:!0});var i}:function(e){return e},PS=(SS=RS,CS=0,IS=0,function(){var e=TS(),t=16-(e-IS);if(IS=e,t>0){if(++CS>=800)return arguments[0]}else CS=0;return SS.apply(void 0,arguments)}),BS=/^(?:0|[1-9]\d*)$/;function LS(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&BS.test(e))&&e>-1&&e%1==0&&e<t}function DS(e,t){return e===t||e!=e&&t!=t}var OS=Object.prototype.hasOwnProperty;function kS(e,t,i){var n=e[t];OS.call(e,t)&&DS(n,i)&&(void 0!==i||t in e)||function(e,t,i){"__proto__"==t&&MS?MS(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}(e,t,i)}var FS=Math.max;function NS(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var zS=Object.prototype;function US(e){return nS(e)&&"[object Arguments]"==iS(e)}var VS=Object.prototype,GS=VS.hasOwnProperty,jS=VS.propertyIsEnumerable,HS=US(function(){return arguments}())?US:function(e){return nS(e)&&GS.call(e,"callee")&&!jS.call(e,"callee")};var WS="object"==typeof e&&e&&!e.nodeType&&e,$S=WS&&"object"==typeof module&&module&&!module.nodeType&&module,XS=$S&&$S.exports===WS?qT.Buffer:void 0,qS=(XS?XS.isBuffer:void 0)||function(){return!1},ZS={};ZS["[object Float32Array]"]=ZS["[object Float64Array]"]=ZS["[object Int8Array]"]=ZS["[object Int16Array]"]=ZS["[object Int32Array]"]=ZS["[object Uint8Array]"]=ZS["[object Uint8ClampedArray]"]=ZS["[object Uint16Array]"]=ZS["[object Uint32Array]"]=!0,ZS["[object Arguments]"]=ZS["[object Array]"]=ZS["[object ArrayBuffer]"]=ZS["[object Boolean]"]=ZS["[object DataView]"]=ZS["[object Date]"]=ZS["[object Error]"]=ZS["[object Function]"]=ZS["[object Map]"]=ZS["[object Number]"]=ZS["[object Object]"]=ZS["[object RegExp]"]=ZS["[object Set]"]=ZS["[object String]"]=ZS["[object WeakMap]"]=!1;var KS="object"==typeof e&&e&&!e.nodeType&&e,YS=KS&&"object"==typeof module&&module&&!module.nodeType&&module,JS=YS&&YS.exports===KS&&$T.process,QS=function(){try{var e=YS&&YS.require&&YS.require("util").types;return e||JS&&JS.binding&&JS.binding("util")}catch(cr){}}(),eC=QS&&QS.isTypedArray,tC=eC?function(e){return function(t){return e(t)}}(eC):function(e){return nS(e)&&NS(e.length)&&!!ZS[iS(e)]},iC=Object.prototype.hasOwnProperty;function nC(e,t){var i=sS(e),n=!i&&HS(e),r=!i&&!n&&qS(e),s=!i&&!n&&!r&&tC(e),o=i||n||r||s,a=o?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],l=a.length;for(var c in e)!iC.call(e,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||LS(c,l))||a.push(c);return a}var rC=function(e,t){return function(i){return e(t(i))}}(Object.keys,Object),sC=Object.prototype.hasOwnProperty;function oC(e){if(i=(t=e)&&t.constructor,t!==("function"==typeof i&&i.prototype||zS))return rC(e);var t,i,n=[];for(var r in Object(e))sC.call(e,r)&&"constructor"!=r&&n.push(r);return n}function aC(e){return null!=(t=e)&&NS(t.length)&&!uS(t)?nC(e):oC(e);var t}var lC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cC=/^\w*$/;var uC=ES(Object,"create");var hC=Object.prototype.hasOwnProperty;var dC=Object.prototype.hasOwnProperty;function pC(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function fC(e,t){for(var i=e.length;i--;)if(DS(e[i][0],t))return i;return-1}pC.prototype.clear=function(){this.__data__=uC?uC(null):{},this.size=0},pC.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pC.prototype.get=function(e){var t=this.__data__;if(uC){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return hC.call(t,e)?t[e]:void 0},pC.prototype.has=function(e){var t=this.__data__;return uC?void 0!==t[e]:dC.call(t,e)},pC.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=uC&&void 0===t?"__lodash_hash_undefined__":t,this};var mC=Array.prototype.splice;function gC(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}gC.prototype.clear=function(){this.__data__=[],this.size=0},gC.prototype.delete=function(e){var t=this.__data__,i=fC(t,e);return!(i<0)&&(i==t.length-1?t.pop():mC.call(t,i,1),--this.size,!0)},gC.prototype.get=function(e){var t=this.__data__,i=fC(t,e);return i<0?void 0:t[i][1]},gC.prototype.has=function(e){return fC(this.__data__,e)>-1},gC.prototype.set=function(e,t){var i=this.__data__,n=fC(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};var _C=ES(qT,"Map");function yC(e,t){var i,n,r=e.__data__;return("string"==(n=typeof(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof t?"string":"hash"]:r.map}function vC(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}vC.prototype.clear=function(){this.size=0,this.__data__={hash:new pC,map:new(_C||gC),string:new pC}},vC.prototype.delete=function(e){var t=yC(this,e).delete(e);return this.size-=t?1:0,t},vC.prototype.get=function(e){return yC(this,e).get(e)},vC.prototype.has=function(e){return yC(this,e).has(e)},vC.prototype.set=function(e,t){var i=yC(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};function xC(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],s=i.cache;if(s.has(r))return s.get(r);var o=e.apply(this,n);return i.cache=s.set(r,o)||s,o};return i.cache=new(xC.Cache||vC),i}xC.Cache=vC;var bC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wC=/\\(\\)?/g,EC=function(e){var t=xC(e,function(e){return 500===i.size&&i.clear(),e}),i=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(bC,function(e,i,n,r){t.push(n?r.replace(wC,"$1"):i||e)}),t});function AC(e,t){return sS(e)?e:function(e,t){if(sS(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!rS(e))||cC.test(e)||!lC.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:EC(function(e){return null==e?"":lS(e)}(e))}function TC(e){if("string"==typeof e||rS(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function SC(e,t){for(var i=0,n=(t=AC(t,e)).length;null!=e&&i<n;)e=e[TC(t[i++])];return i&&i==n?e:void 0}function CC(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}var IC=ZT?ZT.isConcatSpreadable:void 0;function MC(e){return sS(e)||HS(e)||!!(IC&&e&&e[IC])}function RC(e){return(null==e?0:e.length)?function(e,t,i,n,r){var s=-1,o=e.length;for(i||(i=MC),r||(r=[]);++s<o;){var a=e[s];i(a)?CC(r,a):r[r.length]=a}return r}(e):[]}function PC(e){var t=this.__data__=new gC(e);this.size=t.size}PC.prototype.clear=function(){this.__data__=new gC,this.size=0},PC.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},PC.prototype.get=function(e){return this.__data__.get(e)},PC.prototype.has=function(e){return this.__data__.has(e)},PC.prototype.set=function(e,t){var i=this.__data__;if(i instanceof gC){var n=i.__data__;if(!_C||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new vC(n)}return i.set(e,t),this.size=i.size,this};var BC=Object.prototype.propertyIsEnumerable,LC=Object.getOwnPropertySymbols,DC=LC?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,s=[];++i<n;){var o=e[i];t(o,i,e)&&(s[r++]=o)}return s}(LC(e),function(t){return BC.call(e,t)}))}:function(){return[]};function OC(e){return function(e,t,i){var n=t(e);return sS(e)?n:CC(n,i(e))}(e,aC,DC)}var kC=ES(qT,"DataView"),FC=ES(qT,"Promise"),NC=ES(qT,"Set"),zC="[object Map]",UC="[object Promise]",VC="[object Set]",GC="[object WeakMap]",jC="[object DataView]",HC=mS(kC),WC=mS(_C),$C=mS(FC),XC=mS(NC),qC=mS(AS),ZC=iS;(kC&&ZC(new kC(new ArrayBuffer(1)))!=jC||_C&&ZC(new _C)!=zC||FC&&ZC(FC.resolve())!=UC||NC&&ZC(new NC)!=VC||AS&&ZC(new AS)!=GC)&&(ZC=function(e){var t=iS(e),i="[object Object]"==t?e.constructor:void 0,n=i?mS(i):"";if(n)switch(n){case HC:return jC;case WC:return zC;case $C:return UC;case XC:return VC;case qC:return GC}return t});var KC=qT.Uint8Array;function YC(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new vC;++t<i;)this.add(e[t])}function JC(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}YC.prototype.add=YC.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},YC.prototype.has=function(e){return this.__data__.has(e)};function QC(e,t,i,n,r,s){var o=1&i,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var h=-1,d=!0,p=2&i?new YC:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var f=e[h],m=t[h];if(n)var g=o?n(m,f,h,t,e,s):n(f,m,h,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(p){if(!JC(t,function(e,t){if(o=t,!p.has(o)&&(f===e||r(f,e,i,n,s)))return p.push(t);var o})){d=!1;break}}else if(f!==m&&!r(f,m,i,n,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function eI(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function tI(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var iI=ZT?ZT.prototype:void 0,nI=iI?iI.valueOf:void 0;var rI=Object.prototype.hasOwnProperty;var sI="[object Arguments]",oI="[object Array]",aI="[object Object]",lI=Object.prototype.hasOwnProperty;function cI(e,t,i,n,r,s){var o=sS(e),a=sS(t),l=o?oI:ZC(e),c=a?oI:ZC(t),u=(l=l==sI?aI:l)==aI,h=(c=c==sI?aI:c)==aI,d=l==c;if(d&&qS(e)){if(!qS(t))return!1;o=!0,u=!1}if(d&&!u)return s||(s=new PC),o||tC(e)?QC(e,t,i,n,r,s):function(e,t,i,n,r,s,o){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new KC(e),new KC(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return DS(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=eI;case"[object Set]":var l=1&n;if(a||(a=tI),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=QC(a(e),a(t),n,r,s,o);return o.delete(e),u;case"[object Symbol]":if(nI)return nI.call(e)==nI.call(t)}return!1}(e,t,l,i,n,r,s);if(!(1&i)){var p=u&&lI.call(e,"__wrapped__"),f=h&&lI.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,g=f?t.value():t;return s||(s=new PC),r(m,g,i,n,s)}}return!!d&&(s||(s=new PC),function(e,t,i,n,r,s){var o=1&i,a=OC(e),l=a.length;if(l!=OC(t).length&&!o)return!1;for(var c=l;c--;){var u=a[c];if(!(o?u in t:rI.call(t,u)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var p=!0;s.set(e,t),s.set(t,e);for(var f=o;++c<l;){var m=e[u=a[c]],g=t[u];if(n)var _=o?n(g,m,u,t,e,s):n(m,g,u,e,t,s);if(!(void 0===_?m===g||r(m,g,i,n,s):_)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,i,n,r,s))}function uI(e,t,i,n,r){return e===t||(null==e||null==t||!nS(e)&&!nS(t)?e!=e&&t!=t:cI(e,t,i,n,uI,r))}function hI(e,t){return null!=e&&t in Object(e)}function dI(e,t){return null!=e&&function(e,t,i){for(var n=-1,r=(t=AC(t,e)).length,s=!1;++n<r;){var o=TC(t[n]);if(!(s=null!=e&&i(e,o)))break;e=e[o]}return s||++n!=r?s:!!(r=null==e?0:e.length)&&NS(r)&&LS(o,r)&&(sS(e)||HS(e))}(e,t,hI)}function pI(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var r=e[t];n[r[0]]=r[1]}return n}function fI(e,t){return uI(e,t)}function mI(e){return null==e}function gI(e,t,i,n){if(!cS(e))return e;for(var r=-1,s=(t=AC(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var l=TC(t[r]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(r!=o){var u=a[l];void 0===(c=void 0)&&(c=cS(u)?u:LS(t[r+1])?[]:{})}kS(a,l,c),a=a[l]}return e}function _I(e,t){return function(e,t,i){for(var n=-1,r=t.length,s={};++n<r;){var o=t[n],a=SC(e,o);i(a,o)&&gI(s,AC(o,e),a)}return s}(e,t,function(t,i){return dI(e,i)})}var yI=function(e){return PS(function(e,t,i){return t=FS(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,s=FS(n.length-t,0),o=Array(s);++r<s;)o[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=i(o),function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}(e,this,a)}}(e,void 0,RC),e+"")}(function(e,t){return null==e?{}:_I(e,t)});const vI=e=>void 0===e,xI=e=>"boolean"==typeof e,bI=e=>"number"==typeof e,wI=e=>mI(e);var EI,AI=Object.defineProperty,TI=Object.defineProperties,SI=Object.getOwnPropertyDescriptors,CI=Object.getOwnPropertySymbols,II=Object.prototype.hasOwnProperty,MI=Object.prototype.propertyIsEnumerable,RI=(e,t,i)=>t in e?AI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;function PI(e,i){const n=t.shallowRef();var r,s;return t.watchEffect(()=>{n.value=e()},(r=((e,t)=>{for(var i in t||(t={}))II.call(t,i)&&RI(e,i,t[i]);if(CI)for(var i of CI(t))MI.call(t,i)&&RI(e,i,t[i]);return e})({},i),s={flush:null!=void 0?void 0:"sync"},TI(r,SI(s)))),t.readonly(n)}const BI="undefined"!=typeof window,LI=()=>{};function DI(e){return"function"==typeof e?e():t.unref(e)}function OI(e){return!!t.getCurrentScope()&&(t.onScopeDispose(e),!0)}function kI(e){var t;const i=DI(e);return null!=(t=null==i?void 0:i.$el)?t:i}BI&&(null==(EI=null==window?void 0:window.navigator)?void 0:EI.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const FI=BI?window:void 0;function NI(...e){let i,n,r,s;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,s]=e,i=FI):[i,n,r,s]=e,!i)return LI;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(e=>e()),o.length=0},l=t.watch(()=>[kI(i),DI(s)],([e,t])=>{a(),e&&o.push(...n.flatMap(i=>r.map(n=>((e,t,i,n)=>(e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)))(e,i,n,t))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return OI(c),c}function zI(e,i=!1){const n=t.ref(),r=()=>n.value=Boolean(e());return r(),function(e,i=!0){t.getCurrentInstance()?t.onMounted(e):i?e():t.nextTick(e)}(r,i),n}const UI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},VI="__vueuse_ssr_handlers__";UI[VI]=UI[VI]||{};var GI,jI,HI=Object.getOwnPropertySymbols,WI=Object.prototype.hasOwnProperty,$I=Object.prototype.propertyIsEnumerable;function XI(e,i,n={}){const r=n,{window:s=FI}=r,o=((e,t)=>{var i={};for(var n in e)WI.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&HI)for(var n of HI(e))t.indexOf(n)<0&&$I.call(e,n)&&(i[n]=e[n]);return i})(r,["window"]);let a;const l=zI(()=>s&&"ResizeObserver"in s),c=()=>{a&&(a.disconnect(),a=void 0)},u=t.watch(()=>kI(e),e=>{c(),l.value&&s&&e&&(a=new ResizeObserver(i),a.observe(e,o))},{immediate:!0,flush:"post"}),h=()=>{c(),u()};return OI(h),{isSupported:l,stop:h}}(jI=GI||(GI={})).UP="UP",jI.RIGHT="RIGHT",jI.DOWN="DOWN",jI.LEFT="LEFT",jI.NONE="NONE";var qI=Object.defineProperty,ZI=Object.getOwnPropertySymbols,KI=Object.prototype.hasOwnProperty,YI=Object.prototype.propertyIsEnumerable,JI=(e,t,i)=>t in e?qI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;((e,t)=>{for(var i in t||(t={}))KI.call(t,i)&&JI(e,i,t[i]);if(ZI)for(var i of ZI(t))YI.call(t,i)&&JI(e,i,t[i])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var QI={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const eM=e=>(i,n)=>tM(i,n,t.unref(e)),tM=(e,t,i)=>function(e,t,i){var n=null==e?void 0:SC(e,t);return void 0===n?i:n}(i,e,e).replace(/\{(\w+)\}/g,(e,i)=>{var n;return`${null!=(n=null==t?void 0:t[i])?n:`{${i}}`}`}),iM=Symbol("localeContextKey"),nM=e=>{const i=t.inject(iM,t.ref());return(e=>({lang:t.computed(()=>t.unref(e).name),locale:t.isRef(e)?e:t.ref(e),t:eM(e)}))(t.computed(()=>i.value||QI))},rM="__epPropKey",sM=(e,i)=>{if(!WT(e)||WT(n=e)&&n[rM])return e;var n;const{values:r,required:s,default:o,type:a,validator:l}=e,c=r||l?n=>{let s=!1,a=[];if(r&&(a=Array.from(r),VT(e,"default")&&a.push(o),s||(s=a.includes(n))),l&&(s||(s=l(n))),!s&&a.length>0){const e=[...new Set(a)].map(e=>JSON.stringify(e)).join(", ");t.warn(`Invalid prop: validation failed${i?` for prop "${i}"`:""}. Expected one of [${e}], got value ${JSON.stringify(n)}.`)}return s}:void 0,u={type:a,required:!!s,validator:c,[rM]:!0};return VT(e,"default")&&(u.default=o),u},oM=e=>pI(Object.entries(e).map(([e,t])=>[e,sM(t,e)])),aM=["","default","small","large"],lM=sM({type:String,values:aM,required:!1}),cM=Symbol("size"),uM="update:modelValue",hM="change",dM="input";var pM=(e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i};const fM=(e="")=>e.split(" ").filter(e=>!!e.trim()),mM=(e,t)=>{e&&t.trim()&&e.classList.remove(...fM(t))};function gM(e,t="px"){return e?bI(e)||HT(i=e)&&!Number.isNaN(Number(i))?`${e}${t}`:HT(e)?e:void 0:"";var i}const _M=(e,t)=>{if(e.install=i=>{for(const n of[e,...Object.values(null!=t?t:{})])i.component(n.name,n)},t)for(const[i,n]of Object.entries(t))e[i]=n;return e},yM=e=>(e.install=zT,e),vM=oM({size:{type:[Number,String]},color:{type:String}}),xM=t.defineComponent({name:"ElIcon",inheritAttrs:!1});const bM=_M(pM(t.defineComponent({...xM,props:vM,setup(e){const i=e,n=NT("icon"),r=t.computed(()=>{const{size:e,color:t}=i;return e||t?{fontSize:vI(e)?void 0:gM(e),"--color":t}:{}});return(e,i)=>(t.openBlock(),t.createElementBlock("i",t.mergeProps({class:t.unref(n).b(),style:t.unref(r)},e.$attrs),[t.renderSlot(e.$slots,"default")],16))}}),[["__file","icon.vue"]]));
35
- /*! Element Plus Icons Vue v2.3.2 */var wM=t.defineComponent({name:"ArrowUp",__name:"arrow-up",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}),EM=t.defineComponent({name:"CaretRight",__name:"caret-right",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}),AM=t.defineComponent({name:"CircleCheck",__name:"circle-check",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),t.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}),TM=t.defineComponent({name:"CircleClose",__name:"circle-close",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}),SM=t.defineComponent({name:"Hide",__name:"hide",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),t.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}),CM=t.defineComponent({name:"Loading",__name:"loading",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}),IM=t.defineComponent({name:"Search",__name:"search",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}),MM=t.defineComponent({name:"View",__name:"view",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))});const RM=[String,Object,Function],PM={validating:CM,success:AM,error:TM};let BM;const LM={height:"0",visibility:"hidden",overflow:BI&&/firefox/i.test(window.navigator.userAgent)?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},DM=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"];function OM(e,t=1,i){var n,r;BM||(BM=document.createElement("textarea"),(null!=(n=e.parentNode)?n:document.body).appendChild(BM));const{paddingSize:s,borderSize:o,boxSizing:a,contextStyle:l}=function(e){const t=window.getComputedStyle(e),i=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:DM.map(e=>[e,t.getPropertyValue(e)]),paddingSize:n,borderSize:r,boxSizing:i}}(e);l.forEach(([e,t])=>null==BM?void 0:BM.style.setProperty(e,t)),Object.entries(LM).forEach(([e,t])=>null==BM?void 0:BM.style.setProperty(e,t,"important")),BM.value=e.value||e.placeholder||"";let c=BM.scrollHeight;const u={};"border-box"===a?c+=o:"content-box"===a&&(c-=s),BM.value="";const h=BM.scrollHeight-s;if(bI(t)){let e=h*t;"border-box"===a&&(e=e+s+o),c=Math.max(e,c),u.minHeight=`${e}px`}if(bI(i)){let e=h*i;"border-box"===a&&(e=e+s+o),c=Math.min(e,c)}return u.height=`${c}px`,null==(r=BM.parentNode)||r.removeChild(BM),BM=void 0,u}const kM=oM({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),FM=e=>yI(kM,e),NM=oM({id:{type:String,default:void 0},size:lM,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:RM,default:TM},showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:RM},prefixIcon:{type:RM},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})},autofocus:Boolean,rows:{type:Number,default:2},...FM(["ariaLabel"]),inputmode:{type:String,default:void 0},name:String}),zM={[uM]:e=>HT(e),input:e=>HT(e),change:e=>HT(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},UM=["class","style"],VM=/^on[A-Z]/,GM={prefix:Math.floor(1e4*Math.random()),current:0},jM=Symbol("elIdInjection"),HM=e=>{const i=t.getCurrentInstance()?t.inject(jM,GM):GM,n=FT();return PI(()=>t.unref(e)||`${n.value}-id-${i.prefix}-${i.current++}`)},WM=Symbol("formContextKey"),$M=Symbol("formItemContextKey"),XM=()=>({form:t.inject(WM,void 0),formItem:t.inject($M,void 0)}),qM=(e,{formItemContext:i,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=t.ref(!1)),r||(r=t.ref(!1));const s=t.getCurrentInstance(),o=t.ref();let a;const l=t.computed(()=>{var t;return!!(!e.label&&!e.ariaLabel&&i&&i.inputIds&&(null==(t=i.inputIds)?void 0:t.length)<=1)});return t.onMounted(()=>{a=t.watch([t.toRef(e,"id"),n],([e,t])=>{const n=null!=e?e:t?void 0:HM().value;n!==o.value&&((null==i?void 0:i.removeInputId)&&!(()=>{let e=null==s?void 0:s.parent;for(;e;){if("ElFormItem"===e.type.name)return!1;if("ElLabelWrap"===e.type.name)return!0;e=e.parent}return!1})()&&(o.value&&i.removeInputId(o.value),(null==r?void 0:r.value)||t||!n||i.addInputId(n)),o.value=n)},{immediate:!0})}),t.onUnmounted(()=>{a&&a(),(null==i?void 0:i.removeInputId)&&o.value&&i.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},ZM=e=>{const i=t.getCurrentInstance();return t.computed(()=>{var t,n;return null==(n=null==(t=null==i?void 0:i.proxy)?void 0:t.$props)?void 0:n[e]})},KM=(e,i={})=>{const n=t.ref(void 0),r=i.prop?n:ZM("size"),s=i.global?n:(()=>{const e=t.inject(cM,{});return t.computed(()=>t.unref(e.size)||"")})(),o=i.form?{size:void 0}:t.inject(WM,void 0),a=i.formItem?{size:void 0}:t.inject($M,void 0);return t.computed(()=>r.value||t.unref(e)||(null==a?void 0:a.size)||(null==o?void 0:o.size)||s.value||"")},YM=e=>{const i=ZM("disabled"),n=t.inject(WM,void 0);return t.computed(()=>i.value||t.unref(e)||(null==n?void 0:n.disabled)||!1)};const JM=t.defineComponent({name:"ElInput",inheritAttrs:!1});const QM=_M(pM(t.defineComponent({...JM,props:NM,emits:zM,setup(e,{expose:i,emit:n}){const r=e,s=t.useAttrs(),o=((e={})=>{const{excludeListeners:i=!1,excludeKeys:n}=e,r=t.computed(()=>((null==n?void 0:n.value)||[]).concat(UM)),s=t.getCurrentInstance();return s?t.computed(()=>{var e;return pI(Object.entries(null==(e=s.proxy)?void 0:e.$attrs).filter(([e])=>!(r.value.includes(e)||i&&VM.test(e))))}):t.computed(()=>({}))})(),a=t.useSlots(),l=t.computed(()=>["textarea"===r.type?g.b():m.b(),m.m(p.value),m.is("disabled",f.value),m.is("exceed",z.value),{[m.b("group")]:a.prepend||a.append,[m.m("prefix")]:a.prefix||r.prefixIcon,[m.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[m.bm("suffix","password-clear")]:O.value&&k.value,[m.b("hidden")]:"hidden"===r.type},s.class]),c=t.computed(()=>[m.e("wrapper"),m.is("focus",T.value)]),{form:u,formItem:h}=XM(),{inputId:d}=qM(r,{formItemContext:h}),p=KM(),f=YM(),m=NT("input"),g=NT("textarea"),_=t.shallowRef(),y=t.shallowRef(),v=t.ref(!1),x=t.ref(!1),b=t.ref(),w=t.shallowRef(r.inputStyle),E=t.computed(()=>_.value||y.value),{wrapperRef:A,isFocused:T,handleFocus:S,handleBlur:C}=function(e,{disabled:i,beforeFocus:n,afterFocus:r,beforeBlur:s,afterBlur:o}={}){const a=t.getCurrentInstance(),{emit:l}=a,c=t.shallowRef(),u=t.ref(!1),h=e=>{const s=!!jT(n)&&n(e);t.unref(i)||u.value||s||(u.value=!0,l("focus",e),null==r||r())},d=e=>{var n;const r=!!jT(s)&&s(e);t.unref(i)||e.relatedTarget&&(null==(n=c.value)?void 0:n.contains(e.relatedTarget))||r||(u.value=!1,l("blur",e),null==o||o())};return t.watch([c,()=>t.unref(i)],([e,t])=>{e&&(t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1"))}),NI(c,"focus",h,!0),NI(c,"blur",d,!0),NI(c,"click",n=>{var r,s;t.unref(i)||(e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}})(n.target)||(null==(r=c.value)?void 0:r.contains(document.activeElement))&&c.value!==document.activeElement||null==(s=e.value)||s.focus()},!0),{isFocused:u,wrapperRef:c,handleFocus:h,handleBlur:d}}(E,{disabled:f,afterBlur(){var e;r.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"blur").catch(e=>{}))}}),I=t.computed(()=>{var e;return null!=(e=null==u?void 0:u.statusIcon)&&e}),M=t.computed(()=>(null==h?void 0:h.validateState)||""),R=t.computed(()=>M.value&&PM[M.value]),P=t.computed(()=>x.value?MM:SM),B=t.computed(()=>[s.style]),L=t.computed(()=>[r.inputStyle,w.value,{resize:r.resize}]),D=t.computed(()=>mI(r.modelValue)?"":String(r.modelValue)),O=t.computed(()=>r.clearable&&!f.value&&!r.readonly&&!!D.value&&(T.value||v.value)),k=t.computed(()=>r.showPassword&&!f.value&&!!D.value),F=t.computed(()=>r.showWordLimit&&!!r.maxlength&&("text"===r.type||"textarea"===r.type)&&!f.value&&!r.readonly&&!r.showPassword),N=t.computed(()=>D.value.length),z=t.computed(()=>!!F.value&&N.value>Number(r.maxlength)),U=t.computed(()=>!!a.suffix||!!r.suffixIcon||O.value||r.showPassword||F.value||!!M.value&&I.value),[V,G]=function(e){let t;return[function(){if(null==e.value)return;const{selectionStart:i,selectionEnd:n,value:r}=e.value;if(null==i||null==n)return;const s=r.slice(0,Math.max(0,i)),o=r.slice(Math.max(0,n));t={selectionStart:i,selectionEnd:n,value:r,beforeTxt:s,afterTxt:o}},function(){if(null==e.value||null==t)return;const{value:i}=e.value,{beforeTxt:n,afterTxt:r,selectionStart:s}=t;if(null==n||null==r||null==s)return;let o=i.length;if(i.endsWith(r))o=i.length-r.length;else if(i.startsWith(n))o=n.length;else{const e=n[s-1],t=i.indexOf(e,s-1);-1!==t&&(o=t+1)}e.value.setSelectionRange(o,o)}]}(_);XI(y,e=>{if(H(),!F.value||"both"!==r.resize)return;const t=e[0],{width:i}=t.contentRect;b.value={right:`calc(100% - ${i+15+6}px)`}});const j=()=>{const{type:e,autosize:i}=r;if(BI&&"textarea"===e&&y.value)if(i){const e=WT(i)?i.minRows:void 0,n=WT(i)?i.maxRows:void 0,r=OM(y.value,e,n);w.value={overflowY:"hidden",...r},t.nextTick(()=>{y.value.offsetHeight,w.value=r})}else w.value={minHeight:OM(y.value).minHeight}},H=(e=>{let t=!1;return()=>{var i;if(t||!r.autosize)return;null===(null==(i=y.value)?void 0:i.offsetParent)||(setTimeout(e),t=!0)}})(j),W=()=>{const e=E.value,t=r.formatter?r.formatter(D.value):D.value;e&&e.value!==t&&(e.value=t)},$=async e=>{V();let{value:i}=e.target;r.formatter&&r.parser&&(i=r.parser(i)),q.value||(i!==D.value?(n(uM,i),n(dM,i),await t.nextTick(),W(),G()):W())},X=e=>{let{value:t}=e.target;r.formatter&&r.parser&&(t=r.parser(t)),n(hM,t)},{isComposing:q,handleCompositionStart:Z,handleCompositionUpdate:K,handleCompositionEnd:Y}=function({afterComposition:e,emit:i}){const n=t.ref(!1),r=e=>{var t;null==i||i("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,s=r[r.length-1]||"";n.value=!(e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e))(s)},s=r=>{null==i||i("compositionend",r),n.value&&(n.value=!1,t.nextTick(()=>e(r)))};return{isComposing:n,handleComposition:e=>{"compositionend"===e.type?s(e):r(e)},handleCompositionStart:e=>{null==i||i("compositionstart",e),n.value=!0},handleCompositionUpdate:r,handleCompositionEnd:s}}({emit:n,afterComposition:$}),J=()=>{V(),x.value=!x.value,setTimeout(G)},Q=e=>{v.value=!1,n("mouseleave",e)},ee=e=>{v.value=!0,n("mouseenter",e)},te=e=>{n("keydown",e)},ie=()=>{n(uM,""),n(hM,""),n("clear"),n(dM,"")};return t.watch(()=>r.modelValue,()=>{var e;t.nextTick(()=>j()),r.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"change").catch(e=>{}))}),t.watch(D,()=>W()),t.watch(()=>r.type,async()=>{await t.nextTick(),W(),j()}),t.onMounted(()=>{!r.formatter&&r.parser,W(),t.nextTick(j)}),i({input:_,textarea:y,ref:E,textareaStyle:L,autosize:t.toRef(r,"autosize"),isComposing:q,focus:()=>{var e;return null==(e=E.value)?void 0:e.focus()},blur:()=>{var e;return null==(e=E.value)?void 0:e.blur()},select:()=>{var e;null==(e=E.value)||e.select()},clear:ie,resizeTextarea:j}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(l),{[t.unref(m).bm("group","append")]:e.$slots.append,[t.unref(m).bm("group","prepend")]:e.$slots.prepend}]),style:t.normalizeStyle(t.unref(B)),onMouseenter:ee,onMouseleave:Q},[t.createCommentVNode(" input "),"textarea"!==e.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createCommentVNode(" prepend slot "),e.$slots.prepend?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(m).be("group","prepend"))},[t.renderSlot(e.$slots,"prepend")],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{ref_key:"wrapperRef",ref:A,class:t.normalizeClass(t.unref(c))},[t.createCommentVNode(" prefix slot "),e.$slots.prefix||e.prefixIcon?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(t.unref(m).e("prefix"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("prefix-inner"))},[t.renderSlot(e.$slots,"prefix"),e.prefixIcon?(t.openBlock(),t.createBlock(t.unref(bM),{key:0,class:t.normalizeClass(t.unref(m).e("icon"))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.prefixIcon)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],2)],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("input",t.mergeProps({id:t.unref(d),ref_key:"input",ref:_,class:t.unref(m).e("inner")},t.unref(o),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?x.value?"text":"password":e.type,disabled:t.unref(f),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:t.unref(Z),onCompositionupdate:t.unref(K),onCompositionend:t.unref(Y),onInput:$,onChange:X,onKeydown:te}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),t.createCommentVNode(" suffix slot "),t.unref(U)?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(t.unref(m).e("suffix"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("suffix-inner"))},[t.unref(O)&&t.unref(k)&&t.unref(F)?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"suffix"),e.suffixIcon?(t.openBlock(),t.createBlock(t.unref(bM),{key:0,class:t.normalizeClass(t.unref(m).e("icon"))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.suffixIcon)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],64)),t.unref(O)?(t.openBlock(),t.createBlock(t.unref(bM),{key:1,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("clear")]),onMousedown:t.withModifiers(t.unref(zT),["prevent"]),onClick:ie},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onMousedown"])):t.createCommentVNode("v-if",!0),t.unref(k)?(t.openBlock(),t.createBlock(t.unref(bM),{key:2,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("password")]),onClick:J},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(P))))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0),t.unref(F)?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(t.unref(m).e("count"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("count-inner"))},t.toDisplayString(t.unref(N))+" / "+t.toDisplayString(e.maxlength),3)],2)):t.createCommentVNode("v-if",!0),t.unref(M)&&t.unref(R)&&t.unref(I)?(t.openBlock(),t.createBlock(t.unref(bM),{key:4,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("validateIcon"),t.unref(m).is("loading","validating"===t.unref(M))])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(R))))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],2)],2)):t.createCommentVNode("v-if",!0)],2),t.createCommentVNode(" append slot "),e.$slots.append?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(t.unref(m).be("group","append"))},[t.renderSlot(e.$slots,"append")],2)):t.createCommentVNode("v-if",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createCommentVNode(" textarea "),t.createElementVNode("textarea",t.mergeProps({id:t.unref(d),ref_key:"textarea",ref:y,class:[t.unref(g).e("inner"),t.unref(m).is("focus",t.unref(T))]},t.unref(o),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:t.unref(f),readonly:e.readonly,autocomplete:e.autocomplete,style:t.unref(L),"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:t.unref(Z),onCompositionupdate:t.unref(K),onCompositionend:t.unref(Y),onInput:$,onFocus:t.unref(S),onBlur:t.unref(C),onChange:X,onKeydown:te}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),t.unref(F)?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(b.value),class:t.normalizeClass(t.unref(m).e("count"))},t.toDisplayString(t.unref(N))+" / "+t.toDisplayString(e.maxlength),7)):t.createCommentVNode("v-if",!0)],64))],38))}}),[["__file","input.vue"]])),eR={enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",numpadEnter:"NumpadEnter"},tR=({from:e,replacement:i,scope:n,version:r,ref:s,type:o="API"},a)=>{t.watch(()=>t.unref(a),e=>{},{immediate:!0})},iR={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:lM,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...FM(["ariaControls"])},nR={[uM]:e=>HT(e)||bI(e)||xI(e),change:e=>HT(e)||bI(e)||xI(e)},rR=Symbol("checkboxGroupContextKey"),sR=(e,{model:i,isLimitExceeded:n,hasOwnLabel:r,isDisabled:s,isLabeledByFormItem:o})=>{const a=t.inject(rR,void 0),{formItem:l}=XM(),{emit:c}=t.getCurrentInstance();function u(t){var i,n,r,s;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(n=null!=(i=e.trueValue)?i:e.trueLabel)||n:null!=(s=null!=(r=e.falseValue)?r:e.falseLabel)&&s}const h=t.computed(()=>(null==a?void 0:a.validateEvent)||e.validateEvent);return t.watch(()=>e.modelValue,()=>{h.value&&(null==l||l.validate("change").catch(e=>{}))}),{handleChange:function(e){if(n.value)return;const t=e.target;c(hM,u(t.checked),e)},onClickRoot:async function(a){if(!n.value&&!r.value&&!s.value&&o.value){a.composedPath().some(e=>"LABEL"===e.tagName)||(i.value=u([!1,e.falseValue,e.falseLabel].includes(i.value)),await t.nextTick(),function(e,t){c(hM,u(e),t)}(i.value,a))}}}},oR=(e,i)=>{const{formItem:n}=XM(),{model:r,isGroup:s,isLimitExceeded:o}=(e=>{const i=t.ref(!1),{emit:n}=t.getCurrentInstance(),r=t.inject(rR,void 0),s=t.computed(()=>!1===vI(r)),o=t.ref(!1),a=t.computed({get(){var t,n;return s.value?null==(t=null==r?void 0:r.modelValue)?void 0:t.value:null!=(n=e.modelValue)?n:i.value},set(e){var t,l;s.value&&GT(e)?(o.value=void 0!==(null==(t=null==r?void 0:r.max)?void 0:t.value)&&e.length>(null==r?void 0:r.max.value)&&e.length>a.value.length,!1===o.value&&(null==(l=null==r?void 0:r.changeEvent)||l.call(r,e))):(n(uM,e),i.value=e)}});return{model:a,isGroup:s,isLimitExceeded:o}})(e),{isFocused:a,isChecked:l,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:h,actualValue:d}=((e,i,{model:n})=>{const r=t.inject(rR,void 0),s=t.ref(!1),o=t.computed(()=>wI(e.value)?e.label:e.value),a=t.computed(()=>{const i=n.value;return xI(i)?i:GT(i)?WT(o.value)?i.map(t.toRaw).some(e=>fI(e,o.value)):i.map(t.toRaw).includes(o.value):null!=i?i===e.trueValue||i===e.trueLabel:!!i});return{checkboxButtonSize:KM(t.computed(()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value}),{prop:!0}),isChecked:a,isFocused:s,checkboxSize:KM(t.computed(()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),hasOwnLabel:t.computed(()=>!!i.default||!wI(o.value)),actualValue:o}})(e,i,{model:r}),{isDisabled:p}=(({model:e,isChecked:i})=>{const n=t.inject(rR,void 0),r=t.computed(()=>{var t,r;const s=null==(t=null==n?void 0:n.max)?void 0:t.value,o=null==(r=null==n?void 0:n.min)?void 0:r.value;return!vI(s)&&e.value.length>=s&&!i.value||!vI(o)&&e.value.length<=o&&i.value});return{isDisabled:YM(t.computed(()=>(null==n?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}})({model:r,isChecked:l}),{inputId:f,isLabeledByFormItem:m}=qM(e,{formItemContext:n,disableIdGeneration:h,disableIdManagement:s}),{handleChange:g,onClickRoot:_}=sR(e,{model:r,isLimitExceeded:o,hasOwnLabel:h,isDisabled:p,isLabeledByFormItem:m});var y,v;return e.checked&&(GT(r.value)&&!r.value.includes(d.value)?r.value.push(d.value):r.value=null==(v=null!=(y=e.trueValue)?y:e.trueLabel)||v),tR({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>s.value&&wI(e.value))),tR({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>!!e.trueLabel)),tR({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>!!e.falseLabel)),{inputId:f,isLabeledByFormItem:m,isChecked:l,isDisabled:p,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:h,model:r,actualValue:d,handleChange:g,onClickRoot:_}},aR=t.defineComponent({name:"ElCheckbox"});var lR=pM(t.defineComponent({...aR,props:iR,emits:nR,setup(e){const i=e,n=t.useSlots(),{inputId:r,isLabeledByFormItem:s,isChecked:o,isDisabled:a,isFocused:l,checkboxSize:c,hasOwnLabel:u,model:h,actualValue:d,handleChange:p,onClickRoot:f}=oR(i,n),m=NT("checkbox"),g=t.computed(()=>[m.b(),m.m(c.value),m.is("disabled",a.value),m.is("bordered",i.border),m.is("checked",o.value)]),_=t.computed(()=>[m.e("input"),m.is("disabled",a.value),m.is("checked",o.value),m.is("indeterminate",i.indeterminate),m.is("focus",l.value)]);return(e,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(!t.unref(u)&&t.unref(s)?"span":"label"),{class:t.normalizeClass(t.unref(g)),"aria-controls":e.indeterminate?e.ariaControls:null,onClick:t.unref(f)},{default:t.withCtx(()=>{var i,n,s,o;return[t.createElementVNode("span",{class:t.normalizeClass(t.unref(_))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,id:t.unref(r),"onUpdate:modelValue":e=>t.isRef(h)?h.value=e:null,class:t.normalizeClass(t.unref(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:t.unref(a),"true-value":null==(n=null!=(i=e.trueValue)?i:e.trueLabel)||n,"false-value":null!=(o=null!=(s=e.falseValue)?s:e.falseLabel)&&o,onChange:t.unref(p),onFocus:e=>l.value=!0,onBlur:e=>l.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(h)]]):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,id:t.unref(r),"onUpdate:modelValue":e=>t.isRef(h)?h.value=e:null,class:t.normalizeClass(t.unref(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:t.unref(a),value:t.unref(d),name:e.name,tabindex:e.tabindex,onChange:t.unref(p),onFocus:e=>l.value=!0,onBlur:e=>l.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(h)]]),t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("inner"))},null,2)],2),t.unref(u)?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(t.unref(m).e("label"))},[t.renderSlot(e.$slots,"default"),e.$slots.default?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],2)):t.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}}),[["__file","checkbox.vue"]]);const cR=t.defineComponent({name:"ElCheckboxButton"});var uR=pM(t.defineComponent({...cR,props:iR,emits:nR,setup(e){const i=e,n=t.useSlots(),{isFocused:r,isChecked:s,isDisabled:o,checkboxButtonSize:a,model:l,actualValue:c,handleChange:u}=oR(i,n),h=t.inject(rR,void 0),d=NT("checkbox"),p=t.computed(()=>{var e,t,i,n;const r=null!=(t=null==(e=null==h?void 0:h.fill)?void 0:e.value)?t:"";return{backgroundColor:r,borderColor:r,color:null!=(n=null==(i=null==h?void 0:h.textColor)?void 0:i.value)?n:"",boxShadow:r?`-1px 0 0 0 ${r}`:void 0}}),f=t.computed(()=>[d.b("button"),d.bm("button",a.value),d.is("disabled",o.value),d.is("checked",s.value),d.is("focus",r.value)]);return(e,i)=>{var n,a,h,m;return t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(f))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,"onUpdate:modelValue":e=>t.isRef(l)?l.value=e:null,class:t.normalizeClass(t.unref(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:t.unref(o),"true-value":null==(a=null!=(n=e.trueValue)?n:e.trueLabel)||a,"false-value":null!=(m=null!=(h=e.falseValue)?h:e.falseLabel)&&m,onChange:t.unref(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(l)]]):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,"onUpdate:modelValue":e=>t.isRef(l)?l.value=e:null,class:t.normalizeClass(t.unref(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:t.unref(o),value:t.unref(c),onChange:t.unref(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(l)]]),e.$slots.default||e.label?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(t.unref(d).be("button","inner")),style:t.normalizeStyle(t.unref(s)?t.unref(p):void 0)},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],6)):t.createCommentVNode("v-if",!0)],2)}}}),[["__file","checkbox-button.vue"]]);const hR=oM({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:lM,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:Array},props:{type:Object,default:()=>pR},...FM(["ariaLabel"])}),dR={[uM]:e=>GT(e),change:e=>GT(e)},pR={label:"label",value:"value",disabled:"disabled"},fR=t.defineComponent({name:"ElCheckboxGroup"});var mR=pM(t.defineComponent({...fR,props:hR,emits:dR,setup(e,{emit:i}){const n=e,r=NT("checkbox"),{formItem:s}=XM(),{inputId:o,isLabeledByFormItem:a}=qM(n,{formItemContext:s}),l=async e=>{i(uM,e),await t.nextTick(),i(hM,e)},c=t.computed({get:()=>n.modelValue,set(e){l(e)}}),u=t.computed(()=>({...pR,...n.props}));return t.provide(rR,{...yI(t.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),t.watch(()=>n.modelValue,(e,t)=>{n.validateEvent&&!fI(e,t)&&(null==s||s.validate("change").catch(e=>{}))}),(e,i)=>{var l;return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{id:t.unref(o),class:t.normalizeClass(t.unref(r).b("group")),role:"group","aria-label":t.unref(a)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":t.unref(a)?null==(l=t.unref(s))?void 0:l.labelId:void 0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(e,i)=>(t.openBlock(),t.createBlock(lR,t.mergeProps({key:i},(e=>{const t={label:e[u.value.label],value:e[u.value.value],disabled:e[u.value.disabled]};return{...e,...t}})(e)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),[["__file","checkbox-group.vue"]]);const gR=_M(lR,{CheckboxButton:uR,CheckboxGroup:mR});yM(uR),yM(mR);const _R=t.defineComponent({name:"ElCollapseTransition"});const yR=_M(pM(t.defineComponent({..._R,setup(e){const i=NT("collapse-transition"),n=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},r={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame(()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:0!==e.scrollHeight?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"})},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){n(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){n(e)},leaveCancelled(e){n(e)}};return(e,n)=>(t.openBlock(),t.createBlock(t.Transition,t.mergeProps({name:t.unref(i).b()},t.toHandlers(r)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["name"]))}}),[["__file","collapse-transition.vue"]])),vR=t.defineComponent({name:"ImgEmpty"});var xR=pM(t.defineComponent({...vR,setup(e){const i=NT("empty"),n=HM();return(e,r)=>(t.openBlock(),t.createElementBlock("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`linearGradient-1-${t.unref(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),t.createElementVNode("linearGradient",{id:`linearGradient-2-${t.unref(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),t.createElementVNode("rect",{id:`path-3-${t.unref(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),t.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.createElementVNode("g",{transform:"translate(-1268.000000, -535.000000)"},[t.createElementVNode("g",{transform:"translate(1268.000000, 535.000000)"},[t.createElementVNode("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${t.unref(i).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),t.createElementVNode("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),t.createElementVNode("rect",{fill:`url(#linearGradient-1-${t.unref(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),t.createElementVNode("rect",{fill:`url(#linearGradient-2-${t.unref(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),t.createElementVNode("g",{transform:"translate(53.000000, 45.000000)"},[t.createElementVNode("use",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${t.unref(n)}`},null,8,["fill","xlink:href"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${t.unref(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}}),[["__file","img-empty.vue"]]);const bR=oM({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),wR=t.defineComponent({name:"ElEmpty"});const ER=_M(pM(t.defineComponent({...wR,props:bR,setup(e){const i=e,{t:n}=nM(),r=NT("empty"),s=t.computed(()=>i.description||n("el.table.emptyText")),o=t.computed(()=>({width:gM(i.imageSize)}));return(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(r).b())},[t.createElementVNode("div",{class:t.normalizeClass(t.unref(r).e("image")),style:t.normalizeStyle(t.unref(o))},[e.image?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image,ondragstart:"return false"},null,8,["src"])):t.renderSlot(e.$slots,"image",{key:1},()=>[t.createVNode(xR)])],6),t.createElementVNode("div",{class:t.normalizeClass(t.unref(r).e("description"))},[e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("p",{key:1},t.toDisplayString(t.unref(s)),1))],2),e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(r).e("bottom"))},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("v-if",!0)],2))}}),[["__file","empty.vue"]])),AR=Symbol("ElSelect"),TR=oM({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:aM,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),SR=t.defineComponent({name:"ElText"});const CR=_M(pM(t.defineComponent({...SR,props:TR,setup(e){const i=e,n=t.ref(),r=KM(),s=NT("text"),o=t.computed(()=>[s.b(),s.m(i.type),s.m(r.value),s.is("truncated",i.truncated),s.is("line-clamp",!vI(i.lineClamp))]),a=()=>{var e,r,s,o,a,l,c;if(t.useAttrs().title)return;let u=!1;const h=(null==(e=n.value)?void 0:e.textContent)||"";if(i.truncated){const e=null==(r=n.value)?void 0:r.offsetWidth,t=null==(s=n.value)?void 0:s.scrollWidth;e&&t&&t>e&&(u=!0)}else if(!vI(i.lineClamp)){const e=null==(o=n.value)?void 0:o.offsetHeight,t=null==(a=n.value)?void 0:a.scrollHeight;e&&t&&t>e&&(u=!0)}u?null==(l=n.value)||l.setAttribute("title",h):null==(c=n.value)||c.removeAttribute("title")};return t.onMounted(a),t.onUpdated(a),(e,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{ref_key:"textRef",ref:n,class:t.normalizeClass(t.unref(o)),style:t.normalizeStyle({"-webkit-line-clamp":e.lineClamp})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["class","style"]))}}),[["__file","text.vue"]])),IR="$treeNodeId",MR=function(e,t){t&&!t[IR]&&Object.defineProperty(t,IR,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},RR=(e,t)=>null==t?void 0:t[e||IR],PR=(e,t,i)=>{const n=e.value.currentNode;i();const r=e.value.currentNode;n!==r&&t("current-change",r?r.data:null,r)},BR=e=>{let t=!0,i=!0,n=!0;for(let r=0,s=e.length;r<s;r++){const s=e[r];(!0!==s.checked||s.indeterminate)&&(t=!1,s.disabled||(n=!1)),(!1!==s.checked||s.indeterminate)&&(i=!1)}return{all:t,none:i,allWithoutDisable:n,half:!t&&!i}},LR=function(e){if(0===e.childNodes.length||e.loading)return;const{all:t,none:i,half:n}=BR(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):n?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1);const r=e.parent;r&&0!==r.level&&(e.store.checkStrictly||LR(r))},DR=function(e,t){const i=e.store.props,n=e.data||{},r=i[t];if(jT(r))return r(n,e);if(HT(r))return n[r];if(vI(r)){const e=n[t];return vI(e)?"":e}},OR=function(e,t){e.forEach(e=>{e.canFocus=t,OR(e.childNodes,t)})};let kR=0;class FR{constructor(e){this.isLeafByUser=void 0,this.isLeaf=void 0,this.id=kR++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const t in e)VT(e,t)&&(this[t]=e[t]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var e;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const i=t.props;if(i&&void 0!==i.isLeaf){const e=DR(this,"isLeaf");xI(e)&&(this.isLeafByUser=e)}if(!0!==t.lazy&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),GT(this.data)||MR(this,this.data),!this.data)return;const n=t.defaultExpandedKeys,r=t.key;r&&!mI(this.key)&&n&&n.includes(this.key)&&this.expand(null,t.autoExpandParent),r&&void 0!==t.currentNodeKey&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),1!==this.level&&!0!==(null==(e=this.parent)?void 0:e.expanded)||(this.canFocus=!0)}setData(e){let t;GT(e)||MR(this,e),this.data=e,this.childNodes=[],t=0===this.level&&GT(this.data)?this.data:DR(this,"children")||[];for(let i=0,n=t.length;i<n;i++)this.insertChild({data:t[i]})}get label(){return DR(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return DR(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some(i=>i===e||t&&i.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,i,n){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof FR)){if(!n){const t=this.getChildren(!0);(null==t?void 0:t.includes(e.data))||(vI(i)||i<0?null==t||t.push(e.data):null==t||t.splice(i,0,e.data))}Object.assign(e,{parent:this,store:this.store}),(e=t.reactive(new FR(e)))instanceof FR&&e.initialize()}e.level=this.level+1,vI(i)||i<0?this.childNodes.push(e):this.childNodes.splice(i,0,e),this.updateLeafState()}insertBefore(e,t){let i;t&&(i=this.childNodes.indexOf(t)),this.insertChild(e,i)}insertAfter(e,t){let i;t&&(i=this.childNodes.indexOf(t),-1!==i&&(i+=1)),this.insertChild(e,i)}removeChild(e){const t=this.getChildren()||[],i=t.indexOf(e.data);i>-1&&t.splice(i,1);const n=this.childNodes.indexOf(e);n>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(n,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let i=0;i<this.childNodes.length;i++)if(this.childNodes[i].data===e){t=this.childNodes[i];break}t&&this.removeChild(t)}expand(e,t){const i=()=>{if(t){let e=this.parent;for(;e&&e.level>0;)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),OR(this.childNodes,!0)};this.shouldLoadData()?this.loadData(e=>{GT(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||LR(this),i())}):i()}doCreateChildren(e,t={}){e.forEach(e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)})}collapse(){this.expanded=!1,OR(this.childNodes,!1)}shouldLoadData(){return Boolean(!0===this.store.lazy&&this.store.load&&!this.loaded)}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,i,n){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:i,allWithoutDisable:r}=BR(this.childNodes);this.isLeaf||i||!r||(this.checked=!1,e=!1);const s=()=>{if(t){const i=this.childNodes;for(let o=0,a=i.length;o<a;o++){const r=i[o];n=n||!1!==e;const s=r.disabled?r.checked:n;r.setChecked(s,t,!0,n)}const{half:r,all:s}=BR(i);s||(this.checked=s,this.indeterminate=r)}};if(this.shouldLoadData())return void this.loadData(()=>{s(),LR(this)},{checked:!1!==e});s()}const r=this.parent;r&&0!==r.level&&(i||LR(r))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const i=this.store.props;let n="children";return i&&(n=i.children||"children"),vI(t[n])&&(t[n]=null),e&&!t[n]&&(t[n]=[]),t[n]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map(e=>e.data),i={},n=[];e.forEach((e,r)=>{const s=e[IR];!!s&&t.findIndex(e=>(null==e?void 0:e[IR])===s)>=0?i[s]={index:r,data:e}:n.push({index:r,data:e})}),this.store.lazy||t.forEach(e=>{i[null==e?void 0:e[IR]]||this.removeChildByData(e)}),n.forEach(({index:e,data:t})=>{this.insertChild({data:t},e)}),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const i=i=>{this.childNodes=[],this.doCreateChildren(i,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,i)},n=()=>{this.loading=!1};this.store.load(this,i,n)}}eachNode(e){const t=[this];for(;t.length;){const i=t.shift();t.unshift(...i.childNodes),e(i)}}reInitChecked(){this.store.checkStrictly||LR(this)}}class NR{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)VT(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new FR({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){(0,this.load)(this.root,e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()},zT)}else this._initDefaultCheckedNodes()}filter(e){const i=this.filterNodeMethod,n=this.lazy,r=async function(s){const o=s.root?s.root.childNodes:s.childNodes;for(const[n,a]of o.entries())a.visible=!!(null==i?void 0:i.call(a,e,a.data,a)),n%80==0&&n>0&&await t.nextTick(),await r(a);if(!s.visible&&o.length){let e=!0;e=!o.some(e=>e.visible),s.root?s.root.visible=!1===e:s.visible=!1===e}e&&s.visible&&!s.isLeaf&&(n&&!s.loaded||s.expand())};r(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof FR)return e;const t=WT(e)?RR(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var i;const n=this.getNode(t);null==(i=n.parent)||i.insertBefore({data:e},n)}insertAfter(e,t){var i;const n=this.getNode(t);null==(i=n.parent)||i.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const i=wI(t)?this.root:this.getNode(t);i&&i.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(e=>{const i=t[e];i&&i.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!mI(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){const t=e.key;mI(t)||(this.nodesMap[t]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){this.key&&e&&e.data&&(e.childNodes.forEach(e=>{this.deregisterNode(e)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const i=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(r=>{(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&i.push(r.data),n(r)})};return n(this),i}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(e=>(e||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(i=>{i.indeterminate&&e.push(i.data),t(i)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const i in t)VT(t,i)&&e.push(t[i]);return e}updateChildren(e,t){const i=this.nodesMap[e];if(!i)return;const n=i.childNodes;for(let r=n.length-1;r>=0;r--){const e=n[r];this.remove(e.data)}for(let r=0,s=t.length;r<s;r++){const e=t[r];this.append(e,i.data)}}_setCheckedKeys(e,t=!1,i){const n=this._getAllNodes().sort((e,t)=>e.level-t.level),r=Object.create(null),s=Object.keys(i);n.forEach(e=>e.setChecked(!1,!1));const o=t=>{t.childNodes.forEach(t=>{var i;r[t.data[e]]=!0,(null==(i=t.childNodes)?void 0:i.length)&&o(t)})};for(let a=0,l=n.length;a<l;a++){const i=n[a],l=i.data[e].toString();if(s.includes(l)){if(i.childNodes.length&&o(i),i.isLeaf||this.checkStrictly)i.setChecked(!0,!1);else if(i.setChecked(!0,!0),t){i.setChecked(!1,!1);const e=function(t){t.childNodes.forEach(t=>{t.isLeaf||t.setChecked(!1,!1),e(t)})};e(i)}}else i.checked&&!r[l]&&i.setChecked(!1,!1)}}setCheckedNodes(e,t=!1){const i=this.key,n={};e.forEach(e=>{n[(e||{})[i]]=!0}),this._setCheckedKeys(i,t,n)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const i=this.key,n={};e.forEach(e=>{n[e]=!0}),this._setCheckedKeys(i,t,n)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)})}setChecked(e,t,i){const n=this.getNode(e);n&&n.setChecked(!!t,i)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var i;const n=e[this.key],r=this.nodesMap[n];this.setCurrentNode(r),t&&this.currentNode&&this.currentNode.level>1&&(null==(i=this.currentNode.parent)||i.expand(null,!0))}setCurrentNodeKey(e,t=!0){var i;if(this.currentNodeKey=e,wI(e))return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&(null==(i=this.currentNode.parent)||i.expand(null,!0)))}}const zR="RootTree",UR="NodeInstance",VR="TreeNodeMap";var GR=pM(t.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const i=NT("tree"),n=t.inject(UR),r=t.inject(zR);return()=>{const s=e.node,{data:o,store:a}=s;return e.renderContent?e.renderContent(t.h,{_self:n,node:s,data:o,store:a}):t.renderSlot(r.ctx.slots,"default",{node:s,data:o},()=>[t.h(CR,{tag:"span",truncated:!0,class:i.be("node","label")},()=>[s.label])])}}}),[["__file","tree-node-content.vue"]]);function jR(e){const i=t.inject(VR,null),n={treeNodeExpand:t=>{var i;e.node!==t&&(null==(i=e.node)||i.collapse())},children:[]};return i&&i.children.push(n),t.provide(VR,n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const HR=Symbol("dragEvents");function WR({props:e,ctx:i,el$:n,dropIndicator$:r,store:s}){const o=NT("tree"),a=t.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return t.provide(HR,{treeNodeDragStart:({event:t,treeNode:n})=>{if(t.dataTransfer){if(jT(e.allowDrag)&&!e.allowDrag(n.node))return t.preventDefault(),!1;t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain","")}catch(cr){}a.value.draggingNode=n,i.emit("node-drag-start",n.node,t)}},treeNodeDragOver:({event:t,treeNode:s})=>{if(!t.dataTransfer)return;const l=s,c=a.value.dropNode;c&&c.node.id!==l.node.id&&mM(c.$el,o.is("drop-inner"));const u=a.value.draggingNode;if(!u||!l)return;let h=!0,d=!0,p=!0,f=!0;jT(e.allowDrop)&&(h=e.allowDrop(u.node,l.node,"prev"),f=d=e.allowDrop(u.node,l.node,"inner"),p=e.allowDrop(u.node,l.node,"next")),t.dataTransfer.dropEffect=d||h||p?"move":"none",(h||d||p)&&(null==c?void 0:c.node.id)!==l.node.id&&(c&&i.emit("node-drag-leave",u.node,c.node,t),i.emit("node-drag-enter",u.node,l.node,t)),a.value.dropNode=h||d||p?l:null,l.node.nextSibling===u.node&&(p=!1),l.node.previousSibling===u.node&&(h=!1),l.node.contains(u.node,!1)&&(d=!1),(u.node===l.node||u.node.contains(l.node))&&(h=!1,d=!1,p=!1);const m=l.$el,g=m.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),_=n.value.getBoundingClientRect();let y;const v=h?d?.25:p?.45:1:-1,x=p?d?.75:h?.55:0:1;let b=-9999;const w=t.clientY-g.top;y=w<g.height*v?"before":w>g.height*x?"after":d?"inner":"none";const E=m.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),A=r.value;var T,S;"before"===y?b=E.top-_.top:"after"===y&&(b=E.bottom-_.top),A.style.top=`${b}px`,A.style.left=E.right-_.left+"px","inner"===y?(T=m,S=o.is("drop-inner"),T&&S.trim()&&T.classList.add(...fM(S))):mM(m,o.is("drop-inner")),a.value.showDropIndicator="before"===y||"after"===y,a.value.allowDrop=a.value.showDropIndicator||f,a.value.dropType=y,i.emit("node-drag-over",u.node,l.node,t)},treeNodeDragEnd:e=>{var t,n;const{draggingNode:r,dropType:l,dropNode:c}=a.value;if(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),(null==r?void 0:r.node.data)&&c){const a={data:r.node.data};"none"!==l&&r.node.remove(),"before"===l?null==(t=c.node.parent)||t.insertBefore(a,c.node):"after"===l?null==(n=c.node.parent)||n.insertAfter(a,c.node):"inner"===l&&c.node.insertChild(a),"none"!==l&&(s.value.registerNode(a),s.value.key&&r.node.eachNode(e=>{var t;null==(t=s.value.nodesMap[e.data[s.value.key]])||t.setChecked(e.checked,!s.value.checkStrictly)})),mM(c.$el,o.is("drop-inner")),i.emit("node-drag-end",r.node,c.node,l,e),"none"!==l&&i.emit("node-drop",r.node,c.node,l,e)}r&&!c&&i.emit("node-drag-end",r.node,null,l,e),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const $R=t.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:yR,ElCheckbox:gR,NodeContent:GR,ElIcon:bM,Loading:CM},props:{node:{type:FR,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,i){const n=NT("tree"),{broadcastExpanded:r}=jR(e),s=t.inject(zR),o=t.ref(!1),a=t.ref(!1),l=t.ref(),c=t.ref(),u=t.ref(),h=t.inject(HR),d=t.getCurrentInstance();t.provide(UR,d),e.node.expanded&&(o.value=!0,a.value=!0);const p=s.props.props.children||"children";t.watch(()=>{var t;const i=null==(t=e.node.data)?void 0:t[p];return i&&[...i]},()=>{e.node.updateChildren()}),t.watch(()=>e.node.indeterminate,t=>{m(e.node.checked,t)}),t.watch(()=>e.node.checked,t=>{m(t,e.node.indeterminate)}),t.watch(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),t.watch(()=>e.node.expanded,e=>{t.nextTick(()=>o.value=e),e&&(a.value=!0)});const f=e=>RR(s.props.nodeKey,e.data),m=(t,i)=>{l.value===t&&c.value===i||s.ctx.emit("check-change",e.node.data,t,i),l.value=t,c.value=i},g=()=>{e.node.isLeaf||(o.value?(s.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):e.node.expand(()=>{i.emit("node-expand",e.node.data,e.node,d)}))},_=i=>{e.node.setChecked(i,!(null==s?void 0:s.props.checkStrictly)),t.nextTick(()=>{const t=s.store.value;s.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:s,expanded:o,childNodeRendered:a,oldChecked:l,oldIndeterminate:c,getNodeKey:f,getNodeClass:t=>{const i=e.props.class;if(!i)return{};let n;if(jT(i)){const{data:e}=t;n=i(e,t)}else n=i;return HT(n)?{[n]:!0}:n},handleSelectChange:m,handleClick:t=>{PR(s.store,s.ctx.emit,()=>{var t;if(null==(t=null==s?void 0:s.props)?void 0:t.nodeKey){const t=f(e.node);s.store.value.setCurrentNodeKey(t)}else s.store.value.setCurrentNode(e.node)}),s.currentNode.value=e.node,s.props.expandOnClickNode&&g(),(s.props.checkOnClickNode||e.node.isLeaf&&s.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&_(!e.node.checked),s.ctx.emit("node-click",e.node.data,e.node,d,t)},handleContextMenu:t=>{var i;(null==(i=s.instance.vnode.props)?void 0:i.onNodeContextmenu)&&(t.stopPropagation(),t.preventDefault()),s.ctx.emit("node-contextmenu",t,e.node.data,e.node,d)},handleExpandIconClick:g,handleCheckChange:_,handleChildNodeExpand:(e,t,i)=>{r(t),s.ctx.emit("node-expand",e,t,i)},handleDragStart:t=>{s.props.draggable&&h.treeNodeDragStart({event:t,treeNode:e})},handleDragOver:t=>{t.preventDefault(),s.props.draggable&&h.treeNodeDragOver({event:t,treeNode:{$el:u.value,node:e.node}})},handleDrop:e=>{e.preventDefault()},handleDragEnd:e=>{s.props.draggable&&h.treeNodeDragEnd(e)},CaretRight:EM}}});var XR=pM($R,[["render",function(e,i,n,r,s,o){const a=t.resolveComponent("el-icon"),l=t.resolveComponent("el-checkbox"),c=t.resolveComponent("loading"),u=t.resolveComponent("node-content"),h=t.resolveComponent("el-tree-node"),d=t.resolveComponent("el-collapse-transition");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref:"node$",class:t.normalizeClass([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t.withModifiers(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:t.withModifiers(e.handleDragStart,["stop"]),onDragover:t.withModifiers(e.handleDragOver,["stop"]),onDragend:t.withModifiers(e.handleDragEnd,["stop"]),onDrop:t.withModifiers(e.handleDrop,["stop"])},[t.createElementVNode("div",{class:t.normalizeClass(e.ns.be("node","content")),style:t.normalizeStyle({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:t.withModifiers(e.handleExpandIconClick,["stop"])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):t.createCommentVNode("v-if",!0),e.showCheckbox?(t.openBlock(),t.createBlock(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t.withModifiers(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):t.createCommentVNode("v-if",!0),e.node.loading?(t.openBlock(),t.createBlock(a,{key:2,class:t.normalizeClass([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:t.withCtx(()=>[t.createVNode(c)]),_:1},8,["class"])):t.createCommentVNode("v-if",!0),t.createVNode(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),t.createVNode(d,null,{default:t.withCtx(()=>[!e.renderAfterExpand||e.childNodeRendered?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t.withModifiers(()=>{},["stop"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.node.childNodes,i=>(t.openBlock(),t.createBlock(h,{key:e.getNodeKey(i),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:i,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded","onClick"])),[[t.vShow,e.expanded]]):t.createCommentVNode("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[t.vShow,e.node.visible]])}],["__file","tree-node.vue"]]);const qR=_M(pM(t.defineComponent({name:"ElTree",components:{ElTreeNode:XR},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:{type:Function},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:Function},allowDrop:{type:Function},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:RM}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,i){const{t:n}=nM(),r=NT("tree"),s=t.inject(AR,null),o=t.ref(new NR({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const a=t.ref(o.value.root),l=t.ref(null),c=t.ref(null),u=t.ref(null),{broadcastExpanded:h}=jR(e),{dragState:d}=WR({props:e,ctx:i,el$:c,dropIndicator$:u,store:o});!function({el$:e},i){const n=NT("tree");function r(e,t){var n,r;const s=i.value.getNode(e[t].dataset.key);return s.canFocus&&s.visible&&((null==(n=s.parent)?void 0:n.expanded)||0===(null==(r=s.parent)?void 0:r.level))}t.onMounted(()=>{s()}),t.onUpdated(()=>{Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(e=>{e.setAttribute("tabindex","-1")})}),NI(e,"keydown",t=>{const i=t.target;if(!i.className.includes(n.b("node")))return;const s=t.code,o=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a=o.indexOf(i);let l;if([eR.up,eR.down].includes(s)){if(t.preventDefault(),s===eR.up){l=-1===a?0:0!==a?a-1:o.length-1;const e=l;for(;!r(o,l);){if(l--,l===e){l=-1;break}l<0&&(l=o.length-1)}}else{l=-1===a?0:a<o.length-1?a+1:0;const e=l;for(;!r(o,l);){if(l++,l===e){l=-1;break}l>=o.length&&(l=0)}}-1!==l&&o[l].focus()}[eR.left,eR.right].includes(s)&&(t.preventDefault(),i.click());const c=i.querySelector('[type="checkbox"]');[eR.enter,eR.numpadEnter,eR.space].includes(s)&&c&&(t.preventDefault(),c.click())});const s=()=>{var t;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(e=>{e.setAttribute("tabindex","-1")});const r=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);r.length?r[0].setAttribute("tabindex","0"):null==(t=i[0])||t.setAttribute("tabindex","0")}}({el$:c},o);const p=t.computed(()=>{const{childNodes:e}=a.value,t=!!s&&0!==s.hasFilteredOptions;return(!e||0===e.length||e.every(({visible:e})=>!e))&&!t});t.watch(()=>e.currentNodeKey,e=>{o.value.setCurrentNodeKey(null!=e?e:null)}),t.watch(()=>e.defaultCheckedKeys,(e,t)=>{fI(e,t)||o.value.setDefaultCheckedKey(null!=e?e:[])}),t.watch(()=>e.defaultExpandedKeys,e=>{o.value.setDefaultExpandedKeys(null!=e?e:[])}),t.watch(()=>e.data,e=>{o.value.setData(e)},{deep:!0}),t.watch(()=>e.checkStrictly,e=>{o.value.checkStrictly=e});const f=()=>{const e=o.value.getCurrentNode();return e?e.data:null};return t.provide(zR,{ctx:i,props:e,store:o,root:a,currentNode:l,instance:t.getCurrentInstance()}),t.provide($M,void 0),{ns:r,store:o,root:a,currentNode:l,dragState:d,el$:c,dropIndicator$:u,isEmpty:p,filter:t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(t)},getNodeKey:t=>RR(e.nodeKey,t.data),getNodePath:t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const i=o.value.getNode(t);if(!i)return[];const n=[i.data];let r=i.parent;for(;r&&r!==a.value;)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:(e,t)=>o.value.getCheckedNodes(e,t),getCheckedKeys:e=>o.value.getCheckedKeys(e),getCurrentNode:f,getCurrentKey:()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=f();return t?t[e.nodeKey]:null},setCheckedNodes:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(t,i)},setCheckedKeys:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(t,i)},setChecked:(e,t,i)=>{o.value.setChecked(e,t,i)},getHalfCheckedNodes:()=>o.value.getHalfCheckedNodes(),getHalfCheckedKeys:()=>o.value.getHalfCheckedKeys(),setCurrentNode:(t,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");PR(o,i.emit,()=>{h(t),o.value.setUserCurrentNode(t,n)})},setCurrentKey:(t,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");PR(o,i.emit,()=>{h(),o.value.setCurrentNodeKey(null!=t?t:null,n)})},t:n,getNode:e=>o.value.getNode(e),remove:e=>{o.value.remove(e)},append:(e,t)=>{o.value.append(e,t)},insertBefore:(e,t)=>{o.value.insertBefore(e,t)},insertAfter:(e,t)=>{o.value.insertAfter(e,t)},handleNodeExpand:(e,t,n)=>{h(t),i.emit("node-expand",e,t,n)},updateKeyChildren:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(t,i)}}}}),[["render",function(e,i,n,r,s,o){const a=t.resolveComponent("el-tree-node");return t.openBlock(),t.createElementBlock("div",{ref:"el$",class:t.normalizeClass([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.root.childNodes,i=>(t.openBlock(),t.createBlock(a,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.ns.e("empty-block"))},[t.renderSlot(e.$slots,"empty",{},()=>{var i;return[t.createElementVNode("span",{class:t.normalizeClass(e.ns.e("empty-text"))},t.toDisplayString(null!=(i=e.emptyText)?i:e.t("el.tree.emptyText")),3)]})],2)):t.createCommentVNode("v-if",!0),t.withDirectives(t.createElementVNode("div",{ref:"dropIndicator$",class:t.normalizeClass(e.ns.e("drop-indicator"))},null,2),[[t.vShow,e.dragState.showDropIndicator]])],2)}],["__file","tree.vue"]])),ZR={class:"gismap-layer"},KR={class:"gismap-layer-title"},YR={class:"gismap-layer-search"},JR={class:"gismap-layer-tree-node"},QR={class:"gismap-layer-tree-node-icon"},eP=["src"],tP={key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iP={class:"gismap-layer-tree-node-label"},nP={class:"gismap-layer-tree-empty"},rP=t.defineComponent({__name:"index",props:{title:{type:String,default:"资源管理"},data:{type:Array,default:()=>[]}},setup(e){const i=e,n=t.inject("map"),r=t.ref(),s=t.ref(n?.getContainer().clientHeight||0),o=t.ref(""),a=t.ref([]),l=t.ref([]);n?.on("resize",()=>{s.value=n?.getContainer().clientHeight||0});const c=(e,{checkedKeys:t})=>{xT([e],e=>{const i=t.includes(e.id);e.layers&&e.layers.length>0&&(i?n?.manager.layerManager.addGroupLayer(e):n?.manager.layerManager.removeGroupLayer(e))})},u=(e,t)=>!e||t.title.includes(e),h=e=>{const t=[],i=[];xT(e,e=>{e.checked&&(n?.manager.layerManager.addGroupLayer(e),i.push(e.id)),e.expand&&t.push(e.id),e.sourceInit&&e.source&&n?.manager.layerManager.addSource(e.source)}),a.value=t,l.value=i};return t.watch(()=>i.data,e=>{h(e)}),t.watch(o,e=>{r.value.filter(e)}),t.onMounted(()=>{h(i.data)}),(i,n)=>{const h=bM;return t.openBlock(),t.createElementBlock("div",ZR,[t.createElementVNode("div",KR,t.toDisplayString(e.title),1),t.createElementVNode("div",YR,[t.createVNode(t.unref(QM),{class:"gismap-layer-search-input",placeholder:"请输入名称",modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e)},{prefix:t.withCtx(()=>[t.createVNode(h,null,{default:t.withCtx(()=>[t.createVNode(t.unref(IM))]),_:1})]),_:1},8,["modelValue"])]),t.createElementVNode("div",{class:"gismap-layer-content no-scrollbar",style:t.normalizeStyle({maxHeight:s.value-220+"px"})},[t.createVNode(t.unref(qR),{ref_key:"treeRef",ref:r,data:e.data,props:{label:"title"},"show-checkbox":"","node-key":"id","default-expanded-keys":a.value,"default-checked-keys":l.value,onCheck:c,"filter-node-method":u},{default:t.withCtx(({node:e,data:i})=>[t.createElementVNode("div",JR,[t.createElementVNode("span",QR,[i.icon&&""!=i.icon?(t.openBlock(),t.createElementBlock("img",{key:0,src:"assets/icons/"+i.icon,height:"16"},null,8,eP)):(t.openBlock(),t.createElementBlock("svg",tP,[...n[1]||(n[1]=[t.createElementVNode("rect",{width:"16",height:"16",rx:"2",fill:"#f5f5f5",stroke:"#e0e0e0","stroke-width":"1"},null,-1),t.createElementVNode("path",{d:"M4 0V16M8 0V16M12 0V16M0 4H16M0 8H16M0 12H16",stroke:"#e0e0e0","stroke-width":"0.5"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"8",r:"3",stroke:"#999999","stroke-width":"1.0",fill:"none"},null,-1),t.createElementVNode("path",{d:"M11 11l2 2",stroke:"#999999","stroke-width":"1.0"},null,-1)])]))]),t.createElementVNode("span",iP,t.toDisplayString(e.label),1)])]),empty:t.withCtx(()=>[t.createElementVNode("div",nP,[t.createVNode(t.unref(ER),{description:"暂无数据","image-size":50})])]),_:1},8,["data","default-expanded-keys","default-checked-keys"])],4)])}}}),sP={class:"gismap-legend"},oP={class:"gismap-legend-title"},aP={class:"gismap-legend-content"},lP={class:"gismap-legend-item"},cP={class:"gismap-legend-item-text"},uP=t.defineComponent({name:"MapLegend",props:{title:{type:String,default:"图例"}},setup(e){const i=t.ref(!0),n=t.ref([]),r=()=>{i.value=!i.value};return(s,o)=>{const a=bM;return t.withDirectives((t.openBlock(),t.createElementBlock("div",sP,[t.createElementVNode("div",oP,[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.createElementVNode("span",{class:t.normalizeClass(["toggle",{expanded:i.value}]),onClick:r},[t.createVNode(a,null,{default:t.withCtx(()=>[t.createVNode(t.unref(wM))]),_:1})],2)]),t.withDirectives(t.createElementVNode("div",aP,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,e=>(t.openBlock(),t.createElementBlock("div",{key:e.id},[t.createElementVNode("div",lP,[t.createElementVNode("div",{class:"gismap-legend-item-icon",style:t.normalizeStyle({"background-image":`url(${e.legend})`})},null,4),t.createElementVNode("div",cP,t.toDisplayString(e.name),1)])]))),128))],512),[[t.vShow,i.value]])],512)),[[t.vShow,n.value.length>0]])}}}),hP=t.defineComponent({name:"MapTools",props:{data:{type:Array,default:()=>[]}},setup:e=>(e,t)=>null}),dP={class:"gismap-switch"},pP={key:0,class:"gismap-switch-extensions"},fP=["onClick"],mP={class:"gismap-switch-item-icon"},gP={class:"gismap-switch-item-text"},_P={class:"gismap-switch-layers"},yP=["onClick"],vP={class:"gismap-switch-item-text"},xP={key:1,class:"gismap-switch-extensions"},bP=["onClick"],wP={class:"gismap-switch-item-icon"},EP={class:"gismap-switch-item-text"},AP=t.defineComponent({name:"MapSwitch",props:{data:{type:Object,default:()=>({layers:[],extensions:[]})},extensionsPosition:{type:String,default:"left"}},setup(e){const i=e,n=t.inject("map"),r=t.ref(""),s=e=>{if(r.value!==e.name)switch((e=>{switch(e){case"tdt-vec":n?.manager?.tdtManager.removeVecLayer();break;case"tdt-img":n?.manager?.tdtManager.removeImgLayer()}})(r.value),r.value=e.name,e.name){case"tdt-vec":n?.manager?.tdtManager.addVecLayer(uT.layerPolygonId);break;case"tdt-img":n?.manager?.tdtManager.addImgLayer(uT.layerPolygonId);break;default:n?.pubsub.publish(e.name,e)}},o=(e,t=!1)=>{switch(t||(e.checked=!e.checked),e.name){case"tdt-cia":e.checked?n?.manager?.tdtManager.addCiaLayer(uT.layerPointId):n?.manager?.tdtManager.removeCiaLayer();break;case"terrain":e.checked?n?.manager?.terrainManager.setTerrain():n?.manager?.terrainManager.removeTerrain();break;default:n?.pubsub.publish(e.name,e)}};return t.onMounted(()=>{i.data.layers.forEach(e=>{e.checked&&(s(e),r.value=e.name)}),i.data.extensions.forEach(e=>{e.checked&&o(e,!0)})}),(i,n)=>{const a=gR;return t.openBlock(),t.createElementBlock("div",dP,[t.renderSlot(i.$slots,"left"),"left"===e.extensionsPosition?(t.openBlock(),t.createElementBlock("div",pP,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.extensions,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t=>o(e)},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:e.checked}])},[t.createElementVNode("span",mP,[t.createVNode(a,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t,onChange:t=>o(e)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),t.createElementVNode("span",gP,t.toDisplayString(e.label),1)],2)],8,fP))),128))])):t.createCommentVNode("",!0),t.createElementVNode("div",_P,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.layers,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t=>s(e)},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:r.value===e.name}])},[t.createElementVNode("span",{class:t.normalizeClass(["gismap-switch-item-icon",e.iconName])},null,2),t.createElementVNode("span",vP,t.toDisplayString(e.label),1)],2)],8,yP))),128))]),"right"===e.extensionsPosition?(t.openBlock(),t.createElementBlock("div",xP,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.extensions,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t=>o(e)},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:e.checked}])},[t.createElementVNode("span",wP,[t.createVNode(a,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t,onChange:t=>o(e)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),t.createElementVNode("span",EP,t.toDisplayString(e.label),1)],2)],8,bP))),128))])):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"right")])}}}),TP={class:"map-layout"},SP=t.defineComponent({name:"MapLayout",props:{mapViewData:{type:Object,default:()=>{}},switchData:{type:Object,default:()=>[]},layerData:{type:Array,default:()=>[]},toolsData:{type:Array,default:()=>[]}},emits:["load"],setup(e,{emit:i}){const n=e,r=i,s=t.reactive({mapViewData:n.mapViewData||{center:[120.35826594964023,30.10842454359468]},switchData:n.switchData||{},layerData:n.layerData||[],toolsData:n.toolsData||[]});let o;const a=e=>{o=e,o.manager.fogManager.setFog(),r("load",o)};return t.watch(()=>n.mapViewData,e=>{s.mapViewData=e}),t.watch(()=>n.switchData,e=>{s.switchData=e}),t.watch(()=>n.layerData,e=>{s.layerData=e}),t.watch(()=>n.toolsData,e=>{s.toolsData=e}),(e,i)=>(t.openBlock(),t.createElementBlock("div",TP,[t.createVNode(t.unref(LT),{options:s.mapViewData,onLoad:a},{"top-left":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-top-left"),t.createVNode(t.unref(hP),{data:s.toolsData},null,8,["data"]),t.renderSlot(e.$slots,"top-left")]),"top-right":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-top-right"),t.createVNode(t.unref(rP),{class:"widget-right",data:s.layerData},null,8,["data"]),t.renderSlot(e.$slots,"top-right")]),"bottom-left":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-bottom-left"),t.createVNode(t.unref(uP)),t.renderSlot(e.$slots,"bottom-left")]),"bottom-right":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-bottom-right"),t.createVNode(t.unref(AP),{data:s.switchData},null,8,["data"]),t.renderSlot(e.$slots,"bottom-right")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["options"])]))}});e.GisMapLayer=rP,e.GisMapLegend=uP,e.GisMapSwitch=AP,e.GisMapTools=hP,e.GisMapView=LT,e.GsMap=l,e.MapPage=SP,e.MarkerLayer=class{map;markers=new Map;constructor(e){this.map=e}add(e){const t={...e},i=new s.Marker(t);i.setLngLat(e.lngLat),i.addTo(this.map),this.markers.set(e.id,i)}remove(e){const t=this.markers.get(e);t&&t.remove(),this.markers.delete(e)}clear(){this.markers.forEach(e=>{e.remove()}),this.markers.clear()}},e.Tile3DLayer=class{layerId=Math.random().toString(36);map;layer;deckOverlay;constructor(e){return this.map=e,this}add(e){if(e.id&&(this.layerId=e.id),!e.data)throw new Error("3D瓦片图层数据不能为空");const t=new lT({id:this.layerId,name:this.layerId,data:e.data,coordinateSystem:Ec.LNGLAT,loader:sT,extruded:!0,parameter:{depthTest:!0,polygonOffset:[1,1]},pickable:e.pickable||!1,_meshOpt:{useInstancing:!1},opacity:e.opacity||1,loadOptions:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!0,skipLevelOfDetail:!0,maximumMemoryUsage:1024,isTileset:"auto",assetGltfUpAxis:null}},onTilesetError:e=>{},onTilesetLoad:t=>{const i=e.transform||{translateX:0,translateY:0};t.modelMatrix.translate([i.translateX,i.translateY,0])}});this.deckOverlay=new Gg({interleaved:!0,parameters:{blend:!0},layers:[t]}),this.map.addControl(this.deckOverlay),this.layer=t}setVisible(e=!0){this.map.getLayer(this.layerId)&&(e?this.map.setLayoutProperty(this.layerId,"visibility","visible"):this.map.setLayoutProperty(this.layerId,"visibility","none"))}setOpacity(e){if(this.map.getLayer(this.layerId)){if(!this.deckOverlay)return;const t=this.deckOverlay.props.layers.map(t=>t.id===this.layerId?t.clone({opacity:e}):t);this.deckOverlay.setProps({layers:t})}}remove(){this.deckOverlay&&this.map.removeControl(this.deckOverlay)}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
34
+ "production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);const FT=()=>{},NT=Object.prototype.hasOwnProperty,zT=(e,t)=>NT.call(e,t),UT=Array.isArray,VT=e=>"function"==typeof e,GT=e=>"string"==typeof e,jT=e=>null!==e&&"object"==typeof e;var HT="object"==typeof global&&global&&global.Object===Object&&global,WT="object"==typeof self&&self&&self.Object===Object&&self,$T=HT||WT||Function("return this")(),XT=$T.Symbol,qT=Object.prototype,ZT=qT.hasOwnProperty,KT=qT.toString,YT=XT?XT.toStringTag:void 0;var JT=Object.prototype.toString;var QT=XT?XT.toStringTag:void 0;function eS(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":QT&&QT in Object(e)?function(e){var t=ZT.call(e,YT),i=e[YT];try{e[YT]=void 0;var n=!0}catch(cr){}var r=KT.call(e);return n&&(t?e[YT]=i:delete e[YT]),r}(e):function(e){return JT.call(e)}(e)}function tS(e){return null!=e&&"object"==typeof e}function iS(e){return"symbol"==typeof e||tS(e)&&"[object Symbol]"==eS(e)}var nS=Array.isArray,rS=XT?XT.prototype:void 0,sS=rS?rS.toString:void 0;function oS(e){if("string"==typeof e)return e;if(nS(e))return function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}(e,oS)+"";if(iS(e))return sS?sS.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function aS(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function lS(e){if(!aS(e))return!1;var t=eS(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var cS,uS=$T["__core-js_shared__"],hS=(cS=/[^.]+$/.exec(uS&&uS.keys&&uS.keys.IE_PROTO||""))?"Symbol(src)_1."+cS:"";var dS=Function.prototype.toString;function pS(e){if(null!=e){try{return dS.call(e)}catch(cr){}try{return e+""}catch(cr){}}return""}var fS=/^\[object .+?Constructor\]$/,mS=Function.prototype,gS=Object.prototype,_S=mS.toString,yS=gS.hasOwnProperty,vS=RegExp("^"+_S.call(yS).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xS(e){return!(!aS(e)||(t=e,hS&&hS in t))&&(lS(e)?vS:fS).test(pS(e));var t}function bS(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return xS(i)?i:void 0}var wS=bS($T,"WeakMap");var ES=Date.now;var AS,TS,SS,CS=function(){try{var e=bS(Object,"defineProperty");return e({},"",{}),e}catch(cr){}}(),IS=CS?function(e,t){return CS(e,"toString",{configurable:!0,enumerable:!1,value:(i=t,function(){return i}),writable:!0});var i}:function(e){return e},MS=(AS=IS,TS=0,SS=0,function(){var e=ES(),t=16-(e-SS);if(SS=e,t>0){if(++TS>=800)return arguments[0]}else TS=0;return AS.apply(void 0,arguments)}),RS=/^(?:0|[1-9]\d*)$/;function PS(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&RS.test(e))&&e>-1&&e%1==0&&e<t}function BS(e,t){return e===t||e!=e&&t!=t}var LS=Object.prototype.hasOwnProperty;function DS(e,t,i){var n=e[t];LS.call(e,t)&&BS(n,i)&&(void 0!==i||t in e)||function(e,t,i){"__proto__"==t&&CS?CS(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}(e,t,i)}var OS=Math.max;function kS(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var FS=Object.prototype;function NS(e){return tS(e)&&"[object Arguments]"==eS(e)}var zS=Object.prototype,US=zS.hasOwnProperty,VS=zS.propertyIsEnumerable,GS=NS(function(){return arguments}())?NS:function(e){return tS(e)&&US.call(e,"callee")&&!VS.call(e,"callee")};var jS="object"==typeof e&&e&&!e.nodeType&&e,HS=jS&&"object"==typeof module&&module&&!module.nodeType&&module,WS=HS&&HS.exports===jS?$T.Buffer:void 0,$S=(WS?WS.isBuffer:void 0)||function(){return!1},XS={};XS["[object Float32Array]"]=XS["[object Float64Array]"]=XS["[object Int8Array]"]=XS["[object Int16Array]"]=XS["[object Int32Array]"]=XS["[object Uint8Array]"]=XS["[object Uint8ClampedArray]"]=XS["[object Uint16Array]"]=XS["[object Uint32Array]"]=!0,XS["[object Arguments]"]=XS["[object Array]"]=XS["[object ArrayBuffer]"]=XS["[object Boolean]"]=XS["[object DataView]"]=XS["[object Date]"]=XS["[object Error]"]=XS["[object Function]"]=XS["[object Map]"]=XS["[object Number]"]=XS["[object Object]"]=XS["[object RegExp]"]=XS["[object Set]"]=XS["[object String]"]=XS["[object WeakMap]"]=!1;var qS="object"==typeof e&&e&&!e.nodeType&&e,ZS=qS&&"object"==typeof module&&module&&!module.nodeType&&module,KS=ZS&&ZS.exports===qS&&HT.process,YS=function(){try{var e=ZS&&ZS.require&&ZS.require("util").types;return e||KS&&KS.binding&&KS.binding("util")}catch(cr){}}(),JS=YS&&YS.isTypedArray,QS=JS?function(e){return function(t){return e(t)}}(JS):function(e){return tS(e)&&kS(e.length)&&!!XS[eS(e)]},eC=Object.prototype.hasOwnProperty;function tC(e,t){var i=nS(e),n=!i&&GS(e),r=!i&&!n&&$S(e),s=!i&&!n&&!r&&QS(e),o=i||n||r||s,a=o?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],l=a.length;for(var c in e)!eC.call(e,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||PS(c,l))||a.push(c);return a}var iC=function(e,t){return function(i){return e(t(i))}}(Object.keys,Object),nC=Object.prototype.hasOwnProperty;function rC(e){if(i=(t=e)&&t.constructor,t!==("function"==typeof i&&i.prototype||FS))return iC(e);var t,i,n=[];for(var r in Object(e))nC.call(e,r)&&"constructor"!=r&&n.push(r);return n}function sC(e){return null!=(t=e)&&kS(t.length)&&!lS(t)?tC(e):rC(e);var t}var oC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aC=/^\w*$/;var lC=bS(Object,"create");var cC=Object.prototype.hasOwnProperty;var uC=Object.prototype.hasOwnProperty;function hC(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function dC(e,t){for(var i=e.length;i--;)if(BS(e[i][0],t))return i;return-1}hC.prototype.clear=function(){this.__data__=lC?lC(null):{},this.size=0},hC.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},hC.prototype.get=function(e){var t=this.__data__;if(lC){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return cC.call(t,e)?t[e]:void 0},hC.prototype.has=function(e){var t=this.__data__;return lC?void 0!==t[e]:uC.call(t,e)},hC.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=lC&&void 0===t?"__lodash_hash_undefined__":t,this};var pC=Array.prototype.splice;function fC(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}fC.prototype.clear=function(){this.__data__=[],this.size=0},fC.prototype.delete=function(e){var t=this.__data__,i=dC(t,e);return!(i<0)&&(i==t.length-1?t.pop():pC.call(t,i,1),--this.size,!0)},fC.prototype.get=function(e){var t=this.__data__,i=dC(t,e);return i<0?void 0:t[i][1]},fC.prototype.has=function(e){return dC(this.__data__,e)>-1},fC.prototype.set=function(e,t){var i=this.__data__,n=dC(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};var mC=bS($T,"Map");function gC(e,t){var i,n,r=e.__data__;return("string"==(n=typeof(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof t?"string":"hash"]:r.map}function _C(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}_C.prototype.clear=function(){this.size=0,this.__data__={hash:new hC,map:new(mC||fC),string:new hC}},_C.prototype.delete=function(e){var t=gC(this,e).delete(e);return this.size-=t?1:0,t},_C.prototype.get=function(e){return gC(this,e).get(e)},_C.prototype.has=function(e){return gC(this,e).has(e)},_C.prototype.set=function(e,t){var i=gC(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};function yC(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],s=i.cache;if(s.has(r))return s.get(r);var o=e.apply(this,n);return i.cache=s.set(r,o)||s,o};return i.cache=new(yC.Cache||_C),i}yC.Cache=_C;var vC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xC=/\\(\\)?/g,bC=function(e){var t=yC(e,function(e){return 500===i.size&&i.clear(),e}),i=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(vC,function(e,i,n,r){t.push(n?r.replace(xC,"$1"):i||e)}),t});function wC(e,t){return nS(e)?e:function(e,t){if(nS(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!iS(e))||aC.test(e)||!oC.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:bC(function(e){return null==e?"":oS(e)}(e))}function EC(e){if("string"==typeof e||iS(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function AC(e,t){for(var i=0,n=(t=wC(t,e)).length;null!=e&&i<n;)e=e[EC(t[i++])];return i&&i==n?e:void 0}function TC(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}var SC=XT?XT.isConcatSpreadable:void 0;function CC(e){return nS(e)||GS(e)||!!(SC&&e&&e[SC])}function IC(e){return(null==e?0:e.length)?function(e,t,i,n,r){var s=-1,o=e.length;for(i||(i=CC),r||(r=[]);++s<o;){var a=e[s];i(a)?TC(r,a):r[r.length]=a}return r}(e):[]}function MC(e){var t=this.__data__=new fC(e);this.size=t.size}MC.prototype.clear=function(){this.__data__=new fC,this.size=0},MC.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},MC.prototype.get=function(e){return this.__data__.get(e)},MC.prototype.has=function(e){return this.__data__.has(e)},MC.prototype.set=function(e,t){var i=this.__data__;if(i instanceof fC){var n=i.__data__;if(!mC||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new _C(n)}return i.set(e,t),this.size=i.size,this};var RC=Object.prototype.propertyIsEnumerable,PC=Object.getOwnPropertySymbols,BC=PC?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,s=[];++i<n;){var o=e[i];t(o,i,e)&&(s[r++]=o)}return s}(PC(e),function(t){return RC.call(e,t)}))}:function(){return[]};function LC(e){return function(e,t,i){var n=t(e);return nS(e)?n:TC(n,i(e))}(e,sC,BC)}var DC=bS($T,"DataView"),OC=bS($T,"Promise"),kC=bS($T,"Set"),FC="[object Map]",NC="[object Promise]",zC="[object Set]",UC="[object WeakMap]",VC="[object DataView]",GC=pS(DC),jC=pS(mC),HC=pS(OC),WC=pS(kC),$C=pS(wS),XC=eS;(DC&&XC(new DC(new ArrayBuffer(1)))!=VC||mC&&XC(new mC)!=FC||OC&&XC(OC.resolve())!=NC||kC&&XC(new kC)!=zC||wS&&XC(new wS)!=UC)&&(XC=function(e){var t=eS(e),i="[object Object]"==t?e.constructor:void 0,n=i?pS(i):"";if(n)switch(n){case GC:return VC;case jC:return FC;case HC:return NC;case WC:return zC;case $C:return UC}return t});var qC=$T.Uint8Array;function ZC(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new _C;++t<i;)this.add(e[t])}function KC(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}ZC.prototype.add=ZC.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ZC.prototype.has=function(e){return this.__data__.has(e)};function YC(e,t,i,n,r,s){var o=1&i,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var h=-1,d=!0,p=2&i?new ZC:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var f=e[h],m=t[h];if(n)var g=o?n(m,f,h,t,e,s):n(f,m,h,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(p){if(!KC(t,function(e,t){if(o=t,!p.has(o)&&(f===e||r(f,e,i,n,s)))return p.push(t);var o})){d=!1;break}}else if(f!==m&&!r(f,m,i,n,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function JC(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i}function QC(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var eI=XT?XT.prototype:void 0,tI=eI?eI.valueOf:void 0;var iI=Object.prototype.hasOwnProperty;var nI="[object Arguments]",rI="[object Array]",sI="[object Object]",oI=Object.prototype.hasOwnProperty;function aI(e,t,i,n,r,s){var o=nS(e),a=nS(t),l=o?rI:XC(e),c=a?rI:XC(t),u=(l=l==nI?sI:l)==sI,h=(c=c==nI?sI:c)==sI,d=l==c;if(d&&$S(e)){if(!$S(t))return!1;o=!0,u=!1}if(d&&!u)return s||(s=new MC),o||QS(e)?YC(e,t,i,n,r,s):function(e,t,i,n,r,s,o){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new qC(e),new qC(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return BS(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=JC;case"[object Set]":var l=1&n;if(a||(a=QC),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=YC(a(e),a(t),n,r,s,o);return o.delete(e),u;case"[object Symbol]":if(tI)return tI.call(e)==tI.call(t)}return!1}(e,t,l,i,n,r,s);if(!(1&i)){var p=u&&oI.call(e,"__wrapped__"),f=h&&oI.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,g=f?t.value():t;return s||(s=new MC),r(m,g,i,n,s)}}return!!d&&(s||(s=new MC),function(e,t,i,n,r,s){var o=1&i,a=LC(e),l=a.length;if(l!=LC(t).length&&!o)return!1;for(var c=l;c--;){var u=a[c];if(!(o?u in t:iI.call(t,u)))return!1}var h=s.get(e),d=s.get(t);if(h&&d)return h==t&&d==e;var p=!0;s.set(e,t),s.set(t,e);for(var f=o;++c<l;){var m=e[u=a[c]],g=t[u];if(n)var _=o?n(g,m,u,t,e,s):n(m,g,u,e,t,s);if(!(void 0===_?m===g||r(m,g,i,n,s):_)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return s.delete(e),s.delete(t),p}(e,t,i,n,r,s))}function lI(e,t,i,n,r){return e===t||(null==e||null==t||!tS(e)&&!tS(t)?e!=e&&t!=t:aI(e,t,i,n,lI,r))}function cI(e,t){return null!=e&&t in Object(e)}function uI(e,t){return null!=e&&function(e,t,i){for(var n=-1,r=(t=wC(t,e)).length,s=!1;++n<r;){var o=EC(t[n]);if(!(s=null!=e&&i(e,o)))break;e=e[o]}return s||++n!=r?s:!!(r=null==e?0:e.length)&&kS(r)&&PS(o,r)&&(nS(e)||GS(e))}(e,t,cI)}function hI(e){for(var t=-1,i=null==e?0:e.length,n={};++t<i;){var r=e[t];n[r[0]]=r[1]}return n}function dI(e,t){return lI(e,t)}function pI(e){return null==e}function fI(e,t,i,n){if(!aS(e))return e;for(var r=-1,s=(t=wC(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var l=EC(t[r]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(r!=o){var u=a[l];void 0===(c=void 0)&&(c=aS(u)?u:PS(t[r+1])?[]:{})}DS(a,l,c),a=a[l]}return e}function mI(e,t){return function(e,t,i){for(var n=-1,r=t.length,s={};++n<r;){var o=t[n],a=AC(e,o);i(a,o)&&fI(s,wC(o,e),a)}return s}(e,t,function(t,i){return uI(e,i)})}var gI=function(e){return MS(function(e,t,i){return t=OS(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,s=OS(n.length-t,0),o=Array(s);++r<s;)o[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=i(o),function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}(e,this,a)}}(e,void 0,IC),e+"")}(function(e,t){return null==e?{}:mI(e,t)});const _I=e=>void 0===e,yI=e=>"boolean"==typeof e,vI=e=>"number"==typeof e,xI=e=>pI(e);var bI,wI=Object.defineProperty,EI=Object.defineProperties,AI=Object.getOwnPropertyDescriptors,TI=Object.getOwnPropertySymbols,SI=Object.prototype.hasOwnProperty,CI=Object.prototype.propertyIsEnumerable,II=(e,t,i)=>t in e?wI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;function MI(e,i){const n=t.shallowRef();var r,s;return t.watchEffect(()=>{n.value=e()},(r=((e,t)=>{for(var i in t||(t={}))SI.call(t,i)&&II(e,i,t[i]);if(TI)for(var i of TI(t))CI.call(t,i)&&II(e,i,t[i]);return e})({},i),s={flush:null!=void 0?void 0:"sync"},EI(r,AI(s)))),t.readonly(n)}const RI="undefined"!=typeof window,PI=()=>{};function BI(e){return"function"==typeof e?e():t.unref(e)}function LI(e){return!!t.getCurrentScope()&&(t.onScopeDispose(e),!0)}function DI(e){var t;const i=BI(e);return null!=(t=null==i?void 0:i.$el)?t:i}RI&&(null==(bI=null==window?void 0:window.navigator)?void 0:bI.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const OI=RI?window:void 0;function kI(...e){let i,n,r,s;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,s]=e,i=OI):[i,n,r,s]=e,!i)return PI;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(e=>e()),o.length=0},l=t.watch(()=>[DI(i),BI(s)],([e,t])=>{a(),e&&o.push(...n.flatMap(i=>r.map(n=>((e,t,i,n)=>(e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)))(e,i,n,t))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return LI(c),c}function FI(e,i=!1){const n=t.ref(),r=()=>n.value=Boolean(e());return r(),function(e,i=!0){t.getCurrentInstance()?t.onMounted(e):i?e():t.nextTick(e)}(r,i),n}const NI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},zI="__vueuse_ssr_handlers__";NI[zI]=NI[zI]||{};var UI,VI,GI=Object.getOwnPropertySymbols,jI=Object.prototype.hasOwnProperty,HI=Object.prototype.propertyIsEnumerable;function WI(e,i,n={}){const r=n,{window:s=OI}=r,o=((e,t)=>{var i={};for(var n in e)jI.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&GI)for(var n of GI(e))t.indexOf(n)<0&&HI.call(e,n)&&(i[n]=e[n]);return i})(r,["window"]);let a;const l=FI(()=>s&&"ResizeObserver"in s),c=()=>{a&&(a.disconnect(),a=void 0)},u=t.watch(()=>DI(e),e=>{c(),l.value&&s&&e&&(a=new ResizeObserver(i),a.observe(e,o))},{immediate:!0,flush:"post"}),h=()=>{c(),u()};return LI(h),{isSupported:l,stop:h}}(VI=UI||(UI={})).UP="UP",VI.RIGHT="RIGHT",VI.DOWN="DOWN",VI.LEFT="LEFT",VI.NONE="NONE";var $I=Object.defineProperty,XI=Object.getOwnPropertySymbols,qI=Object.prototype.hasOwnProperty,ZI=Object.prototype.propertyIsEnumerable,KI=(e,t,i)=>t in e?$I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;((e,t)=>{for(var i in t||(t={}))qI.call(t,i)&&KI(e,i,t[i]);if(XI)for(var i of XI(t))ZI.call(t,i)&&KI(e,i,t[i])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var YI={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const JI=e=>(i,n)=>QI(i,n,t.unref(e)),QI=(e,t,i)=>function(e,t,i){var n=null==e?void 0:AC(e,t);return void 0===n?i:n}(i,e,e).replace(/\{(\w+)\}/g,(e,i)=>{var n;return`${null!=(n=null==t?void 0:t[i])?n:`{${i}}`}`}),eM=Symbol("localeContextKey"),tM=e=>{const i=t.inject(eM,t.ref());return(e=>({lang:t.computed(()=>t.unref(e).name),locale:t.isRef(e)?e:t.ref(e),t:JI(e)}))(t.computed(()=>i.value||YI))},iM="__epPropKey",nM=(e,i)=>{if(!jT(e)||jT(n=e)&&n[iM])return e;var n;const{values:r,required:s,default:o,type:a,validator:l}=e,c=r||l?n=>{let s=!1,a=[];if(r&&(a=Array.from(r),zT(e,"default")&&a.push(o),s||(s=a.includes(n))),l&&(s||(s=l(n))),!s&&a.length>0){const e=[...new Set(a)].map(e=>JSON.stringify(e)).join(", ");t.warn(`Invalid prop: validation failed${i?` for prop "${i}"`:""}. Expected one of [${e}], got value ${JSON.stringify(n)}.`)}return s}:void 0,u={type:a,required:!!s,validator:c,[iM]:!0};return zT(e,"default")&&(u.default=o),u},rM=e=>hI(Object.entries(e).map(([e,t])=>[e,nM(t,e)])),sM=["","default","small","large"],oM=nM({type:String,values:sM,required:!1}),aM=Symbol("size"),lM="update:modelValue",cM="change",uM="input";var hM=(e,t)=>{const i=e.__vccOpts||e;for(const[n,r]of t)i[n]=r;return i};const dM=(e="")=>e.split(" ").filter(e=>!!e.trim()),pM=(e,t)=>{e&&t.trim()&&e.classList.remove(...dM(t))};function fM(e,t="px"){return e?vI(e)||GT(i=e)&&!Number.isNaN(Number(i))?`${e}${t}`:GT(e)?e:void 0:"";var i}const mM=(e,t)=>{if(e.install=i=>{for(const n of[e,...Object.values(null!=t?t:{})])i.component(n.name,n)},t)for(const[i,n]of Object.entries(t))e[i]=n;return e},gM=e=>(e.install=FT,e),_M=rM({size:{type:[Number,String]},color:{type:String}}),yM=t.defineComponent({name:"ElIcon",inheritAttrs:!1});const vM=mM(hM(t.defineComponent({...yM,props:_M,setup(e){const i=e,n=kT("icon"),r=t.computed(()=>{const{size:e,color:t}=i;return e||t?{fontSize:_I(e)?void 0:fM(e),"--color":t}:{}});return(e,i)=>(t.openBlock(),t.createElementBlock("i",t.mergeProps({class:t.unref(n).b(),style:t.unref(r)},e.$attrs),[t.renderSlot(e.$slots,"default")],16))}}),[["__file","icon.vue"]]));
35
+ /*! Element Plus Icons Vue v2.3.2 */var xM=t.defineComponent({name:"ArrowUp",__name:"arrow-up",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}),bM=t.defineComponent({name:"CaretRight",__name:"caret-right",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}),wM=t.defineComponent({name:"CircleCheck",__name:"circle-check",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),t.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}),EM=t.defineComponent({name:"CircleClose",__name:"circle-close",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}),AM=t.defineComponent({name:"Hide",__name:"hide",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),t.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}),TM=t.defineComponent({name:"Loading",__name:"loading",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}),SM=t.defineComponent({name:"Search",__name:"search",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}),CM=t.defineComponent({name:"View",__name:"view",setup:e=>(e,i)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))});const IM=[String,Object,Function],MM={validating:TM,success:wM,error:EM};let RM;const PM={height:"0",visibility:"hidden",overflow:RI&&/firefox/i.test(window.navigator.userAgent)?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},BM=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"];function LM(e,t=1,i){var n,r;RM||(RM=document.createElement("textarea"),(null!=(n=e.parentNode)?n:document.body).appendChild(RM));const{paddingSize:s,borderSize:o,boxSizing:a,contextStyle:l}=function(e){const t=window.getComputedStyle(e),i=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:BM.map(e=>[e,t.getPropertyValue(e)]),paddingSize:n,borderSize:r,boxSizing:i}}(e);l.forEach(([e,t])=>null==RM?void 0:RM.style.setProperty(e,t)),Object.entries(PM).forEach(([e,t])=>null==RM?void 0:RM.style.setProperty(e,t,"important")),RM.value=e.value||e.placeholder||"";let c=RM.scrollHeight;const u={};"border-box"===a?c+=o:"content-box"===a&&(c-=s),RM.value="";const h=RM.scrollHeight-s;if(vI(t)){let e=h*t;"border-box"===a&&(e=e+s+o),c=Math.max(e,c),u.minHeight=`${e}px`}if(vI(i)){let e=h*i;"border-box"===a&&(e=e+s+o),c=Math.min(e,c)}return u.height=`${c}px`,null==(r=RM.parentNode)||r.removeChild(RM),RM=void 0,u}const DM=rM({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),OM=e=>gI(DM,e),kM=rM({id:{type:String,default:void 0},size:oM,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:IM,default:EM},showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:IM},prefixIcon:{type:IM},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})},autofocus:Boolean,rows:{type:Number,default:2},...OM(["ariaLabel"]),inputmode:{type:String,default:void 0},name:String}),FM={[lM]:e=>GT(e),input:e=>GT(e),change:e=>GT(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},NM=["class","style"],zM=/^on[A-Z]/,UM={prefix:Math.floor(1e4*Math.random()),current:0},VM=Symbol("elIdInjection"),GM=e=>{const i=t.getCurrentInstance()?t.inject(VM,UM):UM,n=OT();return MI(()=>t.unref(e)||`${n.value}-id-${i.prefix}-${i.current++}`)},jM=Symbol("formContextKey"),HM=Symbol("formItemContextKey"),WM=()=>({form:t.inject(jM,void 0),formItem:t.inject(HM,void 0)}),$M=(e,{formItemContext:i,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=t.ref(!1)),r||(r=t.ref(!1));const s=t.getCurrentInstance(),o=t.ref();let a;const l=t.computed(()=>{var t;return!!(!e.label&&!e.ariaLabel&&i&&i.inputIds&&(null==(t=i.inputIds)?void 0:t.length)<=1)});return t.onMounted(()=>{a=t.watch([t.toRef(e,"id"),n],([e,t])=>{const n=null!=e?e:t?void 0:GM().value;n!==o.value&&((null==i?void 0:i.removeInputId)&&!(()=>{let e=null==s?void 0:s.parent;for(;e;){if("ElFormItem"===e.type.name)return!1;if("ElLabelWrap"===e.type.name)return!0;e=e.parent}return!1})()&&(o.value&&i.removeInputId(o.value),(null==r?void 0:r.value)||t||!n||i.addInputId(n)),o.value=n)},{immediate:!0})}),t.onUnmounted(()=>{a&&a(),(null==i?void 0:i.removeInputId)&&o.value&&i.removeInputId(o.value)}),{isLabeledByFormItem:l,inputId:o}},XM=e=>{const i=t.getCurrentInstance();return t.computed(()=>{var t,n;return null==(n=null==(t=null==i?void 0:i.proxy)?void 0:t.$props)?void 0:n[e]})},qM=(e,i={})=>{const n=t.ref(void 0),r=i.prop?n:XM("size"),s=i.global?n:(()=>{const e=t.inject(aM,{});return t.computed(()=>t.unref(e.size)||"")})(),o=i.form?{size:void 0}:t.inject(jM,void 0),a=i.formItem?{size:void 0}:t.inject(HM,void 0);return t.computed(()=>r.value||t.unref(e)||(null==a?void 0:a.size)||(null==o?void 0:o.size)||s.value||"")},ZM=e=>{const i=XM("disabled"),n=t.inject(jM,void 0);return t.computed(()=>i.value||t.unref(e)||(null==n?void 0:n.disabled)||!1)};const KM=t.defineComponent({name:"ElInput",inheritAttrs:!1});const YM=mM(hM(t.defineComponent({...KM,props:kM,emits:FM,setup(e,{expose:i,emit:n}){const r=e,s=t.useAttrs(),o=((e={})=>{const{excludeListeners:i=!1,excludeKeys:n}=e,r=t.computed(()=>((null==n?void 0:n.value)||[]).concat(NM)),s=t.getCurrentInstance();return s?t.computed(()=>{var e;return hI(Object.entries(null==(e=s.proxy)?void 0:e.$attrs).filter(([e])=>!(r.value.includes(e)||i&&zM.test(e))))}):t.computed(()=>({}))})(),a=t.useSlots(),l=t.computed(()=>["textarea"===r.type?g.b():m.b(),m.m(p.value),m.is("disabled",f.value),m.is("exceed",z.value),{[m.b("group")]:a.prepend||a.append,[m.m("prefix")]:a.prefix||r.prefixIcon,[m.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[m.bm("suffix","password-clear")]:O.value&&k.value,[m.b("hidden")]:"hidden"===r.type},s.class]),c=t.computed(()=>[m.e("wrapper"),m.is("focus",T.value)]),{form:u,formItem:h}=WM(),{inputId:d}=$M(r,{formItemContext:h}),p=qM(),f=ZM(),m=kT("input"),g=kT("textarea"),_=t.shallowRef(),y=t.shallowRef(),v=t.ref(!1),x=t.ref(!1),b=t.ref(),w=t.shallowRef(r.inputStyle),E=t.computed(()=>_.value||y.value),{wrapperRef:A,isFocused:T,handleFocus:S,handleBlur:C}=function(e,{disabled:i,beforeFocus:n,afterFocus:r,beforeBlur:s,afterBlur:o}={}){const a=t.getCurrentInstance(),{emit:l}=a,c=t.shallowRef(),u=t.ref(!1),h=e=>{const s=!!VT(n)&&n(e);t.unref(i)||u.value||s||(u.value=!0,l("focus",e),null==r||r())},d=e=>{var n;const r=!!VT(s)&&s(e);t.unref(i)||e.relatedTarget&&(null==(n=c.value)?void 0:n.contains(e.relatedTarget))||r||(u.value=!1,l("blur",e),null==o||o())};return t.watch([c,()=>t.unref(i)],([e,t])=>{e&&(t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1"))}),kI(c,"focus",h,!0),kI(c,"blur",d,!0),kI(c,"click",n=>{var r,s;t.unref(i)||(e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}})(n.target)||(null==(r=c.value)?void 0:r.contains(document.activeElement))&&c.value!==document.activeElement||null==(s=e.value)||s.focus()},!0),{isFocused:u,wrapperRef:c,handleFocus:h,handleBlur:d}}(E,{disabled:f,afterBlur(){var e;r.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"blur").catch(e=>{}))}}),I=t.computed(()=>{var e;return null!=(e=null==u?void 0:u.statusIcon)&&e}),M=t.computed(()=>(null==h?void 0:h.validateState)||""),R=t.computed(()=>M.value&&MM[M.value]),P=t.computed(()=>x.value?CM:AM),B=t.computed(()=>[s.style]),L=t.computed(()=>[r.inputStyle,w.value,{resize:r.resize}]),D=t.computed(()=>pI(r.modelValue)?"":String(r.modelValue)),O=t.computed(()=>r.clearable&&!f.value&&!r.readonly&&!!D.value&&(T.value||v.value)),k=t.computed(()=>r.showPassword&&!f.value&&!!D.value),F=t.computed(()=>r.showWordLimit&&!!r.maxlength&&("text"===r.type||"textarea"===r.type)&&!f.value&&!r.readonly&&!r.showPassword),N=t.computed(()=>D.value.length),z=t.computed(()=>!!F.value&&N.value>Number(r.maxlength)),U=t.computed(()=>!!a.suffix||!!r.suffixIcon||O.value||r.showPassword||F.value||!!M.value&&I.value),[V,G]=function(e){let t;return[function(){if(null==e.value)return;const{selectionStart:i,selectionEnd:n,value:r}=e.value;if(null==i||null==n)return;const s=r.slice(0,Math.max(0,i)),o=r.slice(Math.max(0,n));t={selectionStart:i,selectionEnd:n,value:r,beforeTxt:s,afterTxt:o}},function(){if(null==e.value||null==t)return;const{value:i}=e.value,{beforeTxt:n,afterTxt:r,selectionStart:s}=t;if(null==n||null==r||null==s)return;let o=i.length;if(i.endsWith(r))o=i.length-r.length;else if(i.startsWith(n))o=n.length;else{const e=n[s-1],t=i.indexOf(e,s-1);-1!==t&&(o=t+1)}e.value.setSelectionRange(o,o)}]}(_);WI(y,e=>{if(H(),!F.value||"both"!==r.resize)return;const t=e[0],{width:i}=t.contentRect;b.value={right:`calc(100% - ${i+15+6}px)`}});const j=()=>{const{type:e,autosize:i}=r;if(RI&&"textarea"===e&&y.value)if(i){const e=jT(i)?i.minRows:void 0,n=jT(i)?i.maxRows:void 0,r=LM(y.value,e,n);w.value={overflowY:"hidden",...r},t.nextTick(()=>{y.value.offsetHeight,w.value=r})}else w.value={minHeight:LM(y.value).minHeight}},H=(e=>{let t=!1;return()=>{var i;if(t||!r.autosize)return;null===(null==(i=y.value)?void 0:i.offsetParent)||(setTimeout(e),t=!0)}})(j),W=()=>{const e=E.value,t=r.formatter?r.formatter(D.value):D.value;e&&e.value!==t&&(e.value=t)},$=async e=>{V();let{value:i}=e.target;r.formatter&&r.parser&&(i=r.parser(i)),q.value||(i!==D.value?(n(lM,i),n(uM,i),await t.nextTick(),W(),G()):W())},X=e=>{let{value:t}=e.target;r.formatter&&r.parser&&(t=r.parser(t)),n(cM,t)},{isComposing:q,handleCompositionStart:Z,handleCompositionUpdate:K,handleCompositionEnd:Y}=function({afterComposition:e,emit:i}){const n=t.ref(!1),r=e=>{var t;null==i||i("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,s=r[r.length-1]||"";n.value=!(e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e))(s)},s=r=>{null==i||i("compositionend",r),n.value&&(n.value=!1,t.nextTick(()=>e(r)))};return{isComposing:n,handleComposition:e=>{"compositionend"===e.type?s(e):r(e)},handleCompositionStart:e=>{null==i||i("compositionstart",e),n.value=!0},handleCompositionUpdate:r,handleCompositionEnd:s}}({emit:n,afterComposition:$}),J=()=>{V(),x.value=!x.value,setTimeout(G)},Q=e=>{v.value=!1,n("mouseleave",e)},ee=e=>{v.value=!0,n("mouseenter",e)},te=e=>{n("keydown",e)},ie=()=>{n(lM,""),n(cM,""),n("clear"),n(uM,"")};return t.watch(()=>r.modelValue,()=>{var e;t.nextTick(()=>j()),r.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"change").catch(e=>{}))}),t.watch(D,()=>W()),t.watch(()=>r.type,async()=>{await t.nextTick(),W(),j()}),t.onMounted(()=>{!r.formatter&&r.parser,W(),t.nextTick(j)}),i({input:_,textarea:y,ref:E,textareaStyle:L,autosize:t.toRef(r,"autosize"),isComposing:q,focus:()=>{var e;return null==(e=E.value)?void 0:e.focus()},blur:()=>{var e;return null==(e=E.value)?void 0:e.blur()},select:()=>{var e;null==(e=E.value)||e.select()},clear:ie,resizeTextarea:j}),(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(l),{[t.unref(m).bm("group","append")]:e.$slots.append,[t.unref(m).bm("group","prepend")]:e.$slots.prepend}]),style:t.normalizeStyle(t.unref(B)),onMouseenter:ee,onMouseleave:Q},[t.createCommentVNode(" input "),"textarea"!==e.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createCommentVNode(" prepend slot "),e.$slots.prepend?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(m).be("group","prepend"))},[t.renderSlot(e.$slots,"prepend")],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{ref_key:"wrapperRef",ref:A,class:t.normalizeClass(t.unref(c))},[t.createCommentVNode(" prefix slot "),e.$slots.prefix||e.prefixIcon?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(t.unref(m).e("prefix"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("prefix-inner"))},[t.renderSlot(e.$slots,"prefix"),e.prefixIcon?(t.openBlock(),t.createBlock(t.unref(vM),{key:0,class:t.normalizeClass(t.unref(m).e("icon"))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.prefixIcon)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],2)],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("input",t.mergeProps({id:t.unref(d),ref_key:"input",ref:_,class:t.unref(m).e("inner")},t.unref(o),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?x.value?"text":"password":e.type,disabled:t.unref(f),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:t.unref(Z),onCompositionupdate:t.unref(K),onCompositionend:t.unref(Y),onInput:$,onChange:X,onKeydown:te}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),t.createCommentVNode(" suffix slot "),t.unref(U)?(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(t.unref(m).e("suffix"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("suffix-inner"))},[t.unref(O)&&t.unref(k)&&t.unref(F)?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"suffix"),e.suffixIcon?(t.openBlock(),t.createBlock(t.unref(vM),{key:0,class:t.normalizeClass(t.unref(m).e("icon"))},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.suffixIcon)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],64)),t.unref(O)?(t.openBlock(),t.createBlock(t.unref(vM),{key:1,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("clear")]),onMousedown:t.withModifiers(t.unref(FT),["prevent"]),onClick:ie},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onMousedown"])):t.createCommentVNode("v-if",!0),t.unref(k)?(t.openBlock(),t.createBlock(t.unref(vM),{key:2,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("password")]),onClick:J},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(P))))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0),t.unref(F)?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(t.unref(m).e("count"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("count-inner"))},t.toDisplayString(t.unref(N))+" / "+t.toDisplayString(e.maxlength),3)],2)):t.createCommentVNode("v-if",!0),t.unref(M)&&t.unref(R)&&t.unref(I)?(t.openBlock(),t.createBlock(t.unref(vM),{key:4,class:t.normalizeClass([t.unref(m).e("icon"),t.unref(m).e("validateIcon"),t.unref(m).is("loading","validating"===t.unref(M))])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(R))))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],2)],2)):t.createCommentVNode("v-if",!0)],2),t.createCommentVNode(" append slot "),e.$slots.append?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(t.unref(m).be("group","append"))},[t.renderSlot(e.$slots,"append")],2)):t.createCommentVNode("v-if",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createCommentVNode(" textarea "),t.createElementVNode("textarea",t.mergeProps({id:t.unref(d),ref_key:"textarea",ref:y,class:[t.unref(g).e("inner"),t.unref(m).is("focus",t.unref(T))]},t.unref(o),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:t.unref(f),readonly:e.readonly,autocomplete:e.autocomplete,style:t.unref(L),"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:t.unref(Z),onCompositionupdate:t.unref(K),onCompositionend:t.unref(Y),onInput:$,onFocus:t.unref(S),onBlur:t.unref(C),onChange:X,onKeydown:te}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),t.unref(F)?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(b.value),class:t.normalizeClass(t.unref(m).e("count"))},t.toDisplayString(t.unref(N))+" / "+t.toDisplayString(e.maxlength),7)):t.createCommentVNode("v-if",!0)],64))],38))}}),[["__file","input.vue"]])),JM={enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",numpadEnter:"NumpadEnter"},QM=({from:e,replacement:i,scope:n,version:r,ref:s,type:o="API"},a)=>{t.watch(()=>t.unref(a),e=>{},{immediate:!0})},eR={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:oM,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...OM(["ariaControls"])},tR={[lM]:e=>GT(e)||vI(e)||yI(e),change:e=>GT(e)||vI(e)||yI(e)},iR=Symbol("checkboxGroupContextKey"),nR=(e,{model:i,isLimitExceeded:n,hasOwnLabel:r,isDisabled:s,isLabeledByFormItem:o})=>{const a=t.inject(iR,void 0),{formItem:l}=WM(),{emit:c}=t.getCurrentInstance();function u(t){var i,n,r,s;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(n=null!=(i=e.trueValue)?i:e.trueLabel)||n:null!=(s=null!=(r=e.falseValue)?r:e.falseLabel)&&s}const h=t.computed(()=>(null==a?void 0:a.validateEvent)||e.validateEvent);return t.watch(()=>e.modelValue,()=>{h.value&&(null==l||l.validate("change").catch(e=>{}))}),{handleChange:function(e){if(n.value)return;const t=e.target;c(cM,u(t.checked),e)},onClickRoot:async function(a){if(!n.value&&!r.value&&!s.value&&o.value){a.composedPath().some(e=>"LABEL"===e.tagName)||(i.value=u([!1,e.falseValue,e.falseLabel].includes(i.value)),await t.nextTick(),function(e,t){c(cM,u(e),t)}(i.value,a))}}}},rR=(e,i)=>{const{formItem:n}=WM(),{model:r,isGroup:s,isLimitExceeded:o}=(e=>{const i=t.ref(!1),{emit:n}=t.getCurrentInstance(),r=t.inject(iR,void 0),s=t.computed(()=>!1===_I(r)),o=t.ref(!1),a=t.computed({get(){var t,n;return s.value?null==(t=null==r?void 0:r.modelValue)?void 0:t.value:null!=(n=e.modelValue)?n:i.value},set(e){var t,l;s.value&&UT(e)?(o.value=void 0!==(null==(t=null==r?void 0:r.max)?void 0:t.value)&&e.length>(null==r?void 0:r.max.value)&&e.length>a.value.length,!1===o.value&&(null==(l=null==r?void 0:r.changeEvent)||l.call(r,e))):(n(lM,e),i.value=e)}});return{model:a,isGroup:s,isLimitExceeded:o}})(e),{isFocused:a,isChecked:l,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:h,actualValue:d}=((e,i,{model:n})=>{const r=t.inject(iR,void 0),s=t.ref(!1),o=t.computed(()=>xI(e.value)?e.label:e.value),a=t.computed(()=>{const i=n.value;return yI(i)?i:UT(i)?jT(o.value)?i.map(t.toRaw).some(e=>dI(e,o.value)):i.map(t.toRaw).includes(o.value):null!=i?i===e.trueValue||i===e.trueLabel:!!i});return{checkboxButtonSize:qM(t.computed(()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value}),{prop:!0}),isChecked:a,isFocused:s,checkboxSize:qM(t.computed(()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),hasOwnLabel:t.computed(()=>!!i.default||!xI(o.value)),actualValue:o}})(e,i,{model:r}),{isDisabled:p}=(({model:e,isChecked:i})=>{const n=t.inject(iR,void 0),r=t.computed(()=>{var t,r;const s=null==(t=null==n?void 0:n.max)?void 0:t.value,o=null==(r=null==n?void 0:n.min)?void 0:r.value;return!_I(s)&&e.value.length>=s&&!i.value||!_I(o)&&e.value.length<=o&&i.value});return{isDisabled:ZM(t.computed(()=>(null==n?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}})({model:r,isChecked:l}),{inputId:f,isLabeledByFormItem:m}=$M(e,{formItemContext:n,disableIdGeneration:h,disableIdManagement:s}),{handleChange:g,onClickRoot:_}=nR(e,{model:r,isLimitExceeded:o,hasOwnLabel:h,isDisabled:p,isLabeledByFormItem:m});var y,v;return e.checked&&(UT(r.value)&&!r.value.includes(d.value)?r.value.push(d.value):r.value=null==(v=null!=(y=e.trueValue)?y:e.trueLabel)||v),QM({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>s.value&&xI(e.value))),QM({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>!!e.trueLabel)),QM({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},t.computed(()=>!!e.falseLabel)),{inputId:f,isLabeledByFormItem:m,isChecked:l,isDisabled:p,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:h,model:r,actualValue:d,handleChange:g,onClickRoot:_}},sR=t.defineComponent({name:"ElCheckbox"});var oR=hM(t.defineComponent({...sR,props:eR,emits:tR,setup(e){const i=e,n=t.useSlots(),{inputId:r,isLabeledByFormItem:s,isChecked:o,isDisabled:a,isFocused:l,checkboxSize:c,hasOwnLabel:u,model:h,actualValue:d,handleChange:p,onClickRoot:f}=rR(i,n),m=kT("checkbox"),g=t.computed(()=>[m.b(),m.m(c.value),m.is("disabled",a.value),m.is("bordered",i.border),m.is("checked",o.value)]),_=t.computed(()=>[m.e("input"),m.is("disabled",a.value),m.is("checked",o.value),m.is("indeterminate",i.indeterminate),m.is("focus",l.value)]);return(e,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(!t.unref(u)&&t.unref(s)?"span":"label"),{class:t.normalizeClass(t.unref(g)),"aria-controls":e.indeterminate?e.ariaControls:null,onClick:t.unref(f)},{default:t.withCtx(()=>{var i,n,s,o;return[t.createElementVNode("span",{class:t.normalizeClass(t.unref(_))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,id:t.unref(r),"onUpdate:modelValue":e=>t.isRef(h)?h.value=e:null,class:t.normalizeClass(t.unref(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:t.unref(a),"true-value":null==(n=null!=(i=e.trueValue)?i:e.trueLabel)||n,"false-value":null!=(o=null!=(s=e.falseValue)?s:e.falseLabel)&&o,onChange:t.unref(p),onFocus:e=>l.value=!0,onBlur:e=>l.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(h)]]):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,id:t.unref(r),"onUpdate:modelValue":e=>t.isRef(h)?h.value=e:null,class:t.normalizeClass(t.unref(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:t.unref(a),value:t.unref(d),name:e.name,tabindex:e.tabindex,onChange:t.unref(p),onFocus:e=>l.value=!0,onBlur:e=>l.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(h)]]),t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("inner"))},null,2)],2),t.unref(u)?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(t.unref(m).e("label"))},[t.renderSlot(e.$slots,"default"),e.$slots.default?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.label),1)],64))],2)):t.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}}),[["__file","checkbox.vue"]]);const aR=t.defineComponent({name:"ElCheckboxButton"});var lR=hM(t.defineComponent({...aR,props:eR,emits:tR,setup(e){const i=e,n=t.useSlots(),{isFocused:r,isChecked:s,isDisabled:o,checkboxButtonSize:a,model:l,actualValue:c,handleChange:u}=rR(i,n),h=t.inject(iR,void 0),d=kT("checkbox"),p=t.computed(()=>{var e,t,i,n;const r=null!=(t=null==(e=null==h?void 0:h.fill)?void 0:e.value)?t:"";return{backgroundColor:r,borderColor:r,color:null!=(n=null==(i=null==h?void 0:h.textColor)?void 0:i.value)?n:"",boxShadow:r?`-1px 0 0 0 ${r}`:void 0}}),f=t.computed(()=>[d.b("button"),d.bm("button",a.value),d.is("disabled",o.value),d.is("checked",s.value),d.is("focus",r.value)]);return(e,i)=>{var n,a,h,m;return t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(f))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,"onUpdate:modelValue":e=>t.isRef(l)?l.value=e:null,class:t.normalizeClass(t.unref(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:t.unref(o),"true-value":null==(a=null!=(n=e.trueValue)?n:e.trueLabel)||a,"false-value":null!=(m=null!=(h=e.falseValue)?h:e.falseLabel)&&m,onChange:t.unref(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(l)]]):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,"onUpdate:modelValue":e=>t.isRef(l)?l.value=e:null,class:t.normalizeClass(t.unref(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:t.unref(o),value:t.unref(c),onChange:t.unref(u),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:t.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[t.vModelCheckbox,t.unref(l)]]),e.$slots.default||e.label?(t.openBlock(),t.createElementBlock("span",{key:2,class:t.normalizeClass(t.unref(d).be("button","inner")),style:t.normalizeStyle(t.unref(s)?t.unref(p):void 0)},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],6)):t.createCommentVNode("v-if",!0)],2)}}}),[["__file","checkbox-button.vue"]]);const cR=rM({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:oM,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:Array},props:{type:Object,default:()=>hR},...OM(["ariaLabel"])}),uR={[lM]:e=>UT(e),change:e=>UT(e)},hR={label:"label",value:"value",disabled:"disabled"},dR=t.defineComponent({name:"ElCheckboxGroup"});var pR=hM(t.defineComponent({...dR,props:cR,emits:uR,setup(e,{emit:i}){const n=e,r=kT("checkbox"),{formItem:s}=WM(),{inputId:o,isLabeledByFormItem:a}=$M(n,{formItemContext:s}),l=async e=>{i(lM,e),await t.nextTick(),i(cM,e)},c=t.computed({get:()=>n.modelValue,set(e){l(e)}}),u=t.computed(()=>({...hR,...n.props}));return t.provide(iR,{...gI(t.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),t.watch(()=>n.modelValue,(e,t)=>{n.validateEvent&&!dI(e,t)&&(null==s||s.validate("change").catch(e=>{}))}),(e,i)=>{var l;return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{id:t.unref(o),class:t.normalizeClass(t.unref(r).b("group")),role:"group","aria-label":t.unref(a)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":t.unref(a)?null==(l=t.unref(s))?void 0:l.labelId:void 0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(e,i)=>(t.openBlock(),t.createBlock(oR,t.mergeProps({key:i},(e=>{const t={label:e[u.value.label],value:e[u.value.value],disabled:e[u.value.disabled]};return{...e,...t}})(e)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),[["__file","checkbox-group.vue"]]);const fR=mM(oR,{CheckboxButton:lR,CheckboxGroup:pR});gM(lR),gM(pR);const mR=t.defineComponent({name:"ElCollapseTransition"});const gR=mM(hM(t.defineComponent({...mR,setup(e){const i=kT("collapse-transition"),n=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},r={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame(()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:0!==e.scrollHeight?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"})},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){n(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){n(e)},leaveCancelled(e){n(e)}};return(e,n)=>(t.openBlock(),t.createBlock(t.Transition,t.mergeProps({name:t.unref(i).b()},t.toHandlers(r)),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["name"]))}}),[["__file","collapse-transition.vue"]])),_R=t.defineComponent({name:"ImgEmpty"});var yR=hM(t.defineComponent({..._R,setup(e){const i=kT("empty"),n=GM();return(e,r)=>(t.openBlock(),t.createElementBlock("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:`linearGradient-1-${t.unref(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),t.createElementVNode("linearGradient",{id:`linearGradient-2-${t.unref(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),t.createElementVNode("stop",{"stop-color":`var(${t.unref(i).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),t.createElementVNode("rect",{id:`path-3-${t.unref(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),t.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.createElementVNode("g",{transform:"translate(-1268.000000, -535.000000)"},[t.createElementVNode("g",{transform:"translate(1268.000000, 535.000000)"},[t.createElementVNode("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${t.unref(i).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),t.createElementVNode("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),t.createElementVNode("rect",{fill:`url(#linearGradient-1-${t.unref(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),t.createElementVNode("rect",{fill:`url(#linearGradient-2-${t.unref(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),t.createElementVNode("g",{transform:"translate(53.000000, 45.000000)"},[t.createElementVNode("use",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${t.unref(n)}`},null,8,["fill","xlink:href"]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${t.unref(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),t.createElementVNode("polygon",{fill:`var(${t.unref(i).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}}),[["__file","img-empty.vue"]]);const vR=rM({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),xR=t.defineComponent({name:"ElEmpty"});const bR=mM(hM(t.defineComponent({...xR,props:vR,setup(e){const i=e,{t:n}=tM(),r=kT("empty"),s=t.computed(()=>i.description||n("el.table.emptyText")),o=t.computed(()=>({width:fM(i.imageSize)}));return(e,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(r).b())},[t.createElementVNode("div",{class:t.normalizeClass(t.unref(r).e("image")),style:t.normalizeStyle(t.unref(o))},[e.image?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image,ondragstart:"return false"},null,8,["src"])):t.renderSlot(e.$slots,"image",{key:1},()=>[t.createVNode(yR)])],6),t.createElementVNode("div",{class:t.normalizeClass(t.unref(r).e("description"))},[e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("p",{key:1},t.toDisplayString(t.unref(s)),1))],2),e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(r).e("bottom"))},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("v-if",!0)],2))}}),[["__file","empty.vue"]])),wR=Symbol("ElSelect"),ER=rM({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:sM,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),AR=t.defineComponent({name:"ElText"});const TR=mM(hM(t.defineComponent({...AR,props:ER,setup(e){const i=e,n=t.ref(),r=qM(),s=kT("text"),o=t.computed(()=>[s.b(),s.m(i.type),s.m(r.value),s.is("truncated",i.truncated),s.is("line-clamp",!_I(i.lineClamp))]),a=()=>{var e,r,s,o,a,l,c;if(t.useAttrs().title)return;let u=!1;const h=(null==(e=n.value)?void 0:e.textContent)||"";if(i.truncated){const e=null==(r=n.value)?void 0:r.offsetWidth,t=null==(s=n.value)?void 0:s.scrollWidth;e&&t&&t>e&&(u=!0)}else if(!_I(i.lineClamp)){const e=null==(o=n.value)?void 0:o.offsetHeight,t=null==(a=n.value)?void 0:a.scrollHeight;e&&t&&t>e&&(u=!0)}u?null==(l=n.value)||l.setAttribute("title",h):null==(c=n.value)||c.removeAttribute("title")};return t.onMounted(a),t.onUpdated(a),(e,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{ref_key:"textRef",ref:n,class:t.normalizeClass(t.unref(o)),style:t.normalizeStyle({"-webkit-line-clamp":e.lineClamp})},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["class","style"]))}}),[["__file","text.vue"]])),SR="$treeNodeId",CR=function(e,t){t&&!t[SR]&&Object.defineProperty(t,SR,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},IR=(e,t)=>null==t?void 0:t[e||SR],MR=(e,t,i)=>{const n=e.value.currentNode;i();const r=e.value.currentNode;n!==r&&t("current-change",r?r.data:null,r)},RR=e=>{let t=!0,i=!0,n=!0;for(let r=0,s=e.length;r<s;r++){const s=e[r];(!0!==s.checked||s.indeterminate)&&(t=!1,s.disabled||(n=!1)),(!1!==s.checked||s.indeterminate)&&(i=!1)}return{all:t,none:i,allWithoutDisable:n,half:!t&&!i}},PR=function(e){if(0===e.childNodes.length||e.loading)return;const{all:t,none:i,half:n}=RR(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):n?(e.checked=!1,e.indeterminate=!0):i&&(e.checked=!1,e.indeterminate=!1);const r=e.parent;r&&0!==r.level&&(e.store.checkStrictly||PR(r))},BR=function(e,t){const i=e.store.props,n=e.data||{},r=i[t];if(VT(r))return r(n,e);if(GT(r))return n[r];if(_I(r)){const e=n[t];return _I(e)?"":e}},LR=function(e,t){e.forEach(e=>{e.canFocus=t,LR(e.childNodes,t)})};let DR=0;class OR{constructor(e){this.isLeafByUser=void 0,this.isLeaf=void 0,this.id=DR++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const t in e)zT(e,t)&&(this[t]=e[t]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var e;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const i=t.props;if(i&&void 0!==i.isLeaf){const e=BR(this,"isLeaf");yI(e)&&(this.isLeafByUser=e)}if(!0!==t.lazy&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),UT(this.data)||CR(this,this.data),!this.data)return;const n=t.defaultExpandedKeys,r=t.key;r&&!pI(this.key)&&n&&n.includes(this.key)&&this.expand(null,t.autoExpandParent),r&&void 0!==t.currentNodeKey&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),1!==this.level&&!0!==(null==(e=this.parent)?void 0:e.expanded)||(this.canFocus=!0)}setData(e){let t;UT(e)||CR(this,e),this.data=e,this.childNodes=[],t=0===this.level&&UT(this.data)?this.data:BR(this,"children")||[];for(let i=0,n=t.length;i<n;i++)this.insertChild({data:t[i]})}get label(){return BR(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return BR(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some(i=>i===e||t&&i.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,i,n){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof OR)){if(!n){const t=this.getChildren(!0);(null==t?void 0:t.includes(e.data))||(_I(i)||i<0?null==t||t.push(e.data):null==t||t.splice(i,0,e.data))}Object.assign(e,{parent:this,store:this.store}),(e=t.reactive(new OR(e)))instanceof OR&&e.initialize()}e.level=this.level+1,_I(i)||i<0?this.childNodes.push(e):this.childNodes.splice(i,0,e),this.updateLeafState()}insertBefore(e,t){let i;t&&(i=this.childNodes.indexOf(t)),this.insertChild(e,i)}insertAfter(e,t){let i;t&&(i=this.childNodes.indexOf(t),-1!==i&&(i+=1)),this.insertChild(e,i)}removeChild(e){const t=this.getChildren()||[],i=t.indexOf(e.data);i>-1&&t.splice(i,1);const n=this.childNodes.indexOf(e);n>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(n,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let i=0;i<this.childNodes.length;i++)if(this.childNodes[i].data===e){t=this.childNodes[i];break}t&&this.removeChild(t)}expand(e,t){const i=()=>{if(t){let e=this.parent;for(;e&&e.level>0;)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),LR(this.childNodes,!0)};this.shouldLoadData()?this.loadData(e=>{UT(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||PR(this),i())}):i()}doCreateChildren(e,t={}){e.forEach(e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)})}collapse(){this.expanded=!1,LR(this.childNodes,!1)}shouldLoadData(){return Boolean(!0===this.store.lazy&&this.store.load&&!this.loaded)}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,i,n){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:i,allWithoutDisable:r}=RR(this.childNodes);this.isLeaf||i||!r||(this.checked=!1,e=!1);const s=()=>{if(t){const i=this.childNodes;for(let o=0,a=i.length;o<a;o++){const r=i[o];n=n||!1!==e;const s=r.disabled?r.checked:n;r.setChecked(s,t,!0,n)}const{half:r,all:s}=RR(i);s||(this.checked=s,this.indeterminate=r)}};if(this.shouldLoadData())return void this.loadData(()=>{s(),PR(this)},{checked:!1!==e});s()}const r=this.parent;r&&0!==r.level&&(i||PR(r))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const i=this.store.props;let n="children";return i&&(n=i.children||"children"),_I(t[n])&&(t[n]=null),e&&!t[n]&&(t[n]=[]),t[n]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map(e=>e.data),i={},n=[];e.forEach((e,r)=>{const s=e[SR];!!s&&t.findIndex(e=>(null==e?void 0:e[SR])===s)>=0?i[s]={index:r,data:e}:n.push({index:r,data:e})}),this.store.lazy||t.forEach(e=>{i[null==e?void 0:e[SR]]||this.removeChildByData(e)}),n.forEach(({index:e,data:t})=>{this.insertChild({data:t},e)}),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const i=i=>{this.childNodes=[],this.doCreateChildren(i,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,i)},n=()=>{this.loading=!1};this.store.load(this,i,n)}}eachNode(e){const t=[this];for(;t.length;){const i=t.shift();t.unshift(...i.childNodes),e(i)}}reInitChecked(){this.store.checkStrictly||PR(this)}}class kR{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)zT(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new OR({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){(0,this.load)(this.root,e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()},FT)}else this._initDefaultCheckedNodes()}filter(e){const i=this.filterNodeMethod,n=this.lazy,r=async function(s){const o=s.root?s.root.childNodes:s.childNodes;for(const[n,a]of o.entries())a.visible=!!(null==i?void 0:i.call(a,e,a.data,a)),n%80==0&&n>0&&await t.nextTick(),await r(a);if(!s.visible&&o.length){let e=!0;e=!o.some(e=>e.visible),s.root?s.root.visible=!1===e:s.visible=!1===e}e&&s.visible&&!s.isLeaf&&(n&&!s.loaded||s.expand())};r(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof OR)return e;const t=jT(e)?IR(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var i;const n=this.getNode(t);null==(i=n.parent)||i.insertBefore({data:e},n)}insertAfter(e,t){var i;const n=this.getNode(t);null==(i=n.parent)||i.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const i=xI(t)?this.root:this.getNode(t);i&&i.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(e=>{const i=t[e];i&&i.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!pI(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){const t=e.key;pI(t)||(this.nodesMap[t]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){this.key&&e&&e.data&&(e.childNodes.forEach(e=>{this.deregisterNode(e)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const i=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(r=>{(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&i.push(r.data),n(r)})};return n(this),i}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(e=>(e||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(i=>{i.indeterminate&&e.push(i.data),t(i)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const i in t)zT(t,i)&&e.push(t[i]);return e}updateChildren(e,t){const i=this.nodesMap[e];if(!i)return;const n=i.childNodes;for(let r=n.length-1;r>=0;r--){const e=n[r];this.remove(e.data)}for(let r=0,s=t.length;r<s;r++){const e=t[r];this.append(e,i.data)}}_setCheckedKeys(e,t=!1,i){const n=this._getAllNodes().sort((e,t)=>e.level-t.level),r=Object.create(null),s=Object.keys(i);n.forEach(e=>e.setChecked(!1,!1));const o=t=>{t.childNodes.forEach(t=>{var i;r[t.data[e]]=!0,(null==(i=t.childNodes)?void 0:i.length)&&o(t)})};for(let a=0,l=n.length;a<l;a++){const i=n[a],l=i.data[e].toString();if(s.includes(l)){if(i.childNodes.length&&o(i),i.isLeaf||this.checkStrictly)i.setChecked(!0,!1);else if(i.setChecked(!0,!0),t){i.setChecked(!1,!1);const e=function(t){t.childNodes.forEach(t=>{t.isLeaf||t.setChecked(!1,!1),e(t)})};e(i)}}else i.checked&&!r[l]&&i.setChecked(!1,!1)}}setCheckedNodes(e,t=!1){const i=this.key,n={};e.forEach(e=>{n[(e||{})[i]]=!0}),this._setCheckedKeys(i,t,n)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const i=this.key,n={};e.forEach(e=>{n[e]=!0}),this._setCheckedKeys(i,t,n)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)})}setChecked(e,t,i){const n=this.getNode(e);n&&n.setChecked(!!t,i)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var i;const n=e[this.key],r=this.nodesMap[n];this.setCurrentNode(r),t&&this.currentNode&&this.currentNode.level>1&&(null==(i=this.currentNode.parent)||i.expand(null,!0))}setCurrentNodeKey(e,t=!0){var i;if(this.currentNodeKey=e,xI(e))return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&(null==(i=this.currentNode.parent)||i.expand(null,!0)))}}const FR="RootTree",NR="NodeInstance",zR="TreeNodeMap";var UR=hM(t.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const i=kT("tree"),n=t.inject(NR),r=t.inject(FR);return()=>{const s=e.node,{data:o,store:a}=s;return e.renderContent?e.renderContent(t.h,{_self:n,node:s,data:o,store:a}):t.renderSlot(r.ctx.slots,"default",{node:s,data:o},()=>[t.h(TR,{tag:"span",truncated:!0,class:i.be("node","label")},()=>[s.label])])}}}),[["__file","tree-node-content.vue"]]);function VR(e){const i=t.inject(zR,null),n={treeNodeExpand:t=>{var i;e.node!==t&&(null==(i=e.node)||i.collapse())},children:[]};return i&&i.children.push(n),t.provide(zR,n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const GR=Symbol("dragEvents");function jR({props:e,ctx:i,el$:n,dropIndicator$:r,store:s}){const o=kT("tree"),a=t.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return t.provide(GR,{treeNodeDragStart:({event:t,treeNode:n})=>{if(t.dataTransfer){if(VT(e.allowDrag)&&!e.allowDrag(n.node))return t.preventDefault(),!1;t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain","")}catch(cr){}a.value.draggingNode=n,i.emit("node-drag-start",n.node,t)}},treeNodeDragOver:({event:t,treeNode:s})=>{if(!t.dataTransfer)return;const l=s,c=a.value.dropNode;c&&c.node.id!==l.node.id&&pM(c.$el,o.is("drop-inner"));const u=a.value.draggingNode;if(!u||!l)return;let h=!0,d=!0,p=!0,f=!0;VT(e.allowDrop)&&(h=e.allowDrop(u.node,l.node,"prev"),f=d=e.allowDrop(u.node,l.node,"inner"),p=e.allowDrop(u.node,l.node,"next")),t.dataTransfer.dropEffect=d||h||p?"move":"none",(h||d||p)&&(null==c?void 0:c.node.id)!==l.node.id&&(c&&i.emit("node-drag-leave",u.node,c.node,t),i.emit("node-drag-enter",u.node,l.node,t)),a.value.dropNode=h||d||p?l:null,l.node.nextSibling===u.node&&(p=!1),l.node.previousSibling===u.node&&(h=!1),l.node.contains(u.node,!1)&&(d=!1),(u.node===l.node||u.node.contains(l.node))&&(h=!1,d=!1,p=!1);const m=l.$el,g=m.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),_=n.value.getBoundingClientRect();let y;const v=h?d?.25:p?.45:1:-1,x=p?d?.75:h?.55:0:1;let b=-9999;const w=t.clientY-g.top;y=w<g.height*v?"before":w>g.height*x?"after":d?"inner":"none";const E=m.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),A=r.value;var T,S;"before"===y?b=E.top-_.top:"after"===y&&(b=E.bottom-_.top),A.style.top=`${b}px`,A.style.left=E.right-_.left+"px","inner"===y?(T=m,S=o.is("drop-inner"),T&&S.trim()&&T.classList.add(...dM(S))):pM(m,o.is("drop-inner")),a.value.showDropIndicator="before"===y||"after"===y,a.value.allowDrop=a.value.showDropIndicator||f,a.value.dropType=y,i.emit("node-drag-over",u.node,l.node,t)},treeNodeDragEnd:e=>{var t,n;const{draggingNode:r,dropType:l,dropNode:c}=a.value;if(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),(null==r?void 0:r.node.data)&&c){const a={data:r.node.data};"none"!==l&&r.node.remove(),"before"===l?null==(t=c.node.parent)||t.insertBefore(a,c.node):"after"===l?null==(n=c.node.parent)||n.insertAfter(a,c.node):"inner"===l&&c.node.insertChild(a),"none"!==l&&(s.value.registerNode(a),s.value.key&&r.node.eachNode(e=>{var t;null==(t=s.value.nodesMap[e.data[s.value.key]])||t.setChecked(e.checked,!s.value.checkStrictly)})),pM(c.$el,o.is("drop-inner")),i.emit("node-drag-end",r.node,c.node,l,e),"none"!==l&&i.emit("node-drop",r.node,c.node,l,e)}r&&!c&&i.emit("node-drag-end",r.node,null,l,e),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const HR=t.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:gR,ElCheckbox:fR,NodeContent:UR,ElIcon:vM,Loading:TM},props:{node:{type:OR,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,i){const n=kT("tree"),{broadcastExpanded:r}=VR(e),s=t.inject(FR),o=t.ref(!1),a=t.ref(!1),l=t.ref(),c=t.ref(),u=t.ref(),h=t.inject(GR),d=t.getCurrentInstance();t.provide(NR,d),e.node.expanded&&(o.value=!0,a.value=!0);const p=s.props.props.children||"children";t.watch(()=>{var t;const i=null==(t=e.node.data)?void 0:t[p];return i&&[...i]},()=>{e.node.updateChildren()}),t.watch(()=>e.node.indeterminate,t=>{m(e.node.checked,t)}),t.watch(()=>e.node.checked,t=>{m(t,e.node.indeterminate)}),t.watch(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),t.watch(()=>e.node.expanded,e=>{t.nextTick(()=>o.value=e),e&&(a.value=!0)});const f=e=>IR(s.props.nodeKey,e.data),m=(t,i)=>{l.value===t&&c.value===i||s.ctx.emit("check-change",e.node.data,t,i),l.value=t,c.value=i},g=()=>{e.node.isLeaf||(o.value?(s.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):e.node.expand(()=>{i.emit("node-expand",e.node.data,e.node,d)}))},_=i=>{e.node.setChecked(i,!(null==s?void 0:s.props.checkStrictly)),t.nextTick(()=>{const t=s.store.value;s.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:s,expanded:o,childNodeRendered:a,oldChecked:l,oldIndeterminate:c,getNodeKey:f,getNodeClass:t=>{const i=e.props.class;if(!i)return{};let n;if(VT(i)){const{data:e}=t;n=i(e,t)}else n=i;return GT(n)?{[n]:!0}:n},handleSelectChange:m,handleClick:t=>{MR(s.store,s.ctx.emit,()=>{var t;if(null==(t=null==s?void 0:s.props)?void 0:t.nodeKey){const t=f(e.node);s.store.value.setCurrentNodeKey(t)}else s.store.value.setCurrentNode(e.node)}),s.currentNode.value=e.node,s.props.expandOnClickNode&&g(),(s.props.checkOnClickNode||e.node.isLeaf&&s.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&_(!e.node.checked),s.ctx.emit("node-click",e.node.data,e.node,d,t)},handleContextMenu:t=>{var i;(null==(i=s.instance.vnode.props)?void 0:i.onNodeContextmenu)&&(t.stopPropagation(),t.preventDefault()),s.ctx.emit("node-contextmenu",t,e.node.data,e.node,d)},handleExpandIconClick:g,handleCheckChange:_,handleChildNodeExpand:(e,t,i)=>{r(t),s.ctx.emit("node-expand",e,t,i)},handleDragStart:t=>{s.props.draggable&&h.treeNodeDragStart({event:t,treeNode:e})},handleDragOver:t=>{t.preventDefault(),s.props.draggable&&h.treeNodeDragOver({event:t,treeNode:{$el:u.value,node:e.node}})},handleDrop:e=>{e.preventDefault()},handleDragEnd:e=>{s.props.draggable&&h.treeNodeDragEnd(e)},CaretRight:bM}}});var WR=hM(HR,[["render",function(e,i,n,r,s,o){const a=t.resolveComponent("el-icon"),l=t.resolveComponent("el-checkbox"),c=t.resolveComponent("loading"),u=t.resolveComponent("node-content"),h=t.resolveComponent("el-tree-node"),d=t.resolveComponent("el-collapse-transition");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref:"node$",class:t.normalizeClass([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t.withModifiers(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:t.withModifiers(e.handleDragStart,["stop"]),onDragover:t.withModifiers(e.handleDragOver,["stop"]),onDragend:t.withModifiers(e.handleDragEnd,["stop"]),onDrop:t.withModifiers(e.handleDrop,["stop"])},[t.createElementVNode("div",{class:t.normalizeClass(e.ns.be("node","content")),style:t.normalizeStyle({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:t.withModifiers(e.handleExpandIconClick,["stop"])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):t.createCommentVNode("v-if",!0),e.showCheckbox?(t.openBlock(),t.createBlock(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t.withModifiers(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):t.createCommentVNode("v-if",!0),e.node.loading?(t.openBlock(),t.createBlock(a,{key:2,class:t.normalizeClass([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:t.withCtx(()=>[t.createVNode(c)]),_:1},8,["class"])):t.createCommentVNode("v-if",!0),t.createVNode(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),t.createVNode(d,null,{default:t.withCtx(()=>[!e.renderAfterExpand||e.childNodeRendered?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t.withModifiers(()=>{},["stop"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.node.childNodes,i=>(t.openBlock(),t.createBlock(h,{key:e.getNodeKey(i),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:i,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded","onClick"])),[[t.vShow,e.expanded]]):t.createCommentVNode("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[t.vShow,e.node.visible]])}],["__file","tree-node.vue"]]);const $R=mM(hM(t.defineComponent({name:"ElTree",components:{ElTreeNode:WR},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:{type:Function},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:Function},allowDrop:{type:Function},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:IM}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,i){const{t:n}=tM(),r=kT("tree"),s=t.inject(wR,null),o=t.ref(new kR({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const a=t.ref(o.value.root),l=t.ref(null),c=t.ref(null),u=t.ref(null),{broadcastExpanded:h}=VR(e),{dragState:d}=jR({props:e,ctx:i,el$:c,dropIndicator$:u,store:o});!function({el$:e},i){const n=kT("tree");function r(e,t){var n,r;const s=i.value.getNode(e[t].dataset.key);return s.canFocus&&s.visible&&((null==(n=s.parent)?void 0:n.expanded)||0===(null==(r=s.parent)?void 0:r.level))}t.onMounted(()=>{s()}),t.onUpdated(()=>{Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(e=>{e.setAttribute("tabindex","-1")})}),kI(e,"keydown",t=>{const i=t.target;if(!i.className.includes(n.b("node")))return;const s=t.code,o=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a=o.indexOf(i);let l;if([JM.up,JM.down].includes(s)){if(t.preventDefault(),s===JM.up){l=-1===a?0:0!==a?a-1:o.length-1;const e=l;for(;!r(o,l);){if(l--,l===e){l=-1;break}l<0&&(l=o.length-1)}}else{l=-1===a?0:a<o.length-1?a+1:0;const e=l;for(;!r(o,l);){if(l++,l===e){l=-1;break}l>=o.length&&(l=0)}}-1!==l&&o[l].focus()}[JM.left,JM.right].includes(s)&&(t.preventDefault(),i.click());const c=i.querySelector('[type="checkbox"]');[JM.enter,JM.numpadEnter,JM.space].includes(s)&&c&&(t.preventDefault(),c.click())});const s=()=>{var t;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(e=>{e.setAttribute("tabindex","-1")});const r=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);r.length?r[0].setAttribute("tabindex","0"):null==(t=i[0])||t.setAttribute("tabindex","0")}}({el$:c},o);const p=t.computed(()=>{const{childNodes:e}=a.value,t=!!s&&0!==s.hasFilteredOptions;return(!e||0===e.length||e.every(({visible:e})=>!e))&&!t});t.watch(()=>e.currentNodeKey,e=>{o.value.setCurrentNodeKey(null!=e?e:null)}),t.watch(()=>e.defaultCheckedKeys,(e,t)=>{dI(e,t)||o.value.setDefaultCheckedKey(null!=e?e:[])}),t.watch(()=>e.defaultExpandedKeys,e=>{o.value.setDefaultExpandedKeys(null!=e?e:[])}),t.watch(()=>e.data,e=>{o.value.setData(e)},{deep:!0}),t.watch(()=>e.checkStrictly,e=>{o.value.checkStrictly=e});const f=()=>{const e=o.value.getCurrentNode();return e?e.data:null};return t.provide(FR,{ctx:i,props:e,store:o,root:a,currentNode:l,instance:t.getCurrentInstance()}),t.provide(HM,void 0),{ns:r,store:o,root:a,currentNode:l,dragState:d,el$:c,dropIndicator$:u,isEmpty:p,filter:t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(t)},getNodeKey:t=>IR(e.nodeKey,t.data),getNodePath:t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const i=o.value.getNode(t);if(!i)return[];const n=[i.data];let r=i.parent;for(;r&&r!==a.value;)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:(e,t)=>o.value.getCheckedNodes(e,t),getCheckedKeys:e=>o.value.getCheckedKeys(e),getCurrentNode:f,getCurrentKey:()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=f();return t?t[e.nodeKey]:null},setCheckedNodes:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(t,i)},setCheckedKeys:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(t,i)},setChecked:(e,t,i)=>{o.value.setChecked(e,t,i)},getHalfCheckedNodes:()=>o.value.getHalfCheckedNodes(),getHalfCheckedKeys:()=>o.value.getHalfCheckedKeys(),setCurrentNode:(t,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");MR(o,i.emit,()=>{h(t),o.value.setUserCurrentNode(t,n)})},setCurrentKey:(t,n=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");MR(o,i.emit,()=>{h(),o.value.setCurrentNodeKey(null!=t?t:null,n)})},t:n,getNode:e=>o.value.getNode(e),remove:e=>{o.value.remove(e)},append:(e,t)=>{o.value.append(e,t)},insertBefore:(e,t)=>{o.value.insertBefore(e,t)},insertAfter:(e,t)=>{o.value.insertAfter(e,t)},handleNodeExpand:(e,t,n)=>{h(t),i.emit("node-expand",e,t,n)},updateKeyChildren:(t,i)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(t,i)}}}}),[["render",function(e,i,n,r,s,o){const a=t.resolveComponent("el-tree-node");return t.openBlock(),t.createElementBlock("div",{ref:"el$",class:t.normalizeClass([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.root.childNodes,i=>(t.openBlock(),t.createBlock(a,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.ns.e("empty-block"))},[t.renderSlot(e.$slots,"empty",{},()=>{var i;return[t.createElementVNode("span",{class:t.normalizeClass(e.ns.e("empty-text"))},t.toDisplayString(null!=(i=e.emptyText)?i:e.t("el.tree.emptyText")),3)]})],2)):t.createCommentVNode("v-if",!0),t.withDirectives(t.createElementVNode("div",{ref:"dropIndicator$",class:t.normalizeClass(e.ns.e("drop-indicator"))},null,2),[[t.vShow,e.dragState.showDropIndicator]])],2)}],["__file","tree.vue"]])),XR={class:"gismap-layer"},qR={class:"gismap-layer-title"},ZR={class:"gismap-layer-search"},KR={class:"gismap-layer-tree-node"},YR={class:"gismap-layer-tree-node-icon"},JR=["src"],QR={key:1,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eP={class:"gismap-layer-tree-node-label"},tP={class:"gismap-layer-tree-empty"},iP=t.defineComponent({__name:"index",props:{title:{type:String,default:"资源管理"},data:{type:Array,default:()=>[]}},setup(e){const i=e,n=t.inject("map"),r=t.ref(),s=t.ref(n?.getContainer().clientHeight||0),o=t.ref(""),a=t.ref([]),l=t.ref([]);n?.on("resize",()=>{s.value=n?.getContainer().clientHeight||0});const c=(e,{checkedKeys:t})=>{xT([e],e=>{const i=t.includes(e.id);e.layers&&e.layers.length>0&&(i?n?.manager.layerManager.addGroupLayer(e):n?.manager.layerManager.removeGroupLayer(e))})},u=(e,t)=>!e||t.title.includes(e),h=e=>{const t=[],i=[];xT(e,e=>{e.checked&&(n?.manager.layerManager.addGroupLayer(e),i.push(e.id)),e.expand&&t.push(e.id),e.sourceInit&&e.source&&n?.manager.layerManager.addSource(e.source)}),a.value=t,l.value=i};return t.watch(()=>i.data,e=>{h(e)}),t.watch(o,e=>{r.value.filter(e)}),t.onMounted(()=>{h(i.data)}),(i,n)=>{const h=vM;return t.openBlock(),t.createElementBlock("div",XR,[t.createElementVNode("div",qR,t.toDisplayString(e.title),1),t.createElementVNode("div",ZR,[t.createVNode(t.unref(YM),{class:"gismap-layer-search-input",placeholder:"请输入名称",modelValue:o.value,"onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e)},{prefix:t.withCtx(()=>[t.createVNode(h,null,{default:t.withCtx(()=>[t.createVNode(t.unref(SM))]),_:1})]),_:1},8,["modelValue"])]),t.createElementVNode("div",{class:"gismap-layer-content no-scrollbar",style:t.normalizeStyle({maxHeight:s.value-220+"px"})},[t.createVNode(t.unref($R),{ref_key:"treeRef",ref:r,data:e.data,props:{label:"title"},"show-checkbox":"","node-key":"id","default-expanded-keys":a.value,"default-checked-keys":l.value,onCheck:c,"filter-node-method":u},{default:t.withCtx(({node:e,data:i})=>[t.createElementVNode("div",KR,[t.createElementVNode("span",YR,[i.icon&&""!=i.icon?(t.openBlock(),t.createElementBlock("img",{key:0,src:"assets/icons/"+i.icon,height:"16"},null,8,JR)):(t.openBlock(),t.createElementBlock("svg",QR,[...n[1]||(n[1]=[t.createElementVNode("rect",{width:"16",height:"16",rx:"2",fill:"#f5f5f5",stroke:"#e0e0e0","stroke-width":"1"},null,-1),t.createElementVNode("path",{d:"M4 0V16M8 0V16M12 0V16M0 4H16M0 8H16M0 12H16",stroke:"#e0e0e0","stroke-width":"0.5"},null,-1),t.createElementVNode("circle",{cx:"8",cy:"8",r:"3",stroke:"#999999","stroke-width":"1.0",fill:"none"},null,-1),t.createElementVNode("path",{d:"M11 11l2 2",stroke:"#999999","stroke-width":"1.0"},null,-1)])]))]),t.createElementVNode("span",eP,t.toDisplayString(e.label),1)])]),empty:t.withCtx(()=>[t.createElementVNode("div",tP,[t.createVNode(t.unref(bR),{description:"暂无数据","image-size":50})])]),_:1},8,["data","default-expanded-keys","default-checked-keys"])],4)])}}}),nP={class:"gismap-legend"},rP={class:"gismap-legend-title"},sP={class:"gismap-legend-content"},oP={class:"gismap-legend-item"},aP={class:"gismap-legend-item-text"},lP=t.defineComponent({name:"MapLegend",props:{title:{type:String,default:"图例"}},setup(e){const i=t.ref(!0),n=t.ref([]),r=()=>{i.value=!i.value};return(s,o)=>{const a=vM;return t.withDirectives((t.openBlock(),t.createElementBlock("div",nP,[t.createElementVNode("div",rP,[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.createElementVNode("span",{class:t.normalizeClass(["toggle",{expanded:i.value}]),onClick:r},[t.createVNode(a,null,{default:t.withCtx(()=>[t.createVNode(t.unref(xM))]),_:1})],2)]),t.withDirectives(t.createElementVNode("div",sP,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,e=>(t.openBlock(),t.createElementBlock("div",{key:e.id},[t.createElementVNode("div",oP,[t.createElementVNode("div",{class:"gismap-legend-item-icon",style:t.normalizeStyle({"background-image":`url(${e.legend})`})},null,4),t.createElementVNode("div",aP,t.toDisplayString(e.name),1)])]))),128))],512),[[t.vShow,i.value]])],512)),[[t.vShow,n.value.length>0]])}}}),cP=t.defineComponent({name:"MapTools",props:{data:{type:Array,default:()=>[]}},setup:e=>(e,t)=>null}),uP={class:"gismap-switch"},hP={key:0,class:"gismap-switch-extensions"},dP=["onClick"],pP={class:"gismap-switch-item-icon"},fP={class:"gismap-switch-item-text"},mP={class:"gismap-switch-layers"},gP=["onClick"],_P={class:"gismap-switch-item-text"},yP={key:1,class:"gismap-switch-extensions"},vP=["onClick"],xP={class:"gismap-switch-item-icon"},bP={class:"gismap-switch-item-text"},wP=t.defineComponent({name:"MapSwitch",props:{data:{type:Object,default:()=>({layers:[],extensions:[]})},extensionsPosition:{type:String,default:"left"}},setup(e){const i=e,n=t.inject("map"),r=t.ref(""),s=e=>{if(r.value!==e.name)switch((e=>{switch(e){case"tdt-vec":n?.manager?.tdtManager.removeVecLayer();break;case"tdt-img":n?.manager?.tdtManager.removeImgLayer()}})(r.value),r.value=e.name,e.name){case"tdt-vec":n?.manager?.tdtManager.addVecLayer(uT.layerPolygonId);break;case"tdt-img":n?.manager?.tdtManager.addImgLayer(uT.layerPolygonId);break;default:n?.pubsub.publish(e.name,e)}},o=(e,t=!1)=>{switch(t||(e.checked=!e.checked),e.name){case"tdt-cia":e.checked?n?.manager?.tdtManager.addCiaLayer(uT.layerPointId):n?.manager?.tdtManager.removeCiaLayer();break;case"terrain":e.checked?n?.manager?.terrainManager.setTerrain():n?.manager?.terrainManager.removeTerrain();break;default:n?.pubsub.publish(e.name,e)}};return t.onMounted(()=>{i.data.layers.forEach(e=>{e.checked&&(s(e),r.value=e.name)}),i.data.extensions.forEach(e=>{e.checked&&o(e,!0)})}),(i,n)=>{const a=fR;return t.openBlock(),t.createElementBlock("div",uP,[t.renderSlot(i.$slots,"left"),"left"===e.extensionsPosition?(t.openBlock(),t.createElementBlock("div",hP,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.extensions,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t=>o(e)},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:e.checked}])},[t.createElementVNode("span",pP,[t.createVNode(a,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t,onChange:t=>o(e)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),t.createElementVNode("span",fP,t.toDisplayString(e.label),1)],2)],8,dP))),128))])):t.createCommentVNode("",!0),t.createElementVNode("div",mP,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.layers,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t=>s(e)},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:r.value===e.name}])},[t.createElementVNode("span",{class:t.normalizeClass(["gismap-switch-item-icon",e.iconName])},null,2),t.createElementVNode("span",_P,t.toDisplayString(e.label),1)],2)],8,gP))),128))]),"right"===e.extensionsPosition?(t.openBlock(),t.createElementBlock("div",yP,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.extensions,e=>(t.openBlock(),t.createElementBlock("div",{class:"gismap-switch-item",key:e.name,onClick:t=>o(e)},[t.createElementVNode("div",{class:t.normalizeClass(["gismap-switch-item-content",{active:e.checked}])},[t.createElementVNode("span",xP,[t.createVNode(a,{modelValue:e.checked,"onUpdate:modelValue":t=>e.checked=t,onChange:t=>o(e)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),t.createElementVNode("span",bP,t.toDisplayString(e.label),1)],2)],8,vP))),128))])):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"right")])}}}),EP={class:"map-layout"},AP=t.defineComponent({name:"MapLayout",props:{mapViewData:{type:Object,default:()=>{}},switchData:{type:Object,default:()=>[]},layerData:{type:Array,default:()=>[]},toolsData:{type:Array,default:()=>[]}},emits:["load"],setup(e,{emit:i}){const n=e,r=i,s=t.reactive({mapViewData:n.mapViewData||{center:[120.35826594964023,30.10842454359468]},switchData:n.switchData||{},layerData:n.layerData||[],toolsData:n.toolsData||[]});let o;const a=e=>{o=e,o.manager.fogManager.setFog(),r("load",o)};return t.watch(()=>n.mapViewData,e=>{s.mapViewData=e}),t.watch(()=>n.switchData,e=>{s.switchData=e}),t.watch(()=>n.layerData,e=>{s.layerData=e}),t.watch(()=>n.toolsData,e=>{s.toolsData=e}),(e,i)=>(t.openBlock(),t.createElementBlock("div",EP,[t.createVNode(t.unref(PT),{options:s.mapViewData,onLoad:a},{"top-left":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-top-left"),t.createVNode(t.unref(cP),{data:s.toolsData},null,8,["data"]),t.renderSlot(e.$slots,"top-left")]),"top-right":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-top-right"),t.createVNode(t.unref(iP),{class:"widget-right",data:s.layerData},null,8,["data"]),t.renderSlot(e.$slots,"top-right")]),"bottom-left":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-bottom-left"),t.createVNode(t.unref(lP)),t.renderSlot(e.$slots,"bottom-left")]),"bottom-right":t.withCtx(()=>[t.renderSlot(e.$slots,"pre-bottom-right"),t.createVNode(t.unref(wP),{data:s.switchData},null,8,["data"]),t.renderSlot(e.$slots,"bottom-right")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["options"])]))}});e.GisMapLayer=iP,e.GisMapLegend=lP,e.GisMapSwitch=wP,e.GisMapTools=cP,e.GisMapView=PT,e.GsMap=l,e.MapPage=AP,e.MarkerLayer=class{map;markers=new Map;constructor(e){this.map=e}add(e){const t={...e},i=new s.Marker(t);i.setLngLat(e.lngLat),i.addTo(this.map),this.markers.set(e.id,i)}remove(e){const t=this.markers.get(e);t&&t.remove(),this.markers.delete(e)}clear(){this.markers.forEach(e=>{e.remove()}),this.markers.clear()}},e.Tile3DLayer=class{layerId=Math.random().toString(36);map;layer;deckOverlay;constructor(e){return this.map=e,this}add(e){if(e.id&&(this.layerId=e.id),!e.data)throw new Error("3D瓦片图层数据不能为空");const t=new lT({id:this.layerId,name:this.layerId,data:e.data,coordinateSystem:Ec.LNGLAT,loader:sT,extruded:!0,parameter:{depthTest:!0,polygonOffset:[1,1]},pickable:e.pickable||!1,_meshOpt:{useInstancing:!1},opacity:e.opacity||1,loadOptions:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!0,skipLevelOfDetail:!0,maximumMemoryUsage:1024,isTileset:"auto",assetGltfUpAxis:null}},onTilesetError:e=>{},onTilesetLoad:t=>{const i=e.transform||{translateX:0,translateY:0};t.modelMatrix.translate([i.translateX,i.translateY,0])}});this.deckOverlay=new Gg({interleaved:!0,parameters:{blend:!0},layers:[t]}),this.map.addControl(this.deckOverlay),this.layer=t}setVisible(e=!0){this.map.getLayer(this.layerId)&&(e?this.map.setLayoutProperty(this.layerId,"visibility","visible"):this.map.setLayoutProperty(this.layerId,"visibility","none"))}setOpacity(e){if(this.map.getLayer(this.layerId)){if(!this.deckOverlay)return;const t=this.deckOverlay.props.layers.map(t=>t.id===this.layerId?t.clone({opacity:e}):t);this.deckOverlay.setProps({layers:t})}}remove(){this.deckOverlay&&this.map.removeControl(this.deckOverlay)}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gis_victory/gismap",
3
3
  "private": false,
4
- "version": "1.0.10",
4
+ "version": "1.0.12",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.es.js",
@@ -10,7 +10,8 @@
10
10
  ".": {
11
11
  "import": "./dist/index.es.js",
12
12
  "require": "./dist/index.umd.js"
13
- }
13
+ },
14
+ "./dist/gismap.css": "./dist/gismap.css"
14
15
  },
15
16
  "files": [
16
17
  "dist"