@worm-print-platform/echarts 1.6.1 → 1.6.3
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/README.md +8 -20
- package/dist/bind.d.ts +1 -1
- package/dist/browser/executor.iife.d.ts +1 -1
- package/dist/browser-bundle.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/defaults.d.ts +1 -1
- package/dist/echarts.d.ts +1 -1
- package/dist/echarts.js +2 -2
- package/dist/executor.iife.global.d.ts +1 -1
- package/dist/executor.iife.global.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/kinds.d.ts +1 -1
- package/dist/kit.cjs +2 -2
- package/dist/kit.d.ts +1 -1
- package/dist/kit.js +2 -2
- package/dist/label.d.ts +1 -1
- package/dist/marketplace.d.ts +1 -1
- package/dist/marketplace.js +14 -9
- package/dist/node.cjs +6 -4
- package/dist/node.d.ts +1 -1
- package/dist/node.js +6 -4
- package/dist/normalize.d.ts +1 -1
- package/dist/option-utils.d.ts +1 -1
- package/dist/{plugin-CKyaiHYF.js → plugin-CerMf_qr.js} +6 -6
- package/dist/plugin-DXgU3GaL.cjs +6 -0
- package/dist/plugin.d.ts +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/test-setup.d.ts +1 -1
- package/dist/type-augmentation.d.ts +1 -1
- package/dist/ui.cjs +14 -9
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +14 -9
- package/dist/units.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +6 -6
- package/dist/plugin-8R67OtBD.cjs +0 -6
package/dist/echarts.js
CHANGED
|
@@ -22,7 +22,7 @@ Click OK to save, Cancel to go back and edit.
|
|
|
22
22
|
ยอมรับการตัดและบันทึกต่อหรือไม่?
|
|
23
23
|
คลิก ตกลง เพื่อบันทึก คลิก ยกเลิก เพื่อกลับไปแก้ไข
|
|
24
24
|
|
|
25
|
-
{warnings}`,"store.tilingSinglePage":"เมื่อเปิดการจัดเรียงชิ้น อนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","elementGroup.chart":"แผนภูมิ","service.printData.emptyArray":"ข้อมูลการพิมพ์เป็นชุดต้องเป็นอาร์เรย์อ็อบเจกต์ที่ไม่ว่างเปล่า","service.printData.tooMany":"การพิมพ์เป็นชุดรองรับได้มากสุด {max} ชุด ได้ {count} ชุด","service.printData.itemNotObject":"รายการข้อมูลการพิมพ์ชุดที่ {index} ต้องเป็นอ็อบเจกต์","service.printData.notObjectOrArray":"printData ต้องเป็นอ็อบเจกต์หรืออาร์เรย์",...{"binding.k1":"อัปโหลดรูปภาพ","binding.k2":"รองรับเฉพาะไฟล์รูปภาพ","binding.k3":"ไม่ได้ตั้งค่าการอัปโหลดรูปภาพ","binding.k4":"กำลังอัปโหลด...","binding.k5":"อัปโหลดรูปภาพล้มเหลว","binding.k6":"อัปโหลดรูปภาพล้มเหลว","binding.k7":"อัปโหลดรูปภาพ","binding.k8":"รองรับรูปภาพ jpg/png/gif/bmp/webp/svg; ป้อนเส้นทางสัมพัทธ์หลังอัปโหลด","binding.k9":"เนื้อหา","binding.k10":"ป้อนเนื้อหา รองรับนิพจน์ {field}","canvas.k11":"ส่วนหัว","canvas.k12":"ส่วนท้าย","canvas.k13":"+ องค์ประกอบ","canvas.k14":"+ ข้อความคงที่","canvas.k15":"+ ฟิลด์ข้อมูล","canvas.k16":"คัดลอก","canvas.k17":"ตัด","canvas.k18":"วาง","canvas.k19":"ลบ","canvas.k20":"นำไปด้านหน้าสุด","canvas.k21":"เลื่อนขึ้น","canvas.k22":"เลื่อนลง","canvas.k23":"ส่งไปด้านหลังสุด","canvas.k24":"วาง","canvas.k25":"เลือกทั้งหมด","canvas.k26":"ยกเลิกการเลือก","code.k27":"คิวอาร์โค้ด","controls.k28":"ลด","controls.k29":"ลด","controls.k30":"เพิ่ม","controls.k31":"เพิ่ม","controls.k32":"คำอธิบายฟิลด์","controls.k33":"คืนค่าเริ่มต้น","controls.k34":"คืนค่าเริ่มต้น ({v0}{v1})","controls.k35":"{v0} (ใช้กับเซลล์ที่เลือกทั้งหมด)","controls.k36":"ตัวเลือกสี","cropAnchor.k37":"กำหนดเอง (คงเดิม)","cropAnchor.k38":"ค่าเริ่มต้น 100","cropAnchor.k39":"รูปตัวอย่าง","cropAnchor.k40":"รูปต้นฉบับ","elements.k41":"ข้อความ","elements.k42":"เนื้อหาข้อความยาว","elements.k43":"รูปภาพ","flowList.k44":"สมุนไพร 20g","flowList.k45":"สมุนไพร 15g","flowList.k46":"สมุนไพร 10g","flowList.k47":"สมุนไพร 10g","flowList.k48":"สมุนไพร 10g","flowList.k49":"สมุนไพร 10g","flowList.k50":"สมุนไพร 10g","fontSelect.k51":"ค่าเริ่มต้น","fontSelect.k52":"{v0} (ไม่ทราบ)","fontSelect.k53":'ใช้ "{v0}"',"formatBar.k54":"เส้นทึบ","formatBar.k55":"เส้นประ","formatBar.k56":"เส้นจุด","formatBar.k57":"เส้นคู่","formatBar.k58":"ออกจากเครื่องมือถ่ายรูปแบบ (Esc)","formatBar.k59":"เครื่องมือถ่ายรูปแบบ (ไม่รองรับเซลล์ตาราง)","formatBar.k60":"เครื่องมือถ่ายรูปแบบ (เลือกองค์ประกอบก่อน)","formatBar.k61":"เครื่องมือถ่ายรูปแบบ (เลือกองค์ประกอบต้นทางเพียงหนึ่ง)","formatBar.k62":"เครื่องมือถ่ายรูปแบบ: คลิกครั้งเดียวเพื่อถ่ายครั้งเดียว คลิกสองครั้งเพื่อถ่ายต่อเนื่อง","formatBar.k63":"{v0} (เลือกองค์ประกอบข้อความ)","formatBar.k64":"ไม่มีเส้นขอบ","formatBar.k65":"เส้นขอบทั้งหมด","formatBar.k66":"เส้นขอบด้านนอก","formatBar.k67":"เส้นขอบด้านใน","formatBar.k68":"เส้นขอบด้านใน (เฉพาะเซลล์ตาราง)","formatBar.k69":"เส้นขอบบน","formatBar.k70":"เส้นขอบล่าง","formatBar.k71":"เส้นขอบซ้าย","formatBar.k72":"เส้นขอบขวา","formatBar.k73":"{v0} (คลิกอีกครั้งเพื่อยกเลิก, รูปแบบ = ไม่มี)","formatBar.k74":"ความกว้าง","formatBar.k75":"ผสม","formatBar.k76":"สี","formatBar.k77":"สีเส้นขอบ","formatBar.k78":"เส้นขอบทั้งสี่ด้านไม่สอดคล้องกัน: รายการที่เว้นไว้ไม่ได้รายงานค่าผิด; ค่าที่ตั้งไว้ล่วงหน้า/ด้านเดียวใช้ค่าเริ่มต้น (เส้นทึบ 0.75 / #333333)","formatBar.k79":"จัดชิดซ้าย","formatBar.k80":"จัดกึ่งกลาง","formatBar.k81":"จัดชิดขวา","formatBar.k82":"จัดชอบแนว (เติมความกว้างบรรทัด รวมบรรทัดสุดท้าย)","formatBar.k83":"จัดชิดบน","formatBar.k84":"จัดกึ่งกลางแนวตั้ง","formatBar.k85":"จัดชิดล่าง","formatBar.k86":"ผสม","formatBar.k87":"ค่าเริ่มต้น","formatBar.k88":"ผสม","formatBar.k89":"ค่าเริ่มต้น","formatBar.k90":"ตัวหนา","formatBar.k91":"ขีดเส้นใต้","formatBar.k92":"ขีดฆ่า","formatBar.k93":"สีตัวอักษร {v0}","formatBar.fontDisabledHint":"(เลือกหรือผสมองค์ประกอบข้อความ)","formatBar.k94":"สีพื้นหลัง","formatBar.k95":"การจัดตำแหน่ง","formatBar.k96":"การจัดตำแหน่ง (เลือกองค์ประกอบข้อความหรือเซลล์)","formatBar.k97":"การจัดตำแหน่ง","formatBar.k98":"เส้นขอบ","formatBar.k99":"เส้นขอบ (เลือกองค์ประกอบ)","formatBar.k100":"เส้นขอบ","helpModal.k101":"ช่วยเหลือ","helpModal.k102":"ปิด","pageExtras.k103":"อัปโหลดภาพพื้นหลัง","pageExtras.k104":"รองรับเฉพาะไฟล์รูปภาพ","pageExtras.k105":"ไม่ได้ตั้งค่าการอัปโหลดภาพพื้นหลังออกแบบ","pageExtras.k106":"กำลังอัปโหลด...","pageExtras.k107":"อัปโหลดภาพพื้นหลังออกแบบล้มเหลว","pageExtras.k108":"อัปโหลดภาพพื้นหลังออกแบบล้มเหลว","pageExtras.k109":"อัปโหลดภาพพื้นหลัง","pageExtras.k110":"พื้นหลังออกแบบ","pageExtras.k111":"เฉพาะในตัวออกแบบ เพื่อการจัดตำแหน่ง; ไม่แสดงในตัวอย่างหรือการพิมพ์","pageExtras.k112":"หมุน ({v0}°)","pageExtras.k113":"ลบ","pageExtras.k114":"กำหนดเอง","pageExtras.k115":" แนวนอน","pageExtras.k116":" แนวตั้ง","pageExtras.k117":"แผ่นเป้าหมาย {v0}{v1} {v2}×{v3}mm · {v4} คอลัมน์ × {v5} แถว = {v6} เซลล์/แผ่น · แต่ละเซลล์ {v7}×{v8}mm","pageExtras.k118":"การพิมพ์แบบจัดเรียงชิ้น","pageExtras.k119":"จัดเรียงฉลากเป็นแถว × คอลัมน์บนแผ่นใหญ่เพื่อพิมพ์เป็นชุด","pageExtras.k120":"เปิดใช้งานการจัดเรียงชิ้น","pageExtras.k121":"กระดาษต่อเนื่องไม่รองรับการจัดเรียงชิ้น","pageExtras.k122":"แผ่นเป้าหมาย","pageExtras.k123":"กำหนดเอง","pageExtras.k124":"ขนาดแผ่นเป้าหมาย (mm)","pageExtras.k125":"แนวของแผ่นเป้าหมาย","pageExtras.k126":"แนวตั้ง","pageExtras.k127":"แนวนอน","pageExtras.k128":"ระยะขอบการจัดเรียงชิ้น (mm)","pageExtras.k129":"บน","pageExtras.k130":"ล่าง","pageExtras.k131":"ซ้าย","pageExtras.k132":"ขวา","pageExtras.k133":"ระยะห่างและจำนวนคอลัมน์ของเซลล์","pageExtras.k134":"ระยะห่างแนวนอน","pageExtras.k135":"ระยะห่างแนวตั้ง","pageExtras.k136":"จำนวนคอลัมน์","panels.k137":"ขยายแผงทรัพยากร","panels.k138":"องค์ประกอบ","panels.k139":"ฟิลด์","panels.k140":"เลเยอร์","panels.k141":"ทรัพยากร","panels.k142":"ยุบแผงทรัพยากร","panels.k143":"องค์ประกอบ","panels.k144":"ฟิลด์","panels.k145":"เลเยอร์","panels.k146":"ลากองค์ประกอบไปยังพื้นที่ทำงาน","panels.k147":"ฟิลด์ธุรกิจ","panels.k148":"ค้นหาฟิลด์...","panels.k149":"ค้นหาฟิลด์","panels.k150":"{v0} ({v1}) · คลิกเพื่อคัดลอกชื่อฟิลด์ · ค้าง Ctrl (⌘ บน Mac) ขณะลากเพื่อแทรกชื่อฟิลด์","panels.k151":"คัดลอกแล้ว","panels.k152":"ไม่มีฟิลด์","panels.k153":"ส่วนหัว","panels.k154":"ส่วนท้าย","panels.k155":"เลเยอร์","panels.k156":"นำไปด้านหน้าสุด","panels.k157":"เลื่อนขึ้น","panels.k158":"เลื่อนลง","panels.k159":"ส่งไปด้านหลังสุด","panels.k160":"จัดกลุ่ม (Ctrl+G)","panels.k161":"ยกเลิกจัดกลุ่ม (Ctrl+Shift+G)","panels.k162":"หน้า {v0}","panels.k163":"{v0} (ดับเบิลคลิกเพื่อเปลี่ยนชื่อ)","panels.k164":"ดับเบิลคลิกเพื่อเปลี่ยนชื่อ","panels.k165":"หน้า {v0}","panels.k166":"เทมเพลตแบบจัดเรียงชิ้นอนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","panels.k167":"เพิ่มหน้า (ต่อหน้าเปล่าหลังหน้าปัจจุบัน)","panels.k168":"เทมเพลตแบบจัดเรียงชิ้นอนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","panels.k169":'ทำซ้ำหน้าปัจจุบัน "{v0}"',"panels.k170":'ลบหน้าปัจจุบัน "{v0}"',"panels.k171":"เฉพาะเทมเพลตหลายหน้าที่ลบหน้าได้","panels.k172":'ย้าย "{v0}" ไปหน้าถัดไป',"panels.k173":'ย้าย "{v0}" ไปหน้าก่อนหน้า',"panels.k174":"แนวนอน","panels.k175":"แนวตั้ง","panels.k176":"ซูม {v0}%","propertyPanel.k177":"ทั้งหมด","propertyPanel.k178":"ด้านนอก","propertyPanel.k179":"ด้านใน","propertyPanel.k180":"ไม่มี","propertyPanel.k181":"บน","propertyPanel.k182":"ขวา","propertyPanel.k183":"ล่าง","propertyPanel.k184":"ซ้าย","propertyPanel.k185":"ตำแหน่งและขนาด","propertyPanel.k186":"ระยะขอบ (mm)","propertyPanel.k187":"บน","propertyPanel.k188":"ขวา","propertyPanel.k189":"ล่าง","propertyPanel.k190":"ซ้าย","propertyPanel.k191":"การหมุน (°)","propertyPanel.k192":"ทวนเข็มนาฬิกา 90°","propertyPanel.k193":"หมุนทวนเข็มนาฬิกา 90°","propertyPanel.k194":"ตามเข็มนาฬิกา 90°","propertyPanel.k195":"หมุนตามเข็มนาฬิกา 90°","propertyPanel.k196":"ลักษณะ","propertyPanel.k197":"ฟอนต์","propertyPanel.k198":"ค่าเริ่มต้น","propertyPanel.k199":"ขนาดฟอนต์","propertyPanel.k200":"น้ำหนักฟอนต์","propertyPanel.k201":"ปกติ","propertyPanel.k202":"หนา","propertyPanel.k203":"หนาขึ้น","propertyPanel.k204":"บางลง","propertyPanel.k205":"การจัดตำแหน่ง","propertyPanel.k206":"ซ้าย","propertyPanel.k207":"กลาง","propertyPanel.k208":"ขวา","propertyPanel.k209":"ชิดสองด้าน","propertyPanel.k210":"จัดแนวตั้ง","propertyPanel.k211":"บน","propertyPanel.k212":"กลาง","propertyPanel.k213":"ล่าง","propertyPanel.k214":"สี","propertyPanel.k215":"สีตัวอักษร","propertyPanel.k216":"สีพื้นหลัง","propertyPanel.k217":"สีพื้นหลัง","propertyPanel.k218":"ระยะบรรทัด","propertyPanel.k219":"ระยะห่างตัวอักษร","propertyPanel.k220":"ข้อความล้น","propertyPanel.k221":"ตัดทิ้ง","propertyPanel.k222":"ย่อให้พอดี","propertyPanel.k223":"ความสูงแถวอัตโนมัติ","propertyPanel.k224":"ขนาดฟอนต์ขั้นต่ำ (pt)","propertyPanel.k225":"ค่าเริ่มต้น 6","propertyPanel.k226":"เว้นวรรคบรรทัดแรก (อักขระ)","propertyPanel.k227":"ค่าเริ่มต้น 0","propertyPanel.k228":"ตัดคำอัตโนมัติ","propertyPanel.k229":"คงการขึ้นบรรทัด","propertyPanel.k230":"โหมดการปรับขนาด","propertyPanel.k231":"จุดยึดการครอป","propertyPanel.k232":"ไม่รองรับการตั้งค่าลักษณะสำหรับองค์ประกอบนี้","propertyPanel.k233":"การตั้งค่าบาร์โค้ด","propertyPanel.k234":"ประเภทรหัส","propertyPanel.k235":"CODE128 (ทั่วไป)","propertyPanel.k236":"EAN13 (ค้าปลีก)","propertyPanel.k237":"DPI ของเครื่องพิมพ์","propertyPanel.k238":"ไม่ระบุ (แสดงตามความกว้างแท่น)","propertyPanel.k239":"203 dpi (8 จุด/mm)","propertyPanel.k240":"300 dpi (11.8 จุด/mm)","propertyPanel.k241":"600 dpi (23.6 จุด/mm)","propertyPanel.k242":"เมื่อตั้งค่า ความกว้างแท่นจะปรับเป็นจุดพิมพ์เต็ม: บาร์โค้ดแสดงตามความกว้างแท่น ถ้าพอดีจะพิมพ์ตามนั้น มิเช่นนั้นจะย่อขนาดตามสัดส่วน","propertyPanel.k243":"ความกว้างแท่น (อัตราส่วน)","propertyPanel.k244":"ตั้งค่า DPI ของเครื่องพิมพ์แล้ว: ความกว้างแท่นปรับเป็นจุดเต็มที่ใกล้ที่สุด (DPI แทนค่า mm) จะย่อขนาดถ้าไม่พอดี","propertyPanel.k245":"ใช้ 3+ สำหรับเครื่องพิมพ์ความร้อน/ดอทเมทริกซ์: กำหนดขนาดแท่นที่พิมพ์ แท่นหนาจะเสถียรกว่า","propertyPanel.k246":"โซนเงียบ (โมดูล)","propertyPanel.k247":"ค่าเริ่มต้น 10","propertyPanel.k248":"ความสูงแท่น (mm)","propertyPanel.k249":"ค่าเริ่มต้น 30 โมดูล","propertyPanel.k250":"แสดงข้อความ","propertyPanel.k251":"ขนาดข้อความ (เทียบความสูงแท่น 30)","propertyPanel.k252":"ค่าเริ่มต้น 10","propertyPanel.k253":"การแก้ไขข้อผิดพลาด","propertyPanel.k254":"L (ต่ำสุด ความจุสูงสุด)","propertyPanel.k255":"M (แนะนำ)","propertyPanel.k256":"H (สูงสุด)","propertyPanel.k257":"โซนเงียบ (โมดูล)","propertyPanel.k258":"ค่าเริ่มต้น 0","propertyPanel.k259":"การตั้งค่าแบบกำหนดเอง","propertyPanel.k260":"ขนาดบาร์โค้ดขึ้นกับความกว้างแท่นและ DPI ของเครื่องพิมพ์: พิมพ์ตามความกว้างแท่นถ้าพอดี มิเช่นนั้นย่อขนาด; การดึงจะทำให้แท่นไม่เป็นจำนวนเต็ม จึงไม่มีโหมดปรับขนาด—ใช้ความกว้าง/สูงสูงสุดเป็นขีดจำกัด หากต้องการให้ใหญ่ขึ้น: เพิ่มความกว้างแท่น ลดโซนเงียบ หรือซ่อนข้อความเพื่อพื้นที่มากขึ้น","propertyPanel.k261":"โหมดการปรับขนาด","propertyPanel.k262":"ความกว้างสูงสุด (mm)","propertyPanel.k263":"ค่าเริ่มต้น","propertyPanel.k264":"ความสูงสูงสุด (mm)","propertyPanel.k265":"ค่าเริ่มต้น","propertyPanel.k266":"รายการแบบไหล","propertyPanel.k267":"โหมดการจัดวาง","propertyPanel.k268":"ความสูงคงที่","propertyPanel.k269":"การแบ่งหน้าแบบไดนามิก","propertyPanel.k270":"ระยะบน (mm)","propertyPanel.k271":"ระยะขวา (mm)","propertyPanel.k272":"ระยะล่าง (mm)","propertyPanel.k273":"ระยะซ้าย (mm)","propertyPanel.k274":"จำนวนคอลัมน์ต่อแถว","propertyPanel.k275":"ความสูงแถว (mm)","propertyPanel.k276":"ระยะห่างแนวนอนของเซลล์ (mm)","propertyPanel.k277":"ขยายคอลัมน์เมื่อเนื้อหายาว","propertyPanel.k278":"จำนวนคอลัมน์ขยายสูงสุด","propertyPanel.k279":"ที่ขนาดฟอนต์และความกว้างปัจจุบัน {v0} คอลัมน์ค่อนข้างแคบ (พอดีประมาณ {v1}) ค่าไม่เปลี่ยน; การพิมพ์ใช้ {v2} คอลัมน์","propertyPanel.k280":"ผสม","propertyPanel.k281":"เส้นขอบและพื้นหลัง","propertyPanel.k282":"รูปแบบเส้น","propertyPanel.k283":"ความกว้างเส้นขอบ","propertyPanel.k284":"ผสม","propertyPanel.k285":"สีเส้นขอบ","propertyPanel.k286":"สีเส้นขอบ","propertyPanel.k287":"สีพื้นหลัง","propertyPanel.k288":"สีพื้นหลัง","propertyPanel.k289":"การตั้งค่าขั้นสูง","propertyPanel.k290":"ล็อก","propertyPanel.k291":"ทำซ้ำทุกหน้า","propertyPanel.k292":"ตรึงทุกหน้า","propertyPanel.k293":"ลำดับชั้น","propertyPanel.k294":"ลบองค์ประกอบ","propertyPanel.k295":"หมายเหตุการตั้งค่าขั้นสูง","propertyPanel.k296":"หมายเหตุการตั้งค่าขั้นสูง","propertyPanel.k297":"อื่นๆ","propertyPanel.k298":"การตั้งค่าหน้ากระดาษ","propertyPanel.k299":"ขนาดกระดาษ","propertyPanel.k300":"ขนาดกำหนดเอง","propertyPanel.k301":"ความกว้างกระดาษ (mm)","propertyPanel.k302":"ขนาดกำหนดเอง (mm)","propertyPanel.k303":"แนวกระดาษ","propertyPanel.k304":"แนวตั้ง","propertyPanel.k305":"แนวนอน","propertyPanel.k306":"การสลับจะเปลี่ยนความกว้าง/สูงของกระดาษ (เนื้อหาจัดวางบนขนาดใหม่)","propertyPanel.k307":"การหมุนเนื้อหา","propertyPanel.k308":"สำหรับการจัดเรียงชิ้น ฉลากแต่ละชิ้นหมุนตามมนี้; ที่ 90°/270° ความกว้าง/สูงของเซลล์สลับและคอลัมน์เติมตามขีดใหม่; 0° หมายถึงไม่หมุน (ค่าเริ่มต้น)","propertyPanel.k309":"ทั้งหน้าหมุนสำหรับการพิมพ์; ที่ 90°/270° ความกว้าง/สูงของกระดาษสลับเพื่อพอดีโดยไม่บิดเบือนหรือตัด; 0° หมายถึงไม่หมุน (ค่าเริ่มต้น)","propertyPanel.k310":"สีพื้นหลังหน้ากระดาษ","propertyPanel.k311":"สีพื้นหลังหน้ากระดาษ","propertyPanel.k312":"ระยะขอบ (mm)","propertyPanel.k313":"บน","propertyPanel.k314":"ล่าง","propertyPanel.k315":"ซ้าย","propertyPanel.k316":"ขวา","propertyPanel.k317":"ความสูงส่วนหัว/ท้าย (mm)","propertyPanel.k318":"ความสูงส่วนหัว","propertyPanel.k319":"ความสูงส่วนท้าย","propertyPanel.k320":"ขยายแผงคุณสมบัติ","propertyPanel.k321":"คุณสมบัติองค์ประกอบ","propertyPanel.k322":"คุณสมบัติหน้ากระดาษ","propertyPanel.k323":"แผงคุณสมบัติ","propertyPanel.k324":"ยุบแผงคุณสมบัติ","propertyPanel.k325":"คุณสมบัติองค์ประกอบ","propertyPanel.k326":"คุณสมบัติหน้ากระดาษ","propertyPanel.k327":"เลือกองค์ประกอบบนพื้นที่ทำงาน","propertyPanel.k328":"คุณสมบัติที่กำหนดเอง","propertySearch.k328":"ค้นหาคุณสมบัติ...","propertySearch.k329":"ค้นหาคุณสมบัติ","tableProps.k330":"ส่วนหัวหลายระดับทำซ้ำทั้งกลุ่ม เมื่อเลือก แถวหัวทั้งหมดจะซ้ำที่ด้านบนของทุกหน้า","tableProps.k331":"แถวหัว","tableProps.k332":"แถวข้อมูล","tableProps.k333":"แถวรวมย่อย (ต่อหน้า)","tableProps.k334":"แถวสรุป","tableProps.k335":"CODE128 (ทั่วไป)","tableProps.k336":"EAN13 (ค้าปลีก)","tableProps.k337":"L (ต่ำสุด ความจุสูงสุด)","tableProps.k338":"M (แนะนำ)","tableProps.k339":"H (สูงสุด)","tableProps.k340":"ตัดทิ้ง","tableProps.k341":"ย่อให้พอดี","tableProps.k342":"ความสูงแถวอัตโนมัติ","tableProps.k343":"เลือกหลายรายการ","tableProps.k344":"คุณสมบัติแถว","tableProps.k345":"คุณสมบัติแถว","tableProps.k346":"ประเภทแถว","tableProps.k347":"ความสูงแถว (mm)","tableProps.k348":"ทำซ้ำส่วนหัวทุกหน้า","tableProps.k349":"การตั้งค่าตาราง","tableProps.k350":"ฟิลด์แหล่งข้อมูลรายการ","tableProps.k351":"ฟอนต์เริ่มต้น","tableProps.k352":"ค่าเริ่มต้น","tableProps.k353":"ขนาดฟอนต์เริ่มต้น (pt)","tableProps.k354":"ค่าเริ่มต้น","tableProps.k355":"สีข้อความเริ่มต้น","tableProps.k356":"สีข้อความเริ่มต้น","tableProps.k357":"ระยะภายในเริ่มต้น (mm)","tableProps.k358":"ค่าเริ่มต้น","tableProps.k359":"ความกว้างคอลัมน์ (mm)","tableProps.k360":"คอลัมน์ {v0}","tableProps.k361":"ความกว้างตารางไม่เกินความกว้างที่พิมพ์ได้ {v0}mm; คอลัมน์ {v1} ปรับเป็น {v2}mm","tableProps.k362":"เปิดใช้งานการแบ่งหน้า","tableProps.k363":"เข้าร่วมการแบ่งหน้า","tableProps.k364":"หน้าเดียวกับองค์ประกอบถัดไป","tableProps.k365":"การตั้งค่าการแบ่งหน้า","tableProps.k366":"บน","tableProps.k367":"ขวา","tableProps.k368":"ล่าง","tableProps.k369":"ซ้าย","tableProps.k370":"เซลล์","tableProps.k371":"เซลล์","tableProps.k372":"เลือกหลายรายการ","tableProps.k373":"เฉพาะแถวข้อมูลที่รองรับการรวมตามค่า","tableProps.k374":"คืนค่าเริ่มต้น (ตามค่าตาราง)","tableProps.k375":"เซลล์","tableProps.k376":"เลือก {v0} เซลล์ · ตั้งค่าเป็นชุด: ไม่แสดงรายเซลล์ การเปลี่ยนใช้กับเซลล์ที่เลือกทั้งหมด","tableProps.k377":"ประเภทเซลล์","tableProps.k378":"ข้อความ","tableProps.k379":"บาร์โค้ด","tableProps.k380":"คิวอาร์โค้ด","tableProps.k381":"รูปภาพ","tableProps.k382":"ประเภทรหัส","tableProps.k383":"แสดงข้อความ","tableProps.k384":"ความกว้างแท่น (อัตราส่วน)","tableProps.k385":"ตั้งค่า DPI ของเครื่องพิมพ์แล้ว: ความกว้างแท่นปรับเป็นจุดเต็ม (DPI แทนค่า mm) จะย่อขนาดถ้าเซลล์ไม่พอดี","tableProps.k386":"ใช้ 3+ สำหรับเครื่องพิมพ์ความร้อน/ดอทเมทริกซ์: กำหนดขนาดแท่นที่พิมพ์ แท่นหนาจะเสถียรกว่า","tableProps.k387":"โซนเงียบ (โมดูล)","tableProps.k388":"ค่าเริ่มต้น 10","tableProps.k389":"ความสูงแท่น (mm)","tableProps.k390":"ค่าเริ่มต้น 30 โมดูล","tableProps.k391":"ขนาดข้อความ (เทียบความสูงแท่น 30)","tableProps.k392":"ค่าเริ่มต้น 10","tableProps.k393":"DPI ของเครื่องพิมพ์","tableProps.k394":"ไม่ระบุ (แสดงตามความกว้างแท่น)","tableProps.k395":"203 dpi (8 จุด/mm)","tableProps.k396":"300 dpi (11.8 จุด/mm)","tableProps.k397":"600 dpi (23.6 จุด/mm)","tableProps.k398":"เมื่อตั้งค่า ความกว้างแท่นจะปรับเป็นจุดพิมพ์เต็ม: บาร์โค้ดแสดงตามความกว้างแท่น ถ้าพอดีจะพิมพ์ตามนั้น มิเช่นนั้นจะย่อขนาดตามสัดส่วน","tableProps.k399":"การแก้ไขข้อผิดพลาด","tableProps.k400":"โซนเงียบ (โมดูล)","tableProps.k401":"ค่าเริ่มต้น 0","tableProps.k402":"ขนาดบาร์โค้ดของเซลล์ขึ้นกับความกว้างแท่นและ DPI ของเครื่องพิมพ์: พิมพ์ตามความกว้างแท่นถ้าพอดี มิเช่นนั้นย่อขนาด; ไม่มีโหมดปรับขนาด (จะทำให้แท่นไม่เป็นจำนวนเต็ม)—ใช้ความกว้าง/สูงสูงสุดเป็นขีดจำกัด หากต้องการให้ใหญ่ขึ้น: เพิ่มความกว้างแท่น ลดโซนเงียบ หรือซ่อนข้อความ","tableProps.k403":"โหมดการปรับขนาด","tableProps.k404":"จุดยึดการครอป","tableProps.k405":"ความกว้างสูงสุด (mm)","tableProps.k406":"ค่าเริ่มต้น","tableProps.k407":"ความสูงสูงสุด (mm)","tableProps.k408":"ค่าเริ่มต้น","tableProps.k409":"เนื้อหา","tableProps.k410":"เลือกหลายรายการ (รายการที่ป้อนจะแทนที่เซลล์ที่เลือกทั้งหมด)","tableProps.k411":"ป้อนเนื้อหา รองรับนิพจน์ {field}","tableProps.k412":"จัดแนวนอน","tableProps.k413":"ซ้าย","tableProps.k414":"กลาง","tableProps.k415":"ขวา","tableProps.k416":"ชิดสองด้าน","tableProps.k417":"จัดแนวตั้ง","tableProps.k418":"บน","tableProps.k419":"กลาง","tableProps.k420":"ล่าง","tableProps.k421":"ฟอนต์","tableProps.k422":"สืบทอดค่าเริ่มต้น","tableProps.k423":"ขนาดฟอนต์ (pt)","tableProps.k424":"ค่าเริ่มต้น","tableProps.k425":"หนา","tableProps.k426":"สีข้อความ","tableProps.k427":"สีข้อความ","tableProps.k428":"สีพื้นหลัง","tableProps.k429":"สีพื้นหลัง","tableProps.k430":"เส้นขอบ","tableProps.k431":"ผสม","tableProps.k432":"เลือกหลายรายการ","tableProps.k433":"ผสม","tableProps.k434":"สีเส้นขอบ","tableProps.k435":"ทั้งหมด","tableProps.k436":"ด้านนอก","tableProps.k437":"ด้านใน","tableProps.k438":"ไม่มี","tableProps.k439":"ระยะภายใน (mm)","tableProps.k440":"ค่าเริ่มต้น","tableProps.k441":"ตัดคำอัตโนมัติ","tableProps.k442":"ข้อความล้น","tableProps.k443":"ขนาดฟอนต์ขั้นต่ำ (pt)","tableProps.k444":"ค่าเริ่มต้น 6","tableProps.k445":"รวมเซลล์","tableProps.k446":"รวมเซลล์","tableProps.k447":"แยกเซลล์","tableProps.k448":"รวมตามค่า","tableProps.k449":"แถวข้อมูลที่อยู่ติดกันที่มีค่าเท่ากันจะรวมแนวตั้ง; ข้ามหน้าจะแบ่งตามหน้าและทำซ้ำค่าในหน้าต่อเนื่อง","table.k450":"หัว","table.k451":"ข้อมูล","table.k452":"ย่อย","table.k453":"รวม","table.k454":"แถวหัว","table.k455":"แถวข้อมูล","table.k456":"แถวรวมย่อย","table.k457":"แถวสรุป","table.k458":"บาร์โค้ด","table.k459":"รูปภาพ","table.k460":"หลังแทรก ความกว้างตาราง {v0}mm เกินความกว้างที่พิมพ์ได้ {v1}mm; ลดความกว้างคอลัมน์ก่อน","table.k461":"ประเภทแถวไม่ระบุ","table.k462":"ไม่มีเซลล์ที่เลือก","table.k463":"เฉพาะแถวข้อมูลที่รองรับการรวมตามค่า","table.k464":"ไม่มีเซลล์ที่เลือก","table.k465":"ประเภทแถวรองรับการตั้งค่าแถวเดียวเท่านั้น","table.k466":"ไม่มีเซลล์ที่เลือก","table.k467":"แทรกแถวด้านบน","table.k468":"แทรกแถวด้านล่าง","table.k469":"ลบแถว","table.k470":"แทรกคอลัมน์ด้านซ้าย","table.k471":"แทรกคอลัมน์ด้านขวา","table.k472":"ลบคอลัมน์","table.k473":"รวมเซลล์","table.k474":"แยกเซลล์","table.k475":"รวมตามค่า","table.k476":"ประเภทแถว","table.k477":"ตัวจับปรับความกว้างคอลัมน์ {v0}","toolbarOverflow.k478":"คลิปบอร์ด","toolbarOverflow.k479":"เครื่องมือถ่ายรูปแบบ","toolbarOverflow.k480":"ซูม","toolbarOverflow.k481":"จัดระเบียบ / มุมมอง","toolbarOverflow.k482":"เส้นขอบ","toolbarOverflow.k483":"สี","toolbarOverflow.k484":"การจัดตำแหน่ง","toolbarOverflow.k485":"รูปแบบข้อความ","toolbarOverflow.k486":"ฟอนต์และขนาด","toolbarOverflow.k487":"เพิ่มเติม","toolbarOverflow.k488":'{v0}<span class="tb-btn-text">เพิ่มเติม</span>{v1}',"toolbar.k489":"แก้ไขเทมเพลต","toolbar.k490":"เทมเพลตใหม่","toolbar.k491":"จัดตำแหน่ง / กระจาย","toolbar.k492":"จัดชิดซ้าย","toolbar.k493":"จัดชิดขวา","toolbar.k494":"จัดชิดบน","toolbar.k495":"จัดชิดล่าง","toolbar.k496":"จัดกึ่งกลาง","toolbar.k497":"จัดกึ่งกลางแนวตั้ง","toolbar.k498":"กระจายแนวนอน","toolbar.k499":"กระจายแนวตั้ง","toolbar.k500":"ลำดับชั้น","toolbar.k501":"นำไปด้านหน้าสุด","toolbar.k502":"เลื่อนไปข้างหน้า","toolbar.k503":"เลื่อนไปข้างหลัง","toolbar.k504":"ส่งไปด้านหลังสุด","toolbar.k505":"จัดกลุ่ม","toolbar.k506":"จัดกลุ่ม (Ctrl+G)","toolbar.k507":"ยกเลิกจัดกลุ่ม (Ctrl+Shift+G)","toolbar.k508":"ไม้บรรทัด","toolbar.k509":"แสดง/ซ่อนไม้บรรทัด","toolbar.k510":"ตารางนำทาง","toolbar.k511":"แสดง/ซ่อนพื้นหลังตารางนำทาง","toolbar.k512":"กรอบประ","toolbar.k513":"แสดง/ซ่อนแนวประสำหรับตารางไร้เส้นขอบ","toolbar.k514":"ดูดติด","toolbar.k515":"สลับการดูดองค์ประกอบเข้าตารางนำทาง","toolbar.k516":"ตัวออกแบบเทมเพลตการพิมพ์","toolbar.k517":"เลิกทำ","toolbar.k518":"ทำซ้ำ","toolbar.k519":"จัดระเบียบ","toolbar.k520":"จัดระเบียบ","toolbar.k521":"มุมมอง","toolbar.k522":"มุมมอง","toolbar.k523":"พอดีกับหน้าต่าง","toolbar.k524":"ซูมออก","toolbar.k525":"ซูมเข้า","toolbar.k526":"คัดลอก (Ctrl+C) เลือกองค์ประกอบก่อน","toolbar.k527":"คัดลอก (Ctrl+C)","toolbar.k528":"วาง (Ctrl+V) เลือกองค์ประกอบก่อน","toolbar.k529":"วาง (Ctrl+V) คลิปบอร์ดว่าง","toolbar.k530":"วาง (Ctrl+V)","toolbar.k531":"ลบ (Delete) เลือกองค์ประกอบก่อน","toolbar.k532":"ลบ (Delete)","toolbar.k533":"ช่วยเหลือ","toolbar.k534":"ดูตัวอย่างผลการพิมพ์","toolbar.k535":"ตัวอย่าง","toolbar.k536":"บันทึกเทมเพลต","toolbar.k537":"บันทึก","watermark.k538":"ลายน้ำ","watermark.k539":"นิพจน์ลายน้ำ","watermark.k540":"ป้อนข้อความได้เลย หรือนิพจน์: {order.no}, {printDate}","watermark.k541":'ดับเบิลคลิกหรือคลิก "แก้ไขนิพจน์" เพื่อเปิดตัวแก้ไขนิพจน์',"watermark.k542":"แก้ไขนิพจน์","watermark.k543":"ค่าทดสอบ","watermark.k544":"แสดงในตัวอย่างเมื่อนิพจน์ไม่มีค่า","watermark.k545":"มุมหมุน","watermark.k546":"สี","watermark.k547":"สีลายน้ำ","watermark.k548":"ความโปร่งใส","watermark.k549":"ความหนาแน่น","watermark.k550":"กำหนดเอง","watermark.k551":"ความกว้างชิ้น","watermark.k552":"ความสูงชิ้น","elementDefinitions.k553":"ข้อความ","elementDefinitions.k554":"บาร์โค้ด","elementDefinitions.k555":"คิวอาร์โค้ด","elementDefinitions.k556":"รูปภาพ","elementDefinitions.k557":"ตาราง","elementDefinitions.k558":"ข้อความยาว","elementDefinitions.k559":"รายการแบบไหล","elementDefinitions.k560":"เส้นแนวนอน","elementDefinitions.k561":"เส้นแนวตั้ง","elementDefinitions.k562":"สี่เหลี่ยมผืนผ้า","elementDefinitions.k563":"วงรี","elementDefinitions.k564":"หมายเลขหน้า","elementDefinitions.k565":"registerElementDefinition: type ต้องเป็นสตริงที่ไม่ว่างเปล่า","elementDefinitions.k566":"registerElementDefinition: label ต้องเป็นสตริงที่ไม่ว่างเปล่า","elementDefinitions.k567":"registerElementRenderer: ต้องการ type และฟังก์ชัน render","panels.paperRotated":" (หมุน {rot}°)","panels.statusElements":"{count} องค์ประกอบ{selected}","panels.statusSelected":" (เลือก {n})"},...{"expression.tabField":"ฟิลด์","expression.tabVariable":"ตัวแปร","expression.tabFunction":"ฟังก์ชัน","expression.placeholderField":"ค้นหาฟิลด์...","expression.placeholderVariable":"ค้นหาตัวแปร...","expression.placeholderFunction":"ค้นหาฟังก์ชัน...","expression.fnSum":"ผลรวม","expression.fnAvg":"ค่าเฉลี่ย","expression.fnCount":"จำนวน","expression.fnMin":"ค่าต่ำสุด","expression.fnMax":"ค่าสูงสุด","expression.fnAdd":"บวก","expression.fnSub":"ลบ","expression.fnMul":"คูณ","expression.fnDiv":"หาร","expression.fnRound":"ปัดเศษ","expression.fnRoundUp":"ปัดขึ้น","expression.fnRoundDown":"ปัดลง","expression.fnRoundBank":"ปัดเศษแบบธนาคาร","expression.fnMoney":"จัดรูปแบบจำนวนเงิน","expression.fnDate":"จัดรูปแบบวันที่","expression.fnUpper":"จำนวนเงินเป็นตัวอักษร","expression.fnIf":"เงื่อนไข","expression.varPageIndex":"หน้าปัจจุบัน","expression.varTotalPages":"จำนวนหน้าทั้งหมด","expression.varPrintDate":"วันที่พิมพ์","expression.varPrintTime":"เวลาพิมพ์","expression.groupAggregate":"ฟังก์ชันรวมค่า","expression.groupMath":"คณิตศาสตร์","expression.groupFormat":"การจัดรูปแบบ","expression.previewEmpty":"(ดูตัวอย่างหลังป้อนนิพจน์)","expression.previewNoValue":"(ไม่สามารถคำนวณได้)","expression.previewError":"(นิพจน์ผิดพลาด)","expression.k1":"ประเภท","expression.k2":"วิธีป้อน","expression.k3":"ดับเบิลคลิกฟิลด์ ตัวแปร หรือฟังก์ชันทางด้านซ้ายเพื่อแทรก","expression.k4":"ค้าง Ctrl (⌘ บน Mac) ขณะดับเบิลคลิกเพื่อแทรกชื่อฟิลด์เป็นข้อความคงที่","expression.k5":"ป้อนข้อความคงที่ได้เลย เช่น ชื่อผู้จัดจำหน่าย","expression.k6":"ฟิลด์ ตัวแปร และฟังก์ชันแบบไดนามิกต้องอยู่ใน {}","expression.k7":"ตัวอย่าง: {SUM(supplier.name)}","expression.k8":"ป้อนคีย์ภาษาไทยได้โดยตรงเป็น {field} เช่น {name}","expression.k9":"หมายเหตุ: ซ้อนได้เพียงหนึ่งระดับ","expression.k10":"ฟังก์ชัน","expression.k11":"SUM(field) - ผลรวม","expression.k12":"AVG(field) - ค่าเฉลี่ย","expression.k13":"COUNT(field) - จำนวน","expression.k14":"IF(cond, true, false) - เงื่อนไข","expression.k15":"เลขคณิต: {qty * price}, {ADD(qty, 1)}","expression.k16":"การปัดเศษ: ROUND ปัดครึ่งขึ้น / ROUNDUP ปัดขึ้น / ROUNDDOWN ปัดลง / ROUNDBANK แบบธนาคาร","expression.k17":"ตัวแปรระบบ","expression.k18":"{pageIndex} - หน้าปัจจุบัน","expression.k19":"{totalPages} - จำนวนหน้าทั้งหมด","expression.k20":"{printDate} - วันที่พิมพ์","expression.k21":"ตัวอย่าง","expression.k22":"ข้อความคงที่: ชื่อผู้จัดจำหน่าย","expression.k23":"ฟิลด์ไดนามิก: {supplier.name}","expression.k24":"เรียกใช้ฟังก์ชัน: {SUM(amount)}","expression.k25":'เงื่อนไข: {IF(amount>1000, "ใหญ่", "เล็ก")}',"expression.k26":"เลขคณิตและปัดเศษ: {ROUND(qty * price, 2)}","expression.k27":"ไม่มีฟิลด์","expression.k28":"คัดลอกแล้ว","expression.k29":"ประเภท","expression.k30":"ข้อมูลช่วยเหลือ","expression.k31":"วิธีป้อน","expression.k32":"ผลตัวอย่าง","expression.k33":"แก้ไขนิพจน์","expression.k34":"ปิด","expression.k35":"ยกเลิก","expression.k36":"ยืนยัน"}},jS={constants:{"constants.borderStyle.none":"无","constants.borderStyle.solid":"实线","constants.borderStyle.dashed":"虚线","constants.borderStyle.dotted":"点线","constants.borderStyle.double":"双线","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"全等分 241×279.4mm","constants.paper.DOT_HALF.label":"二等分 241×139.7mm","constants.paper.DOT_THIRD.label":"三等分 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"连续纸(自定义宽度)","constants.paper.group.common":"常用纸张","constants.paper.group.dotMatrix":"针式打印纸","constants.paper.group.labels":"标签纸","constants.paper.group.receipt":"小票纸","constants.paper.group.continuous":"连续纸","constants.watermark.density.dense":"密","constants.watermark.density.medium":"中(默认)","constants.watermark.density.loose":"疏","constants.watermark.density.size":"({w}×{h})","constants.label.content":"内容","constants.hint.border.apply":"线型 / 宽度 / 颜色即时生效,这三行显示的就是当前生效规格:已有边框时任改一行都会按新规格铺满四边并清掉单边覆盖;上、下、左、右只给选中的边加框,撤掉一边会把它其余三边落成单边;「无」清除边框,「内部」仅表格单元格可用","constants.hint.border.pending":"线型 / 宽度 / 颜色是待应用规格:选中格已有的边框规格一致时会填进这三行;四边不一致的项显示「混合」,一条边都没有时显示「无 / 0」。改完点「全部 / 外侧 / 内部」或勾选上、下、左、右某条边才会写入选中的单元格;「无」是清除边框","constants.hint.border.multi":"多选时不回显单格边框:线型 / 宽度 / 颜色按当前设置作为批写规格,点「全部 / 外侧 / 内部」或勾选某条边后写入所有选中格;「无」是清除边框","constants.hint.border.mixed":"当前单元格四边边框规格不一致:带「混合」的项不谎报,未改项在点「全部 / 外侧 / 内部」或勾选单边时按缺省档(实线 0.75pt)写入,改任一项即按该值批写"}},ZS={constants:{"constants.borderStyle.none":"None","constants.borderStyle.solid":"Solid","constants.borderStyle.dashed":"Dashed","constants.borderStyle.dotted":"Dotted","constants.borderStyle.double":"Double","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"Full sheet 241×279.4mm","constants.paper.DOT_HALF.label":"Half sheet 241×139.7mm","constants.paper.DOT_THIRD.label":"Third sheet 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"Continuous paper (custom width)","constants.paper.group.common":"Common","constants.paper.group.dotMatrix":"Dot-matrix","constants.paper.group.labels":"Labels","constants.paper.group.receipt":"Receipt","constants.paper.group.continuous":"Continuous","constants.watermark.density.dense":"Dense","constants.watermark.density.medium":"Medium (default)","constants.watermark.density.loose":"Sparse","constants.watermark.density.size":" ({w}×{h})","constants.label.content":"Content","constants.hint.border.apply":'Line style / width / color apply immediately; these three rows show the effective spec. With an existing border, changing any row fills all four sides and clears per-side overrides. Top / right / bottom / left add a border only to the selected side; removing one turns the other three into per-side borders. "None" clears the border; "Inside" is available for table cells only.',"constants.hint.border.pending":'Line style / width / color are a pending spec: they are prefilled when the selected cells share one border spec. Mixed values show "Mixed"; no border shows "None / 0". Click All / Outside / Inside or tick a side (top / right / bottom / left) to write to the selected cells; "None" clears the border.',"constants.hint.border.multi":'Multi-select does not show a single cell border: line style / width / color act as a batch spec. Click All / Outside / Inside or tick a side to apply to all selected cells; "None" clears the border.',"constants.hint.border.mixed":'The four sides of this cell have different border specs: "Mixed" is shown instead of a false value. Untouched fields fall back to the default (Solid 0.75pt) when you click All / Outside / Inside or tick a side; changing any field writes that value to the batch.'}},QS={constants:{"constants.borderStyle.none":"ไม่มี","constants.borderStyle.solid":"เส้นทึบ","constants.borderStyle.dashed":"เส้นประ","constants.borderStyle.dotted":"เส้นจุด","constants.borderStyle.double":"เส้นคู่","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"แผ่นเต็ม 241×279.4mm","constants.paper.DOT_HALF.label":"แผ่นครึ่ง 241×139.7mm","constants.paper.DOT_THIRD.label":"แผ่นหนึ่งในสาม 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"กระดาษต่อเนื่อง (ความกว้างกำหนดเอง)","constants.paper.group.common":"กระดาษทั่วไป","constants.paper.group.dotMatrix":"กระดาษดอทเมทริกซ์","constants.paper.group.labels":"ฉลาก","constants.paper.group.receipt":"ใบเสร็จ","constants.paper.group.continuous":"กระดาษต่อเนื่อง","constants.watermark.density.dense":"หนาแน่น","constants.watermark.density.medium":"กลาง (ค่าเริ่มต้น)","constants.watermark.density.loose":"ห่าง","constants.watermark.density.size":" ({w}×{h})","constants.label.content":"เนื้อหา","constants.hint.border.apply":'รูปแบบเส้น/ความกว้าง/สีมีผลทันที สามบรรทัดนี้แสดงผลที่มีผลอยู่: เมื่อมีเส้นขอบอยู่แล้ว การเปลี่ยนแถวใดจะเติมสี่ด้านและลบการเขียนทับรายด้าน; บน/ขวา/ล่าง/ซ้ายเพิ่มเส้นเฉพาะด้านที่เลือก การลบด้านหนึ่งจะทำให้สามด้านที่เหลือเป็นเส้นแยก; "ไม่มี" ลบเส้นขอบ "ด้านใน" ใช้สำหรับเซลล์ตารางเท่านั้น',"constants.hint.border.pending":'รูปแบบเส้น/ความกว้าง/สีเป็นค่าที่รอใช้งาน: จะเติมในสามบรรทัดนี้เมื่อเซลล์ที่เลือกมีเส้นขอบสอดคล้องกัน; ค่าที่ไม่ตรงกันแสดง "ผสม" ไม่มีเส้นแสดง "ไม่มี / 0" แก้แล้วคลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งจึงเขียนลงเซลล์ที่เลือก; "ไม่มี" ลบเส้นขอบ',"constants.hint.border.multi":'การเลือกหลายรายการไม่แสดงเส้นขอบของเซลล์เดี่ยว: รูปแบบเส้น/ความกว้าง/สีเป็นค่าเขียนเป็นชุด คลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งเพื่อเขียนทุกเซลล์ที่เลือก; "ไม่มี" ลบเส้นขอบ',"constants.hint.border.mixed":'เส้นขอบสี่ด้านของเซลล์นี้ไม่สอดคล้องกัน: รายการ "ผสม" ไม่รายงานค่าผิด; รายการที่ไม่เปลี่ยนใช้ค่าเริ่มต้น (เส้นทึบ 0.75pt) เมื่อคลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านเดียว; เปลี่ยนรายการใดจะเขียนค่านั้นเป็นชุด'}},JS={propertyTips:{"propertyTips.ap-long-text-indent":"长文本每段首行空出的宽度,单位「字符」:填 2 即缩进两个汉字宽(中文排版惯例),按 em 落纸——字号被「自动缩小」压小时缩进同步变窄。仅长文本元素生效,写在普通文本上不生效","propertyTips.ap-img-fit":"图片在元素框内的缩放方式:包含=完整显示、可能留白;剪裁=铺满框并按「裁剪锚点」取一块;拉伸=填满框会变形;原始尺寸与缩小不放大。画布与三条出纸链路同一口径(缺省包含)","propertyTips.ap-img-object-position":"取位(仅「剪裁」档有这一行):剪裁把图等比铺满元素框,多出来的那一条边按这里选的位置取舍。先选位置档(贴边/居中/贴另一头),再按百分比微调,0 贴左/贴顶,100 挪到另一头,水平与垂直各自独立;缺省取正中间(保住证件照头顶就选顶部)。其余缩放模式图比框小或刚好铺满,没有可裁的边,所以不出本行","propertyTips.ap-img-fit-scale":"剪裁放大:等比铺满之后把画面再推大这么多,两轴才真的各多出一条边可裁——图与框同比例时不放大就什么都裁不掉。100=不放大(缺省),上限 400;超出框的部分由元素框裁掉。锚点选中的那一点既是取位的钉住点、也是放大的中心,两者共用同一个值。仅「剪裁」档生效,其余缩放模式不出本行","propertyTips.ap-rotate":"元素绕自身中心旋转的角度(度,0~359):出纸时按旋转后外接盒分页与结算,底部放不下自动移页,超出纸面左右缘或顶部会被裁切并给出纸提示。表格、流式列表与表格下方跟随区的元素不支持旋转(这三类不出本行);条码与二维码的任意角度需 385dpi 以上打印头,低分辨率打印机只按 90° 步进出纸","propertyTips.fl-columns":"一行排几个单元,必须由你指定——不随内容自动算列数。填的列数乘单元宽放不下元素框时只给提示、不改你的数,出纸按你填的排","propertyTips.fl-row-height":"每个单元行的最低高度(毫米),与表格行高同一口径:内容比它高时这一行会撑高,不会裁字","propertyTips.fl-gap-x":"相邻单元之间的横向留白(毫米);纵向不留缝,行与行的距离由行高承担","propertyTips.fl-auto-span":"单元内容比一列还宽时,让它占掉两个或更多列位;当前行剩不够放就把整个单元挪到下一行行首(绝不把词切两半)。默认关——开着时出纸栏数由字号与框宽决定","propertyTips.fl-max-span":"跨列的列数上限,最大只能等于「每行列数」:把每行列数改小时,这里会被一并顶回去","propertyTips.fl-layout-mode":"容器高度由谁决定:固定高度=维持设计高度、一框一页,超高裁切(存量模板默认值,输出不变);动态分页=容器高度由内容撑开,内容满页后按行续页,每一页都画完整边框,元素下方的跟随区与表格同一套规则","propertyTips.fl-padding-top":"动态分页模式下容器顶部与第一行内容之间的留白(毫米),仅动态模式生效;每页切片都按它留白并计入分页预算,负值与非法值按 0 处理","propertyTips.fl-padding-right":"动态分页模式下容器右侧与内容之间的留白(毫米),会压缩参与列宽估算的内容宽度,仅动态模式生效","propertyTips.fl-padding-bottom":"动态分页模式下容器底部与最后一行内容之间的留白(毫米),每页切片都按它留白并计入分页预算,仅动态模式生效","propertyTips.fl-padding-left":"动态分页模式下容器左侧与内容之间的留白(毫米),会压缩参与列宽估算的内容宽度,仅动态模式生效","propertyTips.cd-bar-quiet-zone":"条形码左右两端的空白格数(1 格 = 1 条宽):缺省 10,正是一维码码制要求的下限;数值越小白边越窄、同样的框内条越粗(可放大)。填 0 即不留白边,但静区参与「条→空→条」跳变,紧邻文字或表格线时可能扫不出,需实打验证","propertyTips.cd-bar-height":"黑白条本体的目标高度(mm,不含下方文字):折算粒度就是每模块物理宽,所以只能精确到它的整数倍。条宽优先——可用框高装不下时期望条高让位,绝不把条宽挤窄(热敏出纸清晰度靠条宽)。与「最大高度」分工不同:那条限的是整图(含文字)的上限","propertyTips.cd-quiet-zone":"二维码四周留出的空白格数:0 即不留白边、码面等比铺满元素框(此时靠框外的白纸充当静区);数值越大白边越宽、码面在框内越小(缺省 0,需 ISO/IEC 18004 推荐静区时填 4)"}},e2={propertyTips:{"propertyTips.ap-long-text-indent":'First-line indent for each paragraph of a long-text element, in characters: 2 means two Chinese characters wide (a common CJK convention), laid out in em units — it scales down when "Auto shrink" reduces the font size. Applies to long-text elements only; setting it on plain text has no effect.',"propertyTips.ap-img-fit":"How the image is scaled inside the element box. Contain: show the whole image, possibly with blank space. Crop: fill the box and take a region based on the crop anchor. Stretch: fill the box and distort. Original size / Shrink: never enlarge. The canvas and all three print pipelines use the same rule (Contain by default).","propertyTips.ap-img-object-position":"Crop anchor (only shown for Crop mode): cropping scales the image to fill the box, and this picks which extra edge to keep. Choose a position preset (edge / center / opposite edge), then fine-tune with the percentage: 0 aligns left/top, 100 aligns to the other end; horizontal and vertical are independent. The default is centered (choose Top to keep the head in ID photos). Other fit modes have no crop edge, so this row is hidden.","propertyTips.ap-img-fit-scale":"Crop zoom: after filling the box, enlarge the image by this much so both axes gain a crop margin — when image and box have the same aspect ratio, no zoom means nothing can be cropped. 100 = no zoom (default), maximum 400; anything outside the box is clipped by the element frame. The chosen anchor is both the pinning point and the zoom center. Shown for Crop mode only.","propertyTips.ap-rotate":"Rotation of the element about its own center, in degrees (0–359). During printing, pagination and layout use the rotated bounding box: content that does not fit at the bottom moves to the next page, and content beyond the left/right/top paper edges is clipped with a print warning. Tables, flow lists and elements in the follow-up zone below a table do not support rotation (this row is hidden for them); arbitrary angles for barcodes and QR codes require a 385dpi+ print head — lower-resolution printers only output in 90° steps.","propertyTips.fl-columns":"The number of cells per row must be specified by you — it is never inferred from content. If the column count times the cell width does not fit the element box, you get a hint but your value is not changed, and print output follows what you entered.","propertyTips.fl-row-height":"Minimum height of each cell row, in millimetres, using the same rule as table row height: a row grows when its content is taller, and text is never clipped.","propertyTips.fl-gap-x":"Horizontal whitespace between adjacent cells, in millimetres. No vertical gap is inserted; the distance between rows comes from the row height.","propertyTips.fl-auto-span":"When a cell is wider than one column, let it span two or more columns; if the current row has too few columns left, move the whole cell to the start of the next row (never split a word). Off by default — when on, the printed column count depends on font size and box width.","propertyTips.fl-max-span":'Upper limit for column spanning; it can never exceed "Columns per row". Lowering the column count also pushes this value down.',"propertyTips.fl-layout-mode":"What decides the container height. Fixed height: keep the designed height, one box per page, clip overflow (the default for existing templates, output unchanged). Dynamic pagination: the container grows with its content, continues row by row after a page fills, draws a complete border on every page, and follows the same rules as tables for the follow-up zone below the element.","propertyTips.fl-padding-top":"Whitespace between the top of the container and the first content row in dynamic pagination mode, in millimetres. Only applies in dynamic mode; every page slice uses this padding and counts it in the pagination budget. Negative or invalid values are treated as 0.","propertyTips.fl-padding-right":"Whitespace between the right side of the container and the content in dynamic pagination mode, in millimetres; it reduces the content width available for column-width estimation. Only applies in dynamic mode.","propertyTips.fl-padding-bottom":"Whitespace between the bottom of the container and the last content row in dynamic pagination mode, in millimetres. Only applies in dynamic mode; every page slice uses this padding and counts it in the pagination budget.","propertyTips.fl-padding-left":"Whitespace between the left side of the container and the content in dynamic pagination mode, in millimetres; it reduces the content width available for column-width estimation. Only applies in dynamic mode.","propertyTips.cd-bar-quiet-zone":"Number of blank modules on each side of a barcode (1 module = 1 bar width): the default of 10 is the minimum required by 1D symbologies. Smaller values narrow the quiet zone and make bars thicker in the same box (they can be enlarged). Setting 0 removes the white margin, but the quiet zone participates in bar-space-bar transitions, so codes next to text or table lines may fail to scan — verify with a real print.","propertyTips.cd-bar-height":'Target height of the black bars themselves, in millimetres (excluding the text below). The granularity is the physical width of one module, so only integer multiples are exact. Bar width takes priority: if the available height cannot fit the desired bar height, the height gives way — bars are never narrowed (thermal print clarity depends on bar width). This differs from "Maximum height", which limits the whole image including text.',"propertyTips.cd-quiet-zone":"Number of blank modules around a QR code: 0 means no white margin and the code scales to fill the element box (the surrounding white paper acts as the quiet zone). Larger values widen the margin and make the code smaller in the box. The default is 0; use 4 for the quiet zone recommended by ISO/IEC 18004."}},t2={propertyTips:{"propertyTips.ap-long-text-indent":'ระยะเว้นบรรทัดแรกของแต่ละย่อหน้าในข้อความยาว หน่วยเป็นอักขระ: ใส่ 2 หมายถึงเว้นสองตัวอักษรจีน (ตามธรรมเนียม CJK) คำนวณเป็นหน่วย em — จะย่อตามเมื่อ "ย่ออัตโนมัติ" ลดขนาดฟอนต์ ใช้เฉพาะองค์ประกอบข้อความยาว การตั้งค่าบนข้อความธรรมดาไม่มีผล',"propertyTips.ap-img-fit":"วิธีปรับขนาดรูปภาพภายในกรอบองค์ประกอบ พอดี: แสดงรูปทั้งหมดอาจมีช่องว่าง ครอบ: เติมกรอบแล้วตัดตามจุดยึดการครอป ดึง: เติมกรอบและบิดเบือน ขนาดต้นฉบับ/ย่อ: ไม่ขยาย พื้นที่ทำงานและทั้งสามไปป์ไลน์การพิมพ์ใช้กฎเดียวกัน (ค่าเริ่มต้นพอดี)","propertyTips.ap-img-object-position":"จุดยึดการครอป (แสดงเฉพาะโหมดครอบ): การครอปปรับรูปให้เติมกรอบ ตัวเลือกนี้เลือกขอบส่วนเกินที่ต้องการคงไว้ เลือกระดับตำแหน่ง (ชิดขอบ/กลาง/ชิดอีกด้าน) แล้วปรับด้วยเปอร์เซ็นต์: 0 ชิดซ้าย/บน 100 ชิดขวา/ล่าง แนวนอนและแนวตั้งอิสระต่อกัน ค่าเริ่มต้นอยู่กึ่งกลาง (เลือก บน เพื่อคงศีรษะในรูปบัตรประจำตัว) โหมดอื่นไม่มีขอบให้ครอปจึงซ่อนบรรทัดนี้","propertyTips.ap-img-fit-scale":"ขยายการครอป: หลังเติมกรอบแล้วขยายภาพอีกมากน้อยเพียงนี้ เพื่อให้ทั้งสองแกนมีขอบให้ครอป — เมื่อรูปและกรอบมีอัตราส่วนเท่ากัน การไม่ขยายจะครอปไม่ได้เลย 100 = ไม่ขยาย (ค่าเริ่มต้น) สูงสุด 400 ส่วนที่เกินกรอบถูกตัดโดยกรอบองค์ประกอบ จุดยึดที่เลือกเป็นทั้งจุดตรึงและศูนย์กลางการขยาย แสดงเฉพาะโหมดครอบ","propertyTips.ap-rotate":"มุมหมุนขององค์ประกอบรอบจุดศูนย์กลางตัวเอง เป็นองศา (0–359) ขณะพิมพ์ การแบ่งหน้าและการจัดวางใช้กล่องล้อมรอบที่หมุนแล้ว: เนื้อหาที่ไม่พอด้านล่างย้ายไปหน้าถัดไป และเนื้อหาที่เกินขอบกระดาษซ้าย/ขวา/บนถูกตัดพร้อมคำเตือน ตาราง รายการแบบไหล และองค์ประกอบในโซนตามหลังตารางไม่รองรับการหมุน (ซ่อนบรรทัดนี้); มุมใดๆ ของบาร์โค้ดและคิวอาร์โค้ดต้องการหัวพิมพ์ 385dpi ขึ้นไป — เครื่องพิมพ์ความละเอียดต่ำกว่าส่งออกได้เฉพาะขั้น 90°","propertyTips.fl-columns":"จำนวนเซลล์ต่อแถวต้องระบุเองเสมอ — ไม่คำนวณจากเนื้อหา หากจำนวนคอลัมน์คูณความกว้างเซลล์ไม่พอดีกับกรอบองค์ประกอบจะมีคำแนะนำแต่ค่าไม่เปลี่ยน และผลการพิมพ์เป็นไปตามที่ป้อน","propertyTips.fl-row-height":"ความสูงขั้นต่ำของแถวเซลล์แต่ละแถว เป็นมิลลิเมตร ใช้กฎเดียวกับความสูงแถวตาราง: แถวจะสูงขึ้นเมื่อเนื้อหาสูงกว่า และข้อความไม่ถูกตัด","propertyTips.fl-gap-x":"ช่องว่างแนวนอนระหว่างเซลล์ที่อยู่ติดกัน เป็นมิลลิเมตร ไม่มีการเว้นช่องแนวตั้ง ระยะระหว่างแถวมาจากความสูงแถว","propertyTips.fl-auto-span":"เมื่อเซลล์กว้างกว่าหนึ่งคอลัมน์ ให้ขยายครอบสองคอลัมน์ขึ้นไป; หากแถวปัจจุบันเหลือคอลัมน์ไม่พอ ย้ายเซลล์ทั้งหมดไปขึ้นต้นแถวถัดไป (ไม่ตัดคำ) ปิดอยู่โดยค่าเริ่มต้น — เมื่อเปิด จำนวนคอลัมน์ที่พิมพ์ขึ้นกับขนาดฟอนต์และความกว้างกรอบ","propertyTips.fl-max-span":'ขีดจำกัดบนของการขยายคอลัมน์ ห้ามเกิน "จำนวนคอลัมน์ต่อแถว" การลดจำนวนคอลัมน์จะดันค่านี้ลงด้วย',"propertyTips.fl-layout-mode":"อะไรเป็นตัวกำหนดความสูงของคอนเทนเนอร์ ความสูงคงที่: คงความสูงที่ออกแบบ หนึ่งกรอบต่อหน้า ตัดส่วนเกิน (ค่าเริ่มต้นของเทมเพลตเดิม ผลไม่เปลี่ยน) การแบ่งหน้าแบบไดนามิก: คอนเทนเนอร์ ขยายตามเนื้อหา ดำเนินต่อเป็นแถวหลังหน้าเต็ม วาดเส้นขอบครบทุกหน้า และปฏิบัติตามกฎเดียวกับตารางสำหรับโซนตามหลังองค์ประกอบ","propertyTips.fl-padding-top":"ช่องว่างระหว่างด้านบนของคอนเทนเนอร์กับแถวเนื้อหาแรกในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร ใช้เฉพาะโหมดไดนามิก ทุกชิ้นของหน้าใช้ระยะนี้และนับรวมในงบการแบ่งหน้า ค่าติดลบหรือไม่ถูกต้องถือเป็น 0","propertyTips.fl-padding-right":"ช่องว่างระหว่างด้านขวาของคอนเทนเนอร์กับเนื้อหาในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร จะลดความกว้างเนื้อหาที่ใช้คำนวณความกว้างคอลัมน์ ใช้เฉพาะโหมดไดนามิก","propertyTips.fl-padding-bottom":"ช่องว่างระหว่างด้านล่างของคอนเทนเนอร์กับแถวเนื้อหาสุดท้ายในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร ใช้เฉพาะโหมดไดนามิก ทุกชิ้นของหน้าใช้ระยะนี้และนับรวมในงบการแบ่งหน้า","propertyTips.fl-padding-left":"ช่องว่างระหว่างด้านซ้ายของคอนเทนเนอร์กับเนื้อหาในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร จะลดความกว้างเนื้อหาที่ใช้คำนวณความกว้างคอลัมน์ ใช้เฉพาะโหมดไดนามิก","propertyTips.cd-bar-quiet-zone":"จำนวนโมดูลว่างสองข้างของบาร์โค้ด (1 โมดูล = 1 ความกว้างแท่น): ค่าเริ่มต้น 10 คือค่าต่ำสุดที่รหัสแบบหนึ่งมิติต้องการ ค่าที่เล็กลงทำให้โซนเงียบแคบและแท่นหนาขึ้นในกรอบเดียวกัน (สามารถขยายได้) การตั้ง 0 ลบขอบขาว แต่โซนเงียบมีส่วนในการเปลี่ยนแท่น-ช่อง-แท่น รหัสที่อยู่ติดข้อความหรือเส้นตารางอาจสแกนไม่ได้ — ตรวจด้วยการพิมพ์จริง","propertyTips.cd-bar-height":'ความสูงเป้าหมายของแท่นดำเอง เป็นมิลลิเมตร (ไม่รวมข้อความด้านล่าง) ความละเอียดคือความกว้างทางกายภาพของหนึ่งโมดูล จึงแม่นยำเฉพาะจำนวนเต็มเท่านั้น ความกว้างแท่นมีสิทธิ์ก่อน: หากความสูงที่มีไม่พอตามที่ต้องการ ความสูงจะยอมตาม — ไม่เคยทำให้แท่นแคบลง (ความชัดของการพิมพ์ความร้อนขึ้นกับความกว้างแท่น) ต่างจาก "ความสูงสูงสุด" ที่จำกัดทั้งภาพรวมข้อความ',"propertyTips.cd-quiet-zone":"จำนวนโมดูลว่างรอบคิวอาร์โค้ด: 0 หมายถึงไม่มีขอบขาวและรหัสขยายเติมกรอบ (กระดาษขาวรอบนอกทำหน้าที่โซนเงียบ) ค่าที่ใหญ่ขึ้นทำให้ขอบกว้างและรหัสเล็กลงในกรอบ ค่าเริ่มต้น 0 ใช้ 4 สำหรับโซนเงียบตามที่ ISO/IEC 18004 แนะนำ"}};function dg(t){if(typeof t!="string")return"zh-CN";const e=t.trim();return e?/^en([-_]|$)/i.test(e)?"en-US":/^th([-_]|$)/i.test(e)?"th-TH":e:"zh-CN"}function vg(){try{if(typeof navigator<"u"&&typeof navigator.language=="string")return dg(navigator.language)}catch{}return"zh-CN"}function r2(){const t=fg();return t.init({resources:{"zh-CN":{core:KS,constants:jS.constants,propertyTips:JS.propertyTips},"en-US":{core:XS,constants:ZS.constants,propertyTips:e2.propertyTips},"th-TH":{core:qS,constants:QS.constants,propertyTips:t2.propertyTips}},lng:vg(),fallbackLng:"zh-CN",ns:["core"],defaultNS:"core",keySeparator:!1,nsSeparator:!1,interpolation:{prefix:"{",suffix:"}",escapeValue:!1},returnNull:!1,returnEmptyString:!1,saveMissing:!0,missingKeyHandler:()=>{}}),t}const Ep=r2(),a2=new Set,n2=new Set;Ep.on("missingKey",(t,e,r)=>{Ep.exists(r,{lng:"zh-CN"})||a2.add(r)});function gg(){return vg()}function i2(){return gg()}function o2(t,e){return typeof t=="string"?t:t==null?e:String(t)}function s2(t,e,r){const a=Ep.getFixedT(dg(t),l2()),n=r?a(e,r):a(e);return o2(n,e)}function Se(t,e){return s2(gg(),t,e)}function l2(){return["user",...n2,"constants","propertyTips","core"]}function u2(t,e,r){return new Intl.NumberFormat(e,r).format(t)}function p2(){let t=0;return function(){return t+=1,`cell-${Date.now().toString(36)}-${t}`}}function c2(){let t=0;return function(){return t+=1,`row-${Date.now().toString(36)}-${t}`}}const f2=p2(),h2=c2(),Ts={width:.75,style:"solid",color:"#333333"};function d2(t){return{id:f2(),borders:{top:{...Ts},right:{...Ts},bottom:{...Ts},left:{...Ts}},...t}}function v2(){const t=[50,50,50],e=(a,n)=>({id:h2(),type:a,height:8,...n!==void 0?{repeatOnPage:n}:{},cells:t.map(()=>d2())}),r=e("header",!0);return r.cells.forEach((a,n)=>{a.formatter=Se("table.defaultHeader",{index:n+1}),a.align="center",a.fontWeight="bold"}),{rows:[r,e("data"),e("subtotal"),e("summary")],colWidths:t}}const mg=Symbol.for("worm-print-platform.element-capabilities.v1"),yg=globalThis;function Dn(){const t=yg[mg];if(t)return t;const e={entries:new Map,nextSeq:0,bootstrapped:!1};return yg[mg]=e,g2(e),e}const Ip=Object.freeze({text:{zoneAllowed:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"}],defaultOptions:()=>({formatter:"文本",exampleValue:"示例文本",fontSize:12,textAlign:"left",height:5.3}),title:"文本"},longText:{defaultTextFit:"autoHeight",bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"},{targetPath:"options.styler",label:"样式",dataSource:"main"}],defaultOptions:()=>({width:141.1,height:28.2,fontSize:12,lineHeight:18,exampleValue:"示例长文本内容"}),title:"长文"},barcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"}],defaultOptions:()=>({width:56.4,height:14.1,title:"条形码",barcodeType:"code128",testData:"12345678",exampleValue:"12345678"}),title:"条形码"},qrcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"}],defaultOptions:()=>({width:28.2,height:28.2,title:"二维码",testData:"qrcode",exampleValue:"qrcode"}),title:"二维码"},image:{zoneAllowed:!0,bindings:[{targetPath:"options.src",label:"内容",labelKey:"constants.label.content",dataSource:"main",placeholder:"输入图片路径,支持 /docfiles/... 相对路径、绝对 URL 或 {字段} 表达式"}],defaultOptions:()=>({width:28.2,height:28.2,fit:"contain"}),title:"图片"},table:{rotationExcluded:!0,acceptsElementBorder:!1,bindings:[],defaultOptions:()=>{const{rows:t,colWidths:e}=v2(),r=e.reduce((n,i)=>n+i,0),a=t.reduce((n,i)=>n+i.height,0);return{width:r,height:a,tableMode:"dynamic",tableRows:t,tableColWidths:e,tableDefaultFontSize:10,tableDefaultColor:"#333333",tableDefaultPadding:1,fields:[],tablePagination:{enabled:!0}}},title:"表格"},flowList:{rotationExcluded:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"单元模板",dataSource:"main",placeholder:"{drugs.name} {drugs.spec}"}],defaultOptions:()=>({width:141.1,height:21.2,fontSize:12,formatter:"{name} {spec}",flowColumns:4,flowRowHeight:8,flowGapX:4,flowAutoSpan:!1,flowMaxSpan:2,flowLayoutMode:"fixed",flowPaddingTop:0,flowPaddingRight:0,flowPaddingBottom:0,flowPaddingLeft:0}),title:"流式列表"},hline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:70.6,height:1.8,borderWidth:.75}),title:"横线"},vline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:1.8,height:35.3,borderWidth:.75}),title:"竖线"},rect:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"矩形"},oval:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"椭圆"},html:{blocked:!0,defaultOptions:()=>({width:28.2,height:28.2}),title:"HTML"},pageNumber:{title:"页码"}});function g2(t){if(!t.bootstrapped){t.bootstrapped=!0;for(const[e,r]of Object.entries(Ip))t.entries.has(e)||t.entries.set(e,{caps:r,seq:t.nextSeq++})}}function m2(t,e){if(!t||typeof t!="string")throw new Error("registerElementCapabilities: type 必须是非空字符串");if(!e||typeof e!="object")throw new Error("registerElementCapabilities: caps 必须是对象");const r=Dn(),a=r.nextSeq++;return r.entries.set(t,{caps:e,seq:a}),()=>{if(Dn().entries.get(t)?.caps!==e)return;const i=Ip[t];i?Dn().entries.set(t,{caps:i,seq:a}):Dn().entries.delete(t)}}function bg(t){return t?{...Dn().entries.get(t)?.caps??{},type:t}:{type:""}}function kg(){return[...Dn().entries.entries()].sort((t,e)=>t[1].seq-e[1].seq).map(([t])=>t)}const wg=Symbol.for("worm-print-platform.element-plugin-registry.v1"),_g=globalThis;function Cs(){const t=_g[wg];if(t)return t;const e={plugins:new Map,typeIndex:new Map,configs:new Map,legacyAliases:new Map};return _g[wg]=e,e}function xg(t){if(!t?.id||typeof t.id!="string")throw new Error("defineElementPlugin: id 必须是非空字符串");if(!t.version||typeof t.version!="string")throw new Error("defineElementPlugin: version 必须是非空字符串");if(!Array.isArray(t.kinds)||t.kinds.length===0)throw new Error("defineElementPlugin: kinds 必须是非空数组");const e=new Set;for(const r of t.kinds){if(!r?.type||typeof r.type!="string")throw new Error("defineElementPlugin: kinds[].type 必须是非空字符串");if(e.has(r.type))throw new Error(`defineElementPlugin: kinds 内 type 重复「${r.type}」`);e.add(r.type)}}function y2(t){return xg(t),t}function Pg(t){xg(t);const e=Cs();for(const[a,n]of[...e.typeIndex])n.plugin.id===t.id&&n.plugin!==t&&e.typeIndex.delete(a);e.plugins.set(t.id,t);for(const a of t.kinds)e.typeIndex.set(a.type,{plugin:t,kind:a});const r=[];for(const a of t.kinds){const n={...a.fixedHeight===!0?{fixedHeight:!0}:{},...a.blocked===!0?{blocked:!0}:{},...a.capabilities??{}};Object.keys(n).length!==0&&r.push(m2(a.type,n))}for(const[a,n]of Object.entries(t.legacyAliases??{}))e.legacyAliases.set(a,n);return()=>{if(e.plugins.get(t.id)===t){e.plugins.delete(t.id);for(const[a,n]of[...e.typeIndex])n.plugin===t&&e.typeIndex.delete(a);for(const a of r)a()}}}function b2(t){return Cs().plugins.get(t)}function k2(t,e){const r=Cs();r.configs.set(t,{...r.configs.get(t)??{},...e})}function w2(t){return{...Cs().configs.get(t)??{}}}function _2(){return kg().filter(t=>bg(t).blocked===!0)}_2();function x2(){return kg().filter(t=>bg(t).zoneAllowed===!0)}x2();const Sg=["#000000","#333333","#666666","#999999","#cccccc","#ffffff","#e53935","#fb8c00","#1e88e5","#43a047","#8d6e63","#00acc1"],P2=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),S2=new Set(["new","function","class","this","delete","typeof","void","in","of","var","let","const","return","if","while","for"]);function Op(t){const e=[];let r=0;const a=t.length;for(;r<a;){const n=t[r];if(/\s/.test(n)){r++;continue}if(/[0-9]/.test(n)||n==="."&&r+1<a&&/[0-9]/.test(t[r+1])){let s=r;for(;s<a&&/[0-9.]/.test(t[s]);)s++;e.push({type:"num",value:t.slice(r,s),position:r}),r=s;continue}if(n==="'"||n==='"'){let s=r+1,l="";for(;s<a&&t[s]!==n;)t[s]==="\\"&&s+1<a?(l+=t[s+1],s+=2):(l+=t[s],s++);if(s>=a)throw new Error(Se("diagnostic.lexer.unterminatedString"));e.push({type:"str",value:l,position:r}),r=s+1;continue}if(/[A-Za-z_$\u4e00-\u9fff]/.test(n)){let s=r;for(;s<a&&/[A-Za-z0-9_$\u4e00-\u9fff]/.test(t[s]);)s++;const l=t.slice(r,s);if(S2.has(l))throw new Error(Se("diagnostic.lexer.keyword",{word:l}));if(P2.has(l))throw new Error(Se("diagnostic.lexer.forbidden",{word:l}));l==="true"||l==="false"?e.push({type:"bool",value:l,position:r}):e.push({type:"ident",value:l,position:r}),r=s;continue}const i=t.slice(r,r+3);if(i==="==="||i==="!=="){e.push({type:"punc",value:i,position:r}),r+=3;continue}const o=t.slice(r,r+2);if(o==="=>")throw new Error(Se("diagnostic.lexer.noFunctionDef"));if(["==","!=","<=",">=","&&","||"].includes(o)){e.push({type:"punc",value:o,position:r}),r+=2;continue}if(n==="=")throw new Error(Se("diagnostic.lexer.noAssignment"));if(n===";")throw new Error(Se("diagnostic.lexer.noMultipleStatements"));if("+-*/%()[]{},:.?!<>".includes(n)){e.push({type:"punc",value:n,position:r}),r++;continue}throw new Error(Se("diagnostic.lexer.invalidChar",{ch:n}))}return e}function Rp(t){return new T2(t).parse()}class T2{constructor(e){this.pos=0,this.tokens=e}parse(){const e=this.parseTernary();if(this.pos<this.tokens.length)throw new Error(Se("diagnostic.parser.trailingContent",{value:this.tokens[this.pos].value}));return e}peek(){return this.tokens[this.pos]}next(){const e=this.tokens[this.pos++];if(!e)throw new Error(Se("diagnostic.expressionUnexpectedEnd"));return e}eatPunc(e){const r=this.peek();return r&&r.type==="punc"&&r.value===e?(this.pos++,!0):!1}expectPunc(e){if(!this.eatPunc(e)){const r=this.peek()?.position??0;throw new Error(Se("diagnostic.parser.expected",{pos:r,value:e}))}}parseTernary(){const e=this.parseLogicalOr();if(this.eatPunc("?")){const r=this.parseTernary();this.expectPunc(":");const a=this.parseTernary();return{type:"ternary",cond:e,consequent:r,alternate:a}}return e}parseLogicalOr(){let e=this.parseLogicalAnd();for(;this.eatPunc("||");){const r=this.parseLogicalAnd();e={type:"binary",op:"||",left:e,right:r}}return e}parseLogicalAnd(){let e=this.parseEquality();for(;this.eatPunc("&&");){const r=this.parseEquality();e={type:"binary",op:"&&",left:e,right:r}}return e}parseEquality(){let e=this.parseRelational();for(;;){const r=this.peek();if(r?.type==="punc"&&["==","!=","===","!=="].includes(r.value)){this.pos++;const a=this.parseRelational();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseRelational(){let e=this.parseAdditive();for(;;){const r=this.peek();if(r?.type==="punc"&&["<",">","<=",">="].includes(r.value)){this.pos++;const a=this.parseAdditive();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseAdditive(){let e=this.parseMultiplicative();for(;;){const r=this.peek();if(r?.type==="punc"&&(r.value==="+"||r.value==="-")){this.pos++;const a=this.parseMultiplicative();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseMultiplicative(){let e=this.parseUnary();for(;;){const r=this.peek();if(r?.type==="punc"&&["*","/","%"].includes(r.value)){this.pos++;const a=this.parseUnary();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseUnary(){const e=this.peek();if(e?.type==="punc"&&["!","-","+"].includes(e.value)){this.pos++;const r=this.parseUnary();return{type:"unary",op:e.value,arg:r,prefix:!0}}return this.parsePostfix()}parsePostfix(){let e=this.parsePrimary();for(;;)if(this.eatPunc(".")){const r=this.next();if(r.type!=="ident")throw new Error(Se("diagnostic.parser.memberName",{pos:r.position}));e={type:"member",object:e,property:r.value,computed:!1}}else if(this.eatPunc("[")){const r=this.parseTernary();this.expectPunc("]"),r.type==="str"?e={type:"member",object:e,property:r.value,computed:!1}:e={type:"member",object:e,property:r.name??String(r.value),computed:!0}}else if(this.peek()?.type==="punc"&&this.peek()?.value==="("&&(e.type==="ident"||e.type==="member")){this.pos++;const r=this.parseArgs();e={type:"call",callee:e,args:r}}else return e}parseArgs(){const e=[];if(this.eatPunc(")"))return e;for(;;){if(e.push(this.parseTernary()),this.eatPunc(")"))return e;this.expectPunc(",")}}parsePrimary(){const e=this.next();if(e.type==="num"){const r=Number(e.value);if(isNaN(r))throw new Error(Se("diagnostic.parser.invalidNumber",{value:e.value}));return{type:"num",value:r}}if(e.type==="str")return{type:"str",value:e.value};if(e.type==="bool")return{type:"bool",value:e.value==="true"};if(e.type==="ident")return{type:"ident",name:e.value};if(e.value==="("){const r=this.parseTernary();return this.expectPunc(")"),r}if(e.value==="["){const r=[];if(!this.eatPunc("]"))for(;r.push(this.parseTernary()),!this.eatPunc("]");)this.expectPunc(",");return{type:"array",elements:r}}if(e.value==="{"){const r=[];if(!this.eatPunc("}"))for(;;){const a=this.next();if(a.type!=="ident"&&a.type!=="str")throw new Error(Se("diagnostic.parser.objectKey",{pos:a.position}));if(this.expectPunc(":"),r.push({key:a.value,value:this.parseTernary()}),this.eatPunc("}"))break;this.expectPunc(",")}return{type:"object",properties:r}}throw new Error(Se("diagnostic.parser.unexpectedToken",{pos:e.position,value:e.value}))}}const Tg=20,C2=8;function Pt(t,e=0){if(typeof t=="number")return Number.isFinite(t)?t:e;if(typeof t=="string"){const r=t.trim();if(r==="")return e;const a=Number(r);return Number.isFinite(a)?a:e}return t==null?e:typeof t=="boolean"?t?1:0:e}function D2(t){if(typeof t=="number")return Number.isFinite(t);if(typeof t=="string"){const e=t.trim();return e!==""&&Number.isFinite(Number(e))}return!1}function An(t){return!Number.isFinite(t)||Number.isInteger(t)||Math.abs(t)>=1e15?t:Number(t.toPrecision(12))}function Ln(t){if(!Number.isFinite(t)||Number.isInteger(t))return 0;const e=String(t);if(e.includes("e")||e.includes("E"))return 0;const r=e.indexOf(".");return r===-1?0:e.length-r-1}function Bp(t,e){if(!Number.isFinite(t))return 0;const r=Math.min(Math.max(e,0),12);if(r===0)return Math.round(t);const a=10**r,n=t*a;return!Number.isFinite(n)||Math.abs(n)>=1e15?An(t):Math.round(n)/a}function Np(t,e){const r=Pt(t),a=Pt(e),n=r+a;return Bp(n,Math.max(Ln(r),Ln(a)))}function Fp(t,e){const r=Pt(t),a=Pt(e),n=r-a;return Bp(n,Math.max(Ln(r),Ln(a)))}function Cg(t,e){const r=Pt(t),a=Pt(e),n=r*a;return Bp(n,Ln(r)+Ln(a))}function Dg(t,e){const r=Pt(t),a=Pt(e);return a===0?0:An(r/a)}function A2(t,e){const r=Pt(t),a=Pt(e);return a===0?0:An(r%a)}function L2(t){if(t==null)return 2;const e=Math.trunc(Pt(t,2));return Number.isFinite(e)?Math.min(Math.max(e,-Tg),Tg):2}function Ds(t,e,r){const a=Pt(t,0),n=L2(e);if(a===0)return 0;if(Math.abs(a)>=1e21)return An(a);const i=Math.max(n,0)+C2,o=a.toFixed(i);if(!/^-?\d+(\.\d+)?$/.test(o))return An(a);const s=o.startsWith("-"),l=o.replace("-","").replace(".","");let u=BigInt(l||"0");s&&(u=-u);const p=10n**BigInt(i-n),c=u<0n?-1n:1n,f=u<0n?-u:u;let h=f/p;const d=f%p,v=2n*d;r==="up"?d!==0n&&(h+=1n):r!=="down"&&v>=p&&(v>p||r==="half-up"||h%2n===1n)&&(h+=1n);const m=c*h;return An(n>=0?Number(m)/10**n:Number(m)*10**-n)}const zp={Math,Number,String,Boolean,parseInt,parseFloat,isNaN,true:!0,false:!1,null:null,undefined:void 0},M2=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),E2=new Set(["Number","String","Boolean","parseInt","parseFloat","isNaN"]);function ot(t,e,r={}){switch(t.type){case"num":return t.value;case"str":return t.value;case"bool":return t.value;case"ident":return I2(t.name,e);case"binary":return O2(t,e,r);case"unary":return R2(t,e,r);case"ternary":return ot(t.cond,e,r)?ot(t.consequent,e,r):ot(t.alternate,e,r);case"member":return F2(t,e,r);case"call":return z2(t,e,r);case"array":return t.elements.map(a=>ot(a,e,r));case"object":return Object.fromEntries(t.properties.map(a=>[a.key,ot(a.value,e,r)]))}}function I2(t,e,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(Object.prototype.hasOwnProperty.call(zp,t))return zp[t];throw new Error(Se("diagnostic.evaluator.undefinedIdentifier",{name:t}))}function O2(t,e,r){const a=ot(t.left,e,r),n=ot(t.right,e,r);switch(t.op){case"+":return N2(a,n)?Np(a,n):B2(a,n);case"-":return Fp(a,n);case"*":return Cg(a,n);case"/":return Dg(a,n);case"%":return A2(a,n);case"<":return a<n;case">":return a>n;case"<=":return a<=n;case">=":return a>=n;case"==":return a==n;case"!=":return a!=n;case"===":return a===n;case"!==":return a!==n;case"&&":return a&&n;case"||":return a||n;default:throw new Error(Se("diagnostic.evaluator.unknownOperator",{op:t.op}))}}function R2(t,e,r){const a=ot(t.arg,e,r);switch(t.op){case"-":return Fp(0,a);case"+":return Pt(a);case"!":return!a;default:throw new Error(Se("diagnostic.evaluator.unknownUnaryOperator",{op:t.op}))}}function B2(t,e){return`${t==null?"":String(t)}${e==null?"":String(e)}`}function N2(t,e){const r=Ag(t),a=Ag(e);return r==="other"||a==="other"?!1:r==="num"||a==="num"}function Ag(t){return t==null||t===""?"neutral":D2(t)?"num":"other"}function F2(t,e,r){const a=ot(t.object,e,r);if(a==null)throw new Error(Se("diagnostic.evaluator.nullProperty"));if(M2.has(t.property))throw new Error(Se("diagnostic.evaluator.forbiddenProperty",{property:t.property}));return a[t.property]}function z2(t,e,r){if(t.callee.type==="ident"&&E2.has(t.callee.name)){const n=zp[t.callee.name],i=t.args.map(o=>ot(o,e,r));return n(...i)}if(t.callee.type==="member"&&t.callee.object.type==="ident"&&t.callee.object.name==="Math"){const n=Math[t.callee.property];if(typeof n!="function")throw new Error(Se("diagnostic.evaluator.mathNotMethod",{name:t.callee.property}));const i=t.args.map(o=>ot(o,e,r));return n(...i)}let a;if(t.callee.type==="ident")a=t.callee.name;else if(t.callee.type==="member")throw new Error(Se("diagnostic.evaluator.noMethodCall"));if(a&&r[a]){const n=t.args.map(i=>ot(i,e,r));return r[a](...n)}throw a&&Object.prototype.hasOwnProperty.call(e,a)?new Error(Se("diagnostic.evaluator.notFunction",{name:a})):new Error(Se("diagnostic.evaluator.forbiddenCall",{name:a??"表达式"}))}function H2(t){const e=[];let r=0;const a=t.length;for(;r<a;){if(t[r]==="{"){let i=1,o=r+1;for(;o<a&&i>0;)t[o]==="{"?i++:t[o]==="}"&&i--,o++;if(i!==0)throw new Error(Se("diagnostic.template.unclosedBrace",{pos:r}));const s=t.slice(r+1,o-1);if(s.trim()==="")throw new Error(Se("diagnostic.template.emptyExpression",{pos:r}));const l=Op(s),u=Rp(l);e.push({type:"expr",expression:u}),r=o;continue}let n=r;for(;n<a&&t[n]!=="{";)t[n]==="\\"&&n+1<a&&(t[n+1]==="{"||t[n+1]==="}")?n+=2:n++;e.push({type:"text",value:t.slice(r,n).replace(/\\([{}])/g,"$1")}),r=n}return{type:"template",parts:e}}function V2(t,e,r={}){let a="";for(const n of t.parts)if(n.type==="text")a+=n.value;else{const i=ot(n.expression,e,r);a+=String(i??"")}return a}function Lg(t,e={}){const r=H2(t);return a=>V2(r,a,e)}function Hp(t,e){if(t==null||e==null)return;if(typeof t=="object"&&e in t)return t[e];const r=e.split(".");let a=t;for(const n of r){if(a==null)return;a=a[n]}return a}function Mg(t){const e=Number(t);if(isNaN(e))return String(t);const r=e<0?"-":"",a=Math.abs(e),[n,i]=a.toFixed(2).split("."),o=n.replace(/\B(?=(\d{3})+(?!\d))/g,",");return`${r}${o}.${i}`}function Eg(t,e){let r;if(t instanceof Date)r=t;else if(typeof t=="number")r=new Date(t);else if(typeof t=="string")r=new Date(t);else return String(t);if(isNaN(r.getTime()))return String(t);const a=n=>String(n).padStart(2,"0");return e.replace("YYYY",String(r.getFullYear())).replace("MM",a(r.getMonth()+1)).replace("DD",a(r.getDate())).replace("HH",a(r.getHours())).replace("mm",a(r.getMinutes())).replace("ss",a(r.getSeconds()))}const Vp=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],U2=["","拾","佰","仟"],G2=["","万","亿","万亿","亿亿"];function W2(t){let e="",r=!1;for(let a=3;a>=0;a--){const n=Math.floor(t/10**a)%10;if(n===0){e&&(r=!0);continue}r&&(e+="零",r=!1),e+=Vp[n]+U2[a]}return e}function Ig(t){const e=Number(t);if(isNaN(e))return String(t);if(e===0)return"零元整";const r=e<0?"负":"",[a,n]=Math.abs(e).toFixed(2).split("."),i=Math.ceil(a.length/4);let o="",s=!1;for(let p=i-1;p>=0;p--){const c=a.length-p*4,f=parseInt(a.slice(Math.max(0,c-4),c),10);if(f===0){o&&(s=!0);continue}o&&(s||f<1e3)&&(o+="零"),s=!1,o+=W2(f)+(G2[p]??"")}o=`${o||"零"}元`;const l=parseInt(n[0],10),u=parseInt(n[1],10);return l===0&&u===0?o+="整":(l===0?o+="零":o+=Vp[l]+"角",u>0&&(o+=Vp[u]+"分")),r+o}function Og(t,e,r){return t?e:r}function Rg(t,e){return t.reduce((r,a)=>r+(Number(Hp(a,e))||0),0)}function $2(t,e){return t.length===0?0:Rg(t,e)/t.length}function Y2(t,e){return t.length}function K2(t,e){return t.length===0?0:Math.min(...t.map(r=>Number(Hp(r,e))||0))}function X2(t,e){return t.length===0?0:Math.max(...t.map(r=>Number(Hp(r,e))||0))}function Bg(...t){return t.reduce((e,r)=>Np(e,r),0)}function Ng(...t){return t.length===0?0:t.slice(1).reduce((e,r)=>Fp(e,r),Np(t[0],0))}function Fg(...t){return t.length===0?0:t.reduce((e,r)=>Cg(e,r),1)}function zg(t,e){return Dg(t,e)}function Hg(t,e){return Ds(t,e,"half-up")}function As(t,e){return Ds(t,e,"up")}function Ls(t,e){return Ds(t,e,"down")}function Vg(t,e){return Ds(t,e,"half-even")}class q2{constructor(){this.functions={}}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const a=Op(e),n=Rp(a);return ot(n,r,this.functions)}render(e,r){return Lg(e,this.functions)(r)}}const Ug=new q2,j2={MONEY:Mg,DATE:Eg,UPPER:Ig,IF:Og,CONCAT:(...t)=>t.filter(e=>e!=null).map(String).join(""),IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,LEN:t=>String(t).length,ADD:Bg,SUB:Ng,MUL:Fg,DIV:zg,ROUND:Hg,ROUNDUP:As,CEIL:As,ROUNDDOWN:Ls,FLOOR:Ls,ROUNDBANK:Vg};for(const[t,e]of Object.entries(j2))Ug.registerFunction(t,e);function Z2(t,e,r){switch(t.toUpperCase()){case"SUM":return Rg(r,e);case"AVG":return $2(r,e);case"COUNT":return Y2(r);case"MIN":return K2(r,e);case"MAX":return X2(r,e);default:return 0}}function Q2(t,e,r){if(!t)return"";if(!t.includes("{"))return t;const a=Array.isArray(e.rows)?e.rows:[],n=t.replace(/\{([^}]+)\}/g,(i,o)=>{let s=o.trim();return s=s.replace(/\b(SUM|AVG|COUNT|MIN|MAX)\(([^)]+)\)/g,(l,u,p)=>{const c=p.trim().replace(/^['"]|['"]$/g,"");return String(Z2(u,c,a))}),`{${s}}`});try{return Ug.render(n,e)}catch{return r??t}}class J2{constructor(e){this.functions={},e?.functions&&(this.functions={...e.functions})}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const a=Op(e),n=Rp(a);return ot(n,r,this.functions)}render(e,r){return Lg(e,this.functions)(r)}}const eT=new J2,tT={MONEY:Mg,CONCAT:(...t)=>t.filter(e=>e!=null).join(""),IF:Og,FORMAT:t=>typeof t!="number"?String(t):u2(t,i2(),{minimumFractionDigits:2,maximumFractionDigits:2}),SUBSTR:(t,e,r)=>String(t).slice(e,r?e+r:void 0),LEN:t=>String(t).length,ADD:Bg,SUB:Ng,MUL:Fg,DIV:zg,ROUND:Hg,ROUNDUP:As,CEIL:As,ROUNDDOWN:Ls,FLOOR:Ls,ROUNDBANK:Vg,NOW:()=>new Date().toISOString().split("T")[0],IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,PAD:(t,e,r)=>String(t).padStart(e,r),REPLACE:(t,e,r)=>String(t).replace(new RegExp(e,"g"),r),JSON:t=>JSON.stringify(t,null,2),DATE:Eg,UPPER:Ig};for(const[t,e]of Object.entries(tT))eT.registerFunction(t,e);Object.fromEntries(Object.entries(Ip).filter(([,t])=>t.bindings!==void 0).map(([t,e])=>[t,[...e.bindings??[]]]));const vr=["left","top","width","height","chartOption"],Ms=["dataSource","categoryField","valueFields","seriesField"],gr=["title","legend","palette"],Es=[{type:"barChart",label:"柱状图",labelKey:"echarts.series.typeNames.bar",icon:"ChartColumn",seriesType:"bar",orientation:"vertical",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight",notesKey:"echarts.notes.bar"},{type:"barHChart",label:"条形图",labelKey:"echarts.series.typeNames.barH",icon:"ChartBar",seriesType:"bar",orientation:"horizontal",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位",notesKey:"echarts.notes.barH"},{type:"lineChart",label:"折线图",labelKey:"echarts.series.typeNames.line",icon:"ChartLine",seriesType:"line",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"折线图:类目 + 多个数值字段;不写 areaStyle",notesKey:"echarts.notes.line"},{type:"areaChart",label:"面积图",labelKey:"echarts.series.typeNames.area",icon:"ChartArea",seriesType:"line",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"面积图:折线 + series[].areaStyle;其余同折线图",notesKey:"echarts.notes.area"},{type:"pieChart",label:"饼图",labelKey:"echarts.series.typeNames.pie",icon:"ChartPie",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...gr,"label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段",notesKey:"echarts.notes.pie"},{type:"doughnutChart",label:"环形图",labelKey:"echarts.series.typeNames.doughnut",icon:"Donut",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...gr,"innerRadius","label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"环形图:饼图 + radius:[内径,外径];内径由面板配置",notesKey:"echarts.notes.doughnut"},{type:"scatterChart",label:"散点图",labelKey:"echarts.series.typeNames.scatter",icon:"ChartScatter",seriesType:"scatter",fields:["dataSource","categoryField","valueFields",...gr,"bubble","label"],requiredOptionKeys:vr,defaultWidth:80,defaultHeight:60,notes:"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小",notesKey:"echarts.notes.scatter"},{type:"radarChart",label:"雷达图",labelKey:"echarts.series.typeNames.radar",icon:"Radar",seriesType:"radar",fields:["dataSource","categoryField","valueFields",...gr,"radius","label"],requiredOptionKeys:vr,defaultWidth:70,defaultHeight:60,notes:"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)",notesKey:"echarts.notes.radar"},{type:"funnelChart",label:"漏斗图",labelKey:"echarts.series.typeNames.funnel",icon:"Funnel",seriesType:"funnel",fields:["dataSource","categoryField","valueFields",...gr,"padding","label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)",notesKey:"echarts.notes.funnel"},{type:"gaugeChart",label:"仪表盘",labelKey:"echarts.series.typeNames.gauge",icon:"Gauge",seriesType:"gauge",fields:["dataSource","valueFields",...gr,"gaugeRange","label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max",notesKey:"echarts.notes.gauge"}],Gg=Es.map(t=>t.type);function Je(t){return Es.find(e=>e.type===t)}function Wg(t){return Je(t)?.fields??[]}function rT(t){const e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:0}function Up(t,e,r=!1){if(typeof t=="string")return t.startsWith("$data")||r?t:t.includes("{")?Q2(t,e):t;if(Array.isArray(t))return t.map(a=>Up(a,e,r));if(t&&typeof t=="object"){const a={};for(const[n,i]of Object.entries(t)){const o=r||n==="label"||n==="detail";a[n]=Up(i,e,o)}return a}return t}function Mn(t){return Array.isArray(t.data)&&t.data.includes("$data")}function aT(t,e){const r=t.dataSource;if(typeof r=="string"&&Array.isArray(e[r]))return e[r];for(const a of Object.values(e))if(Array.isArray(a))return a;return[]}function $g(t){return typeof t=="string"&&t.length>0?t:void 0}function nT(t){return Array.isArray(t)?t.filter(e=>typeof e=="string"&&e.length>0):[]}function Hi(t){return Array.isArray(t.series)?t.series:[]}function mr(t,e){return e?rT(t[e]):0}function Yg(t,e){for(const r of["xAxis","yAxis"]){const a=t[r],n=Array.isArray(a)?a:a?[a]:[];for(const i of n)i&&typeof i=="object"&&Array.isArray(i.data)&&i.data.includes("$data")&&(i.data=[...e])}}function iT(t,e,r,a,n){const i=Hi(t);if(!i.some(Mn))return;const o=e.map((u,p)=>r?u[r]:p+1),s=u=>a[Math.min(u,a.length-1)];if(n){const u=i[0],p=new Map;for(const f of e){const h=String(f[n]??""),d=p.get(h)??new Map,v=String(f[r??""]);d.set(v,(d.get(v)??0)+mr(f,s(0))),p.set(h,d)}const c=[...new Set(o)];t.series=[...p.entries()].map(([f,h])=>({...u,name:f,data:c.map(d=>h.get(String(d))??null)})),Yg(t,c);return}const l=i[i.length-1];for(;i.length<a.length;)i.push({...l,data:["$data"]});t.series=i.map((u,p)=>Mn(u)?{...u,data:e.map(c=>mr(c,s(p)))}:u),Yg(t,o)}function Kg(t,e,r,a,n){const i=Hi(t);if(!i.some(Mn))return;const o=e.map(s=>({name:r?String(s[r]??""):"",value:mr(s,a)}));n&&o.sort((s,l)=>l.value-s.value),t.series=i.map(s=>({...s,data:o}))}function oT(t,e,r,a,n){const i=Hi(t);if(!i.some(Mn))return;const o=a[0],s=n?a[1]:void 0,l=s?e.map(f=>mr(f,s)):[],u=l.length>0?Math.min(...l):0,p=l.length>0?Math.max(...l):0,c=f=>p===u?12:Math.round(6+(f-u)/(p-u)*18);t.series=i.map(f=>({...f,data:e.map(h=>{const d=[mr(h,r),mr(h,o)];return s?{value:d,symbolSize:c(mr(h,s))}:d})}))}function sT(t){if(t<=0)return 10;const e=10**Math.floor(Math.log10(t)),r=e>=10?e:10;return Math.ceil(t/r)*r}function lT(t,e,r,a){const n=Hi(t);if(!n.some(Mn))return;const i=a.map(o=>Math.max(0,...e.map(s=>mr(s,o))));t.radar={...t.radar??{},indicator:a.map((o,s)=>({name:o,max:sT(i[s])}))},t.series=n.map(o=>({...o,data:e.map(s=>({name:r?String(s[r]??""):"",value:a.map(l=>mr(s,l))}))}))}function uT(t,e,r){const a=Hi(t);if(!a.some(Mn))return;const n=e[0]??{};t.series=a.map(i=>({...i,data:[{value:mr(n,r),name:r}]}))}function Xg(t,e,r){const a=e.chartOption;if(!a||typeof a!="object"||Array.isArray(a))return{};const n=Up(a,r),i=nT(e.chartValueFields);if(i.length===0)return{_chartOption:n};const o=aT({...e,dataSource:e.chartDataSource??e.dataSource},r);if(o.length===0)return{_chartOption:n};const s=$g(e.chartCategoryField);switch(Je(t)?.seriesType){case"radar":lT(n,o,s,i);break;case"gauge":uT(n,o,i[0]);break;case"funnel":Kg(n,o,s,i[0],!0);break;case"pie":Kg(n,o,s,i[0],!1);break;case"scatter":oT(n,o,s,i,e.chartBubble===!0);break;default:iT(n,o,s,i,$g(e.chartSeriesField));break}return{_chartOption:n}}const Vi="@worm-print-platform/echarts",Gp=[{key:"default",label:"默认蓝",labelKey:"echarts.palette.default",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de"]},{key:"fresh",label:"清新绿",labelKey:"echarts.palette.fresh",colors:["#2f9e6e","#5cc9a7","#9ad6c1","#f2c94c","#4a90e2"]},{key:"warm",label:"暖橙红",labelKey:"echarts.palette.warm",colors:["#f2704e","#f7a35c","#f7d56d","#c54e3f","#8f5a4a"]},{key:"purple",label:"紫灰",labelKey:"echarts.palette.purple",colors:["#7b61ff","#9b8cff","#c3baff","#596275","#8d99ae"]}],pT=["示例一","示例二","示例三"],qg={top:6,right:25,bottom:6,left:5},jg=75,cT=50,Is={top:60,right:80,bottom:65,left:80},Zg={left:"8%",right:"8%",bottom:"12%",top:"18%",containLabel:!0};function fT(t){return{top:`${t.top}%`,right:`${t.right}%`,bottom:`${t.bottom}%`,left:`${t.left}%`}}function Os(t){const e=Je(t),r={text:""};switch(e?.seriesType){case"pie":return{title:r,tooltip:{trigger:"item"},series:[{type:"pie",name:"数量",data:["$data"],radius:t==="doughnutChart"?["40%","70%"]:"62%"}]};case"scatter":return{title:r,grid:Zg,tooltip:{trigger:"axis"},xAxis:{type:"value"},yAxis:{type:"value"},series:[{type:"scatter",name:"数量",data:["$data"],symbolSize:8}]};case"radar":return{title:r,tooltip:{trigger:"item"},radar:{indicator:[],radius:`${jg}%`},series:[{type:"radar",name:"数量",data:["$data"]}]};case"funnel":return{title:r,tooltip:{trigger:"item"},legend:{show:!1},series:[{type:"funnel",name:"数量",data:["$data"],sort:"descending",...fT(qg)}]};case"gauge":return{title:r,tooltip:{trigger:"item"},series:[{type:"gauge",name:"数量",min:0,max:100,data:[{value:0,name:"数量"}]}]};default:{const a=e?.orientation==="horizontal",n=e?.seriesType==="line"&&t==="areaChart",i=e?.seriesType==="line"?"line":"bar";return{title:r,grid:Zg,tooltip:{trigger:"axis"},xAxis:a?{type:"value"}:{type:"category",data:["$data"]},yAxis:a?{type:"category",data:["$data"]}:{type:"value"},series:[{type:i,name:"数量",data:["$data"],...n?{areaStyle:{}}:{}}]}}}}function hT(t){k2(Vi,t)}function Ui(){return w2(Vi)}function Qg(){const t=Ui().palettes??{},e=Gp.map(a=>{const n=t[a.key];return n?{key:a.key,label:n.label??a.label,labelKey:n.label?void 0:a.labelKey,colors:n.colors}:{key:a.key,label:a.label,labelKey:a.labelKey,colors:a.colors}}),r=Object.entries(t).filter(([a])=>!Gp.some(n=>n.key===a)).map(([a,n])=>({key:a,label:n.label??a,colors:n.colors}));return[...e,...r]}function Jg(){const t=Ui().sampleCategories;return Array.isArray(t)&&t.length>0?t:pT}function em(t,e){const r=Ui(),a=Je(t);return{width:typeof r.defaultWidth=="number"?r.defaultWidth:a?.defaultWidth??100,height:typeof r.defaultHeight=="number"?r.defaultHeight:a?.defaultHeight??60,title:a?.label??"图表",chartOption:Os(t),chartDataSource:"",chartCategoryField:"name",chartValueFields:["value"],chartSeriesField:"",...e}}var Wp=function(t,e){return Wp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])},Wp(t,e)};function V(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var $p=12,tm="sans-serif",Nr=$p+"px "+tm,dT=20,vT=100,gT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function mT(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var a=String.fromCharCode(r+32),n=(t.charCodeAt(r)-dT)/vT;e[a]=n}return e}var yT=mT(gT),yr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,a){if(!t){var n=yr.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==a&&(e=t.font=a||Nr),t.measureText(r);r=r||"",a=a||Nr;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||$p,s=0;if(a.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=yT[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var a=new Image;return a.onload=e,a.onerror=r,a.src=t,a},getTime:function(){return Date.now?Date.now():+new Date}},rm=ea(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),am=ea(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Gi=Object.prototype.toString,Rs=Array.prototype,bT=Rs.forEach,kT=Rs.filter,Yp=Rs.slice,wT=Rs.map,nm=(function(){}).constructor,Bs=nm?nm.prototype:null,Kp="__proto__",Xp=2311,_T=Math.pow(2,53)-1;function im(){return Xp>=_T&&(Xp=0),Xp++}function om(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function le(t){if(t==null||typeof t!="object")return t;var e=t,r=Gi.call(t);if(r==="[object Array]"){if(!Yi(t)){e=[];for(var a=0,n=t.length;a<n;a++)e[a]=le(t[a])}}else if(am[r]){if(!Yi(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var a=0,n=t.length;a<n;a++)e[a]=t[a]}}}else if(!rm[r]&&!Yi(t)&&!Wi(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Kp&&(e[o]=le(t[o]))}return e}function Pe(t,e,r){if(!J(e)||!J(t))return r?le(e):t;for(var a in e)if(e.hasOwnProperty(a)&&a!==Kp){var n=t[a],i=e[a];J(i)&&J(n)&&!W(i)&&!W(n)&&!Wi(i)&&!Wi(n)&&!lm(i)&&!lm(n)&&!Yi(i)&&!Yi(n)?Pe(n,i,r):(r||!(a in t))&&(t[a]=le(e[a]))}return t}function H(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Kp&&(t[r]=e[r]);return t}function xT(t,e,r){t=t||{};for(var a=0;a<r.length;a++){var n=r[a];t[n]=e[n]}return t}function pe(t,e,r){for(var a=he(e),n=0,i=a.length;n<i;n++){var o=a[n];t[o]==null&&(t[o]=e[o])}return t}function fe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,a=t.length;r<a;r++)if(t[r]===e)return r}return-1}function PT(t,e){var r=t.prototype;function a(){}a.prototype=e.prototype,t.prototype=new a;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function Qt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&t[i]==null&&(t[i]=e[i])}else pe(t,e)}function mt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function A(t,e,r){if(t&&e)if(t.forEach&&t.forEach===bT)t.forEach(e,r);else if(t.length===+t.length)for(var a=0,n=t.length;a<n;a++)e.call(r,t[a],a,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function K(t,e,r){if(!t)return[];if(!e)return Zp(t);if(t.map&&t.map===wT)return t.map(e,r);for(var a=[],n=0,i=t.length;n<i;n++)a.push(e.call(r,t[n],n,t));return a}function ea(t,e,r,a){if(t&&e){for(var n=0,i=t.length;n<i;n++)r=e.call(a,r,t[n],n,t);return r}}function Xe(t,e,r){if(!t)return[];if(!e)return Zp(t);if(t.filter&&t.filter===kT)return t.filter(e,r);for(var a=[],n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t)&&a.push(t[n]);return a}function sm(t,e,r){if(t&&e){for(var a=0,n=t.length;a<n;a++)if(e.call(r,t[a],a,t))return t[a]}}function he(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function ST(t,e){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return function(){return t.apply(e,r.concat(Yp.call(arguments)))}}var ge=Bs&&re(Bs.bind)?Bs.call.bind(Bs.bind):ST;function ze(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Yp.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):Gi.call(t)==="[object Array]"}function re(t){return typeof t=="function"}function q(t){return typeof t=="string"}function qp(t){return Gi.call(t)==="[object String]"}function be(t){return typeof t=="number"}function J(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function lm(t){return!!rm[Gi.call(t)]}function yt(t){return!!am[Gi.call(t)]}function Wi(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function jp(t){return t.colorStops!=null}function $i(t){return t!==t}function Ns(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,a=t.length;r<a;r++)if(t[r]!=null)return t[r]}function Z(t,e){return t??e}function Da(t,e,r){return t??e??r}function Zp(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Yp.apply(t,e)}function Qp(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Jt(t,e){if(!t)throw new Error(e)}function br(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var um="__ec_primitive__";function Fs(t){t[um]=!0}function Yi(t){return t[um]}var TT=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return he(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var a in r)r.hasOwnProperty(a)&&e(r[a],a)},t})(),pm=typeof Map=="function";function CT(){return pm?new Map:new TT}var DT=(function(){function t(e){var r=W(e);this.data=CT();var a=this;e instanceof t?e.each(n):e&&A(e,n);function n(i,o){r?a.set(i,o):a.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(a,n){e.call(r,a,n)})},t.prototype.keys=function(){var e=this.data.keys();return pm?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function ae(t){return new DT(t)}function AT(t,e){for(var r=new t.constructor(t.length+e.length),a=0;a<t.length;a++)r[a]=t[a];for(var n=t.length,a=0;a<e.length;a++)r[a+n]=e[a];return r}function zs(t,e){var r;if(Object.create)r=Object.create(t);else{var a=function(){};a.prototype=t,r=new a}return e&&H(r,e),r}function st(t,e){return t.hasOwnProperty(e)}function qe(){}var Hs=180/Math.PI,LT=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),MT=(function(){function t(){this.browser=new LT,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),se=new MT;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(se.wxa=!0,se.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?se.worker=!0:!se.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(se.node=!0,se.svgSupported=!0):ET(navigator.userAgent,se);function ET(t,e){var r=e.browser,a=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);a&&(r.firefox=!0,r.version=a[1]),n&&(r.ie=!0,r.version=n[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var IT=".",Aa="___EC__COMPONENT__CONTAINER___",cm="___EC__EXTENDED_CLASS___";function kr(t){var e={main:"",sub:""};if(t){var r=t.split(IT);e.main=r[0]||"",e.sub=r[1]||""}return e}function OT(t){Jt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function RT(t){return!!(t&&t[cm])}function Jp(t,e){t.$constructor=t,t.extend=function(r){var a=this,n;return BT(a)?n=(function(i){V(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(r.$constructor||a).apply(this,arguments)},PT(n,this)),H(n.prototype,r),n[cm]=!0,n.extend=this.extend,n.superCall=zT,n.superApply=HT,n.superClass=a,n}}function BT(t){return re(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function fm(t,e){t.extend=e.extend}var NT=Math.round(Math.random()*10);function FT(t){var e=["__\0is_clz",NT++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function zT(t,e){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return this.superClass.prototype[e].apply(t,r)}function HT(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Vs(t){var e={};t.registerClass=function(a){var n=a.type||a.prototype.type;if(n){OT(n),a.prototype.type=n;var i=kr(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Aa){var o=r(i);o[i.sub]=a}}return a},t.getClass=function(a,n,i){var o=e[a];if(o&&o[Aa]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},t.getClassesByMainType=function(a){var n=kr(a),i=[],o=e[n.main];return o&&o[Aa]?A(o,function(s,l){l!==Aa&&i.push(s)}):i.push(o),i},t.hasClass=function(a){var n=kr(a);return!!e[n.main]},t.getAllClassMainTypes=function(){var a=[];return A(e,function(n,i){a.push(i)}),a},t.hasSubTypes=function(a){var n=kr(a),i=e[n.main];return i&&i[Aa]};function r(a){var n=e[a.main];return(!n||!n[Aa])&&(n=e[a.main]={},n[Aa]=!0),n}}function Ki(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&fe(n,l)>=0||i&&fe(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var VT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],UT=Ki(VT),GT=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return UT(this,e,r)},t})(),hm=(function(){function t(e){this.value=e}return t})(),WT=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new hm(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,a=e.next;r?r.next=a:this.head=a,a?a.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),En=(function(){function t(e){this._list=new WT,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new hm(r),s.key=e,a.insertEntry(s),n[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],a=this._list;if(r!=null)return r!==a.tail&&(a.remove(r),a.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),ec=new En(50);function $T(t){if(typeof t=="string"){var e=ec.get(t);return e&&e.image}else return t}function tc(t,e,r,a,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var i=ec.get(t),o={hostEl:r,cb:a,cbPayload:n};return i?(e=i.image,!Us(e)&&i.pending.push(o)):(e=yr.loadImage(t,dm,dm),e.__zrImageSrc=t,ec.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function dm(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],a=r.cb;a&&a(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Us(t){return t&&t.width&&t.height}function wr(){return[1,0,0,1,0,0]}function Xi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function rc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function qi(t,e,r){var a=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=a,t[1]=n,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function ac(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function nc(t,e,r,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],p=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*p,t[1]=-n*p+s*c,t[2]=i*c+l*p,t[3]=-i*p+c*l,t[4]=c*(o-a[0])+p*(u-a[1])+a[0],t[5]=c*(u-a[1])-p*(o-a[0])+a[1],t}function YT(t,e,r){var a=r[0],n=r[1];return t[0]=e[0]*a,t[1]=e[1]*n,t[2]=e[2]*a,t[3]=e[3]*n,t[4]=e[4]*a,t[5]=e[5]*n,t}function ji(t,e){var r=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=r*o-i*a;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-a*l,t[3]=r*l,t[4]=(a*s-o*n)*l,t[5]=(i*n-r*s)*l,t):null}function In(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function KT(t){return[t[0],t[1]]}function ic(t,e,r){return t[0]=e,t[1]=r,t}function vm(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function XT(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function qT(t){return Math.sqrt(jT(t))}function jT(t){return t[0]*t[0]+t[1]*t[1]}function oc(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function ZT(t,e){var r=qT(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function sc(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var lc=sc;function QT(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var On=QT;function uc(t,e,r,a){return t[0]=e[0]+a*(r[0]-e[0]),t[1]=e[1]+a*(r[1]-e[1]),t}function Lt(t,e,r){var a=e[0],n=e[1];return t[0]=r[0]*a+r[2]*n+r[4],t[1]=r[1]*a+r[3]*n+r[5],t}function Rn(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Bn(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ie=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,a=this.y-e.y;return Math.sqrt(r*r+a*a)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,a=this.y-e.y;return r*r+a*a},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,a=this.y;return this.x=e[0]*r+e[2]*a+e[4],this.y=e[1]*r+e[3]*a+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,a){e.x=r,e.y=a},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,a){e.x=r.x+a.x,e.y=r.y+a.y},t.sub=function(e,r,a){e.x=r.x-a.x,e.y=r.y-a.y},t.scale=function(e,r,a){e.x=r.x*a,e.y=r.y*a},t.scaleAndAdd=function(e,r,a,n){e.x=r.x+a.x*n,e.y=r.y+a.y*n},t.lerp=function(e,r,a,n){var i=1-n;e.x=i*r.x+n*a.x,e.y=i*r.y+n*a.y},t})(),La=Math.min,Nn=Math.max,pc=Math.abs,gm=["x","y"],JT=["width","height"],Ma=new ie,Ea=new ie,Ia=new ie,Oa=new ie,St=bm(),Zi=St.minTv,cc=St.maxTv,Qi=[0,0],oe=(function(){function t(e,r,a,n){fc(this,e,r,a,n)}return t.set=function(e,r,a,n,i){return n<0&&(r=r+n,n=-n),i<0&&(a=a+i,i=-i),e.x=r,e.y=a,e.width=n,e.height=i,e},t.prototype.union=function(e){var r=La(e.x,this.x),a=La(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Nn(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Nn(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=r,this.y=a},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return eC(wr(),this,e)},t.prototype.intersect=function(e,r,a){return t.intersect(this,e,r,a)},t.intersect=function(e,r,a,n){a&&ie.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!r)return!1;e instanceof t||(e=fc(tC,e.x,e.y,e.width,e.height)),r instanceof t||(r=fc(rC,r.x,r.y,r.width,r.height));var s=!!a;St.reset(n,s);var l=St.touchThreshold,u=e.x+l,p=e.x+e.width-l,c=e.y+l,f=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,v=r.y+l,m=r.y+r.height-l;if(u>p||c>f||h>d||v>m)return!1;var g=!(p<h||d<u||f<v||m<c);return(s||i)&&(Qi[0]=1/0,Qi[1]=0,ym(u,p,h,d,0,s,i,o),ym(c,f,v,m,1,s,i,o),s&&ie.copy(a,g?St.useDir?St.dirMinTv:Zi:cc)),g},t.contain=function(e,r,a){return r>=e.x&&r<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){mm(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,a){if(!a){e!==r&&mm(e,r);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=r.x*n+o,e.y=r.y*i+s,e.width=r.width*n,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ma.x=Ia.x=r.x,Ma.y=Oa.y=r.y,Ea.x=Oa.x=r.x+r.width,Ea.y=Ia.y=r.y+r.height,Ma.transform(a),Oa.transform(a),Ea.transform(a),Ia.transform(a),e.x=La(Ma.x,Ea.x,Ia.x,Oa.x),e.y=La(Ma.y,Ea.y,Ia.y,Oa.y);var l=Nn(Ma.x,Ea.x,Ia.x,Oa.x),u=Nn(Ma.y,Ea.y,Ia.y,Oa.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,a){var n=a.width/r.width,i=a.height/r.height;return e=Xi(e||[]),ac(e,e,ic(hc,-r.x,-r.y)),YT(e,e,ic(hc,n,i)),ac(e,e,ic(hc,a.x,a.y)),e},t})();oe.create;var fc=oe.set,mm=oe.copy,eC=oe.calculateTransform;oe.applyTransform,oe.contain;var tC=new oe(0,0,0,0),rC=new oe(0,0,0,0),hc=[];function ym(t,e,r,a,n,i,o,s){var l=pc(e-r),u=pc(a-t),p=La(l,u),c=gm[n],f=gm[1-n],h=JT[n];e<r||a<t?l<u?(i&&(cc[c]=-l),s&&(o[c]=e,o[h]=0)):(i&&(cc[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Nn(t,r),o[h]=La(e,a)-o[c]),i&&(p<Qi[0]||St.useDir)&&(Qi[0]=La(p,Qi[0]),(l<u||!St.bidirectional)&&(Zi[c]=l,Zi[f]=0,St.useDir&&St.calcDirMTV()),(l>=u||!St.bidirectional)&&(Zi[c]=-u,Zi[f]=0,St.useDir&&St.calcDirMTV())))}function bm(){var t=0,e=new ie,r=new ie,a={minTv:new ie,maxTv:new ie,useDir:!1,dirMinTv:new ie,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=Nn(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),r.copy(a.minTv),t=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(t),u=Math.cos(t),p=l*i.y+u*i.x;if(n(p)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(r.x=s*u/p,r.y=s*l/p,n(r.x)&&n(r.y)){o.set(0,0);return}(a.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(i){return pc(i)<1e-10}return a}function _r(t){Gs||(Gs=new En(100)),t=t||Nr;var e=Gs.get(t);return e||(e={font:t,strWidthCache:new En(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:yr.measureText("国",t).width,asciiCharWidth:yr.measureText("a",t).width},Gs.put(t,e)),e}var Gs;function aC(t){if(!(dc>=km)){t=t||Nr;for(var e=[],r=+new Date,a=0;a<=127;a++)e[a]=yr.measureText(String.fromCharCode(a),t).width;var n=+new Date-r;return n>16?dc=km:n>2&&dc++,e}}var dc=0,km=5;function wm(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=aC(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function xr(t,e){var r=t.strWidthCache,a=r.get(e);return a==null&&(a=yr.measureText(e,t.font).width,r.put(e,a)),a}function _m(t,e,r,a){var n=xr(_r(e),t),i=Ji(e),o=Fn(0,n,r),s=Ra(0,i,a),l=new oe(o,s,n,i);return l}function xm(t,e,r,a){var n=((t||"")+"").split(`
|
|
25
|
+
{warnings}`,"store.tilingSinglePage":"เมื่อเปิดการจัดเรียงชิ้น อนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","elementGroup.chart":"แผนภูมิ","service.printData.emptyArray":"ข้อมูลการพิมพ์เป็นชุดต้องเป็นอาร์เรย์อ็อบเจกต์ที่ไม่ว่างเปล่า","service.printData.tooMany":"การพิมพ์เป็นชุดรองรับได้มากสุด {max} ชุด ได้ {count} ชุด","service.printData.itemNotObject":"รายการข้อมูลการพิมพ์ชุดที่ {index} ต้องเป็นอ็อบเจกต์","service.printData.notObjectOrArray":"printData ต้องเป็นอ็อบเจกต์หรืออาร์เรย์",...{"binding.k1":"อัปโหลดรูปภาพ","binding.k2":"รองรับเฉพาะไฟล์รูปภาพ","binding.k3":"ไม่ได้ตั้งค่าการอัปโหลดรูปภาพ","binding.k4":"กำลังอัปโหลด...","binding.k5":"อัปโหลดรูปภาพล้มเหลว","binding.k6":"อัปโหลดรูปภาพล้มเหลว","binding.k7":"อัปโหลดรูปภาพ","binding.k8":"รองรับรูปภาพ jpg/png/gif/bmp/webp/svg; ป้อนเส้นทางสัมพัทธ์หลังอัปโหลด","binding.k9":"เนื้อหา","binding.k10":"ป้อนเนื้อหา รองรับนิพจน์ {field}","canvas.k11":"ส่วนหัว","canvas.k12":"ส่วนท้าย","canvas.k13":"+ องค์ประกอบ","canvas.k14":"+ ข้อความคงที่","canvas.k15":"+ ฟิลด์ข้อมูล","canvas.k16":"คัดลอก","canvas.k17":"ตัด","canvas.k18":"วาง","canvas.k19":"ลบ","canvas.k20":"นำไปด้านหน้าสุด","canvas.k21":"เลื่อนขึ้น","canvas.k22":"เลื่อนลง","canvas.k23":"ส่งไปด้านหลังสุด","canvas.k24":"วาง","canvas.k25":"เลือกทั้งหมด","canvas.k26":"ยกเลิกการเลือก","code.k27":"คิวอาร์โค้ด","controls.k28":"ลด","controls.k29":"ลด","controls.k30":"เพิ่ม","controls.k31":"เพิ่ม","controls.k32":"คำอธิบายฟิลด์","controls.k33":"คืนค่าเริ่มต้น","controls.k34":"คืนค่าเริ่มต้น ({v0}{v1})","controls.k35":"{v0} (ใช้กับเซลล์ที่เลือกทั้งหมด)","controls.k36":"ตัวเลือกสี","cropAnchor.k37":"กำหนดเอง (คงเดิม)","cropAnchor.k38":"ค่าเริ่มต้น 100","cropAnchor.k39":"รูปตัวอย่าง","cropAnchor.k40":"รูปต้นฉบับ","elements.k41":"ข้อความ","elements.k42":"เนื้อหาข้อความยาว","elements.k43":"รูปภาพ","flowList.k44":"สมุนไพร 20g","flowList.k45":"สมุนไพร 15g","flowList.k46":"สมุนไพร 10g","flowList.k47":"สมุนไพร 10g","flowList.k48":"สมุนไพร 10g","flowList.k49":"สมุนไพร 10g","flowList.k50":"สมุนไพร 10g","fontSelect.k51":"ค่าเริ่มต้น","fontSelect.k52":"{v0} (ไม่ทราบ)","fontSelect.k53":'ใช้ "{v0}"',"formatBar.k54":"เส้นทึบ","formatBar.k55":"เส้นประ","formatBar.k56":"เส้นจุด","formatBar.k57":"เส้นคู่","formatBar.k58":"ออกจากเครื่องมือถ่ายรูปแบบ (Esc)","formatBar.k59":"เครื่องมือถ่ายรูปแบบ (ไม่รองรับเซลล์ตาราง)","formatBar.k60":"เครื่องมือถ่ายรูปแบบ (เลือกองค์ประกอบก่อน)","formatBar.k61":"เครื่องมือถ่ายรูปแบบ (เลือกองค์ประกอบต้นทางเพียงหนึ่ง)","formatBar.k62":"เครื่องมือถ่ายรูปแบบ: คลิกครั้งเดียวเพื่อถ่ายครั้งเดียว คลิกสองครั้งเพื่อถ่ายต่อเนื่อง","formatBar.k63":"{v0} (เลือกองค์ประกอบข้อความ)","formatBar.k64":"ไม่มีเส้นขอบ","formatBar.k65":"เส้นขอบทั้งหมด","formatBar.k66":"เส้นขอบด้านนอก","formatBar.k67":"เส้นขอบด้านใน","formatBar.k68":"เส้นขอบด้านใน (เฉพาะเซลล์ตาราง)","formatBar.k69":"เส้นขอบบน","formatBar.k70":"เส้นขอบล่าง","formatBar.k71":"เส้นขอบซ้าย","formatBar.k72":"เส้นขอบขวา","formatBar.k73":"{v0} (คลิกอีกครั้งเพื่อยกเลิก, รูปแบบ = ไม่มี)","formatBar.k74":"ความกว้าง","formatBar.k75":"ผสม","formatBar.k76":"สี","formatBar.k77":"สีเส้นขอบ","formatBar.k78":"เส้นขอบทั้งสี่ด้านไม่สอดคล้องกัน: รายการที่เว้นไว้ไม่ได้รายงานค่าผิด; ค่าที่ตั้งไว้ล่วงหน้า/ด้านเดียวใช้ค่าเริ่มต้น (เส้นทึบ 0.75 / #333333)","formatBar.k79":"จัดชิดซ้าย","formatBar.k80":"จัดกึ่งกลาง","formatBar.k81":"จัดชิดขวา","formatBar.k82":"จัดชอบแนว (เติมความกว้างบรรทัด รวมบรรทัดสุดท้าย)","formatBar.k83":"จัดชิดบน","formatBar.k84":"จัดกึ่งกลางแนวตั้ง","formatBar.k85":"จัดชิดล่าง","formatBar.k86":"ผสม","formatBar.k87":"ค่าเริ่มต้น","formatBar.k88":"ผสม","formatBar.k89":"ค่าเริ่มต้น","formatBar.k90":"ตัวหนา","formatBar.k91":"ขีดเส้นใต้","formatBar.k92":"ขีดฆ่า","formatBar.k93":"สีตัวอักษร {v0}","formatBar.fontDisabledHint":"(เลือกหรือผสมองค์ประกอบข้อความ)","formatBar.k94":"สีพื้นหลัง","formatBar.k95":"การจัดตำแหน่ง","formatBar.k96":"การจัดตำแหน่ง (เลือกองค์ประกอบข้อความหรือเซลล์)","formatBar.k97":"การจัดตำแหน่ง","formatBar.k98":"เส้นขอบ","formatBar.k99":"เส้นขอบ (เลือกองค์ประกอบ)","formatBar.k100":"เส้นขอบ","helpModal.k101":"ช่วยเหลือ","helpModal.k102":"ปิด","pageExtras.k103":"อัปโหลดภาพพื้นหลัง","pageExtras.k104":"รองรับเฉพาะไฟล์รูปภาพ","pageExtras.k105":"ไม่ได้ตั้งค่าการอัปโหลดภาพพื้นหลังออกแบบ","pageExtras.k106":"กำลังอัปโหลด...","pageExtras.k107":"อัปโหลดภาพพื้นหลังออกแบบล้มเหลว","pageExtras.k108":"อัปโหลดภาพพื้นหลังออกแบบล้มเหลว","pageExtras.k109":"อัปโหลดภาพพื้นหลัง","pageExtras.k110":"พื้นหลังออกแบบ","pageExtras.k111":"เฉพาะในตัวออกแบบ เพื่อการจัดตำแหน่ง; ไม่แสดงในตัวอย่างหรือการพิมพ์","pageExtras.k112":"หมุน ({v0}°)","pageExtras.k113":"ลบ","pageExtras.k114":"กำหนดเอง","pageExtras.k115":" แนวนอน","pageExtras.k116":" แนวตั้ง","pageExtras.k117":"แผ่นเป้าหมาย {v0}{v1} {v2}×{v3}mm · {v4} คอลัมน์ × {v5} แถว = {v6} เซลล์/แผ่น · แต่ละเซลล์ {v7}×{v8}mm","pageExtras.k118":"การพิมพ์แบบจัดเรียงชิ้น","pageExtras.k119":"จัดเรียงฉลากเป็นแถว × คอลัมน์บนแผ่นใหญ่เพื่อพิมพ์เป็นชุด","pageExtras.k120":"เปิดใช้งานการจัดเรียงชิ้น","pageExtras.k121":"กระดาษต่อเนื่องไม่รองรับการจัดเรียงชิ้น","pageExtras.k122":"แผ่นเป้าหมาย","pageExtras.k123":"กำหนดเอง","pageExtras.k124":"ขนาดแผ่นเป้าหมาย (mm)","pageExtras.k125":"แนวของแผ่นเป้าหมาย","pageExtras.k126":"แนวตั้ง","pageExtras.k127":"แนวนอน","pageExtras.k128":"ระยะขอบการจัดเรียงชิ้น (mm)","pageExtras.k129":"บน","pageExtras.k130":"ล่าง","pageExtras.k131":"ซ้าย","pageExtras.k132":"ขวา","pageExtras.k133":"ระยะห่างและจำนวนคอลัมน์ของเซลล์","pageExtras.k134":"ระยะห่างแนวนอน","pageExtras.k135":"ระยะห่างแนวตั้ง","pageExtras.k136":"จำนวนคอลัมน์","panels.k137":"ขยายแผงทรัพยากร","panels.k138":"องค์ประกอบ","panels.k139":"ฟิลด์","panels.k140":"เลเยอร์","panels.k141":"ทรัพยากร","panels.k142":"ยุบแผงทรัพยากร","panels.k143":"องค์ประกอบ","panels.k144":"ฟิลด์","panels.k145":"เลเยอร์","panels.k146":"ลากองค์ประกอบไปยังพื้นที่ทำงาน","panels.k147":"ฟิลด์ธุรกิจ","panels.k148":"ค้นหาฟิลด์...","panels.k149":"ค้นหาฟิลด์","panels.k150":"{v0} ({v1}) · คลิกเพื่อคัดลอกชื่อฟิลด์ · ค้าง Ctrl (⌘ บน Mac) ขณะลากเพื่อแทรกชื่อฟิลด์","panels.k151":"คัดลอกแล้ว","panels.k152":"ไม่มีฟิลด์","panels.k153":"ส่วนหัว","panels.k154":"ส่วนท้าย","panels.k155":"เลเยอร์","panels.k156":"นำไปด้านหน้าสุด","panels.k157":"เลื่อนขึ้น","panels.k158":"เลื่อนลง","panels.k159":"ส่งไปด้านหลังสุด","panels.k160":"จัดกลุ่ม (Ctrl+G)","panels.k161":"ยกเลิกจัดกลุ่ม (Ctrl+Shift+G)","panels.k162":"หน้า {v0}","panels.k163":"{v0} (ดับเบิลคลิกเพื่อเปลี่ยนชื่อ)","panels.k164":"ดับเบิลคลิกเพื่อเปลี่ยนชื่อ","panels.k165":"หน้า {v0}","panels.k166":"เทมเพลตแบบจัดเรียงชิ้นอนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","panels.k167":"เพิ่มหน้า (ต่อหน้าเปล่าหลังหน้าปัจจุบัน)","panels.k168":"เทมเพลตแบบจัดเรียงชิ้นอนุญาตให้มีหน้าออกแบบได้เพียงหน้าเดียว","panels.k169":'ทำซ้ำหน้าปัจจุบัน "{v0}"',"panels.k170":'ลบหน้าปัจจุบัน "{v0}"',"panels.k171":"เฉพาะเทมเพลตหลายหน้าที่ลบหน้าได้","panels.k172":'ย้าย "{v0}" ไปหน้าถัดไป',"panels.k173":'ย้าย "{v0}" ไปหน้าก่อนหน้า',"panels.k174":"แนวนอน","panels.k175":"แนวตั้ง","panels.k176":"ซูม {v0}%","propertyPanel.k177":"ทั้งหมด","propertyPanel.k178":"ด้านนอก","propertyPanel.k179":"ด้านใน","propertyPanel.k180":"ไม่มี","propertyPanel.k181":"บน","propertyPanel.k182":"ขวา","propertyPanel.k183":"ล่าง","propertyPanel.k184":"ซ้าย","propertyPanel.k185":"ตำแหน่งและขนาด","propertyPanel.k186":"ระยะขอบ (mm)","propertyPanel.k187":"บน","propertyPanel.k188":"ขวา","propertyPanel.k189":"ล่าง","propertyPanel.k190":"ซ้าย","propertyPanel.k191":"การหมุน (°)","propertyPanel.k192":"ทวนเข็มนาฬิกา 90°","propertyPanel.k193":"หมุนทวนเข็มนาฬิกา 90°","propertyPanel.k194":"ตามเข็มนาฬิกา 90°","propertyPanel.k195":"หมุนตามเข็มนาฬิกา 90°","propertyPanel.k196":"ลักษณะ","propertyPanel.k197":"ฟอนต์","propertyPanel.k198":"ค่าเริ่มต้น","propertyPanel.k199":"ขนาดฟอนต์","propertyPanel.k200":"น้ำหนักฟอนต์","propertyPanel.k201":"ปกติ","propertyPanel.k202":"หนา","propertyPanel.k203":"หนาขึ้น","propertyPanel.k204":"บางลง","propertyPanel.k205":"การจัดตำแหน่ง","propertyPanel.k206":"ซ้าย","propertyPanel.k207":"กลาง","propertyPanel.k208":"ขวา","propertyPanel.k209":"ชิดสองด้าน","propertyPanel.k210":"จัดแนวตั้ง","propertyPanel.k211":"บน","propertyPanel.k212":"กลาง","propertyPanel.k213":"ล่าง","propertyPanel.k214":"สี","propertyPanel.k215":"สีตัวอักษร","propertyPanel.k216":"สีพื้นหลัง","propertyPanel.k217":"สีพื้นหลัง","propertyPanel.k218":"ระยะบรรทัด","propertyPanel.k219":"ระยะห่างตัวอักษร","propertyPanel.k220":"ข้อความล้น","propertyPanel.k221":"ตัดทิ้ง","propertyPanel.k222":"ย่อให้พอดี","propertyPanel.k223":"ความสูงแถวอัตโนมัติ","propertyPanel.k224":"ขนาดฟอนต์ขั้นต่ำ (pt)","propertyPanel.k225":"ค่าเริ่มต้น 6","propertyPanel.k226":"เว้นวรรคบรรทัดแรก (อักขระ)","propertyPanel.k227":"ค่าเริ่มต้น 0","propertyPanel.k228":"ตัดคำอัตโนมัติ","propertyPanel.k229":"คงการขึ้นบรรทัด","propertyPanel.k230":"โหมดการปรับขนาด","propertyPanel.k231":"จุดยึดการครอป","propertyPanel.k232":"ไม่รองรับการตั้งค่าลักษณะสำหรับองค์ประกอบนี้","propertyPanel.k233":"การตั้งค่าบาร์โค้ด","propertyPanel.k234":"ประเภทรหัส","propertyPanel.k235":"CODE128 (ทั่วไป)","propertyPanel.k236":"EAN13 (ค้าปลีก)","propertyPanel.k237":"DPI ของเครื่องพิมพ์","propertyPanel.k238":"ไม่ระบุ (แสดงตามความกว้างแท่น)","propertyPanel.k239":"203 dpi (8 จุด/mm)","propertyPanel.k240":"300 dpi (11.8 จุด/mm)","propertyPanel.k241":"600 dpi (23.6 จุด/mm)","propertyPanel.k242":"เมื่อตั้งค่า ความกว้างแท่นจะปรับเป็นจุดพิมพ์เต็ม: บาร์โค้ดแสดงตามความกว้างแท่น ถ้าพอดีจะพิมพ์ตามนั้น มิเช่นนั้นจะย่อขนาดตามสัดส่วน","propertyPanel.k243":"ความกว้างแท่น (อัตราส่วน)","propertyPanel.k244":"ตั้งค่า DPI ของเครื่องพิมพ์แล้ว: ความกว้างแท่นปรับเป็นจุดเต็มที่ใกล้ที่สุด (DPI แทนค่า mm) จะย่อขนาดถ้าไม่พอดี","propertyPanel.k245":"ใช้ 3+ สำหรับเครื่องพิมพ์ความร้อน/ดอทเมทริกซ์: กำหนดขนาดแท่นที่พิมพ์ แท่นหนาจะเสถียรกว่า","propertyPanel.k246":"โซนเงียบ (โมดูล)","propertyPanel.k247":"ค่าเริ่มต้น 10","propertyPanel.k248":"ความสูงแท่น (mm)","propertyPanel.k249":"ค่าเริ่มต้น 30 โมดูล","propertyPanel.k250":"แสดงข้อความ","propertyPanel.k251":"ขนาดข้อความ (เทียบความสูงแท่น 30)","propertyPanel.k252":"ค่าเริ่มต้น 10","propertyPanel.k253":"การแก้ไขข้อผิดพลาด","propertyPanel.k254":"L (ต่ำสุด ความจุสูงสุด)","propertyPanel.k255":"M (แนะนำ)","propertyPanel.k256":"H (สูงสุด)","propertyPanel.k257":"โซนเงียบ (โมดูล)","propertyPanel.k258":"ค่าเริ่มต้น 0","propertyPanel.k259":"การตั้งค่าแบบกำหนดเอง","propertyPanel.k260":"ขนาดบาร์โค้ดขึ้นกับความกว้างแท่นและ DPI ของเครื่องพิมพ์: พิมพ์ตามความกว้างแท่นถ้าพอดี มิเช่นนั้นย่อขนาด; การดึงจะทำให้แท่นไม่เป็นจำนวนเต็ม จึงไม่มีโหมดปรับขนาด—ใช้ความกว้าง/สูงสูงสุดเป็นขีดจำกัด หากต้องการให้ใหญ่ขึ้น: เพิ่มความกว้างแท่น ลดโซนเงียบ หรือซ่อนข้อความเพื่อพื้นที่มากขึ้น","propertyPanel.k261":"โหมดการปรับขนาด","propertyPanel.k262":"ความกว้างสูงสุด (mm)","propertyPanel.k263":"ค่าเริ่มต้น","propertyPanel.k264":"ความสูงสูงสุด (mm)","propertyPanel.k265":"ค่าเริ่มต้น","propertyPanel.k266":"รายการแบบไหล","propertyPanel.k267":"โหมดการจัดวาง","propertyPanel.k268":"ความสูงคงที่","propertyPanel.k269":"การแบ่งหน้าแบบไดนามิก","propertyPanel.k270":"ระยะบน (mm)","propertyPanel.k271":"ระยะขวา (mm)","propertyPanel.k272":"ระยะล่าง (mm)","propertyPanel.k273":"ระยะซ้าย (mm)","propertyPanel.k274":"จำนวนคอลัมน์ต่อแถว","propertyPanel.k275":"ความสูงแถว (mm)","propertyPanel.k276":"ระยะห่างแนวนอนของเซลล์ (mm)","propertyPanel.k277":"ขยายคอลัมน์เมื่อเนื้อหายาว","propertyPanel.k278":"จำนวนคอลัมน์ขยายสูงสุด","propertyPanel.k279":"ที่ขนาดฟอนต์และความกว้างปัจจุบัน {v0} คอลัมน์ค่อนข้างแคบ (พอดีประมาณ {v1}) ค่าไม่เปลี่ยน; การพิมพ์ใช้ {v2} คอลัมน์","propertyPanel.k280":"ผสม","propertyPanel.k281":"เส้นขอบและพื้นหลัง","propertyPanel.k282":"รูปแบบเส้น","propertyPanel.k283":"ความกว้างเส้นขอบ","propertyPanel.k284":"ผสม","propertyPanel.k285":"สีเส้นขอบ","propertyPanel.k286":"สีเส้นขอบ","propertyPanel.k287":"สีพื้นหลัง","propertyPanel.k288":"สีพื้นหลัง","propertyPanel.k289":"การตั้งค่าขั้นสูง","propertyPanel.k290":"ล็อก","propertyPanel.k291":"ทำซ้ำทุกหน้า","propertyPanel.k292":"ตรึงทุกหน้า","propertyPanel.k293":"ลำดับชั้น","propertyPanel.k294":"ลบองค์ประกอบ","propertyPanel.k295":"หมายเหตุการตั้งค่าขั้นสูง","propertyPanel.k296":"หมายเหตุการตั้งค่าขั้นสูง","propertyPanel.k297":"อื่นๆ","propertyPanel.k298":"การตั้งค่าหน้ากระดาษ","propertyPanel.k299":"ขนาดกระดาษ","propertyPanel.k300":"ขนาดกำหนดเอง","propertyPanel.k301":"ความกว้างกระดาษ (mm)","propertyPanel.k302":"ขนาดกำหนดเอง (mm)","propertyPanel.k303":"แนวกระดาษ","propertyPanel.k304":"แนวตั้ง","propertyPanel.k305":"แนวนอน","propertyPanel.k306":"การสลับจะเปลี่ยนความกว้าง/สูงของกระดาษ (เนื้อหาจัดวางบนขนาดใหม่)","propertyPanel.k307":"การหมุนเนื้อหา","propertyPanel.k308":"สำหรับการจัดเรียงชิ้น ฉลากแต่ละชิ้นหมุนตามมนี้; ที่ 90°/270° ความกว้าง/สูงของเซลล์สลับและคอลัมน์เติมตามขีดใหม่; 0° หมายถึงไม่หมุน (ค่าเริ่มต้น)","propertyPanel.k309":"ทั้งหน้าหมุนสำหรับการพิมพ์; ที่ 90°/270° ความกว้าง/สูงของกระดาษสลับเพื่อพอดีโดยไม่บิดเบือนหรือตัด; 0° หมายถึงไม่หมุน (ค่าเริ่มต้น)","propertyPanel.k310":"สีพื้นหลังหน้ากระดาษ","propertyPanel.k311":"สีพื้นหลังหน้ากระดาษ","propertyPanel.k312":"ระยะขอบ (mm)","propertyPanel.k313":"บน","propertyPanel.k314":"ล่าง","propertyPanel.k315":"ซ้าย","propertyPanel.k316":"ขวา","propertyPanel.k317":"ความสูงส่วนหัว/ท้าย (mm)","propertyPanel.k318":"ความสูงส่วนหัว","propertyPanel.k319":"ความสูงส่วนท้าย","propertyPanel.k320":"ขยายแผงคุณสมบัติ","propertyPanel.k321":"คุณสมบัติองค์ประกอบ","propertyPanel.k322":"คุณสมบัติหน้ากระดาษ","propertyPanel.k323":"แผงคุณสมบัติ","propertyPanel.k324":"ยุบแผงคุณสมบัติ","propertyPanel.k325":"คุณสมบัติองค์ประกอบ","propertyPanel.k326":"คุณสมบัติหน้ากระดาษ","propertyPanel.k327":"เลือกองค์ประกอบบนพื้นที่ทำงาน","propertyPanel.k328":"คุณสมบัติที่กำหนดเอง","propertySearch.k328":"ค้นหาคุณสมบัติ...","propertySearch.k329":"ค้นหาคุณสมบัติ","tableProps.k330":"ส่วนหัวหลายระดับทำซ้ำทั้งกลุ่ม เมื่อเลือก แถวหัวทั้งหมดจะซ้ำที่ด้านบนของทุกหน้า","tableProps.k331":"แถวหัว","tableProps.k332":"แถวข้อมูล","tableProps.k333":"แถวรวมย่อย (ต่อหน้า)","tableProps.k334":"แถวสรุป","tableProps.k335":"CODE128 (ทั่วไป)","tableProps.k336":"EAN13 (ค้าปลีก)","tableProps.k337":"L (ต่ำสุด ความจุสูงสุด)","tableProps.k338":"M (แนะนำ)","tableProps.k339":"H (สูงสุด)","tableProps.k340":"ตัดทิ้ง","tableProps.k341":"ย่อให้พอดี","tableProps.k342":"ความสูงแถวอัตโนมัติ","tableProps.k343":"เลือกหลายรายการ","tableProps.k344":"คุณสมบัติแถว","tableProps.k345":"คุณสมบัติแถว","tableProps.k346":"ประเภทแถว","tableProps.k347":"ความสูงแถว (mm)","tableProps.k348":"ทำซ้ำส่วนหัวทุกหน้า","tableProps.k349":"การตั้งค่าตาราง","tableProps.k350":"ฟิลด์แหล่งข้อมูลรายการ","tableProps.k351":"ฟอนต์เริ่มต้น","tableProps.k352":"ค่าเริ่มต้น","tableProps.k353":"ขนาดฟอนต์เริ่มต้น (pt)","tableProps.k354":"ค่าเริ่มต้น","tableProps.k355":"สีข้อความเริ่มต้น","tableProps.k356":"สีข้อความเริ่มต้น","tableProps.k357":"ระยะภายในเริ่มต้น (mm)","tableProps.k358":"ค่าเริ่มต้น","tableProps.k359":"ความกว้างคอลัมน์ (mm)","tableProps.k360":"คอลัมน์ {v0}","tableProps.k361":"ความกว้างตารางไม่เกินความกว้างที่พิมพ์ได้ {v0}mm; คอลัมน์ {v1} ปรับเป็น {v2}mm","tableProps.k362":"เปิดใช้งานการแบ่งหน้า","tableProps.k363":"เข้าร่วมการแบ่งหน้า","tableProps.k364":"หน้าเดียวกับองค์ประกอบถัดไป","tableProps.k365":"การตั้งค่าการแบ่งหน้า","tableProps.k366":"บน","tableProps.k367":"ขวา","tableProps.k368":"ล่าง","tableProps.k369":"ซ้าย","tableProps.k370":"เซลล์","tableProps.k371":"เซลล์","tableProps.k372":"เลือกหลายรายการ","tableProps.k373":"เฉพาะแถวข้อมูลที่รองรับการรวมตามค่า","tableProps.k374":"คืนค่าเริ่มต้น (ตามค่าตาราง)","tableProps.k375":"เซลล์","tableProps.k376":"เลือก {v0} เซลล์ · ตั้งค่าเป็นชุด: ไม่แสดงรายเซลล์ การเปลี่ยนใช้กับเซลล์ที่เลือกทั้งหมด","tableProps.k377":"ประเภทเซลล์","tableProps.k378":"ข้อความ","tableProps.k379":"บาร์โค้ด","tableProps.k380":"คิวอาร์โค้ด","tableProps.k381":"รูปภาพ","tableProps.k382":"ประเภทรหัส","tableProps.k383":"แสดงข้อความ","tableProps.k384":"ความกว้างแท่น (อัตราส่วน)","tableProps.k385":"ตั้งค่า DPI ของเครื่องพิมพ์แล้ว: ความกว้างแท่นปรับเป็นจุดเต็ม (DPI แทนค่า mm) จะย่อขนาดถ้าเซลล์ไม่พอดี","tableProps.k386":"ใช้ 3+ สำหรับเครื่องพิมพ์ความร้อน/ดอทเมทริกซ์: กำหนดขนาดแท่นที่พิมพ์ แท่นหนาจะเสถียรกว่า","tableProps.k387":"โซนเงียบ (โมดูล)","tableProps.k388":"ค่าเริ่มต้น 10","tableProps.k389":"ความสูงแท่น (mm)","tableProps.k390":"ค่าเริ่มต้น 30 โมดูล","tableProps.k391":"ขนาดข้อความ (เทียบความสูงแท่น 30)","tableProps.k392":"ค่าเริ่มต้น 10","tableProps.k393":"DPI ของเครื่องพิมพ์","tableProps.k394":"ไม่ระบุ (แสดงตามความกว้างแท่น)","tableProps.k395":"203 dpi (8 จุด/mm)","tableProps.k396":"300 dpi (11.8 จุด/mm)","tableProps.k397":"600 dpi (23.6 จุด/mm)","tableProps.k398":"เมื่อตั้งค่า ความกว้างแท่นจะปรับเป็นจุดพิมพ์เต็ม: บาร์โค้ดแสดงตามความกว้างแท่น ถ้าพอดีจะพิมพ์ตามนั้น มิเช่นนั้นจะย่อขนาดตามสัดส่วน","tableProps.k399":"การแก้ไขข้อผิดพลาด","tableProps.k400":"โซนเงียบ (โมดูล)","tableProps.k401":"ค่าเริ่มต้น 0","tableProps.k402":"ขนาดบาร์โค้ดของเซลล์ขึ้นกับความกว้างแท่นและ DPI ของเครื่องพิมพ์: พิมพ์ตามความกว้างแท่นถ้าพอดี มิเช่นนั้นย่อขนาด; ไม่มีโหมดปรับขนาด (จะทำให้แท่นไม่เป็นจำนวนเต็ม)—ใช้ความกว้าง/สูงสูงสุดเป็นขีดจำกัด หากต้องการให้ใหญ่ขึ้น: เพิ่มความกว้างแท่น ลดโซนเงียบ หรือซ่อนข้อความ","tableProps.k403":"โหมดการปรับขนาด","tableProps.k404":"จุดยึดการครอป","tableProps.k405":"ความกว้างสูงสุด (mm)","tableProps.k406":"ค่าเริ่มต้น","tableProps.k407":"ความสูงสูงสุด (mm)","tableProps.k408":"ค่าเริ่มต้น","tableProps.k409":"เนื้อหา","tableProps.k410":"เลือกหลายรายการ (รายการที่ป้อนจะแทนที่เซลล์ที่เลือกทั้งหมด)","tableProps.k411":"ป้อนเนื้อหา รองรับนิพจน์ {field}","tableProps.k412":"จัดแนวนอน","tableProps.k413":"ซ้าย","tableProps.k414":"กลาง","tableProps.k415":"ขวา","tableProps.k416":"ชิดสองด้าน","tableProps.k417":"จัดแนวตั้ง","tableProps.k418":"บน","tableProps.k419":"กลาง","tableProps.k420":"ล่าง","tableProps.k421":"ฟอนต์","tableProps.k422":"สืบทอดค่าเริ่มต้น","tableProps.k423":"ขนาดฟอนต์ (pt)","tableProps.k424":"ค่าเริ่มต้น","tableProps.k425":"หนา","tableProps.k426":"สีข้อความ","tableProps.k427":"สีข้อความ","tableProps.k428":"สีพื้นหลัง","tableProps.k429":"สีพื้นหลัง","tableProps.k430":"เส้นขอบ","tableProps.k431":"ผสม","tableProps.k432":"เลือกหลายรายการ","tableProps.k433":"ผสม","tableProps.k434":"สีเส้นขอบ","tableProps.k435":"ทั้งหมด","tableProps.k436":"ด้านนอก","tableProps.k437":"ด้านใน","tableProps.k438":"ไม่มี","tableProps.k439":"ระยะภายใน (mm)","tableProps.k440":"ค่าเริ่มต้น","tableProps.k441":"ตัดคำอัตโนมัติ","tableProps.k442":"ข้อความล้น","tableProps.k443":"ขนาดฟอนต์ขั้นต่ำ (pt)","tableProps.k444":"ค่าเริ่มต้น 6","tableProps.k445":"รวมเซลล์","tableProps.k446":"รวมเซลล์","tableProps.k447":"แยกเซลล์","tableProps.k448":"รวมตามค่า","tableProps.k449":"แถวข้อมูลที่อยู่ติดกันที่มีค่าเท่ากันจะรวมแนวตั้ง; ข้ามหน้าจะแบ่งตามหน้าและทำซ้ำค่าในหน้าต่อเนื่อง","table.k450":"หัว","table.k451":"ข้อมูล","table.k452":"ย่อย","table.k453":"รวม","table.k454":"แถวหัว","table.k455":"แถวข้อมูล","table.k456":"แถวรวมย่อย","table.k457":"แถวสรุป","table.k458":"บาร์โค้ด","table.k459":"รูปภาพ","table.k460":"หลังแทรก ความกว้างตาราง {v0}mm เกินความกว้างที่พิมพ์ได้ {v1}mm; ลดความกว้างคอลัมน์ก่อน","table.k461":"ประเภทแถวไม่ระบุ","table.k462":"ไม่มีเซลล์ที่เลือก","table.k463":"เฉพาะแถวข้อมูลที่รองรับการรวมตามค่า","table.k464":"ไม่มีเซลล์ที่เลือก","table.k465":"ประเภทแถวรองรับการตั้งค่าแถวเดียวเท่านั้น","table.k466":"ไม่มีเซลล์ที่เลือก","table.k467":"แทรกแถวด้านบน","table.k468":"แทรกแถวด้านล่าง","table.k469":"ลบแถว","table.k470":"แทรกคอลัมน์ด้านซ้าย","table.k471":"แทรกคอลัมน์ด้านขวา","table.k472":"ลบคอลัมน์","table.k473":"รวมเซลล์","table.k474":"แยกเซลล์","table.k475":"รวมตามค่า","table.k476":"ประเภทแถว","table.k477":"ตัวจับปรับความกว้างคอลัมน์ {v0}","toolbarOverflow.k478":"คลิปบอร์ด","toolbarOverflow.k479":"เครื่องมือถ่ายรูปแบบ","toolbarOverflow.k480":"ซูม","toolbarOverflow.k481":"จัดระเบียบ / มุมมอง","toolbarOverflow.k482":"เส้นขอบ","toolbarOverflow.k483":"สี","toolbarOverflow.k484":"การจัดตำแหน่ง","toolbarOverflow.k485":"รูปแบบข้อความ","toolbarOverflow.k486":"ฟอนต์และขนาด","toolbarOverflow.k487":"เพิ่มเติม","toolbarOverflow.k488":'{v0}<span class="tb-btn-text">เพิ่มเติม</span>{v1}',"toolbar.k489":"แก้ไขเทมเพลต","toolbar.k490":"เทมเพลตใหม่","toolbar.k491":"จัดตำแหน่ง / กระจาย","toolbar.k492":"จัดชิดซ้าย","toolbar.k493":"จัดชิดขวา","toolbar.k494":"จัดชิดบน","toolbar.k495":"จัดชิดล่าง","toolbar.k496":"จัดกึ่งกลาง","toolbar.k497":"จัดกึ่งกลางแนวตั้ง","toolbar.k498":"กระจายแนวนอน","toolbar.k499":"กระจายแนวตั้ง","toolbar.k500":"ลำดับชั้น","toolbar.k501":"นำไปด้านหน้าสุด","toolbar.k502":"เลื่อนไปข้างหน้า","toolbar.k503":"เลื่อนไปข้างหลัง","toolbar.k504":"ส่งไปด้านหลังสุด","toolbar.k505":"จัดกลุ่ม","toolbar.k506":"จัดกลุ่ม (Ctrl+G)","toolbar.k507":"ยกเลิกจัดกลุ่ม (Ctrl+Shift+G)","toolbar.k508":"ไม้บรรทัด","toolbar.k509":"แสดง/ซ่อนไม้บรรทัด","toolbar.k510":"ตารางนำทาง","toolbar.k511":"แสดง/ซ่อนพื้นหลังตารางนำทาง","toolbar.k512":"กรอบประ","toolbar.k513":"แสดง/ซ่อนแนวประสำหรับตารางไร้เส้นขอบ","toolbar.k514":"ดูดติด","toolbar.k515":"สลับการดูดองค์ประกอบเข้าตารางนำทาง","toolbar.k516":"ตัวออกแบบเทมเพลตการพิมพ์","toolbar.k517":"เลิกทำ","toolbar.k518":"ทำซ้ำ","toolbar.k519":"จัดระเบียบ","toolbar.k520":"จัดระเบียบ","toolbar.k521":"มุมมอง","toolbar.k522":"มุมมอง","toolbar.k523":"พอดีกับหน้าต่าง","toolbar.k524":"ซูมออก","toolbar.k525":"ซูมเข้า","toolbar.k526":"คัดลอก (Ctrl+C) เลือกองค์ประกอบก่อน","toolbar.k527":"คัดลอก (Ctrl+C)","toolbar.k528":"วาง (Ctrl+V) เลือกองค์ประกอบก่อน","toolbar.k529":"วาง (Ctrl+V) คลิปบอร์ดว่าง","toolbar.k530":"วาง (Ctrl+V)","toolbar.k531":"ลบ (Delete) เลือกองค์ประกอบก่อน","toolbar.k532":"ลบ (Delete)","toolbar.k533":"ช่วยเหลือ","toolbar.k534":"ดูตัวอย่างผลการพิมพ์","toolbar.k535":"ตัวอย่าง","toolbar.k536":"บันทึกเทมเพลต","toolbar.k537":"บันทึก","watermark.k538":"ลายน้ำ","watermark.k539":"นิพจน์ลายน้ำ","watermark.k540":"ป้อนข้อความได้เลย หรือนิพจน์: {order.no}, {printDate}","watermark.k541":'ดับเบิลคลิกหรือคลิก "แก้ไขนิพจน์" เพื่อเปิดตัวแก้ไขนิพจน์',"watermark.k542":"แก้ไขนิพจน์","watermark.k543":"ค่าทดสอบ","watermark.k544":"แสดงในตัวอย่างเมื่อนิพจน์ไม่มีค่า","watermark.k545":"มุมหมุน","watermark.k546":"สี","watermark.k547":"สีลายน้ำ","watermark.k548":"ความโปร่งใส","watermark.k549":"ความหนาแน่น","watermark.k550":"กำหนดเอง","watermark.k551":"ความกว้างชิ้น","watermark.k552":"ความสูงชิ้น","elementDefinitions.k553":"ข้อความ","elementDefinitions.k554":"บาร์โค้ด","elementDefinitions.k555":"คิวอาร์โค้ด","elementDefinitions.k556":"รูปภาพ","elementDefinitions.k557":"ตาราง","elementDefinitions.k558":"ข้อความยาว","elementDefinitions.k559":"รายการแบบไหล","elementDefinitions.k560":"เส้นแนวนอน","elementDefinitions.k561":"เส้นแนวตั้ง","elementDefinitions.k562":"สี่เหลี่ยมผืนผ้า","elementDefinitions.k563":"วงรี","elementDefinitions.k564":"หมายเลขหน้า","elementDefinitions.k565":"registerElementDefinition: type ต้องเป็นสตริงที่ไม่ว่างเปล่า","elementDefinitions.k566":"registerElementDefinition: label ต้องเป็นสตริงที่ไม่ว่างเปล่า","elementDefinitions.k567":"registerElementRenderer: ต้องการ type และฟังก์ชัน render","panels.paperRotated":" (หมุน {rot}°)","panels.statusElements":"{count} องค์ประกอบ{selected}","panels.statusSelected":" (เลือก {n})"},...{"expression.tabField":"ฟิลด์","expression.tabVariable":"ตัวแปร","expression.tabFunction":"ฟังก์ชัน","expression.placeholderField":"ค้นหาฟิลด์...","expression.placeholderVariable":"ค้นหาตัวแปร...","expression.placeholderFunction":"ค้นหาฟังก์ชัน...","expression.fnSum":"ผลรวม","expression.fnAvg":"ค่าเฉลี่ย","expression.fnCount":"จำนวน","expression.fnMin":"ค่าต่ำสุด","expression.fnMax":"ค่าสูงสุด","expression.fnAdd":"บวก","expression.fnSub":"ลบ","expression.fnMul":"คูณ","expression.fnDiv":"หาร","expression.fnRound":"ปัดเศษ","expression.fnRoundUp":"ปัดขึ้น","expression.fnRoundDown":"ปัดลง","expression.fnRoundBank":"ปัดเศษแบบธนาคาร","expression.fnMoney":"จัดรูปแบบจำนวนเงิน","expression.fnDate":"จัดรูปแบบวันที่","expression.fnUpper":"จำนวนเงินเป็นตัวอักษร","expression.fnIf":"เงื่อนไข","expression.varPageIndex":"หน้าปัจจุบัน","expression.varTotalPages":"จำนวนหน้าทั้งหมด","expression.varPrintDate":"วันที่พิมพ์","expression.varPrintTime":"เวลาพิมพ์","expression.groupAggregate":"ฟังก์ชันรวมค่า","expression.groupMath":"คณิตศาสตร์","expression.groupFormat":"การจัดรูปแบบ","expression.previewEmpty":"(ดูตัวอย่างหลังป้อนนิพจน์)","expression.previewNoValue":"(ไม่สามารถคำนวณได้)","expression.previewError":"(นิพจน์ผิดพลาด)","expression.k1":"ประเภท","expression.k2":"วิธีป้อน","expression.k3":"ดับเบิลคลิกฟิลด์ ตัวแปร หรือฟังก์ชันทางด้านซ้ายเพื่อแทรก","expression.k4":"ค้าง Ctrl (⌘ บน Mac) ขณะดับเบิลคลิกเพื่อแทรกชื่อฟิลด์เป็นข้อความคงที่","expression.k5":"ป้อนข้อความคงที่ได้เลย เช่น ชื่อผู้จัดจำหน่าย","expression.k6":"ฟิลด์ ตัวแปร และฟังก์ชันแบบไดนามิกต้องอยู่ใน {}","expression.k7":"ตัวอย่าง: {SUM(supplier.name)}","expression.k8":"ป้อนคีย์ภาษาไทยได้โดยตรงเป็น {field} เช่น {name}","expression.k9":"หมายเหตุ: ซ้อนได้เพียงหนึ่งระดับ","expression.k10":"ฟังก์ชัน","expression.k11":"SUM(field) - ผลรวม","expression.k12":"AVG(field) - ค่าเฉลี่ย","expression.k13":"COUNT(field) - จำนวน","expression.k14":"IF(cond, true, false) - เงื่อนไข","expression.k15":"เลขคณิต: {qty * price}, {ADD(qty, 1)}","expression.k16":"การปัดเศษ: ROUND ปัดครึ่งขึ้น / ROUNDUP ปัดขึ้น / ROUNDDOWN ปัดลง / ROUNDBANK แบบธนาคาร","expression.k17":"ตัวแปรระบบ","expression.k18":"{pageIndex} - หน้าปัจจุบัน","expression.k19":"{totalPages} - จำนวนหน้าทั้งหมด","expression.k20":"{printDate} - วันที่พิมพ์","expression.k21":"ตัวอย่าง","expression.k22":"ข้อความคงที่: ชื่อผู้จัดจำหน่าย","expression.k23":"ฟิลด์ไดนามิก: {supplier.name}","expression.k24":"เรียกใช้ฟังก์ชัน: {SUM(amount)}","expression.k25":'เงื่อนไข: {IF(amount>1000, "ใหญ่", "เล็ก")}',"expression.k26":"เลขคณิตและปัดเศษ: {ROUND(qty * price, 2)}","expression.k27":"ไม่มีฟิลด์","expression.k28":"คัดลอกแล้ว","expression.k29":"ประเภท","expression.k30":"ข้อมูลช่วยเหลือ","expression.k31":"วิธีป้อน","expression.k32":"ผลตัวอย่าง","expression.k33":"แก้ไขนิพจน์","expression.k34":"ปิด","expression.k35":"ยกเลิก","expression.k36":"ยืนยัน"}},jS={constants:{"constants.borderStyle.none":"无","constants.borderStyle.solid":"实线","constants.borderStyle.dashed":"虚线","constants.borderStyle.dotted":"点线","constants.borderStyle.double":"双线","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"全等分 241×279.4mm","constants.paper.DOT_HALF.label":"二等分 241×139.7mm","constants.paper.DOT_THIRD.label":"三等分 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"连续纸(自定义宽度)","constants.paper.group.common":"常用纸张","constants.paper.group.dotMatrix":"针式打印纸","constants.paper.group.labels":"标签纸","constants.paper.group.receipt":"小票纸","constants.paper.group.continuous":"连续纸","constants.watermark.density.dense":"密","constants.watermark.density.medium":"中(默认)","constants.watermark.density.loose":"疏","constants.watermark.density.size":"({w}×{h})","constants.label.content":"内容","constants.hint.border.apply":"线型 / 宽度 / 颜色即时生效,这三行显示的就是当前生效规格:已有边框时任改一行都会按新规格铺满四边并清掉单边覆盖;上、下、左、右只给选中的边加框,撤掉一边会把它其余三边落成单边;「无」清除边框,「内部」仅表格单元格可用","constants.hint.border.pending":"线型 / 宽度 / 颜色是待应用规格:选中格已有的边框规格一致时会填进这三行;四边不一致的项显示「混合」,一条边都没有时显示「无 / 0」。改完点「全部 / 外侧 / 内部」或勾选上、下、左、右某条边才会写入选中的单元格;「无」是清除边框","constants.hint.border.multi":"多选时不回显单格边框:线型 / 宽度 / 颜色按当前设置作为批写规格,点「全部 / 外侧 / 内部」或勾选某条边后写入所有选中格;「无」是清除边框","constants.hint.border.mixed":"当前单元格四边边框规格不一致:带「混合」的项不谎报,未改项在点「全部 / 外侧 / 内部」或勾选单边时按缺省档(实线 0.75pt)写入,改任一项即按该值批写"}},ZS={constants:{"constants.borderStyle.none":"None","constants.borderStyle.solid":"Solid","constants.borderStyle.dashed":"Dashed","constants.borderStyle.dotted":"Dotted","constants.borderStyle.double":"Double","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"Full sheet 241×279.4mm","constants.paper.DOT_HALF.label":"Half sheet 241×139.7mm","constants.paper.DOT_THIRD.label":"Third sheet 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"Continuous paper (custom width)","constants.paper.group.common":"Common","constants.paper.group.dotMatrix":"Dot-matrix","constants.paper.group.labels":"Labels","constants.paper.group.receipt":"Receipt","constants.paper.group.continuous":"Continuous","constants.watermark.density.dense":"Dense","constants.watermark.density.medium":"Medium (default)","constants.watermark.density.loose":"Sparse","constants.watermark.density.size":" ({w}×{h})","constants.label.content":"Content","constants.hint.border.apply":'Line style / width / color apply immediately; these three rows show the effective spec. With an existing border, changing any row fills all four sides and clears per-side overrides. Top / right / bottom / left add a border only to the selected side; removing one turns the other three into per-side borders. "None" clears the border; "Inside" is available for table cells only.',"constants.hint.border.pending":'Line style / width / color are a pending spec: they are prefilled when the selected cells share one border spec. Mixed values show "Mixed"; no border shows "None / 0". Click All / Outside / Inside or tick a side (top / right / bottom / left) to write to the selected cells; "None" clears the border.',"constants.hint.border.multi":'Multi-select does not show a single cell border: line style / width / color act as a batch spec. Click All / Outside / Inside or tick a side to apply to all selected cells; "None" clears the border.',"constants.hint.border.mixed":'The four sides of this cell have different border specs: "Mixed" is shown instead of a false value. Untouched fields fall back to the default (Solid 0.75pt) when you click All / Outside / Inside or tick a side; changing any field writes that value to the batch.'}},QS={constants:{"constants.borderStyle.none":"ไม่มี","constants.borderStyle.solid":"เส้นทึบ","constants.borderStyle.dashed":"เส้นประ","constants.borderStyle.dotted":"เส้นจุด","constants.borderStyle.double":"เส้นคู่","constants.paper.A4.label":"A4 210×297mm","constants.paper.A3.label":"A3 297×420mm","constants.paper.A5.label":"A5 148×210mm","constants.paper.Letter.label":"Letter 216×279mm","constants.paper.Legal.label":"Legal 216×356mm","constants.paper.DOT_FULL.label":"แผ่นเต็ม 241×279.4mm","constants.paper.DOT_HALF.label":"แผ่นครึ่ง 241×139.7mm","constants.paper.DOT_THIRD.label":"แผ่นหนึ่งในสาม 241×93.1mm","constants.paper.LABEL_80X60.label":"80×60mm","constants.paper.LABEL_60X40.label":"60×40mm","constants.paper.LABEL_40X30.label":"40×30mm","constants.paper.THERMAL_57.label":"57mm","constants.paper.THERMAL_80.label":"80mm","constants.paper.THERMAL_110.label":"110mm","constants.paper.CONTINUOUS.label":"กระดาษต่อเนื่อง (ความกว้างกำหนดเอง)","constants.paper.group.common":"กระดาษทั่วไป","constants.paper.group.dotMatrix":"กระดาษดอทเมทริกซ์","constants.paper.group.labels":"ฉลาก","constants.paper.group.receipt":"ใบเสร็จ","constants.paper.group.continuous":"กระดาษต่อเนื่อง","constants.watermark.density.dense":"หนาแน่น","constants.watermark.density.medium":"กลาง (ค่าเริ่มต้น)","constants.watermark.density.loose":"ห่าง","constants.watermark.density.size":" ({w}×{h})","constants.label.content":"เนื้อหา","constants.hint.border.apply":'รูปแบบเส้น/ความกว้าง/สีมีผลทันที สามบรรทัดนี้แสดงผลที่มีผลอยู่: เมื่อมีเส้นขอบอยู่แล้ว การเปลี่ยนแถวใดจะเติมสี่ด้านและลบการเขียนทับรายด้าน; บน/ขวา/ล่าง/ซ้ายเพิ่มเส้นเฉพาะด้านที่เลือก การลบด้านหนึ่งจะทำให้สามด้านที่เหลือเป็นเส้นแยก; "ไม่มี" ลบเส้นขอบ "ด้านใน" ใช้สำหรับเซลล์ตารางเท่านั้น',"constants.hint.border.pending":'รูปแบบเส้น/ความกว้าง/สีเป็นค่าที่รอใช้งาน: จะเติมในสามบรรทัดนี้เมื่อเซลล์ที่เลือกมีเส้นขอบสอดคล้องกัน; ค่าที่ไม่ตรงกันแสดง "ผสม" ไม่มีเส้นแสดง "ไม่มี / 0" แก้แล้วคลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งจึงเขียนลงเซลล์ที่เลือก; "ไม่มี" ลบเส้นขอบ',"constants.hint.border.multi":'การเลือกหลายรายการไม่แสดงเส้นขอบของเซลล์เดี่ยว: รูปแบบเส้น/ความกว้าง/สีเป็นค่าเขียนเป็นชุด คลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านใดด้านหนึ่งเพื่อเขียนทุกเซลล์ที่เลือก; "ไม่มี" ลบเส้นขอบ',"constants.hint.border.mixed":'เส้นขอบสี่ด้านของเซลล์นี้ไม่สอดคล้องกัน: รายการ "ผสม" ไม่รายงานค่าผิด; รายการที่ไม่เปลี่ยนใช้ค่าเริ่มต้น (เส้นทึบ 0.75pt) เมื่อคลิก ทั้งหมด/ด้านนอก/ด้านใน หรือทำเครื่องหมายด้านเดียว; เปลี่ยนรายการใดจะเขียนค่านั้นเป็นชุด'}},JS={propertyTips:{"propertyTips.ap-long-text-indent":"长文本每段首行空出的宽度,单位「字符」:填 2 即缩进两个汉字宽(中文排版惯例),按 em 落纸——字号被「自动缩小」压小时缩进同步变窄。仅长文本元素生效,写在普通文本上不生效","propertyTips.ap-img-fit":"图片在元素框内的缩放方式:包含=完整显示、可能留白;剪裁=铺满框并按「裁剪锚点」取一块;拉伸=填满框会变形;原始尺寸与缩小不放大。画布与三条出纸链路同一口径(缺省包含)","propertyTips.ap-img-object-position":"取位(仅「剪裁」档有这一行):剪裁把图等比铺满元素框,多出来的那一条边按这里选的位置取舍。先选位置档(贴边/居中/贴另一头),再按百分比微调,0 贴左/贴顶,100 挪到另一头,水平与垂直各自独立;缺省取正中间(保住证件照头顶就选顶部)。其余缩放模式图比框小或刚好铺满,没有可裁的边,所以不出本行","propertyTips.ap-img-fit-scale":"剪裁放大:等比铺满之后把画面再推大这么多,两轴才真的各多出一条边可裁——图与框同比例时不放大就什么都裁不掉。100=不放大(缺省),上限 400;超出框的部分由元素框裁掉。锚点选中的那一点既是取位的钉住点、也是放大的中心,两者共用同一个值。仅「剪裁」档生效,其余缩放模式不出本行","propertyTips.ap-rotate":"元素绕自身中心旋转的角度(度,0~359):出纸时按旋转后外接盒分页与结算,底部放不下自动移页,超出纸面左右缘或顶部会被裁切并给出纸提示。表格、流式列表与表格下方跟随区的元素不支持旋转(这三类不出本行);条码与二维码的任意角度需 385dpi 以上打印头,低分辨率打印机只按 90° 步进出纸","propertyTips.fl-columns":"一行排几个单元,必须由你指定——不随内容自动算列数。填的列数乘单元宽放不下元素框时只给提示、不改你的数,出纸按你填的排","propertyTips.fl-row-height":"每个单元行的最低高度(毫米),与表格行高同一口径:内容比它高时这一行会撑高,不会裁字","propertyTips.fl-gap-x":"相邻单元之间的横向留白(毫米);纵向不留缝,行与行的距离由行高承担","propertyTips.fl-auto-span":"单元内容比一列还宽时,让它占掉两个或更多列位;当前行剩不够放就把整个单元挪到下一行行首(绝不把词切两半)。默认关——开着时出纸栏数由字号与框宽决定","propertyTips.fl-max-span":"跨列的列数上限,最大只能等于「每行列数」:把每行列数改小时,这里会被一并顶回去","propertyTips.fl-layout-mode":"容器高度由谁决定:固定高度=维持设计高度、一框一页,超高裁切(存量模板默认值,输出不变);动态分页=容器高度由内容撑开,内容满页后按行续页,每一页都画完整边框,元素下方的跟随区与表格同一套规则","propertyTips.fl-padding-top":"动态分页模式下容器顶部与第一行内容之间的留白(毫米),仅动态模式生效;每页切片都按它留白并计入分页预算,负值与非法值按 0 处理","propertyTips.fl-padding-right":"动态分页模式下容器右侧与内容之间的留白(毫米),会压缩参与列宽估算的内容宽度,仅动态模式生效","propertyTips.fl-padding-bottom":"动态分页模式下容器底部与最后一行内容之间的留白(毫米),每页切片都按它留白并计入分页预算,仅动态模式生效","propertyTips.fl-padding-left":"动态分页模式下容器左侧与内容之间的留白(毫米),会压缩参与列宽估算的内容宽度,仅动态模式生效","propertyTips.cd-bar-quiet-zone":"条形码左右两端的空白格数(1 格 = 1 条宽):缺省 10,正是一维码码制要求的下限;数值越小白边越窄、同样的框内条越粗(可放大)。填 0 即不留白边,但静区参与「条→空→条」跳变,紧邻文字或表格线时可能扫不出,需实打验证","propertyTips.cd-bar-height":"黑白条本体的目标高度(mm,不含下方文字):折算粒度就是每模块物理宽,所以只能精确到它的整数倍。条宽优先——可用框高装不下时期望条高让位,绝不把条宽挤窄(热敏出纸清晰度靠条宽)。与「最大高度」分工不同:那条限的是整图(含文字)的上限","propertyTips.cd-quiet-zone":"二维码四周留出的空白格数:0 即不留白边、码面等比铺满元素框(此时靠框外的白纸充当静区);数值越大白边越宽、码面在框内越小(缺省 0,需 ISO/IEC 18004 推荐静区时填 4)"}},e2={propertyTips:{"propertyTips.ap-long-text-indent":'First-line indent for each paragraph of a long-text element, in characters: 2 means two Chinese characters wide (a common CJK convention), laid out in em units — it scales down when "Auto shrink" reduces the font size. Applies to long-text elements only; setting it on plain text has no effect.',"propertyTips.ap-img-fit":"How the image is scaled inside the element box. Contain: show the whole image, possibly with blank space. Crop: fill the box and take a region based on the crop anchor. Stretch: fill the box and distort. Original size / Shrink: never enlarge. The canvas and all three print pipelines use the same rule (Contain by default).","propertyTips.ap-img-object-position":"Crop anchor (only shown for Crop mode): cropping scales the image to fill the box, and this picks which extra edge to keep. Choose a position preset (edge / center / opposite edge), then fine-tune with the percentage: 0 aligns left/top, 100 aligns to the other end; horizontal and vertical are independent. The default is centered (choose Top to keep the head in ID photos). Other fit modes have no crop edge, so this row is hidden.","propertyTips.ap-img-fit-scale":"Crop zoom: after filling the box, enlarge the image by this much so both axes gain a crop margin — when image and box have the same aspect ratio, no zoom means nothing can be cropped. 100 = no zoom (default), maximum 400; anything outside the box is clipped by the element frame. The chosen anchor is both the pinning point and the zoom center. Shown for Crop mode only.","propertyTips.ap-rotate":"Rotation of the element about its own center, in degrees (0–359). During printing, pagination and layout use the rotated bounding box: content that does not fit at the bottom moves to the next page, and content beyond the left/right/top paper edges is clipped with a print warning. Tables, flow lists and elements in the follow-up zone below a table do not support rotation (this row is hidden for them); arbitrary angles for barcodes and QR codes require a 385dpi+ print head — lower-resolution printers only output in 90° steps.","propertyTips.fl-columns":"The number of cells per row must be specified by you — it is never inferred from content. If the column count times the cell width does not fit the element box, you get a hint but your value is not changed, and print output follows what you entered.","propertyTips.fl-row-height":"Minimum height of each cell row, in millimetres, using the same rule as table row height: a row grows when its content is taller, and text is never clipped.","propertyTips.fl-gap-x":"Horizontal whitespace between adjacent cells, in millimetres. No vertical gap is inserted; the distance between rows comes from the row height.","propertyTips.fl-auto-span":"When a cell is wider than one column, let it span two or more columns; if the current row has too few columns left, move the whole cell to the start of the next row (never split a word). Off by default — when on, the printed column count depends on font size and box width.","propertyTips.fl-max-span":'Upper limit for column spanning; it can never exceed "Columns per row". Lowering the column count also pushes this value down.',"propertyTips.fl-layout-mode":"What decides the container height. Fixed height: keep the designed height, one box per page, clip overflow (the default for existing templates, output unchanged). Dynamic pagination: the container grows with its content, continues row by row after a page fills, draws a complete border on every page, and follows the same rules as tables for the follow-up zone below the element.","propertyTips.fl-padding-top":"Whitespace between the top of the container and the first content row in dynamic pagination mode, in millimetres. Only applies in dynamic mode; every page slice uses this padding and counts it in the pagination budget. Negative or invalid values are treated as 0.","propertyTips.fl-padding-right":"Whitespace between the right side of the container and the content in dynamic pagination mode, in millimetres; it reduces the content width available for column-width estimation. Only applies in dynamic mode.","propertyTips.fl-padding-bottom":"Whitespace between the bottom of the container and the last content row in dynamic pagination mode, in millimetres. Only applies in dynamic mode; every page slice uses this padding and counts it in the pagination budget.","propertyTips.fl-padding-left":"Whitespace between the left side of the container and the content in dynamic pagination mode, in millimetres; it reduces the content width available for column-width estimation. Only applies in dynamic mode.","propertyTips.cd-bar-quiet-zone":"Number of blank modules on each side of a barcode (1 module = 1 bar width): the default of 10 is the minimum required by 1D symbologies. Smaller values narrow the quiet zone and make bars thicker in the same box (they can be enlarged). Setting 0 removes the white margin, but the quiet zone participates in bar-space-bar transitions, so codes next to text or table lines may fail to scan — verify with a real print.","propertyTips.cd-bar-height":'Target height of the black bars themselves, in millimetres (excluding the text below). The granularity is the physical width of one module, so only integer multiples are exact. Bar width takes priority: if the available height cannot fit the desired bar height, the height gives way — bars are never narrowed (thermal print clarity depends on bar width). This differs from "Maximum height", which limits the whole image including text.',"propertyTips.cd-quiet-zone":"Number of blank modules around a QR code: 0 means no white margin and the code scales to fill the element box (the surrounding white paper acts as the quiet zone). Larger values widen the margin and make the code smaller in the box. The default is 0; use 4 for the quiet zone recommended by ISO/IEC 18004."}},t2={propertyTips:{"propertyTips.ap-long-text-indent":'ระยะเว้นบรรทัดแรกของแต่ละย่อหน้าในข้อความยาว หน่วยเป็นอักขระ: ใส่ 2 หมายถึงเว้นสองตัวอักษรจีน (ตามธรรมเนียม CJK) คำนวณเป็นหน่วย em — จะย่อตามเมื่อ "ย่ออัตโนมัติ" ลดขนาดฟอนต์ ใช้เฉพาะองค์ประกอบข้อความยาว การตั้งค่าบนข้อความธรรมดาไม่มีผล',"propertyTips.ap-img-fit":"วิธีปรับขนาดรูปภาพภายในกรอบองค์ประกอบ พอดี: แสดงรูปทั้งหมดอาจมีช่องว่าง ครอบ: เติมกรอบแล้วตัดตามจุดยึดการครอป ดึง: เติมกรอบและบิดเบือน ขนาดต้นฉบับ/ย่อ: ไม่ขยาย พื้นที่ทำงานและทั้งสามไปป์ไลน์การพิมพ์ใช้กฎเดียวกัน (ค่าเริ่มต้นพอดี)","propertyTips.ap-img-object-position":"จุดยึดการครอป (แสดงเฉพาะโหมดครอบ): การครอปปรับรูปให้เติมกรอบ ตัวเลือกนี้เลือกขอบส่วนเกินที่ต้องการคงไว้ เลือกระดับตำแหน่ง (ชิดขอบ/กลาง/ชิดอีกด้าน) แล้วปรับด้วยเปอร์เซ็นต์: 0 ชิดซ้าย/บน 100 ชิดขวา/ล่าง แนวนอนและแนวตั้งอิสระต่อกัน ค่าเริ่มต้นอยู่กึ่งกลาง (เลือก บน เพื่อคงศีรษะในรูปบัตรประจำตัว) โหมดอื่นไม่มีขอบให้ครอปจึงซ่อนบรรทัดนี้","propertyTips.ap-img-fit-scale":"ขยายการครอป: หลังเติมกรอบแล้วขยายภาพอีกมากน้อยเพียงนี้ เพื่อให้ทั้งสองแกนมีขอบให้ครอป — เมื่อรูปและกรอบมีอัตราส่วนเท่ากัน การไม่ขยายจะครอปไม่ได้เลย 100 = ไม่ขยาย (ค่าเริ่มต้น) สูงสุด 400 ส่วนที่เกินกรอบถูกตัดโดยกรอบองค์ประกอบ จุดยึดที่เลือกเป็นทั้งจุดตรึงและศูนย์กลางการขยาย แสดงเฉพาะโหมดครอบ","propertyTips.ap-rotate":"มุมหมุนขององค์ประกอบรอบจุดศูนย์กลางตัวเอง เป็นองศา (0–359) ขณะพิมพ์ การแบ่งหน้าและการจัดวางใช้กล่องล้อมรอบที่หมุนแล้ว: เนื้อหาที่ไม่พอด้านล่างย้ายไปหน้าถัดไป และเนื้อหาที่เกินขอบกระดาษซ้าย/ขวา/บนถูกตัดพร้อมคำเตือน ตาราง รายการแบบไหล และองค์ประกอบในโซนตามหลังตารางไม่รองรับการหมุน (ซ่อนบรรทัดนี้); มุมใดๆ ของบาร์โค้ดและคิวอาร์โค้ดต้องการหัวพิมพ์ 385dpi ขึ้นไป — เครื่องพิมพ์ความละเอียดต่ำกว่าส่งออกได้เฉพาะขั้น 90°","propertyTips.fl-columns":"จำนวนเซลล์ต่อแถวต้องระบุเองเสมอ — ไม่คำนวณจากเนื้อหา หากจำนวนคอลัมน์คูณความกว้างเซลล์ไม่พอดีกับกรอบองค์ประกอบจะมีคำแนะนำแต่ค่าไม่เปลี่ยน และผลการพิมพ์เป็นไปตามที่ป้อน","propertyTips.fl-row-height":"ความสูงขั้นต่ำของแถวเซลล์แต่ละแถว เป็นมิลลิเมตร ใช้กฎเดียวกับความสูงแถวตาราง: แถวจะสูงขึ้นเมื่อเนื้อหาสูงกว่า และข้อความไม่ถูกตัด","propertyTips.fl-gap-x":"ช่องว่างแนวนอนระหว่างเซลล์ที่อยู่ติดกัน เป็นมิลลิเมตร ไม่มีการเว้นช่องแนวตั้ง ระยะระหว่างแถวมาจากความสูงแถว","propertyTips.fl-auto-span":"เมื่อเซลล์กว้างกว่าหนึ่งคอลัมน์ ให้ขยายครอบสองคอลัมน์ขึ้นไป; หากแถวปัจจุบันเหลือคอลัมน์ไม่พอ ย้ายเซลล์ทั้งหมดไปขึ้นต้นแถวถัดไป (ไม่ตัดคำ) ปิดอยู่โดยค่าเริ่มต้น — เมื่อเปิด จำนวนคอลัมน์ที่พิมพ์ขึ้นกับขนาดฟอนต์และความกว้างกรอบ","propertyTips.fl-max-span":'ขีดจำกัดบนของการขยายคอลัมน์ ห้ามเกิน "จำนวนคอลัมน์ต่อแถว" การลดจำนวนคอลัมน์จะดันค่านี้ลงด้วย',"propertyTips.fl-layout-mode":"อะไรเป็นตัวกำหนดความสูงของคอนเทนเนอร์ ความสูงคงที่: คงความสูงที่ออกแบบ หนึ่งกรอบต่อหน้า ตัดส่วนเกิน (ค่าเริ่มต้นของเทมเพลตเดิม ผลไม่เปลี่ยน) การแบ่งหน้าแบบไดนามิก: คอนเทนเนอร์ ขยายตามเนื้อหา ดำเนินต่อเป็นแถวหลังหน้าเต็ม วาดเส้นขอบครบทุกหน้า และปฏิบัติตามกฎเดียวกับตารางสำหรับโซนตามหลังองค์ประกอบ","propertyTips.fl-padding-top":"ช่องว่างระหว่างด้านบนของคอนเทนเนอร์กับแถวเนื้อหาแรกในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร ใช้เฉพาะโหมดไดนามิก ทุกชิ้นของหน้าใช้ระยะนี้และนับรวมในงบการแบ่งหน้า ค่าติดลบหรือไม่ถูกต้องถือเป็น 0","propertyTips.fl-padding-right":"ช่องว่างระหว่างด้านขวาของคอนเทนเนอร์กับเนื้อหาในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร จะลดความกว้างเนื้อหาที่ใช้คำนวณความกว้างคอลัมน์ ใช้เฉพาะโหมดไดนามิก","propertyTips.fl-padding-bottom":"ช่องว่างระหว่างด้านล่างของคอนเทนเนอร์กับแถวเนื้อหาสุดท้ายในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร ใช้เฉพาะโหมดไดนามิก ทุกชิ้นของหน้าใช้ระยะนี้และนับรวมในงบการแบ่งหน้า","propertyTips.fl-padding-left":"ช่องว่างระหว่างด้านซ้ายของคอนเทนเนอร์กับเนื้อหาในโหมดแบ่งหน้าแบบไดนามิก เป็นมิลลิเมตร จะลดความกว้างเนื้อหาที่ใช้คำนวณความกว้างคอลัมน์ ใช้เฉพาะโหมดไดนามิก","propertyTips.cd-bar-quiet-zone":"จำนวนโมดูลว่างสองข้างของบาร์โค้ด (1 โมดูล = 1 ความกว้างแท่น): ค่าเริ่มต้น 10 คือค่าต่ำสุดที่รหัสแบบหนึ่งมิติต้องการ ค่าที่เล็กลงทำให้โซนเงียบแคบและแท่นหนาขึ้นในกรอบเดียวกัน (สามารถขยายได้) การตั้ง 0 ลบขอบขาว แต่โซนเงียบมีส่วนในการเปลี่ยนแท่น-ช่อง-แท่น รหัสที่อยู่ติดข้อความหรือเส้นตารางอาจสแกนไม่ได้ — ตรวจด้วยการพิมพ์จริง","propertyTips.cd-bar-height":'ความสูงเป้าหมายของแท่นดำเอง เป็นมิลลิเมตร (ไม่รวมข้อความด้านล่าง) ความละเอียดคือความกว้างทางกายภาพของหนึ่งโมดูล จึงแม่นยำเฉพาะจำนวนเต็มเท่านั้น ความกว้างแท่นมีสิทธิ์ก่อน: หากความสูงที่มีไม่พอตามที่ต้องการ ความสูงจะยอมตาม — ไม่เคยทำให้แท่นแคบลง (ความชัดของการพิมพ์ความร้อนขึ้นกับความกว้างแท่น) ต่างจาก "ความสูงสูงสุด" ที่จำกัดทั้งภาพรวมข้อความ',"propertyTips.cd-quiet-zone":"จำนวนโมดูลว่างรอบคิวอาร์โค้ด: 0 หมายถึงไม่มีขอบขาวและรหัสขยายเติมกรอบ (กระดาษขาวรอบนอกทำหน้าที่โซนเงียบ) ค่าที่ใหญ่ขึ้นทำให้ขอบกว้างและรหัสเล็กลงในกรอบ ค่าเริ่มต้น 0 ใช้ 4 สำหรับโซนเงียบตามที่ ISO/IEC 18004 แนะนำ"}};function dg(t){if(typeof t!="string")return"zh-CN";const e=t.trim();return e?/^en([-_]|$)/i.test(e)?"en-US":/^th([-_]|$)/i.test(e)?"th-TH":e:"zh-CN"}function vg(){try{if(typeof navigator<"u"&&typeof navigator.language=="string")return dg(navigator.language)}catch{}return"zh-CN"}function r2(){const t=fg();return t.init({resources:{"zh-CN":{core:KS,constants:jS.constants,propertyTips:JS.propertyTips},"en-US":{core:XS,constants:ZS.constants,propertyTips:e2.propertyTips},"th-TH":{core:qS,constants:QS.constants,propertyTips:t2.propertyTips}},lng:vg(),fallbackLng:"zh-CN",ns:["core"],defaultNS:"core",keySeparator:!1,nsSeparator:!1,interpolation:{prefix:"{",suffix:"}",escapeValue:!1},returnNull:!1,returnEmptyString:!1,saveMissing:!0,missingKeyHandler:()=>{}}),t}const Ep=r2(),a2=new Set,n2=new Set;Ep.on("missingKey",(t,e,r)=>{Ep.exists(r,{lng:"zh-CN"})||a2.add(r)});function gg(){return vg()}function i2(){return gg()}function o2(t,e){return typeof t=="string"?t:t==null?e:String(t)}function s2(t,e,r){const a=Ep.getFixedT(dg(t),l2()),n=r?a(e,r):a(e);return o2(n,e)}function Se(t,e){return s2(gg(),t,e)}function l2(){return["user",...n2,"constants","propertyTips","core"]}function u2(t,e,r){return new Intl.NumberFormat(e,r).format(t)}function p2(){let t=0;return function(){return t+=1,`cell-${Date.now().toString(36)}-${t}`}}function c2(){let t=0;return function(){return t+=1,`row-${Date.now().toString(36)}-${t}`}}const f2=p2(),h2=c2(),Ts={width:.75,style:"solid",color:"#333333"};function d2(t){return{id:f2(),borders:{top:{...Ts},right:{...Ts},bottom:{...Ts},left:{...Ts}},...t}}function v2(){const t=[50,50,50],e=(a,n)=>({id:h2(),type:a,height:8,...n!==void 0?{repeatOnPage:n}:{},cells:t.map(()=>d2())}),r=e("header",!0);return r.cells.forEach((a,n)=>{a.formatter=Se("table.defaultHeader",{index:n+1}),a.align="center",a.fontWeight="bold"}),{rows:[r,e("data"),e("subtotal"),e("summary")],colWidths:t}}const mg=Symbol.for("worm-print-platform.element-capabilities.v1"),yg=globalThis;function Dn(){const t=yg[mg];if(t)return t;const e={entries:new Map,nextSeq:0,bootstrapped:!1};return yg[mg]=e,g2(e),e}const Ip=Object.freeze({text:{zoneAllowed:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"}],defaultOptions:()=>({formatter:"文本",exampleValue:"示例文本",fontSize:12,textAlign:"left",height:5.3}),title:"文本"},longText:{defaultTextFit:"autoHeight",bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"},{targetPath:"options.styler",label:"样式",dataSource:"main"}],defaultOptions:()=>({width:141.1,height:28.2,fontSize:12,lineHeight:18,exampleValue:"示例长文本内容"}),title:"长文"},barcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"}],defaultOptions:()=>({width:56.4,height:14.1,title:"条形码",barcodeType:"code128",testData:"12345678",exampleValue:"12345678"}),title:"条形码"},qrcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",labelKey:"constants.label.content",dataSource:"main"}],defaultOptions:()=>({width:28.2,height:28.2,title:"二维码",testData:"qrcode",exampleValue:"qrcode"}),title:"二维码"},image:{zoneAllowed:!0,bindings:[{targetPath:"options.src",label:"内容",labelKey:"constants.label.content",dataSource:"main",placeholder:"输入图片路径,支持 /docfiles/... 相对路径、绝对 URL 或 {字段} 表达式"}],defaultOptions:()=>({width:28.2,height:28.2,fit:"contain"}),title:"图片"},table:{rotationExcluded:!0,acceptsElementBorder:!1,bindings:[],defaultOptions:()=>{const{rows:t,colWidths:e}=v2(),r=e.reduce((n,i)=>n+i,0),a=t.reduce((n,i)=>n+i.height,0);return{width:r,height:a,tableMode:"dynamic",tableRows:t,tableColWidths:e,tableDefaultFontSize:10,tableDefaultColor:"#333333",tableDefaultPadding:1,fields:[],tablePagination:{enabled:!0}}},title:"表格"},flowList:{rotationExcluded:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"单元模板",dataSource:"main",placeholder:"{drugs.name} {drugs.spec}"}],defaultOptions:()=>({width:141.1,height:21.2,fontSize:12,formatter:"{name} {spec}",flowColumns:4,flowRowHeight:8,flowGapX:4,flowAutoSpan:!1,flowMaxSpan:2,flowLayoutMode:"fixed",flowPaddingTop:0,flowPaddingRight:0,flowPaddingBottom:0,flowPaddingLeft:0}),title:"流式列表"},hline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:70.6,height:1.8,borderWidth:.75}),title:"横线"},vline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:1.8,height:35.3,borderWidth:.75}),title:"竖线"},rect:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"矩形"},oval:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"椭圆"},html:{blocked:!0,defaultOptions:()=>({width:28.2,height:28.2}),title:"HTML"},pageNumber:{title:"页码"}});function g2(t){if(!t.bootstrapped){t.bootstrapped=!0;for(const[e,r]of Object.entries(Ip))t.entries.has(e)||t.entries.set(e,{caps:r,seq:t.nextSeq++})}}function m2(t,e){if(!t||typeof t!="string")throw new Error("registerElementCapabilities: type 必须是非空字符串");if(!e||typeof e!="object")throw new Error("registerElementCapabilities: caps 必须是对象");const r=Dn(),a=r.nextSeq++;return r.entries.set(t,{caps:e,seq:a}),()=>{if(Dn().entries.get(t)?.caps!==e)return;const i=Ip[t];i?Dn().entries.set(t,{caps:i,seq:a}):Dn().entries.delete(t)}}function bg(t){return t?{...Dn().entries.get(t)?.caps??{},type:t}:{type:""}}function kg(){return[...Dn().entries.entries()].sort((t,e)=>t[1].seq-e[1].seq).map(([t])=>t)}const wg=Symbol.for("worm-print-platform.element-plugin-registry.v1"),_g=globalThis;function Cs(){const t=_g[wg];if(t)return t;const e={plugins:new Map,typeIndex:new Map,configs:new Map,legacyAliases:new Map};return _g[wg]=e,e}function xg(t){if(!t?.id||typeof t.id!="string")throw new Error("defineElementPlugin: id 必须是非空字符串");if(!t.version||typeof t.version!="string")throw new Error("defineElementPlugin: version 必须是非空字符串");if(!Array.isArray(t.kinds)||t.kinds.length===0)throw new Error("defineElementPlugin: kinds 必须是非空数组");const e=new Set;for(const r of t.kinds){if(!r?.type||typeof r.type!="string")throw new Error("defineElementPlugin: kinds[].type 必须是非空字符串");if(e.has(r.type))throw new Error(`defineElementPlugin: kinds 内 type 重复「${r.type}」`);e.add(r.type)}}function y2(t){return xg(t),t}function Pg(t){xg(t);const e=Cs();for(const[a,n]of[...e.typeIndex])n.plugin.id===t.id&&n.plugin!==t&&e.typeIndex.delete(a);e.plugins.set(t.id,t);for(const a of t.kinds)e.typeIndex.set(a.type,{plugin:t,kind:a});const r=[];for(const a of t.kinds){const n={...a.fixedHeight===!0?{fixedHeight:!0}:{},...a.blocked===!0?{blocked:!0}:{},...a.capabilities??{}};Object.keys(n).length!==0&&r.push(m2(a.type,n))}for(const[a,n]of Object.entries(t.legacyAliases??{}))e.legacyAliases.set(a,n);return()=>{if(e.plugins.get(t.id)===t){e.plugins.delete(t.id);for(const[a,n]of[...e.typeIndex])n.plugin===t&&e.typeIndex.delete(a);for(const a of r)a()}}}function b2(t){return Cs().plugins.get(t)}function k2(t,e){const r=Cs();r.configs.set(t,{...r.configs.get(t)??{},...e})}function w2(t){return{...Cs().configs.get(t)??{}}}function _2(){return kg().filter(t=>bg(t).blocked===!0)}_2();function x2(){return kg().filter(t=>bg(t).zoneAllowed===!0)}x2();const Sg=["#000000","#333333","#666666","#999999","#cccccc","#ffffff","#e53935","#fb8c00","#1e88e5","#43a047","#8d6e63","#00acc1"],P2=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),S2=new Set(["new","function","class","this","delete","typeof","void","in","of","var","let","const","return","if","while","for"]);function Op(t){const e=[];let r=0;const a=t.length;for(;r<a;){const n=t[r];if(/\s/.test(n)){r++;continue}if(/[0-9]/.test(n)||n==="."&&r+1<a&&/[0-9]/.test(t[r+1])){let s=r;for(;s<a&&/[0-9.]/.test(t[s]);)s++;e.push({type:"num",value:t.slice(r,s),position:r}),r=s;continue}if(n==="'"||n==='"'){let s=r+1,l="";for(;s<a&&t[s]!==n;)t[s]==="\\"&&s+1<a?(l+=t[s+1],s+=2):(l+=t[s],s++);if(s>=a)throw new Error(Se("diagnostic.lexer.unterminatedString"));e.push({type:"str",value:l,position:r}),r=s+1;continue}if(/[A-Za-z_$\u4e00-\u9fff]/.test(n)){let s=r;for(;s<a&&/[A-Za-z0-9_$\u4e00-\u9fff]/.test(t[s]);)s++;const l=t.slice(r,s);if(S2.has(l))throw new Error(Se("diagnostic.lexer.keyword",{word:l}));if(P2.has(l))throw new Error(Se("diagnostic.lexer.forbidden",{word:l}));l==="true"||l==="false"?e.push({type:"bool",value:l,position:r}):e.push({type:"ident",value:l,position:r}),r=s;continue}const i=t.slice(r,r+3);if(i==="==="||i==="!=="){e.push({type:"punc",value:i,position:r}),r+=3;continue}const o=t.slice(r,r+2);if(o==="=>")throw new Error(Se("diagnostic.lexer.noFunctionDef"));if(["==","!=","<=",">=","&&","||"].includes(o)){e.push({type:"punc",value:o,position:r}),r+=2;continue}if(n==="=")throw new Error(Se("diagnostic.lexer.noAssignment"));if(n===";")throw new Error(Se("diagnostic.lexer.noMultipleStatements"));if("+-*/%()[]{},:.?!<>".includes(n)){e.push({type:"punc",value:n,position:r}),r++;continue}throw new Error(Se("diagnostic.lexer.invalidChar",{ch:n}))}return e}function Rp(t){return new T2(t).parse()}class T2{constructor(e){this.pos=0,this.tokens=e}parse(){const e=this.parseTernary();if(this.pos<this.tokens.length)throw new Error(Se("diagnostic.parser.trailingContent",{value:this.tokens[this.pos].value}));return e}peek(){return this.tokens[this.pos]}next(){const e=this.tokens[this.pos++];if(!e)throw new Error(Se("diagnostic.expressionUnexpectedEnd"));return e}eatPunc(e){const r=this.peek();return r&&r.type==="punc"&&r.value===e?(this.pos++,!0):!1}expectPunc(e){if(!this.eatPunc(e)){const r=this.peek()?.position??0;throw new Error(Se("diagnostic.parser.expected",{pos:r,value:e}))}}parseTernary(){const e=this.parseLogicalOr();if(this.eatPunc("?")){const r=this.parseTernary();this.expectPunc(":");const a=this.parseTernary();return{type:"ternary",cond:e,consequent:r,alternate:a}}return e}parseLogicalOr(){let e=this.parseLogicalAnd();for(;this.eatPunc("||");){const r=this.parseLogicalAnd();e={type:"binary",op:"||",left:e,right:r}}return e}parseLogicalAnd(){let e=this.parseEquality();for(;this.eatPunc("&&");){const r=this.parseEquality();e={type:"binary",op:"&&",left:e,right:r}}return e}parseEquality(){let e=this.parseRelational();for(;;){const r=this.peek();if(r?.type==="punc"&&["==","!=","===","!=="].includes(r.value)){this.pos++;const a=this.parseRelational();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseRelational(){let e=this.parseAdditive();for(;;){const r=this.peek();if(r?.type==="punc"&&["<",">","<=",">="].includes(r.value)){this.pos++;const a=this.parseAdditive();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseAdditive(){let e=this.parseMultiplicative();for(;;){const r=this.peek();if(r?.type==="punc"&&(r.value==="+"||r.value==="-")){this.pos++;const a=this.parseMultiplicative();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseMultiplicative(){let e=this.parseUnary();for(;;){const r=this.peek();if(r?.type==="punc"&&["*","/","%"].includes(r.value)){this.pos++;const a=this.parseUnary();e={type:"binary",op:r.value,left:e,right:a}}else return e}}parseUnary(){const e=this.peek();if(e?.type==="punc"&&["!","-","+"].includes(e.value)){this.pos++;const r=this.parseUnary();return{type:"unary",op:e.value,arg:r,prefix:!0}}return this.parsePostfix()}parsePostfix(){let e=this.parsePrimary();for(;;)if(this.eatPunc(".")){const r=this.next();if(r.type!=="ident")throw new Error(Se("diagnostic.parser.memberName",{pos:r.position}));e={type:"member",object:e,property:r.value,computed:!1}}else if(this.eatPunc("[")){const r=this.parseTernary();this.expectPunc("]"),r.type==="str"?e={type:"member",object:e,property:r.value,computed:!1}:e={type:"member",object:e,property:r.name??String(r.value),computed:!0}}else if(this.peek()?.type==="punc"&&this.peek()?.value==="("&&(e.type==="ident"||e.type==="member")){this.pos++;const r=this.parseArgs();e={type:"call",callee:e,args:r}}else return e}parseArgs(){const e=[];if(this.eatPunc(")"))return e;for(;;){if(e.push(this.parseTernary()),this.eatPunc(")"))return e;this.expectPunc(",")}}parsePrimary(){const e=this.next();if(e.type==="num"){const r=Number(e.value);if(isNaN(r))throw new Error(Se("diagnostic.parser.invalidNumber",{value:e.value}));return{type:"num",value:r}}if(e.type==="str")return{type:"str",value:e.value};if(e.type==="bool")return{type:"bool",value:e.value==="true"};if(e.type==="ident")return{type:"ident",name:e.value};if(e.value==="("){const r=this.parseTernary();return this.expectPunc(")"),r}if(e.value==="["){const r=[];if(!this.eatPunc("]"))for(;r.push(this.parseTernary()),!this.eatPunc("]");)this.expectPunc(",");return{type:"array",elements:r}}if(e.value==="{"){const r=[];if(!this.eatPunc("}"))for(;;){const a=this.next();if(a.type!=="ident"&&a.type!=="str")throw new Error(Se("diagnostic.parser.objectKey",{pos:a.position}));if(this.expectPunc(":"),r.push({key:a.value,value:this.parseTernary()}),this.eatPunc("}"))break;this.expectPunc(",")}return{type:"object",properties:r}}throw new Error(Se("diagnostic.parser.unexpectedToken",{pos:e.position,value:e.value}))}}const Tg=20,C2=8;function Pt(t,e=0){if(typeof t=="number")return Number.isFinite(t)?t:e;if(typeof t=="string"){const r=t.trim();if(r==="")return e;const a=Number(r);return Number.isFinite(a)?a:e}return t==null?e:typeof t=="boolean"?t?1:0:e}function D2(t){if(typeof t=="number")return Number.isFinite(t);if(typeof t=="string"){const e=t.trim();return e!==""&&Number.isFinite(Number(e))}return!1}function An(t){return!Number.isFinite(t)||Number.isInteger(t)||Math.abs(t)>=1e15?t:Number(t.toPrecision(12))}function Ln(t){if(!Number.isFinite(t)||Number.isInteger(t))return 0;const e=String(t);if(e.includes("e")||e.includes("E"))return 0;const r=e.indexOf(".");return r===-1?0:e.length-r-1}function Bp(t,e){if(!Number.isFinite(t))return 0;const r=Math.min(Math.max(e,0),12);if(r===0)return Math.round(t);const a=10**r,n=t*a;return!Number.isFinite(n)||Math.abs(n)>=1e15?An(t):Math.round(n)/a}function Np(t,e){const r=Pt(t),a=Pt(e),n=r+a;return Bp(n,Math.max(Ln(r),Ln(a)))}function Fp(t,e){const r=Pt(t),a=Pt(e),n=r-a;return Bp(n,Math.max(Ln(r),Ln(a)))}function Cg(t,e){const r=Pt(t),a=Pt(e),n=r*a;return Bp(n,Ln(r)+Ln(a))}function Dg(t,e){const r=Pt(t),a=Pt(e);return a===0?0:An(r/a)}function A2(t,e){const r=Pt(t),a=Pt(e);return a===0?0:An(r%a)}function L2(t){if(t==null)return 2;const e=Math.trunc(Pt(t,2));return Number.isFinite(e)?Math.min(Math.max(e,-Tg),Tg):2}function Ds(t,e,r){const a=Pt(t,0),n=L2(e);if(a===0)return 0;if(Math.abs(a)>=1e21)return An(a);const i=Math.max(n,0)+C2,o=a.toFixed(i);if(!/^-?\d+(\.\d+)?$/.test(o))return An(a);const s=o.startsWith("-"),l=o.replace("-","").replace(".","");let u=BigInt(l||"0");s&&(u=-u);const p=10n**BigInt(i-n),c=u<0n?-1n:1n,f=u<0n?-u:u;let h=f/p;const d=f%p,v=2n*d;r==="up"?d!==0n&&(h+=1n):r!=="down"&&v>=p&&(v>p||r==="half-up"||h%2n===1n)&&(h+=1n);const m=c*h;return An(n>=0?Number(m)/10**n:Number(m)*10**-n)}const zp={Math,Number,String,Boolean,parseInt,parseFloat,isNaN,true:!0,false:!1,null:null,undefined:void 0},M2=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),E2=new Set(["Number","String","Boolean","parseInt","parseFloat","isNaN"]);function ot(t,e,r={}){switch(t.type){case"num":return t.value;case"str":return t.value;case"bool":return t.value;case"ident":return I2(t.name,e);case"binary":return O2(t,e,r);case"unary":return R2(t,e,r);case"ternary":return ot(t.cond,e,r)?ot(t.consequent,e,r):ot(t.alternate,e,r);case"member":return F2(t,e,r);case"call":return z2(t,e,r);case"array":return t.elements.map(a=>ot(a,e,r));case"object":return Object.fromEntries(t.properties.map(a=>[a.key,ot(a.value,e,r)]))}}function I2(t,e,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(Object.prototype.hasOwnProperty.call(zp,t))return zp[t];throw new Error(Se("diagnostic.evaluator.undefinedIdentifier",{name:t}))}function O2(t,e,r){const a=ot(t.left,e,r),n=ot(t.right,e,r);switch(t.op){case"+":return N2(a,n)?Np(a,n):B2(a,n);case"-":return Fp(a,n);case"*":return Cg(a,n);case"/":return Dg(a,n);case"%":return A2(a,n);case"<":return a<n;case">":return a>n;case"<=":return a<=n;case">=":return a>=n;case"==":return a==n;case"!=":return a!=n;case"===":return a===n;case"!==":return a!==n;case"&&":return a&&n;case"||":return a||n;default:throw new Error(Se("diagnostic.evaluator.unknownOperator",{op:t.op}))}}function R2(t,e,r){const a=ot(t.arg,e,r);switch(t.op){case"-":return Fp(0,a);case"+":return Pt(a);case"!":return!a;default:throw new Error(Se("diagnostic.evaluator.unknownUnaryOperator",{op:t.op}))}}function B2(t,e){return`${t==null?"":String(t)}${e==null?"":String(e)}`}function N2(t,e){const r=Ag(t),a=Ag(e);return r==="other"||a==="other"?!1:r==="num"||a==="num"}function Ag(t){return t==null||t===""?"neutral":D2(t)?"num":"other"}function F2(t,e,r){const a=ot(t.object,e,r);if(a==null)throw new Error(Se("diagnostic.evaluator.nullProperty"));if(M2.has(t.property))throw new Error(Se("diagnostic.evaluator.forbiddenProperty",{property:t.property}));return a[t.property]}function z2(t,e,r){if(t.callee.type==="ident"&&E2.has(t.callee.name)){const n=zp[t.callee.name],i=t.args.map(o=>ot(o,e,r));return n(...i)}if(t.callee.type==="member"&&t.callee.object.type==="ident"&&t.callee.object.name==="Math"){const n=Math[t.callee.property];if(typeof n!="function")throw new Error(Se("diagnostic.evaluator.mathNotMethod",{name:t.callee.property}));const i=t.args.map(o=>ot(o,e,r));return n(...i)}let a;if(t.callee.type==="ident")a=t.callee.name;else if(t.callee.type==="member")throw new Error(Se("diagnostic.evaluator.noMethodCall"));if(a&&r[a]){const n=t.args.map(i=>ot(i,e,r));return r[a](...n)}throw a&&Object.prototype.hasOwnProperty.call(e,a)?new Error(Se("diagnostic.evaluator.notFunction",{name:a})):new Error(Se("diagnostic.evaluator.forbiddenCall",{name:a??"表达式"}))}function H2(t){const e=[];let r=0;const a=t.length;for(;r<a;){if(t[r]==="{"){let i=1,o=r+1;for(;o<a&&i>0;)t[o]==="{"?i++:t[o]==="}"&&i--,o++;if(i!==0)throw new Error(Se("diagnostic.template.unclosedBrace",{pos:r}));const s=t.slice(r+1,o-1);if(s.trim()==="")throw new Error(Se("diagnostic.template.emptyExpression",{pos:r}));const l=Op(s),u=Rp(l);e.push({type:"expr",expression:u}),r=o;continue}let n=r;for(;n<a&&t[n]!=="{";)t[n]==="\\"&&n+1<a&&(t[n+1]==="{"||t[n+1]==="}")?n+=2:n++;e.push({type:"text",value:t.slice(r,n).replace(/\\([{}])/g,"$1")}),r=n}return{type:"template",parts:e}}function V2(t,e,r={}){let a="";for(const n of t.parts)if(n.type==="text")a+=n.value;else{const i=ot(n.expression,e,r);a+=String(i??"")}return a}function Lg(t,e={}){const r=H2(t);return a=>V2(r,a,e)}function Hp(t,e){if(t==null||e==null)return;if(typeof t=="object"&&e in t)return t[e];const r=e.split(".");let a=t;for(const n of r){if(a==null)return;a=a[n]}return a}function Mg(t){const e=Number(t);if(isNaN(e))return String(t);const r=e<0?"-":"",a=Math.abs(e),[n,i]=a.toFixed(2).split("."),o=n.replace(/\B(?=(\d{3})+(?!\d))/g,",");return`${r}${o}.${i}`}function Eg(t,e){let r;if(t instanceof Date)r=t;else if(typeof t=="number")r=new Date(t);else if(typeof t=="string")r=new Date(t);else return String(t);if(isNaN(r.getTime()))return String(t);const a=n=>String(n).padStart(2,"0");return e.replace("YYYY",String(r.getFullYear())).replace("MM",a(r.getMonth()+1)).replace("DD",a(r.getDate())).replace("HH",a(r.getHours())).replace("mm",a(r.getMinutes())).replace("ss",a(r.getSeconds()))}const Vp=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],U2=["","拾","佰","仟"],G2=["","万","亿","万亿","亿亿"];function W2(t){let e="",r=!1;for(let a=3;a>=0;a--){const n=Math.floor(t/10**a)%10;if(n===0){e&&(r=!0);continue}r&&(e+="零",r=!1),e+=Vp[n]+U2[a]}return e}function Ig(t){const e=Number(t);if(isNaN(e))return String(t);if(e===0)return"零元整";const r=e<0?"负":"",[a,n]=Math.abs(e).toFixed(2).split("."),i=Math.ceil(a.length/4);let o="",s=!1;for(let p=i-1;p>=0;p--){const c=a.length-p*4,f=parseInt(a.slice(Math.max(0,c-4),c),10);if(f===0){o&&(s=!0);continue}o&&(s||f<1e3)&&(o+="零"),s=!1,o+=W2(f)+(G2[p]??"")}o=`${o||"零"}元`;const l=parseInt(n[0],10),u=parseInt(n[1],10);return l===0&&u===0?o+="整":(l===0?o+="零":o+=Vp[l]+"角",u>0&&(o+=Vp[u]+"分")),r+o}function Og(t,e,r){return t?e:r}function Rg(t,e){return t.reduce((r,a)=>r+(Number(Hp(a,e))||0),0)}function $2(t,e){return t.length===0?0:Rg(t,e)/t.length}function Y2(t,e){return t.length}function K2(t,e){return t.length===0?0:Math.min(...t.map(r=>Number(Hp(r,e))||0))}function X2(t,e){return t.length===0?0:Math.max(...t.map(r=>Number(Hp(r,e))||0))}function Bg(...t){return t.reduce((e,r)=>Np(e,r),0)}function Ng(...t){return t.length===0?0:t.slice(1).reduce((e,r)=>Fp(e,r),Np(t[0],0))}function Fg(...t){return t.length===0?0:t.reduce((e,r)=>Cg(e,r),1)}function zg(t,e){return Dg(t,e)}function Hg(t,e){return Ds(t,e,"half-up")}function As(t,e){return Ds(t,e,"up")}function Ls(t,e){return Ds(t,e,"down")}function Vg(t,e){return Ds(t,e,"half-even")}class q2{constructor(){this.functions={}}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const a=Op(e),n=Rp(a);return ot(n,r,this.functions)}render(e,r){return Lg(e,this.functions)(r)}}const Ug=new q2,j2={MONEY:Mg,DATE:Eg,UPPER:Ig,IF:Og,CONCAT:(...t)=>t.filter(e=>e!=null).map(String).join(""),IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,LEN:t=>String(t).length,ADD:Bg,SUB:Ng,MUL:Fg,DIV:zg,ROUND:Hg,ROUNDUP:As,CEIL:As,ROUNDDOWN:Ls,FLOOR:Ls,ROUNDBANK:Vg};for(const[t,e]of Object.entries(j2))Ug.registerFunction(t,e);function Z2(t,e,r){switch(t.toUpperCase()){case"SUM":return Rg(r,e);case"AVG":return $2(r,e);case"COUNT":return Y2(r);case"MIN":return K2(r,e);case"MAX":return X2(r,e);default:return 0}}function Q2(t,e,r){if(!t)return"";if(!t.includes("{"))return t;const a=Array.isArray(e.rows)?e.rows:[],n=t.replace(/\{([^}]+)\}/g,(i,o)=>{let s=o.trim();return s=s.replace(/\b(SUM|AVG|COUNT|MIN|MAX)\(([^)]+)\)/g,(l,u,p)=>{const c=p.trim().replace(/^['"]|['"]$/g,"");return String(Z2(u,c,a))}),`{${s}}`});try{return Ug.render(n,e)}catch{return r??t}}class J2{constructor(e){this.functions={},e?.functions&&(this.functions={...e.functions})}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const a=Op(e),n=Rp(a);return ot(n,r,this.functions)}render(e,r){return Lg(e,this.functions)(r)}}const eT=new J2,tT={MONEY:Mg,CONCAT:(...t)=>t.filter(e=>e!=null).join(""),IF:Og,FORMAT:t=>typeof t!="number"?String(t):u2(t,i2(),{minimumFractionDigits:2,maximumFractionDigits:2}),SUBSTR:(t,e,r)=>String(t).slice(e,r?e+r:void 0),LEN:t=>String(t).length,ADD:Bg,SUB:Ng,MUL:Fg,DIV:zg,ROUND:Hg,ROUNDUP:As,CEIL:As,ROUNDDOWN:Ls,FLOOR:Ls,ROUNDBANK:Vg,NOW:()=>new Date().toISOString().split("T")[0],IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,PAD:(t,e,r)=>String(t).padStart(e,r),REPLACE:(t,e,r)=>String(t).replace(new RegExp(e,"g"),r),JSON:t=>JSON.stringify(t,null,2),DATE:Eg,UPPER:Ig};for(const[t,e]of Object.entries(tT))eT.registerFunction(t,e);Object.fromEntries(Object.entries(Ip).filter(([,t])=>t.bindings!==void 0).map(([t,e])=>[t,[...e.bindings??[]]]));const vr=["left","top","width","height","chartOption"],Ms=["dataSource","categoryField","valueFields","seriesField"],gr=["title","legend","palette"],Es=[{type:"barChart",label:"柱状图",labelKey:"echarts.series.typeNames.bar",icon:"ChartColumn",seriesType:"bar",orientation:"vertical",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight",notesKey:"echarts.notes.bar"},{type:"barHChart",label:"条形图",labelKey:"echarts.series.typeNames.barH",icon:"ChartBar",seriesType:"bar",orientation:"horizontal",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位",notesKey:"echarts.notes.barH"},{type:"lineChart",label:"折线图",labelKey:"echarts.series.typeNames.line",icon:"ChartLine",seriesType:"line",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"折线图:类目 + 多个数值字段;不写 areaStyle",notesKey:"echarts.notes.line"},{type:"areaChart",label:"面积图",labelKey:"echarts.series.typeNames.area",icon:"ChartArea",seriesType:"line",fields:[...Ms,...gr,"stack","label"],requiredOptionKeys:vr,defaultWidth:100,defaultHeight:60,notes:"面积图:折线 + series[].areaStyle;其余同折线图",notesKey:"echarts.notes.area"},{type:"pieChart",label:"饼图",labelKey:"echarts.series.typeNames.pie",icon:"ChartPie",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...gr,"label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段",notesKey:"echarts.notes.pie"},{type:"doughnutChart",label:"环形图",labelKey:"echarts.series.typeNames.doughnut",icon:"Donut",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...gr,"innerRadius","label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"环形图:饼图 + radius:[内径,外径];内径由面板配置",notesKey:"echarts.notes.doughnut"},{type:"scatterChart",label:"散点图",labelKey:"echarts.series.typeNames.scatter",icon:"ChartScatter",seriesType:"scatter",fields:["dataSource","categoryField","valueFields",...gr,"bubble","label"],requiredOptionKeys:vr,defaultWidth:80,defaultHeight:60,notes:"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小",notesKey:"echarts.notes.scatter"},{type:"radarChart",label:"雷达图",labelKey:"echarts.series.typeNames.radar",icon:"Radar",seriesType:"radar",fields:["dataSource","categoryField","valueFields",...gr,"radius","label"],requiredOptionKeys:vr,defaultWidth:70,defaultHeight:60,notes:"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)",notesKey:"echarts.notes.radar"},{type:"funnelChart",label:"漏斗图",labelKey:"echarts.series.typeNames.funnel",icon:"Funnel",seriesType:"funnel",fields:["dataSource","categoryField","valueFields",...gr,"padding","label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)",notesKey:"echarts.notes.funnel"},{type:"gaugeChart",label:"仪表盘",labelKey:"echarts.series.typeNames.gauge",icon:"Gauge",seriesType:"gauge",fields:["dataSource","valueFields",...gr,"gaugeRange","label"],requiredOptionKeys:vr,defaultWidth:60,defaultHeight:60,notes:"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max",notesKey:"echarts.notes.gauge"}],Gg=Es.map(t=>t.type);function Je(t){return Es.find(e=>e.type===t)}function Wg(t){return Je(t)?.fields??[]}function rT(t){const e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:0}function Up(t,e,r=!1){if(typeof t=="string")return t.startsWith("$data")||r?t:t.includes("{")?Q2(t,e):t;if(Array.isArray(t))return t.map(a=>Up(a,e,r));if(t&&typeof t=="object"){const a={};for(const[n,i]of Object.entries(t)){const o=r||n==="label"||n==="detail";a[n]=Up(i,e,o)}return a}return t}function Mn(t){return Array.isArray(t.data)&&t.data.includes("$data")}function aT(t,e){const r=typeof t.chartDataSource=="string"?t.chartDataSource:"",a=typeof t.dataSource=="string"?t.dataSource:"",n=r||a;if(n)return Array.isArray(e[n])?e[n]:[];for(const i of Object.values(e))if(Array.isArray(i))return i;return[]}function $g(t){return typeof t=="string"&&t.length>0?t:void 0}function nT(t){return Array.isArray(t)?t.filter(e=>typeof e=="string"&&e.length>0):[]}function Hi(t){return Array.isArray(t.series)?t.series:[]}function mr(t,e){return e?rT(t[e]):0}function Yg(t,e){for(const r of["xAxis","yAxis"]){const a=t[r],n=Array.isArray(a)?a:a?[a]:[];for(const i of n)i&&typeof i=="object"&&Array.isArray(i.data)&&i.data.includes("$data")&&(i.data=[...e])}}function iT(t,e,r,a,n){const i=Hi(t);if(!i.some(Mn))return;const o=e.map((u,p)=>r?u[r]:p+1),s=u=>a[Math.min(u,a.length-1)];if(n){const u=i[0],p=new Map;for(const f of e){const h=String(f[n]??""),d=p.get(h)??new Map,v=String(f[r??""]);d.set(v,(d.get(v)??0)+mr(f,s(0))),p.set(h,d)}const c=[...new Set(o)];t.series=[...p.entries()].map(([f,h])=>({...u,name:f,data:c.map(d=>h.get(String(d))??null)})),Yg(t,c);return}const l=i[i.length-1];for(;i.length<a.length;)i.push({...l,data:["$data"]});t.series=i.map((u,p)=>Mn(u)?{...u,data:e.map(c=>mr(c,s(p)))}:u),Yg(t,o)}function Kg(t,e,r,a,n){const i=Hi(t);if(!i.some(Mn))return;const o=e.map(s=>({name:r?String(s[r]??""):"",value:mr(s,a)}));n&&o.sort((s,l)=>l.value-s.value),t.series=i.map(s=>({...s,data:o}))}function oT(t,e,r,a,n){const i=Hi(t);if(!i.some(Mn))return;const o=a[0],s=n?a[1]:void 0,l=s?e.map(f=>mr(f,s)):[],u=l.length>0?Math.min(...l):0,p=l.length>0?Math.max(...l):0,c=f=>p===u?12:Math.round(6+(f-u)/(p-u)*18);t.series=i.map(f=>({...f,data:e.map(h=>{const d=[mr(h,r),mr(h,o)];return s?{value:d,symbolSize:c(mr(h,s))}:d})}))}function sT(t){if(t<=0)return 10;const e=10**Math.floor(Math.log10(t)),r=e>=10?e:10;return Math.ceil(t/r)*r}function lT(t,e,r,a){const n=Hi(t);if(!n.some(Mn))return;const i=a.map(o=>Math.max(0,...e.map(s=>mr(s,o))));t.radar={...t.radar??{},indicator:a.map((o,s)=>({name:o,max:sT(i[s])}))},t.series=n.map(o=>({...o,data:e.map(s=>({name:r?String(s[r]??""):"",value:a.map(l=>mr(s,l))}))}))}function uT(t,e,r){const a=Hi(t);if(!a.some(Mn))return;const n=e[0]??{};t.series=a.map(i=>({...i,data:[{value:mr(n,r),name:r}]}))}function Xg(t,e,r){const a=e.chartOption;if(!a||typeof a!="object"||Array.isArray(a))return{};const n=Up(a,r),i=nT(e.chartValueFields);if(i.length===0)return{_chartOption:n};const o=aT(e,r);if(o.length===0)return{_chartOption:n};const s=$g(e.chartCategoryField);switch(Je(t)?.seriesType){case"radar":lT(n,o,s,i);break;case"gauge":uT(n,o,i[0]);break;case"funnel":Kg(n,o,s,i[0],!0);break;case"pie":Kg(n,o,s,i[0],!1);break;case"scatter":oT(n,o,s,i,e.chartBubble===!0);break;default:iT(n,o,s,i,$g(e.chartSeriesField));break}return{_chartOption:n}}const Vi="@worm-print-platform/echarts",Gp=[{key:"default",label:"默认蓝",labelKey:"echarts.palette.default",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de"]},{key:"fresh",label:"清新绿",labelKey:"echarts.palette.fresh",colors:["#2f9e6e","#5cc9a7","#9ad6c1","#f2c94c","#4a90e2"]},{key:"warm",label:"暖橙红",labelKey:"echarts.palette.warm",colors:["#f2704e","#f7a35c","#f7d56d","#c54e3f","#8f5a4a"]},{key:"purple",label:"紫灰",labelKey:"echarts.palette.purple",colors:["#7b61ff","#9b8cff","#c3baff","#596275","#8d99ae"]}],pT=["示例一","示例二","示例三"],qg={top:6,right:25,bottom:6,left:5},jg=75,cT=50,Is={top:60,right:80,bottom:65,left:80},Zg={left:"8%",right:"8%",bottom:"12%",top:"18%",containLabel:!0};function fT(t){return{top:`${t.top}%`,right:`${t.right}%`,bottom:`${t.bottom}%`,left:`${t.left}%`}}function Os(t){const e=Je(t),r={text:""};switch(e?.seriesType){case"pie":return{title:r,tooltip:{trigger:"item"},series:[{type:"pie",name:"数量",data:["$data"],radius:t==="doughnutChart"?["40%","70%"]:"62%"}]};case"scatter":return{title:r,grid:Zg,tooltip:{trigger:"axis"},xAxis:{type:"value"},yAxis:{type:"value"},series:[{type:"scatter",name:"数量",data:["$data"],symbolSize:8}]};case"radar":return{title:r,tooltip:{trigger:"item"},radar:{indicator:[],radius:`${jg}%`},series:[{type:"radar",name:"数量",data:["$data"]}]};case"funnel":return{title:r,tooltip:{trigger:"item"},legend:{show:!1},series:[{type:"funnel",name:"数量",data:["$data"],sort:"descending",...fT(qg)}]};case"gauge":return{title:r,tooltip:{trigger:"item"},series:[{type:"gauge",name:"数量",min:0,max:100,data:[{value:0,name:"数量"}]}]};default:{const a=e?.orientation==="horizontal",n=e?.seriesType==="line"&&t==="areaChart",i=e?.seriesType==="line"?"line":"bar";return{title:r,grid:Zg,tooltip:{trigger:"axis"},xAxis:a?{type:"value"}:{type:"category",data:["$data"]},yAxis:a?{type:"category",data:["$data"]}:{type:"value"},series:[{type:i,name:"数量",data:["$data"],...n?{areaStyle:{}}:{}}]}}}}function hT(t){k2(Vi,t)}function Ui(){return w2(Vi)}function Qg(){const t=Ui().palettes??{},e=Gp.map(a=>{const n=t[a.key];return n?{key:a.key,label:n.label??a.label,labelKey:n.label?void 0:a.labelKey,colors:n.colors}:{key:a.key,label:a.label,labelKey:a.labelKey,colors:a.colors}}),r=Object.entries(t).filter(([a])=>!Gp.some(n=>n.key===a)).map(([a,n])=>({key:a,label:n.label??a,colors:n.colors}));return[...e,...r]}function Jg(){const t=Ui().sampleCategories;return Array.isArray(t)&&t.length>0?t:pT}function em(t,e){const r=Ui(),a=Je(t);return{width:typeof r.defaultWidth=="number"?r.defaultWidth:a?.defaultWidth??100,height:typeof r.defaultHeight=="number"?r.defaultHeight:a?.defaultHeight??60,title:a?.label??"图表",chartOption:Os(t),chartDataSource:"",chartCategoryField:"name",chartValueFields:["value"],chartSeriesField:"",...e}}var Wp=function(t,e){return Wp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])},Wp(t,e)};function V(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var $p=12,tm="sans-serif",Nr=$p+"px "+tm,dT=20,vT=100,gT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function mT(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var a=String.fromCharCode(r+32),n=(t.charCodeAt(r)-dT)/vT;e[a]=n}return e}var yT=mT(gT),yr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,a){if(!t){var n=yr.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==a&&(e=t.font=a||Nr),t.measureText(r);r=r||"",a=a||Nr;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||$p,s=0;if(a.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=yT[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var a=new Image;return a.onload=e,a.onerror=r,a.src=t,a},getTime:function(){return Date.now?Date.now():+new Date}},rm=ea(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),am=ea(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Gi=Object.prototype.toString,Rs=Array.prototype,bT=Rs.forEach,kT=Rs.filter,Yp=Rs.slice,wT=Rs.map,nm=(function(){}).constructor,Bs=nm?nm.prototype:null,Kp="__proto__",Xp=2311,_T=Math.pow(2,53)-1;function im(){return Xp>=_T&&(Xp=0),Xp++}function om(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function le(t){if(t==null||typeof t!="object")return t;var e=t,r=Gi.call(t);if(r==="[object Array]"){if(!Yi(t)){e=[];for(var a=0,n=t.length;a<n;a++)e[a]=le(t[a])}}else if(am[r]){if(!Yi(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var a=0,n=t.length;a<n;a++)e[a]=t[a]}}}else if(!rm[r]&&!Yi(t)&&!Wi(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Kp&&(e[o]=le(t[o]))}return e}function Pe(t,e,r){if(!J(e)||!J(t))return r?le(e):t;for(var a in e)if(e.hasOwnProperty(a)&&a!==Kp){var n=t[a],i=e[a];J(i)&&J(n)&&!W(i)&&!W(n)&&!Wi(i)&&!Wi(n)&&!lm(i)&&!lm(n)&&!Yi(i)&&!Yi(n)?Pe(n,i,r):(r||!(a in t))&&(t[a]=le(e[a]))}return t}function H(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Kp&&(t[r]=e[r]);return t}function xT(t,e,r){t=t||{};for(var a=0;a<r.length;a++){var n=r[a];t[n]=e[n]}return t}function pe(t,e,r){for(var a=he(e),n=0,i=a.length;n<i;n++){var o=a[n];t[o]==null&&(t[o]=e[o])}return t}function fe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,a=t.length;r<a;r++)if(t[r]===e)return r}return-1}function PT(t,e){var r=t.prototype;function a(){}a.prototype=e.prototype,t.prototype=new a;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function Qt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&t[i]==null&&(t[i]=e[i])}else pe(t,e)}function mt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function A(t,e,r){if(t&&e)if(t.forEach&&t.forEach===bT)t.forEach(e,r);else if(t.length===+t.length)for(var a=0,n=t.length;a<n;a++)e.call(r,t[a],a,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function K(t,e,r){if(!t)return[];if(!e)return Zp(t);if(t.map&&t.map===wT)return t.map(e,r);for(var a=[],n=0,i=t.length;n<i;n++)a.push(e.call(r,t[n],n,t));return a}function ea(t,e,r,a){if(t&&e){for(var n=0,i=t.length;n<i;n++)r=e.call(a,r,t[n],n,t);return r}}function Xe(t,e,r){if(!t)return[];if(!e)return Zp(t);if(t.filter&&t.filter===kT)return t.filter(e,r);for(var a=[],n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t)&&a.push(t[n]);return a}function sm(t,e,r){if(t&&e){for(var a=0,n=t.length;a<n;a++)if(e.call(r,t[a],a,t))return t[a]}}function he(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function ST(t,e){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return function(){return t.apply(e,r.concat(Yp.call(arguments)))}}var ge=Bs&&re(Bs.bind)?Bs.call.bind(Bs.bind):ST;function ze(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Yp.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):Gi.call(t)==="[object Array]"}function re(t){return typeof t=="function"}function q(t){return typeof t=="string"}function qp(t){return Gi.call(t)==="[object String]"}function be(t){return typeof t=="number"}function J(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function lm(t){return!!rm[Gi.call(t)]}function yt(t){return!!am[Gi.call(t)]}function Wi(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function jp(t){return t.colorStops!=null}function $i(t){return t!==t}function Ns(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,a=t.length;r<a;r++)if(t[r]!=null)return t[r]}function Z(t,e){return t??e}function Da(t,e,r){return t??e??r}function Zp(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Yp.apply(t,e)}function Qp(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Jt(t,e){if(!t)throw new Error(e)}function br(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var um="__ec_primitive__";function Fs(t){t[um]=!0}function Yi(t){return t[um]}var TT=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return he(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var a in r)r.hasOwnProperty(a)&&e(r[a],a)},t})(),pm=typeof Map=="function";function CT(){return pm?new Map:new TT}var DT=(function(){function t(e){var r=W(e);this.data=CT();var a=this;e instanceof t?e.each(n):e&&A(e,n);function n(i,o){r?a.set(i,o):a.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(a,n){e.call(r,a,n)})},t.prototype.keys=function(){var e=this.data.keys();return pm?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function ae(t){return new DT(t)}function AT(t,e){for(var r=new t.constructor(t.length+e.length),a=0;a<t.length;a++)r[a]=t[a];for(var n=t.length,a=0;a<e.length;a++)r[a+n]=e[a];return r}function zs(t,e){var r;if(Object.create)r=Object.create(t);else{var a=function(){};a.prototype=t,r=new a}return e&&H(r,e),r}function st(t,e){return t.hasOwnProperty(e)}function qe(){}var Hs=180/Math.PI,LT=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),MT=(function(){function t(){this.browser=new LT,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),se=new MT;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(se.wxa=!0,se.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?se.worker=!0:!se.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(se.node=!0,se.svgSupported=!0):ET(navigator.userAgent,se);function ET(t,e){var r=e.browser,a=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);a&&(r.firefox=!0,r.version=a[1]),n&&(r.ie=!0,r.version=n[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var IT=".",Aa="___EC__COMPONENT__CONTAINER___",cm="___EC__EXTENDED_CLASS___";function kr(t){var e={main:"",sub:""};if(t){var r=t.split(IT);e.main=r[0]||"",e.sub=r[1]||""}return e}function OT(t){Jt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function RT(t){return!!(t&&t[cm])}function Jp(t,e){t.$constructor=t,t.extend=function(r){var a=this,n;return BT(a)?n=(function(i){V(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(r.$constructor||a).apply(this,arguments)},PT(n,this)),H(n.prototype,r),n[cm]=!0,n.extend=this.extend,n.superCall=zT,n.superApply=HT,n.superClass=a,n}}function BT(t){return re(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function fm(t,e){t.extend=e.extend}var NT=Math.round(Math.random()*10);function FT(t){var e=["__\0is_clz",NT++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function zT(t,e){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return this.superClass.prototype[e].apply(t,r)}function HT(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Vs(t){var e={};t.registerClass=function(a){var n=a.type||a.prototype.type;if(n){OT(n),a.prototype.type=n;var i=kr(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Aa){var o=r(i);o[i.sub]=a}}return a},t.getClass=function(a,n,i){var o=e[a];if(o&&o[Aa]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},t.getClassesByMainType=function(a){var n=kr(a),i=[],o=e[n.main];return o&&o[Aa]?A(o,function(s,l){l!==Aa&&i.push(s)}):i.push(o),i},t.hasClass=function(a){var n=kr(a);return!!e[n.main]},t.getAllClassMainTypes=function(){var a=[];return A(e,function(n,i){a.push(i)}),a},t.hasSubTypes=function(a){var n=kr(a),i=e[n.main];return i&&i[Aa]};function r(a){var n=e[a.main];return(!n||!n[Aa])&&(n=e[a.main]={},n[Aa]=!0),n}}function Ki(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&fe(n,l)>=0||i&&fe(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var VT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],UT=Ki(VT),GT=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return UT(this,e,r)},t})(),hm=(function(){function t(e){this.value=e}return t})(),WT=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new hm(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,a=e.next;r?r.next=a:this.head=a,a?a.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),En=(function(){function t(e){this._list=new WT,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new hm(r),s.key=e,a.insertEntry(s),n[e]=s}return i},t.prototype.get=function(e){var r=this._map[e],a=this._list;if(r!=null)return r!==a.tail&&(a.remove(r),a.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),ec=new En(50);function $T(t){if(typeof t=="string"){var e=ec.get(t);return e&&e.image}else return t}function tc(t,e,r,a,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var i=ec.get(t),o={hostEl:r,cb:a,cbPayload:n};return i?(e=i.image,!Us(e)&&i.pending.push(o)):(e=yr.loadImage(t,dm,dm),e.__zrImageSrc=t,ec.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function dm(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],a=r.cb;a&&a(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Us(t){return t&&t.width&&t.height}function wr(){return[1,0,0,1,0,0]}function Xi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function rc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function qi(t,e,r){var a=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],i=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=a,t[1]=n,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function ac(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function nc(t,e,r,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],p=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*p,t[1]=-n*p+s*c,t[2]=i*c+l*p,t[3]=-i*p+c*l,t[4]=c*(o-a[0])+p*(u-a[1])+a[0],t[5]=c*(u-a[1])-p*(o-a[0])+a[1],t}function YT(t,e,r){var a=r[0],n=r[1];return t[0]=e[0]*a,t[1]=e[1]*n,t[2]=e[2]*a,t[3]=e[3]*n,t[4]=e[4]*a,t[5]=e[5]*n,t}function ji(t,e){var r=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=r*o-i*a;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-a*l,t[3]=r*l,t[4]=(a*s-o*n)*l,t[5]=(i*n-r*s)*l,t):null}function In(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function KT(t){return[t[0],t[1]]}function ic(t,e,r){return t[0]=e,t[1]=r,t}function vm(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function XT(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function qT(t){return Math.sqrt(jT(t))}function jT(t){return t[0]*t[0]+t[1]*t[1]}function oc(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function ZT(t,e){var r=qT(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function sc(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var lc=sc;function QT(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var On=QT;function uc(t,e,r,a){return t[0]=e[0]+a*(r[0]-e[0]),t[1]=e[1]+a*(r[1]-e[1]),t}function Lt(t,e,r){var a=e[0],n=e[1];return t[0]=r[0]*a+r[2]*n+r[4],t[1]=r[1]*a+r[3]*n+r[5],t}function Rn(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Bn(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ie=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,a=this.y-e.y;return Math.sqrt(r*r+a*a)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,a=this.y-e.y;return r*r+a*a},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,a=this.y;return this.x=e[0]*r+e[2]*a+e[4],this.y=e[1]*r+e[3]*a+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,a){e.x=r,e.y=a},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,a){e.x=r.x+a.x,e.y=r.y+a.y},t.sub=function(e,r,a){e.x=r.x-a.x,e.y=r.y-a.y},t.scale=function(e,r,a){e.x=r.x*a,e.y=r.y*a},t.scaleAndAdd=function(e,r,a,n){e.x=r.x+a.x*n,e.y=r.y+a.y*n},t.lerp=function(e,r,a,n){var i=1-n;e.x=i*r.x+n*a.x,e.y=i*r.y+n*a.y},t})(),La=Math.min,Nn=Math.max,pc=Math.abs,gm=["x","y"],JT=["width","height"],Ma=new ie,Ea=new ie,Ia=new ie,Oa=new ie,St=bm(),Zi=St.minTv,cc=St.maxTv,Qi=[0,0],oe=(function(){function t(e,r,a,n){fc(this,e,r,a,n)}return t.set=function(e,r,a,n,i){return n<0&&(r=r+n,n=-n),i<0&&(a=a+i,i=-i),e.x=r,e.y=a,e.width=n,e.height=i,e},t.prototype.union=function(e){var r=La(e.x,this.x),a=La(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Nn(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Nn(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=r,this.y=a},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return eC(wr(),this,e)},t.prototype.intersect=function(e,r,a){return t.intersect(this,e,r,a)},t.intersect=function(e,r,a,n){a&&ie.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!r)return!1;e instanceof t||(e=fc(tC,e.x,e.y,e.width,e.height)),r instanceof t||(r=fc(rC,r.x,r.y,r.width,r.height));var s=!!a;St.reset(n,s);var l=St.touchThreshold,u=e.x+l,p=e.x+e.width-l,c=e.y+l,f=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,v=r.y+l,m=r.y+r.height-l;if(u>p||c>f||h>d||v>m)return!1;var g=!(p<h||d<u||f<v||m<c);return(s||i)&&(Qi[0]=1/0,Qi[1]=0,ym(u,p,h,d,0,s,i,o),ym(c,f,v,m,1,s,i,o),s&&ie.copy(a,g?St.useDir?St.dirMinTv:Zi:cc)),g},t.contain=function(e,r,a){return r>=e.x&&r<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){mm(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,a){if(!a){e!==r&&mm(e,r);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=r.x*n+o,e.y=r.y*i+s,e.width=r.width*n,e.height=r.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ma.x=Ia.x=r.x,Ma.y=Oa.y=r.y,Ea.x=Oa.x=r.x+r.width,Ea.y=Ia.y=r.y+r.height,Ma.transform(a),Oa.transform(a),Ea.transform(a),Ia.transform(a),e.x=La(Ma.x,Ea.x,Ia.x,Oa.x),e.y=La(Ma.y,Ea.y,Ia.y,Oa.y);var l=Nn(Ma.x,Ea.x,Ia.x,Oa.x),u=Nn(Ma.y,Ea.y,Ia.y,Oa.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,a){var n=a.width/r.width,i=a.height/r.height;return e=Xi(e||[]),ac(e,e,ic(hc,-r.x,-r.y)),YT(e,e,ic(hc,n,i)),ac(e,e,ic(hc,a.x,a.y)),e},t})();oe.create;var fc=oe.set,mm=oe.copy,eC=oe.calculateTransform;oe.applyTransform,oe.contain;var tC=new oe(0,0,0,0),rC=new oe(0,0,0,0),hc=[];function ym(t,e,r,a,n,i,o,s){var l=pc(e-r),u=pc(a-t),p=La(l,u),c=gm[n],f=gm[1-n],h=JT[n];e<r||a<t?l<u?(i&&(cc[c]=-l),s&&(o[c]=e,o[h]=0)):(i&&(cc[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Nn(t,r),o[h]=La(e,a)-o[c]),i&&(p<Qi[0]||St.useDir)&&(Qi[0]=La(p,Qi[0]),(l<u||!St.bidirectional)&&(Zi[c]=l,Zi[f]=0,St.useDir&&St.calcDirMTV()),(l>=u||!St.bidirectional)&&(Zi[c]=-u,Zi[f]=0,St.useDir&&St.calcDirMTV())))}function bm(){var t=0,e=new ie,r=new ie,a={minTv:new ie,maxTv:new ie,useDir:!1,dirMinTv:new ie,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=Nn(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),r.copy(a.minTv),t=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(t),u=Math.cos(t),p=l*i.y+u*i.x;if(n(p)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(r.x=s*u/p,r.y=s*l/p,n(r.x)&&n(r.y)){o.set(0,0);return}(a.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(i){return pc(i)<1e-10}return a}function _r(t){Gs||(Gs=new En(100)),t=t||Nr;var e=Gs.get(t);return e||(e={font:t,strWidthCache:new En(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:yr.measureText("国",t).width,asciiCharWidth:yr.measureText("a",t).width},Gs.put(t,e)),e}var Gs;function aC(t){if(!(dc>=km)){t=t||Nr;for(var e=[],r=+new Date,a=0;a<=127;a++)e[a]=yr.measureText(String.fromCharCode(a),t).width;var n=+new Date-r;return n>16?dc=km:n>2&&dc++,e}}var dc=0,km=5;function wm(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=aC(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function xr(t,e){var r=t.strWidthCache,a=r.get(e);return a==null&&(a=yr.measureText(e,t.font).width,r.put(e,a)),a}function _m(t,e,r,a){var n=xr(_r(e),t),i=Ji(e),o=Fn(0,n,r),s=Ra(0,i,a),l=new oe(o,s,n,i);return l}function xm(t,e,r,a){var n=((t||"")+"").split(`
|
|
26
26
|
`),i=n.length;if(i===1)return _m(n[0],e,r,a);for(var o=new oe(0,0,0,0),s=0;s<n.length;s++){var l=_m(n[s],e,r,a);s===0?o.copy(l):o.union(l)}return o}function Fn(t,e,r,a){return r==="right"?a?t+=e:t-=e:r==="center"&&(a?t+=e/2:t-=e/2),t}function Ra(t,e,r,a){return r==="middle"?a?t+=e/2:t-=e/2:r==="bottom"&&(a?t+=e:t-=e),t}function Ji(t){return _r(t).stWideCharWidth}function Ba(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ws(t,e,r){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,p="left",c="top";if(a instanceof Array)l+=Ba(a[0],r.width),u+=Ba(a[1],r.height),p=null,c=null;else switch(a){case"left":l-=n,u+=s,p="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,p="center",c="bottom";break;case"bottom":l+=o/2,u+=i+n,p="center";break;case"inside":l+=o/2,u+=s,p="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,p="right",c="middle";break;case"insideTop":l+=o/2,u+=n,p="center";break;case"insideBottom":l+=o/2,u+=i-n,p="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,p="right";break;case"insideBottomLeft":l+=n,u+=i-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,p="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=p,t.verticalAlign=c,t}var vc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function nC(t,e,r,a,n,i){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
27
27
|
`);i=Pm(r,a,n,i);for(var s=!1,l={},u=0,p=o.length;u<p;u++)Sm(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
28
28
|
`),t.isTruncated=s}function Pm(t,e,r,a){a=a||{};var n=H({},a);r=Z(r,"..."),n.maxIterations=Z(a.maxIterations,2);var i=n.minChar=Z(a.minChar,0),o=n.fontMeasureInfo=_r(e),s=o.asciiCharWidth;n.placeholder=Z(a.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<i&&l>=s;u++)l-=s;var p=xr(o,r);return p>l&&(r="",p=0),l=t-p,n.ellipsis=r,n.ellipsisWidth=p,n.contentWidth=l,n.containerWidth=t,n}function Sm(t,e,r){var a=r.containerWidth,n=r.contentWidth,i=r.fontMeasureInfo;if(!a){t.textLine="",t.isTruncated=!1;return}var o=xr(i,e);if(o<=a){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?iC(e,n,i):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=xr(i,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function iC(t,e,r){for(var a=0,n=0,i=t.length;n<i&&a<e;n++)a+=wm(r,t.charCodeAt(n));return n}function oC(t,e,r,a){var n=mc(t),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,p=i==="truncate",c=Ji(u),f=Z(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,v=e.width;v==null&&r!=null&&(v=r-s);var m=e.height;m==null&&a!=null&&(m=a-l);var g;v!=null&&(i==="break"||i==="breakAll")?g=n?Cm(n,e.font,v,i==="breakAll",0).lines:[]:g=n?n.split(`
|
|
@@ -41,4 +41,4 @@ Click OK to save, Cancel to go back and edit.
|
|
|
41
41
|
`)){var y=new up;y.newline=!0,u.add(y);return}var b=n.getSeriesByName(g)[0];if(!p.get(g))if(b){var k=b.getData(),w=k.getVisual("legendLineStyle")||{},_=k.getVisual("legendIcon"),x=k.getVisual("style"),T=this._createItem(b,g,v,d,a,r,w,x,_,c,i);T.on("click",Ci(oP,g,null,i,h)).on("mouseover",Ci(dv,b.name,null,i,h)).on("mouseout",Ci(vv,b.name,null,i,h)),n.ssr&&T.eachChild(function(C){var P=ce(C);P.seriesIndex=b.seriesIndex,P.dataIndex=v,P.ssrType="legend"}),f&&T.eachChild(function(C){m.packEventData(C,a,b,v,g)}),p.set(g,!0)}else n.eachRawSeries(function(C){var P=this;if(!p.get(g)&&C.legendVisualProvider){var S=C.legendVisualProvider;if(!S.containName(g))return;var L=S.indexOfName(g),D=S.getItemVisual(L,"style"),M=S.getItemVisual(L,"legendIcon"),I=er(D.fill);I&&I[3]===0&&(I[3]=.2,D=H(H({},D),{fill:ao(I,"rgba")}));var E=this._createItem(C,g,v,d,a,r,{},D,M,c,i);E.on("click",Ci(oP,null,g,i,h)).on("mouseover",Ci(dv,null,g,i,h)).on("mouseout",Ci(vv,null,g,i,h)),n.ssr&&E.eachChild(function(O){var R=ce(O);R.seriesIndex=C.seriesIndex,R.dataIndex=v,R.ssrType="legend"}),f&&E.eachChild(function(O){P.packEventData(O,a,C,v,g)}),p.set(g,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype.packEventData=function(r,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};ce(r).eventData=s},e.prototype._createSelector=function(r,a,n,i,o){var s=this.getSelectorGroup();hv(r,function(u){var p=u.type,c=new Oe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:p==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var f=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);an(c,{normal:f,emphasis:h},{defaultText:u.title}),Tf(c)})},e.prototype._createItem=function(r,a,n,i,o,s,l,u,p,c,f){var h=r.visualDrawType,d=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(a),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),b=i.get("icon");p=b||p||"roundRect";var k=aN(p,i,l,u,h,m,f),w=new up,_=i.getModel("textStyle");if(re(r.getLegendIcon)&&(!b||b==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:v,icon:p,iconRotate:g,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:y}));else{var x=b==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;w.add(nN({itemWidth:d,itemHeight:v,icon:p,iconRotate:x,itemStyle:k.itemStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,C=s,P=o.get("formatter"),S=a;q(P)&&P?S=P.replace("{name}",a??""):re(P)&&(S=P(a));var L=m?_.getTextColor():i.get("inactiveColor");w.add(new Oe({style:Gt(_,{text:S,x:T,y:v/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var D=new Ie({shape:w.getBoundingRect(),style:{fill:"transparent"}}),M=i.getModel("tooltip");return M.get("show")&&Ul({el:D,componentModel:o,itemName:a,itemTooltipOption:M.option}),w.add(D),w.eachChild(function(I){I.silent=!0}),D.silent=!c,this.getContentGroup().add(w),Tf(w),w.__legendDataIndex=n,w},e.prototype.layoutInner=function(r,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Bo(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var p=l.getBoundingRect(),c=[-p.x,-p.y];if(u.markRedraw(),l.markRedraw(),o){Bo("horizontal",u,r.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],d=r.get("selectorButtonGap",!0),v=r.getOrient().index,m=v===0?"width":"height",g=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=p[m]+d:c[v]+=f[m]+d,h[1-v]+=p[g]/2-f[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var b={x:0,y:0};return b[m]=p[m]+d+f[m],b[g]=Math.max(p[g],f[g]),b[y]=Math.min(0,f[y]+h[1-v]),b}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Dt);function aN(t,e,r,a,n,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),hv(m,function(y,b){m[b]==="inherit"&&(m[b]=g[b])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),p=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?a.decal:Bd(c,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[p]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:r).opacity),s(u,a);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),v=u[p];u.lineWidth=d==="auto"?a.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function nN(t){var e=t.icon||"roundRect",r=Ir(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=$.color.neutral00,r.style.lineWidth=2),r}function oP(t,e,r,a){vv(t,e,r,a),r.dispatchAction({type:"legendToggleSelect",name:t??e}),dv(t,e,r,a)}function dv(t,e,r,a){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:a})}function vv(t,e,r,a){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:a})}function cs(t,e,r){var a=t==="allSelect"||t==="inverseSelect",n={},i=[];r.eachComponent({mainType:"legend",query:e},function(s){a?s[t]():s[t](e.name),sP(s,n),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){A(n,function(l,u){s[l?"select":"unSelect"](u)}),sP(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function sP(t,e){var r=e||{};return A(t.getData(),function(a){var n=a.get("name");if(!(n===`
|
|
42
42
|
`||n==="")){var i=t.isSelected(n);st(r,n)?r[n]=r[n]&&i:r[n]=i}}),r}function iN(t){t.registerAction("legendToggleSelect","legendselectchanged",ze(cs,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",ze(cs,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",ze(cs,"inverseSelect")),t.registerAction("legendSelect","legendselected",ze(cs,"select")),t.registerAction("legendUnSelect","legendunselected",ze(cs,"unSelect"))}var oN=vf(sN);function sN(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var a=0;a<e.length;a++)if(!e[a].isSelected(r.name))return!1;return!0})}function lP(t){t.registerComponentModel(fv),t.registerComponentView(iP),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,oN),t.registerSubTypeDefaulter("legend",function(){return"plain"}),iN(t)}var lN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,a,n){var i=zo(r);t.prototype.init.call(this,r,a,n),uP(this,r,i)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.call(this,r,a),uP(this,this.option,r)},e.type="legend.scroll",e.defaultOption=Rb(fv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:$.color.accent50,pageIconInactiveColor:$.color.accent10,pageIconSize:15,pageTextStyle:{color:$.color.tertiary},animationDurationUpdate:800}),e})(fv);function uP(t,e,r){var a=t.getOrient(),n=[1,1];n[a.index]=0,va(e,r,{type:"box",ignoreSize:!!n})}var pP=Me,gv=["width","height"],mv=["x","y"],uN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new pP),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pP)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,a,n,i,o,s,l){var u=this;t.prototype.renderInner.call(this,r,a,n,i,o,s,l);var p=this._controllerGroup,c=a.get("pageIconSize",!0),f=W(c)?c:[c,c];d("pagePrev",0);var h=a.getModel("pageTextStyle");p.add(new Oe({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(v,m){var g=v+"DataIndex",y=Vf(a.get("pageIcons",!0)[a.getOrient().name][m],{onclick:ge(u._pageGo,u,g,a,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});y.name=v,p.add(y)}},e.prototype.layoutInner=function(r,a,n,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,p=gv[u],c=mv[u],f=gv[1-u],h=mv[1-u];o&&Bo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],g=le(n);o&&(g[p]=n[p]-v[p]-d);var y=this._layoutContentAndController(r,i,g,u,p,f,h,c);if(o){if(s==="end")m[u]+=y[p]+d;else{var b=v[p]+d;m[u]-=b,y[c]-=b}y[p]+=v[p]+d,m[1-u]+=y[h]+y[f]/2-v[f]/2,y[f]=Math.max(y[f],v[f]),y[h]=Math.min(y[h],v[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,a,n,i,o,s,l,u){var p=this.getContentGroup(),c=this._containerGroup,f=this._controllerGroup;Bo(r.get("orient"),p,r.get("itemGap"),i?n.width:null,i?null:n.height),Bo("horizontal",f,r.get("pageButtonItemGap",!0));var h=p.getBoundingRect(),d=f.getBoundingRect(),v=this._showController=h[o]>n[o],m=[-h.x,-h.y];a||(m[i]=p[u]);var g=[0,0],y=[-d.x,-d.y],b=Z(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var k=r.get("pageButtonPosition",!0);k==="end"?y[i]+=n[o]-d[o]:g[i]+=d[o]+b}y[1-i]+=h[s]/2-d[s]/2,p.setPosition(m),c.setPosition(g),f.setPosition(y);var w={x:0,y:0};if(w[o]=v?n[o]:h[o],w[s]=Math.max(h[s],d[s]),w[l]=Math.min(0,d[l]+y[1-i]),c.__rectSize=n[o],v){var _={x:0,y:0};_[o]=Math.max(n[o]-d[o]-b,0),_[s]=w[s],c.setClipPath(new Ie({shape:_})),c.__rectSize=_[o]}else f.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Re(p,{x:x.contentPosition[0],y:x.contentPosition[1]},v?r:null),this._updatePageInfoView(r,x),w},e.prototype._pageGo=function(r,a,n){var i=this._getPageInfo(a)[r];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(r,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(p){var c=p+"DataIndex",f=a[c]!=null,h=n.childOfName(p);h&&(h.setStyle("fill",f?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=n.childOfName("pageText"),o=r.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var a=r.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=gv[o],l=mv[o],u=this._findTargetItemIndex(a),p=n.children(),c=p[u],f=p.length,h=f?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var v=k(c);d.contentPosition[o]=-v.s;for(var m=u+1,g=v,y=v,b=null;m<=f;++m)b=k(p[m]),(!b&&y.e>g.s+i||b&&!w(b,g.s))&&(y.i>g.i?g=y:g=b,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=b;for(var m=u-1,g=v,y=v,b=null;m>=-1;--m)b=k(p[m]),(!b||!w(y,b.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=b;return d;function k(_){if(_){var x=_.getBoundingRect(),T=x[l]+_[l];return{s:T,e:T+x[s],i:_.__legendDataIndex}}}function w(_,x){return _.e>=x&&_.s<=x+i}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(a=s)}),a??i},e.type="legend.scroll",e})(iP);function pN(t){t.registerAction("legendScroll","legendscroll",function(e,r){var a=e.scrollDataIndex;a!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function cN(t){cr(lP),t.registerComponentModel(lN),t.registerComponentView(uN),pN(t)}function fN(t){cr(lP),cr(cN)}var hN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,a,n){t.prototype.init.call(this,r,a,n),this._sourceManager=new ik(this),ok(this)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.call(this,r,a),ok(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ar},e})(ke),dN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(Dt);function vN(t){t.registerComponentModel(hN),t.registerComponentView(dN)}var yv=Math.sin,bv=Math.cos,cP=Math.PI,kn=Math.PI*2,gN=180/cP,fP=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,a,n,i,o){this._add("C",e,r,a,n,i,o)},t.prototype.quadraticCurveTo=function(e,r,a,n){this._add("Q",e,r,a,n)},t.prototype.arc=function(e,r,a,n,i,o){this.ellipse(e,r,a,a,0,n,i,o)},t.prototype.ellipse=function(e,r,a,n,i,o,s,l){var u=s-o,p=!l,c=Math.abs(u),f=na(c-kn)||(p?u>=kn:-u>=kn),h=u>0?u%kn:u%kn+kn,d=!1;f?d=!0:na(c)?d=!1:d=h>=cP==!!p;var v=e+a*bv(o),m=r+n*yv(o);this._start&&this._add("M",v,m);var g=Math.round(i*gN);if(f){var y=1/this._p,b=(p?1:-1)*(kn-y);this._add("A",a,n,g,1,+p,e+a*bv(o+b),r+n*yv(o+b)),y>.01&&this._add("A",a,n,g,0,+p,v,m)}else{var k=e+a*bv(s),w=r+n*yv(s);this._add("A",a,n,g,+d,+p,k,w)}},t.prototype.rect=function(e,r,a,n){this._add("M",e,r),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,a,n,i,o,s,l,u){for(var p=[],c=this._p,f=1;f<arguments.length;f++){var h=arguments[f];if(isNaN(h)){this._invalid=!0;return}p.push(Math.round(h*c)/c)}this._d.push(e+p.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),kv="none",mN=Math.round;function yN(t){var e=t.fill;return e!=null&&e!==kv}function bN(t){var e=t.stroke;return e!=null&&e!==kv}var wv=["lineCap","miterLimit","lineJoin"],kN=K(wv,function(t){return"stroke-"+t.toLowerCase()});function wN(t,e,r,a){var n=e.opacity==null?1:e.opacity;if(r instanceof Bt){t("opacity",n);return}if(yN(e)){var i=no(e.fill);t("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;o<1&&t("fill-opacity",o)}else t("fill",kv);if(bN(e)){var s=no(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,p=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,c=e.strokeFirst;if(u!==1&&t("stroke-width",u),c&&t("paint-order",c?"stroke":"fill"),p<1&&t("stroke-opacity",p),e.lineDash){var f=Ed(r),h=f[0],d=f[1];h&&(d=mN(d||0),t("stroke-dasharray",h.join(",")),(d||a)&&t("stroke-dashoffset",d))}for(var v=0;v<wv.length;v++){var m=wv[v];if(e[m]!==bl[m]){var g=e[m]||bl[m];g&&t(kN[v],g)}}}}var hP="http://www.w3.org/2000/svg",dP="http://www.w3.org/1999/xlink",_N="http://www.w3.org/2000/xmlns/",xN="http://www.w3.org/XML/1998/namespace",vP="ecmeta_";function gP(t){return document.createElementNS(hP,t)}function We(t,e,r,a,n){return{tag:t,attrs:r||{},children:a,text:n,key:e}}function PN(t,e){var r=[];if(e)for(var a in e){var n=e[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),r.push(i))}return"<"+t+" "+r.join(" ")+">"}function SN(t){return"</"+t+">"}function _v(t,e){e=e||{};var r=e.newline?`
|
|
43
43
|
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return PN(o,s)+(o!=="style"?pt(l):l||"")+(i?""+r+K(i,function(u){return a(u)}).join(r)+r:"")+SN(o)}return a(t)}function TN(t,e,r){r=r||{};var a=r.newline?`
|
|
44
|
-
`:"",n=" {"+a,i=a+"}",o=K(he(t),function(l){return l+n+K(he(t[l]),function(u){return u+":"+t[l][u]+";"}).join(a)+i}).join(a),s=K(he(e),function(l){return"@keyframes "+l+n+K(he(e[l]),function(u){return u+n+K(he(e[l][u]),function(p){var c=e[l][u][p];return p==="d"&&(c='path("'+c+'")'),p+":"+c+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function xv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function mP(t,e,r,a){return We("svg","root",{width:t,height:e,xmlns:hP,"xmlns:xlink":dP,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+t+" "+e:!1},r)}var CN=0;function yP(){return CN++}var bP={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},wn="transform-origin";function DN(t,e,r){var a=H({},t.shape);H(a,e),t.buildPath(r,a);var n=new fP;return n.reset(jm(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function AN(t,e){var r=e.originX,a=e.originY;(r||a)&&(t[wn]=r+"px "+a+"px")}var LN={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function kP(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function MN(t,e,r){var a=t.shape.paths,n={},i,o;if(A(a,function(l){var u=xv(r.zrId);u.animation=!0,pp(l,{},u,!0);var p=u.cssAnims,c=u.cssNodes,f=he(p),h=f.length;if(h){o=f[h-1];var d=p[o];for(var v in d){var m=d[v];n[v]=n[v]||{d:""},n[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){e.d=!1;var s=kP(n,r);return i.replace(o,s)}}function wP(t){return q(t)?bP[t]?"cubic-bezier("+bP[t]+")":wc(t)?t:"":""}function pp(t,e,r,a){var n=t.animators,i=n.length,o=[];if(t instanceof C0){var s=MN(t,e,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var p=n[u],c=[p.getMaxTime()/1e3+"s"],f=wP(p.getClip().easing),h=p.getDelay();f?c.push(f):c.push("linear"),h&&c.push(h/1e3+"s"),p.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(p)}function v(y){var b=y[1],k=b.length,w={},_={},x={},T="animation-timing-function";function C(Ee,de,Ce){for(var te=Ee.getTracks(),ue=Ee.getMaxTime(),_t=0;_t<te.length;_t++){var Fe=te[_t];if(Fe.needsAnimate()){var fr=Fe.keyframes,xt=Fe.propName;if(Ce&&(xt=Ce(xt)),xt)for(var hr=0;hr<fr.length;hr++){var Ii=fr[hr],dr=Math.round(Ii.time/ue*100)+"%",Pp=wP(Ii.easing),Oi=Ii.rawValue;(q(Oi)||be(Oi))&&(de[dr]=de[dr]||{},de[dr][xt]=Ii.rawValue,Pp&&(de[dr][T]=Pp))}}}}for(var P=0;P<k;P++){var S=b[P],L=S.targetName;L?L==="shape"&&C(S,_):!a&&C(S,w)}for(var D in w){var M={};to(M,t),H(M,w[D]);var I=Zm(M),E=w[D][T];x[D]=I?{transform:I}:{},AN(x[D],M),E&&(x[D][T]=E)}var O,R=!0;for(var D in _){x[D]=x[D]||{};var B=!O,E=_[D][T];B&&(O=new sa);var N=O.len();O.reset(),x[D].d=DN(t,_[D],O);var F=O.len();if(!B&&N!==F){R=!1;break}E&&(x[D][T]=E)}if(!R)for(var D in x)delete x[D].d;if(!a)for(var P=0;P<k;P++){var S=b[P],L=S.targetName;L==="style"&&C(S,x,function(te){return LN[te]})}for(var U=he(x),Y=!0,z,P=1;P<U.length;P++){var j=U[P-1],ne=U[P];if(x[j][wn]!==x[ne][wn]){Y=!1;break}z=x[j][wn]}if(Y&&z){for(var D in x)x[D][wn]&&delete x[D][wn];e[wn]=z}if(Xe(U,function(Ee){return he(x[Ee]).length>0}).length){var De=kP(x,r);return De+" "+y[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+yP();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function EN(t,e,r){if(!t.ignore)if(t.isSilent()){var a={"pointer-events":"none"};_P(a,e,r)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=n.fill;if(!i){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(i=Dc(l))}var u=n.lineWidth;if(u){var p=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/p}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),_P(a,e,r)}}function _P(t,e,r,a){var n=JSON.stringify(t),i=r.cssStyleCache[n];i||(i=r.zrId+"-cls-"+yP(),r.cssStyleCache[n]=i,r.cssNodes["."+i+":hover"]=t),e.class=e.class?e.class+" "+i:i}var fs=Math.round;function xP(t){return t&&q(t.src)}function PP(t){return t&&re(t.toDataURL)}function Pv(t,e,r,a){wN(function(n,i){var o=n==="fill"||n==="stroke";o&&qm(i)?LP(e,t,n,a):o&&Lc(i)?MP(r,t,n,a):t[n]=i,o&&a.ssr&&i==="none"&&(t["pointer-events"]="visible")},e,r,!1),zN(r,t,a)}function Sv(t,e){var r=dI(e);r&&(r.each(function(a,n){a!=null&&(t[(vP+n).toLowerCase()]=a+"")}),e.isSilent()&&(t[vP+"silent"]="true"))}function SP(t){return na(t[0]-1)&&na(t[1])&&na(t[2])&&na(t[3]-1)}function IN(t){return na(t[4])&&na(t[5])}function Tv(t,e,r){if(e&&!(IN(e)&&SP(e))){var a=1e4;t.transform=SP(e)?"translate("+fs(e[4]*a)/a+" "+fs(e[5]*a)/a+")":PC(e)}}function TP(t,e,r){for(var a=t.points,n=[],i=0;i<a.length;i++)n.push(fs(a[i][0]*r)/r),n.push(fs(a[i][1]*r)/r);e.points=n.join(" ")}function CP(t){return!t.smooth}function ON(t){var e=K(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=r[o[0]];s!=null&&(a[o[1]]=fs(s*n)/n)}}}var RN={circle:[ON(["cx","cy","r"])],polyline:[TP,CP],polygon:[TP,CP]};function BN(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function DP(t,e){var r=t.style,a=t.shape,n=RN[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&jm(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&BN(t))&&!(l<1)){s=t.type;var p=Math.pow(10,u);n[0](a,i,p)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var f=t.path;c&&(f.beginPath(),t.buildPath(f,t.shape),t.pathUpdated());var h=f.getVersion(),d=t,v=d.__svgPathBuilder;(d.__svgPathVersion!==h||!v||l!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new fP),v.reset(u),f.rebuildPath(v,l),v.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=v.getStr()}return Tv(i,t.transform),Pv(i,r,t,e),Sv(i,t),e.animation&&pp(t,i,e),e.emphasis&&EN(t,i,e),We(s,t.id+"",i)}function NN(t,e){var r=t.style,a=r.image;if(a&&!q(a)&&(xP(a)?a=a.src:PP(a)&&(a=a.toDataURL())),!!a){var n=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),Tv(l,t.transform),Pv(l,r,t,e),Sv(l,t),e.animation&&pp(t,l,e),We("image",t.id+"",l)}}function FN(t,e){var r=t.style,a=r.text;if(a!=null&&(a+=""),!(!a||isNaN(r.x)||isNaN(r.y))){var n=r.font||Nr,i=r.x||0,o=TC(r.y||0,Ji(n),r.textBaseline),s=SC[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(wy(r)){var u="",p=r.fontStyle,c=by(r.fontSize);if(!parseFloat(c))return;var f=r.fontFamily||tm,h=r.fontWeight;u+="font-size:"+c+";font-family:"+f+";",p&&p!=="normal"&&(u+="font-style:"+p+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Tv(l,t.transform),Pv(l,r,t,e),Sv(l,t),e.animation&&pp(t,l,e),We("text",t.id+"",l,void 0,a)}}function AP(t,e){if(t instanceof me)return DP(t,e);if(t instanceof Bt)return NN(t,e);if(t instanceof co)return FN(t,e)}function zN(t,e,r){var a=t.style;if(CC(a)){var n=DC(t),i=r.shadowCache,o=i[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var p=a.shadowOffsetX||0,c=a.shadowOffsetY||0,f=a.shadowBlur,h=no(a.shadowColor),d=h.opacity,v=h.color,m=f/2/l,g=f/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=We("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[We("feDropShadow","",{dx:p/l,dy:c/u,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),i[n]=o}e.filter=al(o)}}function LP(t,e,r,a){var n=t[r],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Km(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(Xm(n))i="radialGradient",o.cx=Z(n.x,.5),o.cy=Z(n.y,.5),o.r=Z(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,p=s.length;u<p;++u){var c=Ac(s[u].offset)*100+"%",f=s[u].color,h=no(f),d=h.color,v=h.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),l.push(We("stop",u+"",m))}var g=We(i,"",o,l),y=_v(g),b=a.gradientCache,k=b[y];k||(k=a.zrId+"-g"+a.gradientIdx++,b[y]=k,o.id=k,a.defs[k]=We(i,k,o,l)),e[r]=al(k)}function MP(t,e,r,a){var n=t.style[r],i=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",p=s==="repeat-y",c;if(Ym(n)){var f=n.imageWidth,h=n.imageHeight,d=void 0,v=n.image;if(q(v)?d=v:xP(v)?d=v.src:PP(v)&&(d=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Jt(f,m),Jt(h,m)}else if(f==null||h==null){var g=function(P,S){if(P){var L=P.elm,D=f||S.width,M=h||S.height;P.tag==="pattern"&&(u?(M=1,D/=i.width):p&&(D=1,M/=i.height)),P.attrs.width=D,P.attrs.height=M,L&&(L.setAttribute("width",D),L.setAttribute("height",M))}},y=tc(d,null,t,function(P){l||g(_,P),g(c,P)});y&&y.width&&y.height&&(f=f||y.width,h=h||y.height)}c=We("image","img",{href:d,width:f,height:h}),o.width=f,o.height=h}else n.svgElement&&(c=le(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var b,k;l?b=k=1:u?(k=1,b=o.width/i.width):p?(b=1,k=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),k!=null&&!isNaN(k)&&(o.height=k);var w=Zm(n);w&&(o.patternTransform=w);var _=We("pattern","",o,[c]),x=_v(_),T=a.patternCache,C=T[x];C||(C=a.zrId+"-p"+a.patternIdx++,T[x]=C,o.id=C,_=a.defs[C]=We("pattern",C,o,[c])),e[r]=al(C)}}function HN(t,e,r){var a=r.clipPathCache,n=r.defs,i=a[t.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};a[t.id]=i,n[i]=We("clipPath",i,o,[DP(t,r)])}e["clip-path"]=al(i)}function EP(t){return document.createTextNode(t)}function _n(t,e,r){t.insertBefore(e,r)}function IP(t,e){t.removeChild(e)}function OP(t,e){t.appendChild(e)}function RP(t){return t.parentNode}function BP(t){return t.nextSibling}function Cv(t,e){t.textContent=e}var NP=58,VN=120,UN=We("","");function Dv(t){return t===void 0}function Br(t){return t!==void 0}function GN(t,e,r){for(var a={},n=e;n<=r;++n){var i=t[n].key;i!==void 0&&(a[i]=n)}return a}function hs(t,e){var r=t.key===e.key,a=t.tag===e.tag;return a&&r}function ds(t){var e,r=t.children,a=t.tag;if(Br(a)){var n=t.elm=gP(a);if(Av(UN,t),W(r))for(e=0;e<r.length;++e){var i=r[e];i!=null&&OP(n,ds(i))}else Br(t.text)&&!J(t.text)&&OP(n,EP(t.text))}else t.elm=EP(t.text);return t.elm}function FP(t,e,r,a,n){for(;a<=n;++a){var i=r[a];i!=null&&_n(t,ds(i),e)}}function cp(t,e,r,a){for(;r<=a;++r){var n=e[r];if(n!=null)if(Br(n.tag)){var i=RP(n.elm);IP(i,n.elm)}else IP(t,n.elm)}}function Av(t,e){var r,a=e.elm,n=t&&t.attrs||{},i=e.attrs||{};if(n!==i){for(r in i){var o=i[r],s=n[r];s!==o&&(o===!0?a.setAttribute(r,""):o===!1?a.removeAttribute(r):r==="style"?a.style.cssText=o:r.charCodeAt(0)!==VN?a.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?a.setAttributeNS(_N,r,o):r.charCodeAt(3)===NP?a.setAttributeNS(xN,r,o):r.charCodeAt(5)===NP?a.setAttributeNS(dP,r,o):a.setAttribute(r,o))}for(r in n)r in i||a.removeAttribute(r)}}function WN(t,e,r){for(var a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=r.length-1,u=r[0],p=r[l],c,f,h,d;a<=i&&n<=l;)o==null?o=e[++a]:s==null?s=e[--i]:u==null?u=r[++n]:p==null?p=r[--l]:hs(o,u)?(Di(o,u),o=e[++a],u=r[++n]):hs(s,p)?(Di(s,p),s=e[--i],p=r[--l]):hs(o,p)?(Di(o,p),_n(t,o.elm,BP(s.elm)),o=e[++a],p=r[--l]):hs(s,u)?(Di(s,u),_n(t,s.elm,o.elm),s=e[--i],u=r[++n]):(Dv(c)&&(c=GN(e,a,i)),f=c[u.key],Dv(f)?_n(t,ds(u),o.elm):(h=e[f],h.tag!==u.tag?_n(t,ds(u),o.elm):(Di(h,u),e[f]=void 0,_n(t,h.elm,o.elm))),u=r[++n]);(a<=i||n<=l)&&(a>i?(d=r[l+1]==null?null:r[l+1].elm,FP(t,d,r,n,l)):cp(t,e,a,i))}function Di(t,e){var r=e.elm=t.elm,a=t.children,n=e.children;t!==e&&(Av(t,e),Dv(e.text)?Br(a)&&Br(n)?a!==n&&WN(r,a,n):Br(n)?(Br(t.text)&&Cv(r,""),FP(r,null,n,0,n.length-1)):Br(a)?cp(r,a,0,a.length-1):Br(t.text)&&Cv(r,""):t.text!==e.text&&(Br(a)&&cp(r,a,0,a.length-1),Cv(r,e.text)))}function $N(t,e){if(hs(t,e))Di(t,e);else{var r=t.elm,a=RP(r);ds(e),a!==null&&(_n(a,e.elm,BP(r)),cp(a,[t],0,0))}return e}var YN=0,KN=(function(){function t(e,r,a){if(this.type="svg",this.configLayer=XN(),this.storage=r,this._opts=a=H({},a),this.root=e,this._id="zr"+YN++,this._oldVNode=mP(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=gP("svg");Av(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",$N(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return AP(e,xv(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=xv(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=qN(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=We("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=K(he(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(We("defs","defs",{},u)),e.animation){var p=TN(i.cssNodes,i.cssAnims,{newline:!0});if(p){var c=We("style","stl",{},[],p);o.push(c)}}return mP(a,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},_v(this.renderToVNode({animation:Z(e.cssAnimation,!0),emphasis:Z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Z(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,a){for(var n=e.length,i=[],o=0,s,l,u=0,p=0;p<n;p++){var c=e[p];if(!c.invisible){var f=c.__clipPaths,h=f&&f.length||0,d=l&&l.length||0,v=void 0;for(v=Math.max(h-1,d-1);v>=0&&!(f&&l&&f[v]===l[v]);v--);for(var m=d-1;m>v;m--)o--,s=i[o-1];for(var g=v+1;g<h;g++){var y={};HN(f[g],y,r);var b=We("g","clip-g-"+u++,y,[]);(s?s.children:a).push(b),i[o++]=b,s=b}l=f;var k=AP(c,r);k&&(s?s.children:a).push(k)}}},t.prototype.resize=function(e,r){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),r!=null&&(a.height=r),n&&i&&(i.style.display="none",e=h_(n,0,a),r=h_(n,1,a),i.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,i){var o=i.style;o.width=e+"px",o.height=r+"px"}if(Lc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),a="data:image/svg+xml;";return e?(r=LC(r),r&&a+"base64,"+r):a+"charset=UTF-8,"+encodeURIComponent(r)},t})();function XN(t){return function(){}}function qN(t,e,r,a){var n;if(r&&r!=="none")if(n=We("rect","bg",{width:t,height:e,x:"0",y:"0"}),qm(r))LP({fill:r},n.attrs,"fill",a);else if(Lc(r))MP({style:{fill:r},dirty:qe,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",a);else{var i=no(r),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function jN(t){t.registerPainter("svg",KN)}cr([_4,I5,F4,ER,WR,iB,jR,EB,QB,fN,tN,vN,jN]);const zP=new Set;function ZN(){const e=(Ui().components??[]).filter(r=>r!=null&&!zP.has(r));if(e.length!==0){cr(e);for(const r of e)zP.add(r)}}const QN=96/25.4;function xn(t){const e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*QN))}const JN=[12,20,15];function Ai(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}}function e6(t,e){if(!e||typeof e!="object"||Array.isArray(e))return{};const r=Ai(e),a=Je(t),n=[...Jg()],i=[...JN],o=Array.isArray(r.series)?r.series:[],s=u=>{for(const p of o)Array.isArray(p.data)&&p.data.includes("$data")&&(p.data=u(p))},l=()=>{for(const u of["xAxis","yAxis"]){const p=Array.isArray(r[u])?r[u]:r[u]?[r[u]]:[];for(const c of p)c&&Array.isArray(c.data)&&c.data.includes("$data")&&(c.data=[...n])}};switch(a?.seriesType){case"pie":s(()=>n.map((u,p)=>({name:u,value:i[p]??10})));break;case"funnel":s(()=>n.map((u,p)=>({name:u,value:i[p]??10})));break;case"scatter":s(()=>i.map(u=>[u,u+6]));break;case"radar":r.radar={...r.radar??{},indicator:n.map(u=>({name:u,max:30}))},s(()=>[{name:"示例",value:i}]);break;case"gauge":s(()=>[{value:i[0]??40,name:"数量"}]);break;default:s(()=>[...i]),l();break}return r}function t6(t,e){const r=Array.isArray(t?.color)?(t?.color).map(String):[];return e.find(n=>n.colors.every((i,o)=>i===r[o])&&r.length===n.colors.length)?.key??"default"}function Li(t){return Array.isArray(t)?t[0]&&typeof t[0]=="object"?{...t[0]}:{}:t&&typeof t=="object"?{...t}:{}}function r6(t,e,r){const a=Ai(t),n=Array.isArray(a.series)?a.series:[],i=Je(r),o=n[0]??{type:i?.seriesType==="line"?"line":"bar",data:["$data"]};return a.series=Array.from({length:Math.max(e,1)},(s,l)=>({...o,...n[l]??{},data:["$data"]})),a}const fp=t=>Math.round(t*10)/10;function Lv(t,e){return e>0?fp(t/e*100):0}function hp(t,e,r){if(typeof t=="string"&&t.trim().endsWith("%")){const a=Number.parseFloat(t);if(Number.isFinite(a))return fp(a)}return typeof t=="number"&&Number.isFinite(t)?Lv(t,e):Lv(r,e)}function HP(t,e,r){return Math.min(r,Math.max(e,t))}function vs(t){return`${HP(fp(t),0,100)}%`}function a6(t){const r=(Array.isArray(t.series)?t.series:[])[0];return r&&typeof r=="object"?r:{}}function VP(t,e,r){const n=a6(t&&typeof t=="object"?t:{}),i=xn(e),o=xn(r);return{top:hp(n.top,o,Is.top),right:hp(n.right,i,Is.right),bottom:hp(n.bottom,o,Is.bottom),left:hp(n.left,i,Is.left)}}function n6(t,e){const r=Ai(t),a=Array.isArray(r.series)?r.series:[];a.length===0&&a.push({type:"funnel",data:["$data"]});const n=a[0];return n.top=vs(e.top),n.right=vs(e.right),n.bottom=vs(e.bottom),n.left=vs(e.left),r.series=a,r}function i6(t,e,r){const n=Li((t&&typeof t=="object"?t:{}).radar).radius,i=Array.isArray(n)?n[n.length-1]:n,o=xn(e),s=xn(r),l=Math.min(o,s)/2;if(typeof i=="string"&&i.trim().endsWith("%")){const u=Number.parseFloat(i);if(Number.isFinite(u))return fp(u)}return typeof i=="number"&&Number.isFinite(i)?Lv(i,l):cT}function o6(t,e){const r=Ai(t);return r.radar={...Li(r.radar),radius:vs(HP(e,20,100))},r}const s6=[{key:"value",label:"数值",labelKey:"echarts.label.formatter.value",formatter:"{c}"},{key:"name-value",label:"名称: 数值",labelKey:"echarts.label.formatter.nameValue",formatter:"{b}: {c}"},{key:"name",label:"名称",labelKey:"echarts.label.formatter.name",formatter:"{b}"},{key:"percent",label:"百分比",labelKey:"echarts.label.formatter.percent",formatter:"{d}%"}],l6={bar:[{value:"top",label:"顶部",labelKey:"echarts.label.position.bar.top"},{value:"inside",label:"内部",labelKey:"echarts.label.position.bar.inside"},{value:"insideTop",label:"内部顶端",labelKey:"echarts.label.position.bar.insideTop"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.bar.bottom"},{value:"insideBottom",label:"内部底端",labelKey:"echarts.label.position.bar.insideBottom"},{value:"right",label:"右侧",labelKey:"echarts.label.position.bar.right"},{value:"left",label:"左侧",labelKey:"echarts.label.position.bar.left"},{value:"middle",label:"居中",labelKey:"echarts.label.position.bar.middle"}],line:[{value:"top",label:"顶部",labelKey:"echarts.label.position.line.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.line.bottom"},{value:"inside",label:"内部",labelKey:"echarts.label.position.line.inside"},{value:"left",label:"左侧",labelKey:"echarts.label.position.line.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.line.right"}],pie:[{value:"outside",label:"外侧",labelKey:"echarts.label.position.pie.outside"},{value:"inside",label:"内部",labelKey:"echarts.label.position.pie.inside"},{value:"center",label:"中心",labelKey:"echarts.label.position.pie.center"}],scatter:[{value:"top",label:"顶部",labelKey:"echarts.label.position.scatter.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.scatter.bottom"},{value:"left",label:"左侧",labelKey:"echarts.label.position.scatter.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.scatter.right"},{value:"inside",label:"内部",labelKey:"echarts.label.position.scatter.inside"}],radar:[{value:"top",label:"顶部",labelKey:"echarts.label.position.radar.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.radar.bottom"},{value:"left",label:"左侧",labelKey:"echarts.label.position.radar.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.radar.right"},{value:"inside",label:"内部",labelKey:"echarts.label.position.radar.inside"}],funnel:[{value:"outer",label:"外侧",labelKey:"echarts.label.position.funnel.outer"},{value:"inner",label:"内部",labelKey:"echarts.label.position.funnel.inner"},{value:"left",label:"左侧",labelKey:"echarts.label.position.funnel.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.funnel.right"},{value:"top",label:"顶部",labelKey:"echarts.label.position.funnel.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.funnel.bottom"}],gauge:[]},u6={bar:!1,line:!1,pie:!0,scatter:!1,radar:!1,funnel:!0,gauge:!0},p6={bar:{position:"top",fontSize:12},line:{position:"top",fontSize:12},pie:{position:"outside",overflow:"none",fontSize:11},scatter:{position:"top",fontSize:11},radar:{position:"top",fontSize:10},funnel:{position:"outer",fontSize:11},gauge:{fontSize:14}},c6={barHChart:{position:"right",fontSize:12}},f6={bar:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],line:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],pie:["formatter","overflow","position","distance","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding","labelLine.show","labelLine.length","labelLine.length2","labelLine.smooth"],scatter:["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],radar:["formatter","fontSize","fontWeight","color"],funnel:["formatter","overflow","position","distance","fontSize","fontWeight","color","labelLine.show","labelLine.length","labelLine.smooth"],gauge:["formatter","fontSize","fontWeight","color","offset"]},h6=["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d6(t){const e=t?.series;return Array.isArray(e)?e:[]}function dp(t){return t&&typeof t=="object"&&!Array.isArray(t)?{...t}:{}}function Mv(t){typeof t.offsetX!="number"&&typeof t.offsetY!="number"||(Array.isArray(t.offset)||(t.offset=[typeof t.offsetX=="number"?t.offsetX:0,typeof t.offsetY=="number"?t.offsetY:0]),delete t.offsetX,delete t.offsetY)}function Ev(t){return Je(t)?.seriesType==="gauge"?"detail":"label"}function v6(t){const e=Je(t);return e?f6[e.seriesType]:[]}function g6(t,e){const r=Je(e),a=d6(t),n=dp(a[0]?.[Ev(e)]);Mv(n);const i={show:typeof n.show=="boolean"?n.show:r?u6[r.seriesType]:!1,labelLine:dp(a[0]?.labelLine)};for(const s of h6){const l=n[s];s!=="offset"&&(typeof l=="string"||typeof l=="number")&&(i[s]=l)}const o=n.offset;return Array.isArray(o)&&typeof o[0]=="number"&&typeof o[1]=="number"&&(i.offset=[o[0],o[1]]),i}function m6(t){const e=Je(t);return e?{...p6[e.seriesType],...c6[t]}:{}}function UP(t){return t==null||t===""}function y6(t,e,r){const a=Ai(t??{}),n=Array.isArray(a.series)?a.series:[];if(!Je(e)||n.length===0)return a;const o=Ev(e),{enabled:s,labelLine:l,...u}=r;for(const p of n){if(!p||typeof p!="object")continue;const c=dp(p[o]);Mv(c),s===!0?Object.assign(c,{...m6(e),...c,show:!0}):s===!1&&(c.show=!1);for(const[f,h]of Object.entries(u))UP(h)?delete c[f]:c[f]=h;if(l){const f=dp(p.labelLine);for(const[h,d]of Object.entries(l))UP(d)?delete f[h]:f[h]=d;p.labelLine=f}p[o]=c}return a}function b6(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function k6(t,e){const r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function w6(t,e){const r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function vp(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function gp(t,e){const r=Je(t);if(!r)return e;const a=structuredClone(e),n=b6(a.series);if(n.length===0)return a;const i=Ev(t);for(const l of n){const u=l[i];if(u&&typeof u=="object"&&!Array.isArray(u)){const p={...u};Mv(p),l[i]=p}}if(r.seriesType==="pie")return a.series=n.map(l=>({...l,type:"pie",...t==="doughnutChart"?{radius:l.radius??["40%","70%"]}:{}})),delete a.xAxis,delete a.yAxis,a;if(r.seriesType==="scatter")return a.series=n.map(l=>({...l,type:"scatter"})),a.xAxis=vp(a.xAxis,l=>({...l,type:"value",data:void 0})),a.yAxis=vp(a.yAxis,l=>({...l,type:"value",data:void 0})),a;if(r.seriesType==="radar")return a.series=n.map(l=>({...l,type:"radar"})),a;if(r.seriesType==="funnel")return a.series=n.map(l=>({...l,type:"funnel",sort:"descending"})),a;if(r.seriesType==="gauge")return a.series=n.map(l=>({...l,type:"gauge"})),a;const o=r.orientation==="horizontal",s=r.seriesType==="line"?"line":"bar";return a.xAxis=vp(a.xAxis,l=>k6(l,o)),a.yAxis=vp(a.yAxis,l=>w6(l,o)),a.series=n.map(l=>{const u={...l,type:s};return t==="areaChart"?u.areaStyle=l.areaStyle??{}:delete u.areaStyle,u}),a}function GP(t,e,r){const a=/<svg\b[^>]*>/i.exec(t);if(!a)return t;const n=a[0],i=n.slice(4,-1),s=(/\sstyle\s*=\s*"([^"]*)"/i.exec(i)?.[1]??"").split(";").map(c=>c.trim()).filter(c=>c&&!/^(width|height|display)\s*:/i.test(c)).join(";"),l=i.replace(/\s(width|height|style|viewBox)\s*=\s*"[^"]*"/gi,"").trimEnd(),u=["display:block","width:100%","height:100%",s].filter(Boolean).join(";"),p=`<svg${l} width="100%" height="100%" viewBox="0 0 ${e} ${r}" style="${u}">`;return t.slice(0,a.index)+p+t.slice(a.index+n.length)}function Iv(t){ZN();const e=gp(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("图表 option 非法:需要对象");const r=xn(t.widthMm),a=xn(t.heightMm),n=UO(null,null,{renderer:"svg",ssr:!0,width:r,height:a});try{const i=e.textStyle&&typeof e.textStyle=="object"&&!Array.isArray(e.textStyle)?e.textStyle:void 0,o={...t.fontFamily?{fontFamily:t.fontFamily}:{},...i??{}};return n.setOption({animation:!1,...e,...Object.keys(o).length>0?{textStyle:o}:{}}),GP(n.renderToSVGString(),r,a)}finally{n.dispose()}}function _6(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ov(t){const e=t._chartOption??t.chartOption,r=`<span>${_6(String(t.title??"图表"))}</span>`;if(!e||typeof e!="object"||Array.isArray(e))return r;try{return Iv({key:String(t.key??""),type:String(t.type??""),option:e,widthMm:Number(t.widthMm??0),heightMm:Number(t.heightMm??0),fontFamily:typeof t.fontFamily=="string"?t.fontFamily:void 0})}catch{return r}}const x6="2",WP={chartOption:{kind:"object",label:Zt("echarts.meta.chartOption")},chartDataSource:{kind:"text",label:Zt("echarts.meta.dataSource")},chartCategoryField:{kind:"text",label:Zt("echarts.meta.categoryField")},chartValueFields:{kind:"object",label:Zt("echarts.meta.valueFields")},chartSeriesField:{kind:"text",label:Zt("echarts.meta.seriesField")}},P6={...WP,chartBubble:{kind:"bool",label:Zt("echarts.meta.bubbleSize")}},gs=y2({id:Vi,version:x6,kinds:Es.map(t=>({type:t.type,get label(){return Zt(t.labelKey)},icon:t.icon,fixedHeight:!0,requiredOptionKeys:t.requiredOptionKeys,get notes(){return Zt(t.notesKey)},optionMeta:t.type==="scatterChart"?P6:WP,defaultOptions:e=>em(t.type,e),binding:{bind:(e,r)=>Xg(t.type,e,r)}})),render:{html:Ov,createRenderer:()=>({render:Ov})}});let mp;function ms(t,e){const r=b2(Vi);if(!t&&!e){const i=Pg(gs);return mp=i,i}const a={...gs,designer:t??r?.designer??gs.designer,render:{...gs.render,...r?.render,...e}},n=Pg(a);return mp=n,n}function S6(t){return ms(t)}function T6(t){return ms(void 0,{executorBundle:t})}function C6(){mp?.(),mp=void 0}ms(),ms();const D6=Object.freeze(Object.defineProperty({__proto__:null,CHART_KINDS:Gg,CHART_KIND_DEFINITIONS:Es,CHART_PALETTES:Gp,CHART_PLUGIN:gs,CHART_PLUGIN_ID:Vi,bindChartData:Xg,chartFactoryDefaults:em,configureChartPlugin:hT,createDefaultChartOption:Os,fitSvgRoot:GP,getChartKindDefinition:Je,getChartPalettes:Qg,getChartPluginConfig:Ui,getSampleCategories:Jg,mmToChartPx:xn,normalizeChartOption:gp,registerChartDesigner:S6,registerChartExecutorBundle:T6,registerChartPlugin:ms,renderChartElement:Ov,renderChartToSvg:Iv,resolveChartPanelFields:Wg,uninstallChartPlugin:C6},Symbol.toStringTag,{value:"Module"})),A6={echarts:{"echarts.panel.chart":"图表","echarts.panel.config":"配置","echarts.panel.dataSource":"数据源","echarts.panel.category":"类目","echarts.panel.value":"数值","echarts.panel.series":"系列","echarts.panel.chartType.bar":"柱状","echarts.panel.chartType.barH":"条形","echarts.panel.chartType.line":"折线","echarts.panel.chartType.area":"面积","echarts.panel.chartType.pie":"饼","echarts.panel.chartType.doughnut":"环形","echarts.panel.chartType.scatter":"散点","echarts.panel.chartType.radar":"雷达","echarts.panel.chartType.funnel":"漏斗","echarts.panel.chartType.gauge":"仪表","echarts.panel.dataLabel":"数据标签","echarts.panel.valueLabel":"数值标签","echarts.panel.hint.dataBinding":"数据由模板绑定阶段注入:series/xAxis 的 data 保留 `$data` 占位即可;复杂样式可在模板 JSON 中手写 chartOption。","echarts.panel.field.dimension":"维度字段(每个字段一个维度)","echarts.panel.field.value":"数值字段","echarts.panel.field.valueMulti":"数值字段(多值多系列)","echarts.panel.default":"(默认)","echarts.panel.current":"(当前)","echarts.panel.defaultFirstArray":"(默认:顶层第一个数组)","echarts.panel.error.invalidOption":"图表 option 非法:需要对象","echarts.panel.chartFallback":"图表","echarts.panel.optionDefault":"(默认)","echarts.panel.overflow.default":"默认","echarts.panel.overflow.none":"不处理(显示完整)","echarts.panel.overflow.truncate":"截断","echarts.panel.overflow.break":"换行","echarts.panel.fontWeight.default":"默认","echarts.panel.fontWeight.normal":"常规","echarts.panel.fontWeight.bold":"加粗","echarts.panel.label.distance":"距离","echarts.panel.label.rotate":"旋转(度)","echarts.panel.label.fontSize":"字号","echarts.panel.label.fontWeight":"字重","echarts.panel.label.color":"文字颜色","echarts.panel.label.backgroundColor":"背景色","echarts.panel.label.borderColor":"边框色","echarts.panel.label.borderWidth":"边框宽度","echarts.panel.label.borderRadius":"圆角","echarts.panel.label.padding":"内边距","echarts.panel.label.show":"显示数据标签","echarts.panel.label.content":"内容","echarts.panel.label.formatterTitle":"数据标签内容","echarts.panel.label.formatterCustom":"自定义 / 默认","echarts.panel.label.formatterPlaceholder":"如 {b}: {c}","echarts.panel.label.overflow":"溢出处理","echarts.panel.label.position":"位置","echarts.panel.label.positionTitle":"标签位置","echarts.panel.label.positionDefault":"默认","echarts.panel.label.offset":"偏移 X / Y","echarts.panel.label.style":"样式","echarts.panel.labelLine.fontWeight":"字重","echarts.panel.labelLine":"引导线","echarts.panel.labelLine.show":"显示引导线","echarts.panel.labelLine.length":"引导线长度","echarts.panel.labelLine.length2":"第二段长度","echarts.panel.labelLine.smooth":"平滑引导线","echarts.panel.dataSourceTitle":"数据源","echarts.panel.categoryField":"类目字段","echarts.panel.removeField":"删除该字段","echarts.panel.addField":"+ 添加字段","echarts.panel.seriesField":"系列拆分字段","echarts.panel.seriesFieldHint":"可选,如 region(按值拆成多系列)","echarts.panel.bubbleSize":"气泡大小","echarts.panel.title":"图表标题","echarts.panel.titleHint":"留空不显示标题","echarts.panel.legend":"显示图例","echarts.panel.palette":"配色","echarts.palette.default":"默认蓝","echarts.palette.fresh":"清新绿","echarts.palette.warm":"暖橙红","echarts.palette.purple":"紫灰","echarts.panel.stack":"堆叠显示","echarts.panel.innerRadius":"内径(%)","echarts.panel.paddingTRBL":"内边距 上/右/下/左 (%)","echarts.panel.paddingTop":"上边距","echarts.panel.paddingRight":"右边距(留外置标签)","echarts.panel.paddingBottom":"下边距","echarts.panel.paddingLeft":"左边距","echarts.panel.radius":"半径(%)","echarts.panel.minMax":"最小 / 最大值","echarts.panel.group":"图表","echarts.series.typeNames.bar":"柱状图","echarts.series.typeNames.barH":"条形图","echarts.series.typeNames.line":"折线图","echarts.series.typeNames.area":"面积图","echarts.series.typeNames.pie":"饼图","echarts.series.typeNames.doughnut":"环形图","echarts.series.typeNames.scatter":"散点图","echarts.series.typeNames.radar":"雷达图","echarts.series.typeNames.funnel":"漏斗图","echarts.series.typeNames.gauge":"仪表盘","echarts.label.formatter.value":"数值","echarts.label.formatter.nameValue":"名称: 数值","echarts.label.formatter.name":"名称","echarts.label.formatter.percent":"百分比","echarts.label.position.bar.top":"顶部","echarts.label.position.bar.inside":"内部","echarts.label.position.bar.insideTop":"内部顶端","echarts.label.position.bar.bottom":"底部","echarts.label.position.bar.insideBottom":"内部底端","echarts.label.position.bar.right":"右侧","echarts.label.position.bar.left":"左侧","echarts.label.position.bar.middle":"居中","echarts.label.position.line.top":"顶部","echarts.label.position.line.bottom":"底部","echarts.label.position.line.inside":"内部","echarts.label.position.line.left":"左侧","echarts.label.position.line.right":"右侧","echarts.label.position.pie.outside":"外侧","echarts.label.position.pie.inside":"内部","echarts.label.position.pie.center":"中心","echarts.label.position.scatter.top":"顶部","echarts.label.position.scatter.bottom":"底部","echarts.label.position.scatter.left":"左侧","echarts.label.position.scatter.right":"右侧","echarts.label.position.scatter.inside":"内部","echarts.label.position.radar.top":"顶部","echarts.label.position.radar.bottom":"底部","echarts.label.position.radar.left":"左侧","echarts.label.position.radar.right":"右侧","echarts.label.position.radar.inside":"内部","echarts.label.position.funnel.outer":"外侧","echarts.label.position.funnel.inner":"内部","echarts.label.position.funnel.left":"左侧","echarts.label.position.funnel.right":"右侧","echarts.label.position.funnel.top":"顶部","echarts.label.position.funnel.bottom":"底部","echarts.meta.chartOption":"图表 option","echarts.meta.dataSource":"数据源","echarts.meta.categoryField":"类目字段","echarts.meta.valueFields":"数值字段","echarts.meta.seriesField":"系列拆分字段","echarts.meta.bubbleSize":"气泡大小","echarts.notes.bar":"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight","echarts.notes.barH":"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位","echarts.notes.line":"折线图:类目 + 多个数值字段;不写 areaStyle","echarts.notes.area":"面积图:折线 + series[].areaStyle;其余同折线图","echarts.notes.pie":"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段","echarts.notes.doughnut":"环形图:饼图 + radius:[内径,外径];内径由面板配置","echarts.notes.scatter":"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小","echarts.notes.radar":"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)","echarts.notes.funnel":"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)","echarts.notes.gauge":"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max"}},L6={echarts:{"echarts.panel.chart":"Chart","echarts.panel.config":"Config","echarts.panel.dataSource":"Data source","echarts.panel.category":"Category","echarts.panel.value":"Value","echarts.panel.series":"Series","echarts.panel.chartType.bar":"Bar","echarts.panel.chartType.barH":"Horizontal bar","echarts.panel.chartType.line":"Line","echarts.panel.chartType.area":"Area","echarts.panel.chartType.pie":"Pie","echarts.panel.chartType.doughnut":"Doughnut","echarts.panel.chartType.scatter":"Scatter","echarts.panel.chartType.radar":"Radar","echarts.panel.chartType.funnel":"Funnel","echarts.panel.chartType.gauge":"Gauge","echarts.panel.dataLabel":"Data label","echarts.panel.valueLabel":"Value label","echarts.panel.hint.dataBinding":"Data is injected at template binding; keep the `$data` placeholder in series/xAxis data; advanced styles can be written in chartOption in the template JSON.","echarts.panel.field.dimension":"Dimension fields (one per dimension)","echarts.panel.field.value":"Value fields","echarts.panel.field.valueMulti":"Value fields (multiple values, multiple series)","echarts.panel.default":"(default)","echarts.panel.current":"(current)","echarts.panel.defaultFirstArray":"(default: first top-level array)","echarts.panel.error.invalidOption":"Invalid chart option: expected an object","echarts.panel.chartFallback":"Chart","echarts.panel.optionDefault":"(default)","echarts.panel.overflow.default":"Default","echarts.panel.overflow.none":"None (show full)","echarts.panel.overflow.truncate":"Truncate","echarts.panel.overflow.break":"Wrap","echarts.panel.fontWeight.default":"Default","echarts.panel.fontWeight.normal":"Regular","echarts.panel.fontWeight.bold":"Bold","echarts.panel.label.distance":"Distance","echarts.panel.label.rotate":"Rotation (deg)","echarts.panel.label.fontSize":"Font size","echarts.panel.label.fontWeight":"Font weight","echarts.panel.label.color":"Text color","echarts.panel.label.backgroundColor":"Background color","echarts.panel.label.borderColor":"Border color","echarts.panel.label.borderWidth":"Border width","echarts.panel.label.borderRadius":"Radius","echarts.panel.label.padding":"Padding","echarts.panel.label.show":"Show data labels","echarts.panel.label.content":"Content","echarts.panel.label.formatterTitle":"Data label content","echarts.panel.label.formatterCustom":"Custom / Default","echarts.panel.label.formatterPlaceholder":"e.g. {b}: {c}","echarts.panel.label.overflow":"Overflow","echarts.panel.label.position":"Position","echarts.panel.label.positionTitle":"Label position","echarts.panel.label.positionDefault":"Default","echarts.panel.label.offset":"Offset X / Y","echarts.panel.label.style":"Style","echarts.panel.labelLine.fontWeight":"Font weight","echarts.panel.labelLine":"Label line","echarts.panel.labelLine.show":"Show label line","echarts.panel.labelLine.length":"Label line length","echarts.panel.labelLine.length2":"Second segment length","echarts.panel.labelLine.smooth":"Smooth label line","echarts.panel.dataSourceTitle":"Data source","echarts.panel.categoryField":"Category field","echarts.panel.removeField":"Remove this field","echarts.panel.addField":"+ Add field","echarts.panel.seriesField":"Series split field","echarts.panel.seriesFieldHint":"Optional, e.g. region (splits into series by value)","echarts.panel.bubbleSize":"Bubble size","echarts.panel.title":"Chart title","echarts.panel.titleHint":"Leave empty to hide the title","echarts.panel.legend":"Show legend","echarts.panel.palette":"Color palette","echarts.palette.default":"Default blue","echarts.palette.fresh":"Fresh green","echarts.palette.warm":"Warm orange-red","echarts.palette.purple":"Purple grey","echarts.panel.stack":"Stacked","echarts.panel.innerRadius":"Inner radius (%)","echarts.panel.paddingTRBL":"Padding top/right/bottom/left (%)","echarts.panel.paddingTop":"Top padding","echarts.panel.paddingRight":"Right padding (for outer labels)","echarts.panel.paddingBottom":"Bottom padding","echarts.panel.paddingLeft":"Left padding","echarts.panel.radius":"Radius (%)","echarts.panel.minMax":"Min / max","echarts.panel.group":"Chart","echarts.series.typeNames.bar":"Bar chart","echarts.series.typeNames.barH":"Horizontal bar chart","echarts.series.typeNames.line":"Line chart","echarts.series.typeNames.area":"Area chart","echarts.series.typeNames.pie":"Pie chart","echarts.series.typeNames.doughnut":"Doughnut chart","echarts.series.typeNames.scatter":"Scatter chart","echarts.series.typeNames.radar":"Radar chart","echarts.series.typeNames.funnel":"Funnel chart","echarts.series.typeNames.gauge":"Gauge chart","echarts.label.formatter.value":"Value","echarts.label.formatter.nameValue":"Name: Value","echarts.label.formatter.name":"Name","echarts.label.formatter.percent":"Percentage","echarts.label.position.bar.top":"Top","echarts.label.position.bar.inside":"Inside","echarts.label.position.bar.insideTop":"Inside top","echarts.label.position.bar.bottom":"Bottom","echarts.label.position.bar.insideBottom":"Inside bottom","echarts.label.position.bar.right":"Right","echarts.label.position.bar.left":"Left","echarts.label.position.bar.middle":"Center","echarts.label.position.line.top":"Top","echarts.label.position.line.bottom":"Bottom","echarts.label.position.line.inside":"Inside","echarts.label.position.line.left":"Left","echarts.label.position.line.right":"Right","echarts.label.position.pie.outside":"Outside","echarts.label.position.pie.inside":"Inside","echarts.label.position.pie.center":"Center","echarts.label.position.scatter.top":"Top","echarts.label.position.scatter.bottom":"Bottom","echarts.label.position.scatter.left":"Left","echarts.label.position.scatter.right":"Right","echarts.label.position.scatter.inside":"Inside","echarts.label.position.radar.top":"Top","echarts.label.position.radar.bottom":"Bottom","echarts.label.position.radar.left":"Left","echarts.label.position.radar.right":"Right","echarts.label.position.radar.inside":"Inside","echarts.label.position.funnel.outer":"Outside","echarts.label.position.funnel.inner":"Inside","echarts.label.position.funnel.left":"Left","echarts.label.position.funnel.right":"Right","echarts.label.position.funnel.top":"Top","echarts.label.position.funnel.bottom":"Bottom","echarts.meta.chartOption":"Chart option","echarts.meta.dataSource":"Data source","echarts.meta.categoryField":"Category field","echarts.meta.valueFields":"Value fields","echarts.meta.seriesField":"Series split field","echarts.meta.bubbleSize":"Bubble size","echarts.notes.bar":"Bar chart: category + multiple value fields, one series per field; write the $data placeholder in series[].data; fixed height, autoHeight is forbidden","echarts.notes.barH":"Horizontal bar: xAxis is the value axis, yAxis is the category axis; write the $data placeholder in yAxis.data for categories","echarts.notes.line":"Line chart: category + multiple value fields; do not write areaStyle","echarts.notes.area":"Area chart: line + series[].areaStyle; otherwise same as the line chart","echarts.notes.pie":"Pie chart: category + the first value field produce { name, value }; only one value field is needed","echarts.notes.doughnut":"Doughnut: pie + radius:[inner, outer]; the inner radius is configured in the panel","echarts.notes.scatter":"Scatter: the category field is x, the first value field is y; when chartBubble is on, the second value field is the point size","echarts.notes.radar":"Radar: each value field is a dimension (radar.indicator), each data row is a series (the category field is the series name); the radius is written by the panel to radar.radius (%, default 75)","echarts.notes.funnel":"Funnel: category + the first value field, sorted descending; the four insets are written by the panel to series.left/right/top/bottom (%, reserve room on the right for outer labels)","echarts.notes.gauge":"Gauge: the first value field of the first data row is the pointer value; min/max are written by the panel to series[0].min/max"}},M6={echarts:{"echarts.panel.chart":"แผนภูมิ","echarts.panel.config":"การกำหนดค่า","echarts.panel.dataSource":"แหล่งข้อมูล","echarts.panel.category":"หมวดหมู่","echarts.panel.value":"ค่า","echarts.panel.series":"ชุดข้อมูล","echarts.panel.chartType.bar":"แท่ง","echarts.panel.chartType.barH":"แท่งแนวนอน","echarts.panel.chartType.line":"เส้น","echarts.panel.chartType.area":"พื้นที่","echarts.panel.chartType.pie":"วงกลม","echarts.panel.chartType.doughnut":"วงกลมวงแหวน","echarts.panel.chartType.scatter":"จุดกระจาย","echarts.panel.chartType.radar":"เรดาร์","echarts.panel.chartType.funnel":"ช่องทาง","echarts.panel.chartType.gauge":"เกจวัด","echarts.panel.dataLabel":"ป้ายข้อมูล","echarts.panel.valueLabel":"ป้ายค่า","echarts.panel.hint.dataBinding":"ข้อมูลถูกแทรกตอนผูกเทมเพลต; คงตัวแทน `$data` ไว้ในข้อมูล series/xAxis; สามารถเขียนสไตล์ขั้นสูงใน chartOption ของ JSON เทมเพลตได้","echarts.panel.field.dimension":"ฟิลด์มิติ (หนึ่งฟิลด์ต่อหนึ่งมิติ)","echarts.panel.field.value":"ฟิลด์ค่า","echarts.panel.field.valueMulti":"ฟิลด์ค่า (หลายค่า หลายชุดข้อมูล)","echarts.panel.default":"(ค่าเริ่มต้น)","echarts.panel.current":"(ปัจจุบัน)","echarts.panel.defaultFirstArray":"(ค่าเริ่มต้น: อาร์เรย์ระดับบนตัวแรก)","echarts.panel.error.invalidOption":"ตัวเลือกแผนภูมิไม่ถูกต้อง: คาดว่าเป็นอ็อบเจกต์","echarts.panel.chartFallback":"แผนภูมิ","echarts.panel.optionDefault":"(ค่าเริ่มต้น)","echarts.panel.overflow.default":"ค่าเริ่มต้น","echarts.panel.overflow.none":"ไม่มี (แสดงทั้งหมด)","echarts.panel.overflow.truncate":"ตัดทิ้ง","echarts.panel.overflow.break":"ตัดคำ","echarts.panel.fontWeight.default":"ค่าเริ่มต้น","echarts.panel.fontWeight.normal":"ปกติ","echarts.panel.fontWeight.bold":"หนา","echarts.panel.label.distance":"ระยะห่าง","echarts.panel.label.rotate":"การหมุน (องศา)","echarts.panel.label.fontSize":"ขนาดฟอนต์","echarts.panel.label.fontWeight":"น้ำหนักฟอนต์","echarts.panel.label.color":"สีข้อความ","echarts.panel.label.backgroundColor":"สีพื้นหลัง","echarts.panel.label.borderColor":"สีเส้นขอบ","echarts.panel.label.borderWidth":"ความกว้างเส้นขอบ","echarts.panel.label.borderRadius":"รัศมี","echarts.panel.label.padding":"ระยะภายใน","echarts.panel.label.show":"แสดงป้ายข้อมูล","echarts.panel.label.content":"เนื้อหา","echarts.panel.label.formatterTitle":"เนื้อหาป้ายข้อมูล","echarts.panel.label.formatterCustom":"กำหนดเอง / ค่าเริ่มต้น","echarts.panel.label.formatterPlaceholder":"เช่น {b}: {c}","echarts.panel.label.overflow":"ล้น","echarts.panel.label.position":"ตำแหน่ง","echarts.panel.label.positionTitle":"ตำแหน่งป้าย","echarts.panel.label.positionDefault":"ค่าเริ่มต้น","echarts.panel.label.offset":"ออฟเซ็ต X / Y","echarts.panel.label.style":"สไตล์","echarts.panel.labelLine.fontWeight":"น้ำหนักฟอนต์","echarts.panel.labelLine":"เส้นป้าย","echarts.panel.labelLine.show":"แสดงเส้นป้าย","echarts.panel.labelLine.length":"ความยาวเส้นป้าย","echarts.panel.labelLine.length2":"ความยาวท่อนที่สอง","echarts.panel.labelLine.smooth":"เส้นป้ายโค้ง","echarts.panel.dataSourceTitle":"แหล่งข้อมูล","echarts.panel.categoryField":"ฟิลด์หมวดหมู่","echarts.panel.removeField":"ลบฟิลด์นี้","echarts.panel.addField":"+ เพิ่มฟิลด์","echarts.panel.seriesField":"ฟิลด์แยกชุดข้อมูล","echarts.panel.seriesFieldHint":"ไม่บังคับ เช่น region (แยกเป็นชุดข้อมูลตามค่า)","echarts.panel.bubbleSize":"ขนาดฟอง","echarts.panel.title":"ชื่อแผนภูมิ","echarts.panel.titleHint":"เว้นว่างเพื่อซ่อนชื่อ","echarts.panel.legend":"แสดงคำอธิบาย","echarts.panel.palette":"ชุดสี","echarts.palette.default":"สีน้ำเงินเริ่มต้น","echarts.palette.fresh":"สีเขียวสดชื่น","echarts.palette.warm":"สีส้มแดงอบอุ่น","echarts.palette.purple":"สีมูฟเทา","echarts.panel.stack":"ซ้อนกัน","echarts.panel.innerRadius":"รัศมีใน (%)","echarts.panel.paddingTRBL":"ระยะบน/ขวา/ล่าง/ซ้าย (%)","echarts.panel.paddingTop":"ระยะบน","echarts.panel.paddingRight":"ระยะขวา (สำหรับป้ายด้านนอก)","echarts.panel.paddingBottom":"ระยะล่าง","echarts.panel.paddingLeft":"ระยะซ้าย","echarts.panel.radius":"รัศมี (%)","echarts.panel.minMax":"ต่ำสุด / สูงสุด","echarts.panel.group":"แผนภูมิ","echarts.series.typeNames.bar":"แผนภูมิแท่ง","echarts.series.typeNames.barH":"แผนภูมิแท่งแนวนอน","echarts.series.typeNames.line":"แผนภูมิเส้น","echarts.series.typeNames.area":"แผนภูมิพื้นที่","echarts.series.typeNames.pie":"แผนภูมิวงกลม","echarts.series.typeNames.doughnut":"แผนภูมิวงกลมวงแหวน","echarts.series.typeNames.scatter":"แผนภูมิกระจาย","echarts.series.typeNames.radar":"แผนภูมิเรดาร์","echarts.series.typeNames.funnel":"แผนภูมิช่องทาง","echarts.series.typeNames.gauge":"แผนภูมิเกจวัด","echarts.label.formatter.value":"ค่า","echarts.label.formatter.nameValue":"ชื่อ: ค่า","echarts.label.formatter.name":"ชื่อ","echarts.label.formatter.percent":"เปอร์เซ็นต์","echarts.label.position.bar.top":"บน","echarts.label.position.bar.inside":"ด้านใน","echarts.label.position.bar.insideTop":"ด้านในบน","echarts.label.position.bar.bottom":"ล่าง","echarts.label.position.bar.insideBottom":"ด้านในล่าง","echarts.label.position.bar.right":"ขวา","echarts.label.position.bar.left":"ซ้าย","echarts.label.position.bar.middle":"กลาง","echarts.label.position.line.top":"บน","echarts.label.position.line.bottom":"ล่าง","echarts.label.position.line.inside":"ด้านใน","echarts.label.position.line.left":"ซ้าย","echarts.label.position.line.right":"ขวา","echarts.label.position.pie.outside":"ด้านนอก","echarts.label.position.pie.inside":"ด้านใน","echarts.label.position.pie.center":"กลาง","echarts.label.position.scatter.top":"บน","echarts.label.position.scatter.bottom":"ล่าง","echarts.label.position.scatter.left":"ซ้าย","echarts.label.position.scatter.right":"ขวา","echarts.label.position.scatter.inside":"ด้านใน","echarts.label.position.radar.top":"บน","echarts.label.position.radar.bottom":"ล่าง","echarts.label.position.radar.left":"ซ้าย","echarts.label.position.radar.right":"ขวา","echarts.label.position.radar.inside":"ด้านใน","echarts.label.position.funnel.outer":"ด้านนอก","echarts.label.position.funnel.inner":"ด้านใน","echarts.label.position.funnel.left":"ซ้าย","echarts.label.position.funnel.right":"ขวา","echarts.label.position.funnel.top":"บน","echarts.label.position.funnel.bottom":"ล่าง","echarts.meta.chartOption":"ตัวเลือกแผนภูมิ","echarts.meta.dataSource":"แหล่งข้อมูล","echarts.meta.categoryField":"ฟิลด์หมวดหมู่","echarts.meta.valueFields":"ฟิลด์ค่า","echarts.meta.seriesField":"ฟิลด์แยกชุดข้อมูล","echarts.meta.bubbleSize":"ขนาดฟอง","echarts.notes.bar":"แผนภูมิแท่ง: หมวดหมู่ + ฟิลด์ค่าหลายตัว หนึ่งฟิลด์ต่อหนึ่ง series; เขียนตัวแทน $data ใน series[].data; ความสูงคงที่ ห้ามใช้ autoHeight","echarts.notes.barH":"แท่งแนวนอน: xAxis เป็นแกนค่า yAxis เป็นแกนหมวดหมู่; เขียนตัวแทน $data ใน yAxis.data สำหรับหมวดหมู่","echarts.notes.line":"แผนภูมิเส้น: หมวดหมู่ + ฟิลด์ค่าหลายตัว; ไม่เขียน areaStyle","echarts.notes.area":"แผนภูมิพื้นที่: เส้น + series[].areaStyle; นอกนั้นเหมือนแผนภูมิเส้น","echarts.notes.pie":"แผนภูมิวงกลม: หมวดหมู่ + ฟิลด์ค่าตัวแรกสร้าง { name, value }; ต้องการเพียงหนึ่งฟิลด์ค่า","echarts.notes.doughnut":"วงกลมวงแหวน: วงกลม + radius:[รัศมีใน, รัศมีนอก]; รัศมีในกำหนดในแผง","echarts.notes.scatter":"แผนภูมิกระจาย: ฟิลด์หมวดหมู่เป็น x ฟิลด์ค่าตัวแรกเป็น y; เมื่อเปิด chartBubble ฟิลด์ค่าตัวที่สองเป็นขนาดจุด","echarts.notes.radar":"แผนภูมิเรดาร์: ฟิลด์ค่าทุกตัวคือหนึ่งมิติ (radar.indicator) ข้อมูลแต่ละแถวคือหนึ่ง series (ฟิลด์หมวดหมู่เป็นชื่อ series); รัศมีเขียนโดยแผงไปที่ radar.radius (%, ค่าเริ่มต้น 75)","echarts.notes.funnel":"แผนภูมิช่องทาง: หมวดหมู่ + ฟิลด์ค่าตัวแรก เรียงตามค่าลงมา; ระยะภายในสี่ด้านเขียนโดยแผงไปที่ series.left/right/top/bottom (%, เผื่อพื้นที่ด้านขวาสำหรับป้ายด้านนอก)","echarts.notes.gauge":"แผนภูมิเกจวัด: ฟิลด์ค่าตัวแรกของแถวข้อมูลแรกเป็นค่าผลักดัน; min/max เขียนโดยแผงไปที่ series[0].min/max"}},$P=Symbol.for("worm-print-platform.element-ui-registry.v1"),YP=globalThis;function KP(){const t=YP[$P];if(t)return t;const e={entries:new Map,listeners:new Set,nextSeq:0};return YP[$P]=e,e}function XP(){for(const t of[...KP().listeners])try{t()}catch{}}function qP(t){if(!t||typeof t!="object")throw new Error("registerElementUI: 需要 ElementUI 对象");if(!Array.isArray(t.types)||t.types.length===0)throw new Error("registerElementUI: types 必须是非空数组");for(const e of t.types)if(!e||typeof e!="string")throw new Error("registerElementUI: types 内每项必须是非空字符串");if(typeof t.renderCanvas!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 缺少 renderCanvas`);if(t.renderProperty!==void 0&&typeof t.renderProperty!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 的 renderProperty 必须是函数`);if(t.locales!==void 0){if(typeof t.locales!="object"||t.locales===null)throw new Error("registerElementUI: locales 必须是对象");const e=`${t.i18nId??t.types[0]}.`;for(const r of Object.values(t.locales)){if(typeof r!="object"||r===null)throw new Error("registerElementUI: locales 的每个语言包必须是对象");for(const a of Object.keys(r))if(!a.startsWith(e))throw new Error(`registerElementUI: 语言包键必须以 "${e}" 开头,收到 "${a}"`)}}}function E6(t){return qP(t),t}function I6(t){qP(t);const e=KP(),r=e.nextSeq++,a=t.i18nId??t.types[0],n=t.locales?Object.entries(t.locales).map(([i,o])=>YS(i,a,o)):[];for(const i of t.types)e.entries.set(i,{ui:t,seq:r,disposeLocales:n});return XP(),()=>{for(const o of n)o();let i=!1;for(const o of t.types)e.entries.get(o)?.ui===t&&(e.entries.delete(o),i=!0);i&&XP()}}function it(t,e={},r=[]){return{tag:t,props:e,children:r}}var jP="http://www.w3.org/2000/svg",O6=new Set(["draggable","contenteditable","spellcheck"]),R6=new Set(["indeterminate"]);function B6(t){return t==="svg"||t==="path"||t==="circle"||t==="rect"||t==="line"||t==="g"}function N6(t){return t instanceof Element&&t.namespaceURI===jP}function Rv(t,e){if(typeof t=="string"){const o=document.createTextNode(t);return e.appendChild(o),o}if(t instanceof Node)return e.appendChild(t),t;const{tag:r,props:a,children:n}=t,i=B6(r)||N6(e)?document.createElementNS(jP,r):document.createElement(r);for(const[o,s]of Object.entries(a))if(!(s==null||s===!1))if(o==="class")i.setAttribute("class",String(s));else if(o==="style")typeof s=="string"?i.style.cssText=s:Object.assign(i.style,s);else if(o==="html")i.innerHTML=String(s);else if(o==="text")i.textContent=String(s);else if(o.startsWith("on")&&typeof s=="function")i.addEventListener(o.slice(2).toLowerCase(),s);else if(o==="dataset")for(const[l,u]of Object.entries(s))i.dataset[l]=u;else R6.has(o)?i[o]=!0:typeof s=="boolean"?s&&i.setAttribute(o,O6.has(o)?"true":""):i.setAttribute(o,String(s));for(const o of n)Rv(o,i);return e.appendChild(i),i}var Pn=null;function Bv(t){const e=/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t.trim());if(!e)return null;const r=e[1],a=r.length===3?r.split("").map(n=>n+n).join(""):r;return{r:Number.parseInt(a.slice(0,2),16),g:Number.parseInt(a.slice(2,4),16),b:Number.parseInt(a.slice(4,6),16)}}function Nv(t){const e=Bv(t);return e?ZP(e):"#000000"}function ZP({r:t,g:e,b:r}){return`#${[t,e,r].map(a=>Math.round(ys(a/255)*255).toString(16).padStart(2,"0")).join("")}`}function F6(t,e,r){const a=t/255,n=e/255,i=r/255,o=Math.max(a,n,i),s=Math.min(a,n,i),l=o-s;let u=0;return l!==0&&(o===a?u=(n-i)/l%6:o===n?u=(i-a)/l+2:u=(a-n)/l+4,u*=60,u<0&&(u+=360)),{h:u,s:o===0?0:l/o,v:o}}function z6(t,e,r){const a=r*e,n=(t%360+360)%360/60,i=a*(1-Math.abs(n%2-1)),[o,s,l]=n<1?[a,i,0]:n<2?[i,a,0]:n<3?[0,a,i]:n<4?[0,i,a]:n<5?[i,0,a]:[a,0,i],u=r-a;return{r:(o+u)*255,g:(s+u)*255,b:(l+u)*255}}function H6(t){return((Number.isFinite(t)?t:0)%360+360)%360}function ys(t){return Math.min(1,Math.max(0,Number.isFinite(t)?t:0))}function V6(t){const e=t.translator??Zt,r=t.title??e("colorPicker.pickColor");return it("button",{type:"button",class:`preset-color-trigger${t.triggerClass?` ${t.triggerClass}`:""}`,"aria-expanded":"false","aria-haspopup":"dialog",title:r,onClick:a=>{const n=a.currentTarget??a.target,i=n.getRootNode();if(!!Pn&&Pn.root===i&&Pn.title===r&&Pn.trigger===n){bs();return}bs(),U6(n,t,e)}},[it("span",{class:"preset-color-swatch",style:t.value?{background:t.value}:{background:"transparent"}})])}function bs(){const t=Pn;t&&(Pn=null,t.teardowns.forEach(e=>e()),t.trigger.setAttribute("aria-expanded","false"),t.panel.remove())}function U6(t,e,r){const a=t.getRootNode(),n=a instanceof ShadowRoot?a:document.body,i={root:a,title:e.title??r("colorPicker.pickColor"),trigger:t,panel:null,clearable:e.clearable!==!1,onChange:e.onChange,model:e.value||void 0,hue:0,saturation:0,value_:0,hexText:"",dragging:!1,current:null,hex:null,area:null,handle:null,hueRange:null,clearBtn:null,translator:r,items:[],teardowns:[]};e.value&&zv(i,e.value)?i.hexText=Nv(e.value).toUpperCase():i.hexText=e.value?String(e.value):"",i.panel=Rv(Y6(i),n),i.current=i.panel.querySelector(".picker-current"),i.hex=i.panel.querySelector(".picker-hex"),i.area=i.panel.querySelector(".picker-area"),i.handle=i.panel.querySelector(".picker-handle"),i.hueRange=i.panel.querySelector(".picker-hue"),i.clearBtn=i.panel.querySelector(".picker-clear"),i.items=Array.from(i.panel.querySelectorAll(".preset-color-item")).map((o,s)=>({el:o,color:Sg[s]})),yp(i),G6(i),W6(i),Pn=i,t.setAttribute("aria-expanded","true")}function G6(t){const e=t.trigger.getBoundingClientRect(),r=190,a=t.panel.offsetHeight||216,n=8,i=Math.max(n,Math.min(e.left,window.innerWidth-r-n)),o=e.bottom+6,s=o+a>window.innerHeight-n?Math.max(n,e.top-a-6):o;t.panel.style.left=`${i}px`,t.panel.style.top=`${s}px`}function W6(t){const e=n=>{const i=$6(n);i.includes(t.trigger)||i.includes(t.panel)||bs()},r=n=>{n.key==="Escape"&&bs()},a=()=>bs();document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",r),window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),t.root.addEventListener("scroll",a,!0),t.teardowns.push(()=>document.removeEventListener("pointerdown",e,!0),()=>document.removeEventListener("keydown",r),()=>window.removeEventListener("scroll",a,!0),()=>window.removeEventListener("resize",a),()=>t.root.removeEventListener("scroll",a,!0))}function $6(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function Y6(t){const e=t.translator;return it("div",{class:"preset-color-panel",role:"dialog","aria-label":e("colorPicker.pickColor"),style:{position:"fixed"},onPointerdown:r=>r.stopPropagation()},[it("div",{class:"picker-preview"},[it("span",{class:"picker-current"}),it("input",{class:"picker-hex",type:"text",maxlength:7,spellcheck:"false","aria-label":e("colorPicker.hexValue"),onInput:r=>X6(t,r.target.value)})]),it("div",{class:"picker-area","aria-label":e("colorPicker.customColor"),tabindex:0,onPointerdown:r=>q6(t,r),onKeydown:r=>j6(t,r)},[it("span",{class:"picker-handle"})]),it("input",{class:"picker-hue",type:"range",min:0,max:360,step:1,"aria-label":e("colorPicker.hue"),onInput:r=>Z6(t,Number(r.target.value)),onChange:()=>Hv(t)}),it("div",{class:"picker-heading"},[it("span",{text:e("colorPicker.commonColors")}),t.clearable?it("button",{type:"button",class:"picker-clear",title:e("colorPicker.clear"),onClick:()=>bp(t,void 0)},[it("svg",{viewBox:"0 0 16 16",width:12,height:12,"aria-hidden":"true"},[it("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round",fill:"none"})]),e("colorPicker.clearShort")]):""].filter(Boolean)),it("div",{class:"preset-color-grid"},Sg.map(r=>it("button",{type:"button",class:"preset-color-item",style:{background:r},title:r,"aria-label":r,onClick:()=>K6(t,r)})))])}function Fv(t){return ZP(z6(t.hue,t.saturation,t.value_))}function yp(t){const e=Fv(t);t.hex.value!==t.hexText&&(t.hex.value=t.hexText),t.current.className=t.model?"picker-current":"picker-current is-empty",t.model?t.current.style.background=e:t.current.style.removeProperty("background"),t.area.style.setProperty("--picker-hue",`${Math.round(t.hue)}deg`),t.handle.style.left=`${t.saturation*100}%`,t.handle.style.top=`${(1-t.value_)*100}%`,t.handle.style.background=e;const r=String(Math.round(t.hue));t.hueRange.value!==r&&(t.hueRange.value=r),t.clearBtn&&(t.clearBtn.disabled=!t.model);for(const a of t.items)a.el.className=t.model&&a.color.toLowerCase()===t.model.toLowerCase()?"preset-color-item active":"preset-color-item"}function zv(t,e){const r=Bv(e);if(!r)return!1;const a=F6(r.r,r.g,r.b);return t.hue=a.h,t.saturation=a.s,t.value_=a.v,t.hexText=Nv(e).toUpperCase(),!0}function Mi(t,e,r,a){t.hue=H6(e),t.saturation=ys(r),t.value_=ys(a),t.hexText=Fv(t).toUpperCase(),yp(t)}function Hv(t){const e=Fv(t);t.model=e,yp(t),t.onChange(e)}function bp(t,e){t.model=e,e||(t.hexText=""),yp(t),t.onChange(e)}function K6(t,e){zv(t,e),bp(t,e)}function X6(t,e){const r=e.trim();if(!r){t.clearable&&bp(t,void 0);return}Bv(r)&&(zv(t,r),bp(t,Nv(r)))}function q6(t,e){t.dragging=!0,QP(t,e);const r=n=>{t.dragging&&QP(t,n)},a=()=>{t.dragging&&(t.dragging=!1,document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",a),document.removeEventListener("pointercancel",a),Hv(t))};document.addEventListener("pointermove",r),document.addEventListener("pointerup",a),document.addEventListener("pointercancel",a)}function QP(t,e){const r=t.area.getBoundingClientRect();if(!r.width||!r.height)return;const a=ys((e.clientX-r.left)/r.width),n=ys(1-(e.clientY-r.top)/r.height);Mi(t,t.hue,a,n)}function j6(t,e){const r=e.shiftKey?.1:.02;let a=!0;e.key==="ArrowLeft"?Mi(t,t.hue,t.saturation-r,t.value_):e.key==="ArrowRight"?Mi(t,t.hue,t.saturation+r,t.value_):e.key==="ArrowUp"?Mi(t,t.hue,t.saturation,t.value_+r):e.key==="ArrowDown"?Mi(t,t.hue,t.saturation,t.value_-r):a=!1,a&&(e.preventDefault(),Hv(t))}function Z6(t,e){Mi(t,e,t.saturation,t.value_)}let kp=Zt;const X=(t,e)=>kp(t,e);function Q6(t,e){const r=kp;kp=t??Zt;try{return e()}finally{kp=r}}const JP="width:100%;height:100%;min-width:0;min-height:0;pointer-events:none",J6=[".echarts-canvas-element{overflow:hidden}",".echarts-field-row{display:flex;gap:6px;align-items:center}",".echarts-field-row>.pd-input{flex:1;min-width:0}",".echarts-field-row>.pd-button{flex:none}",".echarts-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:26px;min-height:26px;padding:3px 6px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);color:inherit;font:inherit;box-sizing:border-box;cursor:pointer;text-align:left}",".echarts-dropdown-trigger:hover{border-color:var(--pd-text-faint,#b4b9c4)}",'.echarts-dropdown-trigger[aria-expanded="true"]{border-color:var(--pd-accent,#165dff);box-shadow:0 0 0 2px rgb(22 93 255 / 12%)}',".echarts-dropdown-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",".echarts-dropdown-arrow{flex:none;color:var(--pd-text-muted,#909399);font-size:10px;transition:transform .14s}",'.echarts-dropdown-trigger[aria-expanded="true"] .echarts-dropdown-arrow{transform:rotate(180deg)}',".echarts-dropdown-panel{position:fixed;z-index:1200;max-height:240px;overflow:auto;padding:3px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);box-shadow:0 6px 18px rgb(0 0 0 / 14%);box-sizing:border-box}",".echarts-dropdown-option{padding:5px 8px;border-radius:4px;cursor:pointer;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",".echarts-dropdown-option:hover{background:var(--pd-accent-soft,rgb(22 93 255 / 9%))}",".echarts-dropdown-option.is-active{background:var(--pd-accent-soft,rgb(22 93 255 / 9%));color:var(--pd-accent,#165dff)}",".echarts-label-group{margin-top:8px;border-top:1px solid var(--pd-border,#e5e7eb);padding-top:8px}",".echarts-label-group>summary{display:flex;align-items:center;cursor:pointer;list-style:none;font-size:12px;font-weight:600}",".echarts-label-summary>.pd-field{flex:1;margin:0;font-weight:400}",".echarts-label-sub{font-size:11px;color:var(--pd-text-secondary,#6b7280);margin:8px 0 4px}"].join(""),eF=["chartOption","chartDataSource","chartCategoryField","chartValueFields","chartSeriesField","chartBubble"],tF=["图表","echarts","option","配置","数据源","类目","数值","系列","柱状","条形","折线","面积","饼","环形","散点","雷达","漏斗","仪表","数据标签","数值标签","label"],rF=()=>X("echarts.panel.hint.dataBinding");function aF(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Vv(t){return t.printElementType?.type??""}function eS(t){const e=t.options.chartOption;return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}function Le(t){const e=eS(t);return Ai(e??Os(Vv(t)))}function nF(t){const e=t?.options;if(!e||typeof e!="object")return!1;const r=e;return eF.some(a=>r[a]!==void 0)}function vt(t,e,r,a={}){t.update({chartOption:gp(e,r),...a})}function wp(t){const e=t.options.chartValueFields;return Array.isArray(e)?e.map(String):[]}function iF(t){switch(t?.seriesType){case"pie":case"funnel":case"gauge":return 1;case"scatter":return 2;default:return 8}}function oF(t,e){return t?.seriesType==="radar"?X("echarts.panel.field.dimension"):X(e===1?"echarts.panel.field.value":"echarts.panel.field.valueMulti")}function sF(t){const e=t?.[0];return e?Object.keys(e).filter(r=>Array.isArray(e[r])):[]}function tS(t,e){const r=t?.[0];if(!r)return[];const a=e&&Array.isArray(r[e])?e:Object.keys(r).find(i=>Array.isArray(r[i]));if(!a)return[];const n=r[a];return n.length>0&&typeof n[0]=="object"&&n[0]!==null?Object.keys(n[0]):[]}function lF(t){const e=new Map;for(const r of t??[])r.fieldKey&&r.fieldLabel&&e.set(r.fieldKey,r.fieldLabel);return e}function rS(t,e,r){if(!t)return r??X("echarts.panel.default");const a=e.get(t),n=a?`${a}(${t})`:t;return r?`${n}${r}`:n}function Uv(t,e,r=new Map){const a=t.map(n=>({value:n,label:rS(n,r)}));return e&&!t.includes(e)&&a.unshift({value:e,label:rS(e,r,X("echarts.panel.current"))}),e||a.unshift({value:"",label:X("echarts.panel.defaultFirstArray")}),a}function Sn(t){return Array.isArray(t.series)?t.series:[]}function Gv(t,e,r){return Math.min(r,Math.max(e,t))}function Wv(t,e,r){const a=r6(Le(t.element),r.length,e);(Array.isArray(a.series)?a.series:[]).forEach((i,o)=>{const s=r[o]?.trim();s&&(i.name=s)}),vt(t,e,a,{chartValueFields:r})}function uF(t){const e=t.element,r=Vv(e),a=e.options,n=Number(a.width)||0,i=Number(a.height)||0;try{const o=e6(r,eS(e)??Os(r)),s=gp(r,o);if(!s||typeof s!="object"||Array.isArray(s))throw new Error(X("echarts.panel.error.invalidOption"));const l=typeof a.fontFamily=="string"&&a.fontFamily?a.fontFamily:void 0,u=Iv({key:e.id,type:r,option:s,widthMm:n,heightMm:i,fontFamily:l});return`<div class="echarts-canvas-element" style="${JP}">${u}</div>`}catch{const o=typeof a.title=="string"&&a.title.trim()?a.title:Je(r)?.label??X("echarts.panel.chartFallback");return`<div class="echarts-canvas-element" style="${JP}">${aF(o)}</div>`}}function xe(t,e,r){const a=document.createElement(t);return e&&(a.className=e),r!==void 0&&(a.textContent=r),a}function Ge(t){const e=xe("div","pd-field");return e.appendChild(xe("span","pd-label",t)),e}function At(t,e){const r=xe("input","pd-input");return t.type&&(r.type=t.type),t.placeholder&&(r.placeholder=t.placeholder),t.min!==void 0&&(r.min=String(t.min)),t.max!==void 0&&(r.max=String(t.max)),t.title&&(r.title=t.title),t.list&&r.setAttribute("list",t.list),r.value=t.value,r.addEventListener("change",()=>e(r.value)),r}function Ei(t,e,r){const a=Ge(t);a.style.cssText="flex-direction:row;align-items:center;justify-content:space-between";const n=xe("input","pd-switch");return n.type="checkbox",n.checked=e,n.addEventListener("change",()=>r(n.checked)),a.appendChild(n),a}function _p(t,e,r){const a=xe("select","pd-select");for(const n of t){const i=xe("option");i.value=n.value,i.textContent=n.label,a.appendChild(i)}return a.value=e,a.addEventListener("change",()=>r(a.value)),a}let xp=null;function pF(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function $v(t,e,r){const a=t.find(c=>c.value===e)??{label:e||X("echarts.panel.optionDefault")},n=xe("button","echarts-dropdown-trigger");n.type="button",n.setAttribute("aria-haspopup","listbox"),n.setAttribute("aria-expanded","false");const i=xe("span","echarts-dropdown-value",a.label),o=xe("span","echarts-dropdown-arrow","▾");n.appendChild(i),n.appendChild(o);let s=null,l=[];const u=()=>{l.forEach(c=>c()),l=[],s?.remove(),s=null,n.setAttribute("aria-expanded","false"),xp?.close===u&&(xp=null)},p=()=>{xp?.close();const c=n.getRootNode(),f=c instanceof ShadowRoot?c:document.body;s=xe("div","echarts-dropdown-panel"),s.setAttribute("role","listbox");for(const g of t){const y=xe("div",`echarts-dropdown-option${g.value===e?" is-active":""}`,g.label);y.setAttribute("role","option"),y.setAttribute("aria-selected",g.value===e?"true":"false"),y.addEventListener("click",b=>{b.stopPropagation(),u(),r(g.value)}),s.appendChild(y)}f.appendChild(s);const h=n.getBoundingClientRect();s.style.left=`${h.left}px`,s.style.top=`${h.bottom+4}px`,s.style.minWidth=`${h.width}px`,n.setAttribute("aria-expanded","true"),xp={close:u};const d=g=>{const y=pF(g);y.includes(n)||y.includes(s)||u()},v=g=>{g.key==="Escape"&&u()},m=()=>u();document.addEventListener("pointerdown",d,!0),document.addEventListener("keydown",v),window.addEventListener("scroll",m,!0),window.addEventListener("resize",m),c.addEventListener("scroll",m,!0),l.push(()=>document.removeEventListener("pointerdown",d,!0),()=>document.removeEventListener("keydown",v),()=>window.removeEventListener("scroll",m,!0),()=>window.removeEventListener("resize",m),()=>c.removeEventListener("scroll",m,!0))};return n.addEventListener("click",c=>{c.stopPropagation(),s?u():p()}),n}const cF=()=>[{value:"",label:X("echarts.panel.overflow.default")},{value:"none",label:X("echarts.panel.overflow.none")},{value:"truncate",label:X("echarts.panel.overflow.truncate")},{value:"break",label:X("echarts.panel.overflow.break")}],fF=()=>[{value:"",label:X("echarts.panel.fontWeight.default")},{value:"normal",label:X("echarts.panel.fontWeight.normal")},{value:"bold",label:X("echarts.panel.fontWeight.bold")}],hF=()=>({distance:X("echarts.panel.label.distance"),rotate:X("echarts.panel.label.rotate"),fontSize:X("echarts.panel.label.fontSize"),fontWeight:X("echarts.panel.label.fontWeight"),color:X("echarts.panel.label.color"),backgroundColor:X("echarts.panel.label.backgroundColor"),borderColor:X("echarts.panel.label.borderColor"),borderWidth:X("echarts.panel.label.borderWidth"),borderRadius:X("echarts.panel.label.borderRadius"),padding:X("echarts.panel.label.padding")});function dF(t,e){const r=t.element,a=Je(e),n=v6(e),i=g=>n.includes(g),o=g6(Le(r),e),s=hF(),l=g=>{vt(t,e,y6(Le(r),e,g))},u=(g,y)=>{if(y.trim()==="")return l({[g]:null});const b=Number(y);Number.isFinite(b)&&l({[g]:b})},p=(g,y)=>{if(y.trim()==="")return l({labelLine:{[g]:null}});const b=Number(y);Number.isFinite(b)&&l({labelLine:{[g]:b}})},c=(g,y)=>{const b=Ge(s[g]??g);return b.appendChild(At({value:y===void 0?"":String(y),type:"number"},k=>u(g,k))),b},f=(g,y)=>{const b=Ge(s[g]??g),k=xe("span");return Rv(V6({value:y??"",title:s[g]??g,translator:t.t,onChange:w=>l({[g]:w??""})}),k),b.appendChild(k),b},h=xe("details","echarts-label-group");h.open=o.show;const d=xe("summary","echarts-label-summary"),v=Ei(X("echarts.panel.label.show"),o.show,g=>l({enabled:g}));if(v.querySelector("input")?.addEventListener("click",g=>g.stopPropagation()),d.appendChild(v),h.appendChild(d),i("formatter")||i("overflow")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.content"))),i("formatter")){const g=Ge(X("echarts.panel.label.formatterTitle"));g.appendChild(_p([{value:"",label:X("echarts.panel.label.formatterCustom")},...s6.map(y=>({value:y.formatter,label:X(y.labelKey)}))],o.formatter??"",y=>l({formatter:y}))),g.appendChild(At({value:o.formatter??"",placeholder:X("echarts.panel.label.formatterPlaceholder")},y=>l({formatter:y}))),h.appendChild(g)}if(i("overflow")){const g=Ge(X("echarts.panel.label.overflow"));g.appendChild(_p(cF(),o.overflow??"",y=>l({overflow:y}))),h.appendChild(g)}}if(i("position")||i("distance")||i("rotate")||i("offset")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.position"))),i("position")){const g=Ge(X("echarts.panel.label.positionTitle")),y=a?l6[a.seriesType]??[]:[];g.appendChild(_p([{value:"",label:X("echarts.panel.label.positionDefault")},...y.map(b=>({value:b.value,label:X(b.labelKey)}))],o.position??"",b=>l({position:b}))),h.appendChild(g)}if(i("distance")&&h.appendChild(c("distance",o.distance)),i("rotate")&&h.appendChild(c("rotate",o.rotate)),i("offset")){let g=function(){const x=(T,C)=>{const P=T.value.trim();if(P==="")return 0;const S=Number(P);return Number.isFinite(S)?S:C};l({offset:[x(w,k[0]??0),x(_,k[1]??0)]})};const y=Ge(X("echarts.panel.label.offset")),b=xe("div","echarts-field-row"),k=o.offset??[0,0],w=At({value:String(k[0]??0),type:"number"},()=>g()),_=At({value:String(k[1]??0),type:"number"},()=>g());b.appendChild(w),b.appendChild(_),y.appendChild(b),h.appendChild(y)}}if(["fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"].some(i)){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.style"))),i("fontSize")&&h.appendChild(c("fontSize",o.fontSize)),i("fontWeight")){const g=Ge(X("echarts.panel.labelLine.fontWeight"));g.appendChild(_p(fF(),o.fontWeight??"",y=>l({fontWeight:y}))),h.appendChild(g)}for(const g of["color","backgroundColor","borderColor"])i(g)&&h.appendChild(f(g,o[g]));for(const g of["borderWidth","borderRadius","padding"])i(g)&&h.appendChild(c(g,o[g]))}if(i("labelLine.show")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.labelLine"))),h.appendChild(Ei(X("echarts.panel.labelLine.show"),o.labelLine.show===!0,g=>l({labelLine:{show:g}}))),i("labelLine.length")){const g=Ge(X("echarts.panel.labelLine.length"));g.appendChild(At({value:o.labelLine.length===void 0?"":String(o.labelLine.length),type:"number"},y=>p("length",y))),h.appendChild(g)}if(i("labelLine.length2")){const g=Ge(X("echarts.panel.labelLine.length2"));g.appendChild(At({value:o.labelLine.length2===void 0?"":String(o.labelLine.length2),type:"number"},y=>p("length2",y))),h.appendChild(g)}i("labelLine.smooth")&&h.appendChild(Ei(X("echarts.panel.labelLine.smooth"),o.labelLine.smooth===!0,g=>l({labelLine:{smooth:g}})))}return h}function vF(t){return Q6(t.t,()=>gF(t))}function gF(t){const e=t.element,r=Vv(e),a=Je(r),n=Wg(r),i=d=>n.includes(d),o=e.options,s=Number(o.width)||0,l=Number(o.height)||0,u=iF(a),p=Qg(),c=lF(t.fields),f=xe("div","echarts-property"),h=xe("form","pd-form");if(h.addEventListener("submit",d=>d.preventDefault()),f.appendChild(h),i("dataSource")){const d=Ge(X("echarts.panel.dataSourceTitle")),v=String(o.chartDataSource??"");d.appendChild($v(Uv(sF(t.data),v,c),v,m=>vt(t,r,Le(e),{chartDataSource:m}))),h.appendChild(d)}if(i("categoryField")){const d=Ge(X("echarts.panel.categoryField")),v=String(o.chartCategoryField??"");d.appendChild($v(Uv(tS(t.data,String(o.chartDataSource??"")),v,c),v,m=>vt(t,r,Le(e),{chartCategoryField:m}))),h.appendChild(d)}if(i("valueFields")){const d=Ge(oF(a,u)),v=wp(e);if(v.forEach((m,g)=>{const y=xe("div","echarts-field-row");if(y.appendChild($v(Uv(tS(t.data,String(o.chartDataSource??"")),m,c),m,b=>{const k=wp(e);k[g]=b,Wv(t,r,k)})),v.length>1){const b=xe("button","pd-button small","−");b.type="button",b.title=X("echarts.panel.removeField"),b.addEventListener("click",()=>Wv(t,r,wp(e).filter((k,w)=>w!==g))),y.appendChild(b)}d.appendChild(y)}),v.length<u){const m=xe("button","pd-button small",X("echarts.panel.addField"));m.type="button",m.addEventListener("click",()=>Wv(t,r,[...wp(e),""])),d.appendChild(m)}h.appendChild(d)}if(i("seriesField")){const d=Ge(X("echarts.panel.seriesField"));d.appendChild(At({value:String(o.chartSeriesField??""),placeholder:X("echarts.panel.seriesFieldHint")},v=>vt(t,r,Le(e),{chartSeriesField:v}))),h.appendChild(d)}if(i("bubble")&&h.appendChild(Ei(X("echarts.panel.bubbleSize"),o.chartBubble===!0,d=>{vt(t,r,Le(e),{chartBubble:d})})),i("title")){const d=Ge(X("echarts.panel.title"));d.appendChild(At({value:String(Li(Le(e).title).text??""),placeholder:X("echarts.panel.titleHint")},v=>{const m=Le(e);m.title={...Li(m.title),text:v},vt(t,r,m)})),h.appendChild(d)}if(i("legend")){const d=Li(Le(e).legend).show!==!1;h.appendChild(Ei(X("echarts.panel.legend"),d,v=>{const m=Le(e);m.legend={...Li(m.legend),show:v},vt(t,r,m)}))}if(i("palette")){const d=Ge(X("echarts.panel.palette")),v=xe("select","pd-select");for(const m of p){const g=xe("option");g.value=m.key,g.textContent=m.labelKey?X(m.labelKey):m.label,v.appendChild(g)}v.value=t6(Le(e),p),v.addEventListener("change",()=>{const m=p.find(y=>y.key===v.value)??p[0],g=Le(e);g.color=[...m.colors],vt(t,r,g)}),d.appendChild(v),h.appendChild(d)}if(i("label")&&h.appendChild(dF(t,r)),i("stack")){const v=Sn(Le(e)).some(m=>m.stack!==void 0&&m.stack!==null&&m.stack!=="");h.appendChild(Ei(X("echarts.panel.stack"),v,m=>{const g=Le(e);for(const y of Sn(g))m?y.stack="total":delete y.stack;vt(t,r,g)}))}if(i("innerRadius")){const d=Ge(X("echarts.panel.innerRadius")),v=Sn(Le(e))[0]?.radius,m=Array.isArray(v)&&Number(String(v[0]??"40%").replace("%",""))||40;d.appendChild(At({value:String(m),type:"number",min:0,max:90},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].radius=[`${Gv(Number(g)||0,0,90)}%`,"70%"]),vt(t,r,y)})),h.appendChild(d)}if(i("padding")){const d=Ge(X("echarts.panel.paddingTRBL")),v=VP(Le(e),s,l),m=xe("div","echarts-field-row"),g=[{side:"top",title:X("echarts.panel.paddingTop")},{side:"right",title:X("echarts.panel.paddingRight")},{side:"bottom",title:X("echarts.panel.paddingBottom")},{side:"left",title:X("echarts.panel.paddingLeft")}];for(const{side:y,title:b}of g)m.appendChild(At({value:String(v[y]),type:"number",min:0,max:60,title:b},k=>{const w=Number(k),_=Number.isFinite(w)?Gv(w,0,60):qg[y],x=Le(e),T=VP(x,s,l);vt(t,r,n6(x,{...T,[y]:_}))}));d.appendChild(m),h.appendChild(d)}if(i("radius")){const d=Ge(X("echarts.panel.radius"));d.appendChild(At({value:String(i6(Le(e),s,l)),type:"number",min:20,max:100},v=>{const m=Number(v),g=Number.isFinite(m)?Gv(m,20,100):jg;vt(t,r,o6(Le(e),g))})),h.appendChild(d)}if(i("gaugeRange")){const d=Ge(X("echarts.panel.minMax")),v=Sn(Le(e)),m=xe("div","echarts-field-row");m.appendChild(At({value:String(Number(v[0]?.min??0)),type:"number"},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].min=Number(g)||0),vt(t,r,y)})),m.appendChild(At({value:String(Number(v[0]?.max??100)),type:"number"},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].max=Number(g)||100),vt(t,r,y)})),d.appendChild(m),h.appendChild(d)}return h.appendChild(xe("p","pd-hint",rF())),f}const mF=E6({types:Gg,renderCanvas:uF,renderProperty:vF,hasProperties:nF,group:X("echarts.panel.group"),searchKeywords:tF,styles:J6,i18nId:"echarts",locales:{"zh-CN":A6.echarts,"en-US":L6.echarts,"th-TH":M6.echarts}});let Yv;function yF(){return Yv?.(),Yv=I6(mF),Yv}yF();const bF={...D6};globalThis.WormPrintEcharts??=bF}));
|
|
44
|
+
`:"",n=" {"+a,i=a+"}",o=K(he(t),function(l){return l+n+K(he(t[l]),function(u){return u+":"+t[l][u]+";"}).join(a)+i}).join(a),s=K(he(e),function(l){return"@keyframes "+l+n+K(he(e[l]),function(u){return u+n+K(he(e[l][u]),function(p){var c=e[l][u][p];return p==="d"&&(c='path("'+c+'")'),p+":"+c+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function xv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function mP(t,e,r,a){return We("svg","root",{width:t,height:e,xmlns:hP,"xmlns:xlink":dP,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+t+" "+e:!1},r)}var CN=0;function yP(){return CN++}var bP={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},wn="transform-origin";function DN(t,e,r){var a=H({},t.shape);H(a,e),t.buildPath(r,a);var n=new fP;return n.reset(jm(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function AN(t,e){var r=e.originX,a=e.originY;(r||a)&&(t[wn]=r+"px "+a+"px")}var LN={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function kP(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function MN(t,e,r){var a=t.shape.paths,n={},i,o;if(A(a,function(l){var u=xv(r.zrId);u.animation=!0,pp(l,{},u,!0);var p=u.cssAnims,c=u.cssNodes,f=he(p),h=f.length;if(h){o=f[h-1];var d=p[o];for(var v in d){var m=d[v];n[v]=n[v]||{d:""},n[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){e.d=!1;var s=kP(n,r);return i.replace(o,s)}}function wP(t){return q(t)?bP[t]?"cubic-bezier("+bP[t]+")":wc(t)?t:"":""}function pp(t,e,r,a){var n=t.animators,i=n.length,o=[];if(t instanceof C0){var s=MN(t,e,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var p=n[u],c=[p.getMaxTime()/1e3+"s"],f=wP(p.getClip().easing),h=p.getDelay();f?c.push(f):c.push("linear"),h&&c.push(h/1e3+"s"),p.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(p)}function v(y){var b=y[1],k=b.length,w={},_={},x={},T="animation-timing-function";function C(Ee,de,Ce){for(var te=Ee.getTracks(),ue=Ee.getMaxTime(),_t=0;_t<te.length;_t++){var Fe=te[_t];if(Fe.needsAnimate()){var fr=Fe.keyframes,xt=Fe.propName;if(Ce&&(xt=Ce(xt)),xt)for(var hr=0;hr<fr.length;hr++){var Ii=fr[hr],dr=Math.round(Ii.time/ue*100)+"%",Pp=wP(Ii.easing),Oi=Ii.rawValue;(q(Oi)||be(Oi))&&(de[dr]=de[dr]||{},de[dr][xt]=Ii.rawValue,Pp&&(de[dr][T]=Pp))}}}}for(var P=0;P<k;P++){var S=b[P],L=S.targetName;L?L==="shape"&&C(S,_):!a&&C(S,w)}for(var D in w){var M={};to(M,t),H(M,w[D]);var I=Zm(M),E=w[D][T];x[D]=I?{transform:I}:{},AN(x[D],M),E&&(x[D][T]=E)}var O,R=!0;for(var D in _){x[D]=x[D]||{};var B=!O,E=_[D][T];B&&(O=new sa);var N=O.len();O.reset(),x[D].d=DN(t,_[D],O);var F=O.len();if(!B&&N!==F){R=!1;break}E&&(x[D][T]=E)}if(!R)for(var D in x)delete x[D].d;if(!a)for(var P=0;P<k;P++){var S=b[P],L=S.targetName;L==="style"&&C(S,x,function(te){return LN[te]})}for(var U=he(x),Y=!0,z,P=1;P<U.length;P++){var j=U[P-1],ne=U[P];if(x[j][wn]!==x[ne][wn]){Y=!1;break}z=x[j][wn]}if(Y&&z){for(var D in x)x[D][wn]&&delete x[D][wn];e[wn]=z}if(Xe(U,function(Ee){return he(x[Ee]).length>0}).length){var De=kP(x,r);return De+" "+y[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+yP();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function EN(t,e,r){if(!t.ignore)if(t.isSilent()){var a={"pointer-events":"none"};_P(a,e,r)}else{var n=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=n.fill;if(!i){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(i=Dc(l))}var u=n.lineWidth;if(u){var p=!n.strokeNoScale&&t.transform?t.transform[0]:1;u=u/p}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),_P(a,e,r)}}function _P(t,e,r,a){var n=JSON.stringify(t),i=r.cssStyleCache[n];i||(i=r.zrId+"-cls-"+yP(),r.cssStyleCache[n]=i,r.cssNodes["."+i+":hover"]=t),e.class=e.class?e.class+" "+i:i}var fs=Math.round;function xP(t){return t&&q(t.src)}function PP(t){return t&&re(t.toDataURL)}function Pv(t,e,r,a){wN(function(n,i){var o=n==="fill"||n==="stroke";o&&qm(i)?LP(e,t,n,a):o&&Lc(i)?MP(r,t,n,a):t[n]=i,o&&a.ssr&&i==="none"&&(t["pointer-events"]="visible")},e,r,!1),zN(r,t,a)}function Sv(t,e){var r=dI(e);r&&(r.each(function(a,n){a!=null&&(t[(vP+n).toLowerCase()]=a+"")}),e.isSilent()&&(t[vP+"silent"]="true"))}function SP(t){return na(t[0]-1)&&na(t[1])&&na(t[2])&&na(t[3]-1)}function IN(t){return na(t[4])&&na(t[5])}function Tv(t,e,r){if(e&&!(IN(e)&&SP(e))){var a=1e4;t.transform=SP(e)?"translate("+fs(e[4]*a)/a+" "+fs(e[5]*a)/a+")":PC(e)}}function TP(t,e,r){for(var a=t.points,n=[],i=0;i<a.length;i++)n.push(fs(a[i][0]*r)/r),n.push(fs(a[i][1]*r)/r);e.points=n.join(" ")}function CP(t){return!t.smooth}function ON(t){var e=K(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=r[o[0]];s!=null&&(a[o[1]]=fs(s*n)/n)}}}var RN={circle:[ON(["cx","cy","r"])],polyline:[TP,CP],polygon:[TP,CP]};function BN(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function DP(t,e){var r=t.style,a=t.shape,n=RN[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&jm(t)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&BN(t))&&!(l<1)){s=t.type;var p=Math.pow(10,u);n[0](a,i,p)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var f=t.path;c&&(f.beginPath(),t.buildPath(f,t.shape),t.pathUpdated());var h=f.getVersion(),d=t,v=d.__svgPathBuilder;(d.__svgPathVersion!==h||!v||l!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new fP),v.reset(u),f.rebuildPath(v,l),v.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=v.getStr()}return Tv(i,t.transform),Pv(i,r,t,e),Sv(i,t),e.animation&&pp(t,i,e),e.emphasis&&EN(t,i,e),We(s,t.id+"",i)}function NN(t,e){var r=t.style,a=r.image;if(a&&!q(a)&&(xP(a)?a=a.src:PP(a)&&(a=a.toDataURL())),!!a){var n=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),Tv(l,t.transform),Pv(l,r,t,e),Sv(l,t),e.animation&&pp(t,l,e),We("image",t.id+"",l)}}function FN(t,e){var r=t.style,a=r.text;if(a!=null&&(a+=""),!(!a||isNaN(r.x)||isNaN(r.y))){var n=r.font||Nr,i=r.x||0,o=TC(r.y||0,Ji(n),r.textBaseline),s=SC[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(wy(r)){var u="",p=r.fontStyle,c=by(r.fontSize);if(!parseFloat(c))return;var f=r.fontFamily||tm,h=r.fontWeight;u+="font-size:"+c+";font-family:"+f+";",p&&p!=="normal"&&(u+="font-style:"+p+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Tv(l,t.transform),Pv(l,r,t,e),Sv(l,t),e.animation&&pp(t,l,e),We("text",t.id+"",l,void 0,a)}}function AP(t,e){if(t instanceof me)return DP(t,e);if(t instanceof Bt)return NN(t,e);if(t instanceof co)return FN(t,e)}function zN(t,e,r){var a=t.style;if(CC(a)){var n=DC(t),i=r.shadowCache,o=i[n];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var p=a.shadowOffsetX||0,c=a.shadowOffsetY||0,f=a.shadowBlur,h=no(a.shadowColor),d=h.opacity,v=h.color,m=f/2/l,g=f/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=We("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[We("feDropShadow","",{dx:p/l,dy:c/u,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),i[n]=o}e.filter=al(o)}}function LP(t,e,r,a){var n=t[r],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Km(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(Xm(n))i="radialGradient",o.cx=Z(n.x,.5),o.cy=Z(n.y,.5),o.r=Z(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,p=s.length;u<p;++u){var c=Ac(s[u].offset)*100+"%",f=s[u].color,h=no(f),d=h.color,v=h.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),l.push(We("stop",u+"",m))}var g=We(i,"",o,l),y=_v(g),b=a.gradientCache,k=b[y];k||(k=a.zrId+"-g"+a.gradientIdx++,b[y]=k,o.id=k,a.defs[k]=We(i,k,o,l)),e[r]=al(k)}function MP(t,e,r,a){var n=t.style[r],i=t.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",p=s==="repeat-y",c;if(Ym(n)){var f=n.imageWidth,h=n.imageHeight,d=void 0,v=n.image;if(q(v)?d=v:xP(v)?d=v.src:PP(v)&&(d=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Jt(f,m),Jt(h,m)}else if(f==null||h==null){var g=function(P,S){if(P){var L=P.elm,D=f||S.width,M=h||S.height;P.tag==="pattern"&&(u?(M=1,D/=i.width):p&&(D=1,M/=i.height)),P.attrs.width=D,P.attrs.height=M,L&&(L.setAttribute("width",D),L.setAttribute("height",M))}},y=tc(d,null,t,function(P){l||g(_,P),g(c,P)});y&&y.width&&y.height&&(f=f||y.width,h=h||y.height)}c=We("image","img",{href:d,width:f,height:h}),o.width=f,o.height=h}else n.svgElement&&(c=le(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(c){var b,k;l?b=k=1:u?(k=1,b=o.width/i.width):p?(b=1,k=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),k!=null&&!isNaN(k)&&(o.height=k);var w=Zm(n);w&&(o.patternTransform=w);var _=We("pattern","",o,[c]),x=_v(_),T=a.patternCache,C=T[x];C||(C=a.zrId+"-p"+a.patternIdx++,T[x]=C,o.id=C,_=a.defs[C]=We("pattern",C,o,[c])),e[r]=al(C)}}function HN(t,e,r){var a=r.clipPathCache,n=r.defs,i=a[t.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};a[t.id]=i,n[i]=We("clipPath",i,o,[DP(t,r)])}e["clip-path"]=al(i)}function EP(t){return document.createTextNode(t)}function _n(t,e,r){t.insertBefore(e,r)}function IP(t,e){t.removeChild(e)}function OP(t,e){t.appendChild(e)}function RP(t){return t.parentNode}function BP(t){return t.nextSibling}function Cv(t,e){t.textContent=e}var NP=58,VN=120,UN=We("","");function Dv(t){return t===void 0}function Br(t){return t!==void 0}function GN(t,e,r){for(var a={},n=e;n<=r;++n){var i=t[n].key;i!==void 0&&(a[i]=n)}return a}function hs(t,e){var r=t.key===e.key,a=t.tag===e.tag;return a&&r}function ds(t){var e,r=t.children,a=t.tag;if(Br(a)){var n=t.elm=gP(a);if(Av(UN,t),W(r))for(e=0;e<r.length;++e){var i=r[e];i!=null&&OP(n,ds(i))}else Br(t.text)&&!J(t.text)&&OP(n,EP(t.text))}else t.elm=EP(t.text);return t.elm}function FP(t,e,r,a,n){for(;a<=n;++a){var i=r[a];i!=null&&_n(t,ds(i),e)}}function cp(t,e,r,a){for(;r<=a;++r){var n=e[r];if(n!=null)if(Br(n.tag)){var i=RP(n.elm);IP(i,n.elm)}else IP(t,n.elm)}}function Av(t,e){var r,a=e.elm,n=t&&t.attrs||{},i=e.attrs||{};if(n!==i){for(r in i){var o=i[r],s=n[r];s!==o&&(o===!0?a.setAttribute(r,""):o===!1?a.removeAttribute(r):r==="style"?a.style.cssText=o:r.charCodeAt(0)!==VN?a.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?a.setAttributeNS(_N,r,o):r.charCodeAt(3)===NP?a.setAttributeNS(xN,r,o):r.charCodeAt(5)===NP?a.setAttributeNS(dP,r,o):a.setAttribute(r,o))}for(r in n)r in i||a.removeAttribute(r)}}function WN(t,e,r){for(var a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=r.length-1,u=r[0],p=r[l],c,f,h,d;a<=i&&n<=l;)o==null?o=e[++a]:s==null?s=e[--i]:u==null?u=r[++n]:p==null?p=r[--l]:hs(o,u)?(Di(o,u),o=e[++a],u=r[++n]):hs(s,p)?(Di(s,p),s=e[--i],p=r[--l]):hs(o,p)?(Di(o,p),_n(t,o.elm,BP(s.elm)),o=e[++a],p=r[--l]):hs(s,u)?(Di(s,u),_n(t,s.elm,o.elm),s=e[--i],u=r[++n]):(Dv(c)&&(c=GN(e,a,i)),f=c[u.key],Dv(f)?_n(t,ds(u),o.elm):(h=e[f],h.tag!==u.tag?_n(t,ds(u),o.elm):(Di(h,u),e[f]=void 0,_n(t,h.elm,o.elm))),u=r[++n]);(a<=i||n<=l)&&(a>i?(d=r[l+1]==null?null:r[l+1].elm,FP(t,d,r,n,l)):cp(t,e,a,i))}function Di(t,e){var r=e.elm=t.elm,a=t.children,n=e.children;t!==e&&(Av(t,e),Dv(e.text)?Br(a)&&Br(n)?a!==n&&WN(r,a,n):Br(n)?(Br(t.text)&&Cv(r,""),FP(r,null,n,0,n.length-1)):Br(a)?cp(r,a,0,a.length-1):Br(t.text)&&Cv(r,""):t.text!==e.text&&(Br(a)&&cp(r,a,0,a.length-1),Cv(r,e.text)))}function $N(t,e){if(hs(t,e))Di(t,e);else{var r=t.elm,a=RP(r);ds(e),a!==null&&(_n(a,e.elm,BP(r)),cp(a,[t],0,0))}return e}var YN=0,KN=(function(){function t(e,r,a){if(this.type="svg",this.configLayer=XN(),this.storage=r,this._opts=a=H({},a),this.root=e,this._id="zr"+YN++,this._oldVNode=mP(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=gP("svg");Av(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",$N(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return AP(e,xv(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=xv(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=qN(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=We("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=K(he(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(We("defs","defs",{},u)),e.animation){var p=TN(i.cssNodes,i.cssAnims,{newline:!0});if(p){var c=We("style","stl",{},[],p);o.push(c)}}return mP(a,n,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},_v(this.renderToVNode({animation:Z(e.cssAnimation,!0),emphasis:Z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Z(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,a){for(var n=e.length,i=[],o=0,s,l,u=0,p=0;p<n;p++){var c=e[p];if(!c.invisible){var f=c.__clipPaths,h=f&&f.length||0,d=l&&l.length||0,v=void 0;for(v=Math.max(h-1,d-1);v>=0&&!(f&&l&&f[v]===l[v]);v--);for(var m=d-1;m>v;m--)o--,s=i[o-1];for(var g=v+1;g<h;g++){var y={};HN(f[g],y,r);var b=We("g","clip-g-"+u++,y,[]);(s?s.children:a).push(b),i[o++]=b,s=b}l=f;var k=AP(c,r);k&&(s?s.children:a).push(k)}}},t.prototype.resize=function(e,r){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),r!=null&&(a.height=r),n&&i&&(i.style.display="none",e=h_(n,0,a),r=h_(n,1,a),i.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,i){var o=i.style;o.width=e+"px",o.height=r+"px"}if(Lc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),a="data:image/svg+xml;";return e?(r=LC(r),r&&a+"base64,"+r):a+"charset=UTF-8,"+encodeURIComponent(r)},t})();function XN(t){return function(){}}function qN(t,e,r,a){var n;if(r&&r!=="none")if(n=We("rect","bg",{width:t,height:e,x:"0",y:"0"}),qm(r))LP({fill:r},n.attrs,"fill",a);else if(Lc(r))MP({style:{fill:r},dirty:qe,getBoundingRect:function(){return{width:t,height:e}}},n.attrs,"fill",a);else{var i=no(r),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function jN(t){t.registerPainter("svg",KN)}cr([_4,I5,F4,ER,WR,iB,jR,EB,QB,fN,tN,vN,jN]);const zP=new Set;function ZN(){const e=(Ui().components??[]).filter(r=>r!=null&&!zP.has(r));if(e.length!==0){cr(e);for(const r of e)zP.add(r)}}const QN=96/25.4;function xn(t){const e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*QN))}const JN=[12,20,15];function Ai(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}}function e6(t,e){if(!e||typeof e!="object"||Array.isArray(e))return{};const r=Ai(e),a=Je(t),n=[...Jg()],i=[...JN],o=Array.isArray(r.series)?r.series:[],s=u=>{for(const p of o)Array.isArray(p.data)&&p.data.includes("$data")&&(p.data=u(p))},l=()=>{for(const u of["xAxis","yAxis"]){const p=Array.isArray(r[u])?r[u]:r[u]?[r[u]]:[];for(const c of p)c&&Array.isArray(c.data)&&c.data.includes("$data")&&(c.data=[...n])}};switch(a?.seriesType){case"pie":s(()=>n.map((u,p)=>({name:u,value:i[p]??10})));break;case"funnel":s(()=>n.map((u,p)=>({name:u,value:i[p]??10})));break;case"scatter":s(()=>i.map(u=>[u,u+6]));break;case"radar":r.radar={...r.radar??{},indicator:n.map(u=>({name:u,max:30}))},s(()=>[{name:"示例",value:i}]);break;case"gauge":s(()=>[{value:i[0]??40,name:"数量"}]);break;default:s(()=>[...i]),l();break}return r}function t6(t,e){const r=Array.isArray(t?.color)?(t?.color).map(String):[];return e.find(n=>n.colors.every((i,o)=>i===r[o])&&r.length===n.colors.length)?.key??"default"}function Li(t){return Array.isArray(t)?t[0]&&typeof t[0]=="object"?{...t[0]}:{}:t&&typeof t=="object"?{...t}:{}}function r6(t,e,r){const a=Ai(t),n=Array.isArray(a.series)?a.series:[],i=Je(r),o=n[0]??{type:i?.seriesType==="line"?"line":"bar",data:["$data"]};return a.series=Array.from({length:Math.max(e,1)},(s,l)=>({...o,...n[l]??{},data:["$data"]})),a}const fp=t=>Math.round(t*10)/10;function Lv(t,e){return e>0?fp(t/e*100):0}function hp(t,e,r){if(typeof t=="string"&&t.trim().endsWith("%")){const a=Number.parseFloat(t);if(Number.isFinite(a))return fp(a)}return typeof t=="number"&&Number.isFinite(t)?Lv(t,e):Lv(r,e)}function HP(t,e,r){return Math.min(r,Math.max(e,t))}function vs(t){return`${HP(fp(t),0,100)}%`}function a6(t){const r=(Array.isArray(t.series)?t.series:[])[0];return r&&typeof r=="object"?r:{}}function VP(t,e,r){const n=a6(t&&typeof t=="object"?t:{}),i=xn(e),o=xn(r);return{top:hp(n.top,o,Is.top),right:hp(n.right,i,Is.right),bottom:hp(n.bottom,o,Is.bottom),left:hp(n.left,i,Is.left)}}function n6(t,e){const r=Ai(t),a=Array.isArray(r.series)?r.series:[];a.length===0&&a.push({type:"funnel",data:["$data"]});const n=a[0];return n.top=vs(e.top),n.right=vs(e.right),n.bottom=vs(e.bottom),n.left=vs(e.left),r.series=a,r}function i6(t,e,r){const n=Li((t&&typeof t=="object"?t:{}).radar).radius,i=Array.isArray(n)?n[n.length-1]:n,o=xn(e),s=xn(r),l=Math.min(o,s)/2;if(typeof i=="string"&&i.trim().endsWith("%")){const u=Number.parseFloat(i);if(Number.isFinite(u))return fp(u)}return typeof i=="number"&&Number.isFinite(i)?Lv(i,l):cT}function o6(t,e){const r=Ai(t);return r.radar={...Li(r.radar),radius:vs(HP(e,20,100))},r}const s6=[{key:"value",label:"数值",labelKey:"echarts.label.formatter.value",formatter:"{c}"},{key:"name-value",label:"名称: 数值",labelKey:"echarts.label.formatter.nameValue",formatter:"{b}: {c}"},{key:"name",label:"名称",labelKey:"echarts.label.formatter.name",formatter:"{b}"},{key:"percent",label:"百分比",labelKey:"echarts.label.formatter.percent",formatter:"{d}%"}],l6={bar:[{value:"top",label:"顶部",labelKey:"echarts.label.position.bar.top"},{value:"inside",label:"内部",labelKey:"echarts.label.position.bar.inside"},{value:"insideTop",label:"内部顶端",labelKey:"echarts.label.position.bar.insideTop"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.bar.bottom"},{value:"insideBottom",label:"内部底端",labelKey:"echarts.label.position.bar.insideBottom"},{value:"right",label:"右侧",labelKey:"echarts.label.position.bar.right"},{value:"left",label:"左侧",labelKey:"echarts.label.position.bar.left"},{value:"middle",label:"居中",labelKey:"echarts.label.position.bar.middle"}],line:[{value:"top",label:"顶部",labelKey:"echarts.label.position.line.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.line.bottom"},{value:"inside",label:"内部",labelKey:"echarts.label.position.line.inside"},{value:"left",label:"左侧",labelKey:"echarts.label.position.line.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.line.right"}],pie:[{value:"outside",label:"外侧",labelKey:"echarts.label.position.pie.outside"},{value:"inside",label:"内部",labelKey:"echarts.label.position.pie.inside"},{value:"center",label:"中心",labelKey:"echarts.label.position.pie.center"}],scatter:[{value:"top",label:"顶部",labelKey:"echarts.label.position.scatter.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.scatter.bottom"},{value:"left",label:"左侧",labelKey:"echarts.label.position.scatter.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.scatter.right"},{value:"inside",label:"内部",labelKey:"echarts.label.position.scatter.inside"}],radar:[{value:"top",label:"顶部",labelKey:"echarts.label.position.radar.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.radar.bottom"},{value:"left",label:"左侧",labelKey:"echarts.label.position.radar.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.radar.right"},{value:"inside",label:"内部",labelKey:"echarts.label.position.radar.inside"}],funnel:[{value:"outer",label:"外侧",labelKey:"echarts.label.position.funnel.outer"},{value:"inner",label:"内部",labelKey:"echarts.label.position.funnel.inner"},{value:"left",label:"左侧",labelKey:"echarts.label.position.funnel.left"},{value:"right",label:"右侧",labelKey:"echarts.label.position.funnel.right"},{value:"top",label:"顶部",labelKey:"echarts.label.position.funnel.top"},{value:"bottom",label:"底部",labelKey:"echarts.label.position.funnel.bottom"}],gauge:[]},u6={bar:!1,line:!1,pie:!0,scatter:!1,radar:!1,funnel:!0,gauge:!0},p6={bar:{position:"top",fontSize:12},line:{position:"top",fontSize:12},pie:{position:"outside",overflow:"none",fontSize:11},scatter:{position:"top",fontSize:11},radar:{position:"top",fontSize:10},funnel:{position:"outer",fontSize:11},gauge:{fontSize:14}},c6={barHChart:{position:"right",fontSize:12}},f6={bar:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],line:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],pie:["formatter","overflow","position","distance","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding","labelLine.show","labelLine.length","labelLine.length2","labelLine.smooth"],scatter:["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],radar:["formatter","fontSize","fontWeight","color"],funnel:["formatter","overflow","position","distance","fontSize","fontWeight","color","labelLine.show","labelLine.length","labelLine.smooth"],gauge:["formatter","fontSize","fontWeight","color","offset"]},h6=["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d6(t){const e=t?.series;return Array.isArray(e)?e:[]}function dp(t){return t&&typeof t=="object"&&!Array.isArray(t)?{...t}:{}}function Mv(t){typeof t.offsetX!="number"&&typeof t.offsetY!="number"||(Array.isArray(t.offset)||(t.offset=[typeof t.offsetX=="number"?t.offsetX:0,typeof t.offsetY=="number"?t.offsetY:0]),delete t.offsetX,delete t.offsetY)}function Ev(t){return Je(t)?.seriesType==="gauge"?"detail":"label"}function v6(t){const e=Je(t);return e?f6[e.seriesType]:[]}function g6(t,e){const r=Je(e),a=d6(t),n=dp(a[0]?.[Ev(e)]);Mv(n);const i={show:typeof n.show=="boolean"?n.show:r?u6[r.seriesType]:!1,labelLine:dp(a[0]?.labelLine)};for(const s of h6){const l=n[s];s!=="offset"&&(typeof l=="string"||typeof l=="number")&&(i[s]=l)}const o=n.offset;return Array.isArray(o)&&typeof o[0]=="number"&&typeof o[1]=="number"&&(i.offset=[o[0],o[1]]),i}function m6(t){const e=Je(t);return e?{...p6[e.seriesType],...c6[t]}:{}}function UP(t){return t==null||t===""}function y6(t,e,r){const a=Ai(t??{}),n=Array.isArray(a.series)?a.series:[];if(!Je(e)||n.length===0)return a;const o=Ev(e),{enabled:s,labelLine:l,...u}=r;for(const p of n){if(!p||typeof p!="object")continue;const c=dp(p[o]);Mv(c),s===!0?Object.assign(c,{...m6(e),...c,show:!0}):s===!1&&(c.show=!1);for(const[f,h]of Object.entries(u))UP(h)?delete c[f]:c[f]=h;if(l){const f=dp(p.labelLine);for(const[h,d]of Object.entries(l))UP(d)?delete f[h]:f[h]=d;p.labelLine=f}p[o]=c}return a}function b6(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function k6(t,e){const r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function w6(t,e){const r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function vp(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function gp(t,e){const r=Je(t);if(!r)return e;const a=structuredClone(e),n=b6(a.series);if(n.length===0)return a;const i=Ev(t);for(const l of n){const u=l[i];if(u&&typeof u=="object"&&!Array.isArray(u)){const p={...u};Mv(p),l[i]=p}}if(r.seriesType==="pie")return a.series=n.map(l=>({...l,type:"pie",...t==="doughnutChart"?{radius:l.radius??["40%","70%"]}:{}})),delete a.xAxis,delete a.yAxis,a;if(r.seriesType==="scatter")return a.series=n.map(l=>({...l,type:"scatter"})),a.xAxis=vp(a.xAxis,l=>({...l,type:"value",data:void 0})),a.yAxis=vp(a.yAxis,l=>({...l,type:"value",data:void 0})),a;if(r.seriesType==="radar")return a.series=n.map(l=>({...l,type:"radar"})),a;if(r.seriesType==="funnel")return a.series=n.map(l=>({...l,type:"funnel",sort:"descending"})),a;if(r.seriesType==="gauge")return a.series=n.map(l=>({...l,type:"gauge"})),a;const o=r.orientation==="horizontal",s=r.seriesType==="line"?"line":"bar";return a.xAxis=vp(a.xAxis,l=>k6(l,o)),a.yAxis=vp(a.yAxis,l=>w6(l,o)),a.series=n.map(l=>{const u={...l,type:s};return t==="areaChart"?u.areaStyle=l.areaStyle??{}:delete u.areaStyle,u}),a}function GP(t,e,r){const a=/<svg\b[^>]*>/i.exec(t);if(!a)return t;const n=a[0],i=n.slice(4,-1),s=(/\sstyle\s*=\s*"([^"]*)"/i.exec(i)?.[1]??"").split(";").map(c=>c.trim()).filter(c=>c&&!/^(width|height|display)\s*:/i.test(c)).join(";"),l=i.replace(/\s(width|height|style|viewBox)\s*=\s*"[^"]*"/gi,"").trimEnd(),u=["display:block","width:100%","height:100%",s].filter(Boolean).join(";"),p=`<svg${l} width="100%" height="100%" viewBox="0 0 ${e} ${r}" style="${u}">`;return t.slice(0,a.index)+p+t.slice(a.index+n.length)}function Iv(t){ZN();const e=gp(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("图表 option 非法:需要对象");const r=xn(t.widthMm),a=xn(t.heightMm),n=UO(null,null,{renderer:"svg",ssr:!0,width:r,height:a});try{const i=e.textStyle&&typeof e.textStyle=="object"&&!Array.isArray(e.textStyle)?e.textStyle:void 0,o={...t.fontFamily?{fontFamily:t.fontFamily}:{},...i??{}};return n.setOption({animation:!1,...e,...Object.keys(o).length>0?{textStyle:o}:{}}),GP(n.renderToSVGString(),r,a)}finally{n.dispose()}}function _6(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ov(t){const e=t._chartOption??t.chartOption,r=`<span>${_6(String(t.title??"图表"))}</span>`;if(!e||typeof e!="object"||Array.isArray(e))return r;try{return Iv({key:String(t.key??""),type:String(t.type??""),option:e,widthMm:Number(t.widthMm??0),heightMm:Number(t.heightMm??0),fontFamily:typeof t.fontFamily=="string"?t.fontFamily:void 0})}catch{return r}}const x6="2",WP={chartOption:{kind:"object",label:Zt("echarts.meta.chartOption")},chartDataSource:{kind:"text",label:Zt("echarts.meta.dataSource")},chartCategoryField:{kind:"text",label:Zt("echarts.meta.categoryField")},chartValueFields:{kind:"object",label:Zt("echarts.meta.valueFields")},chartSeriesField:{kind:"text",label:Zt("echarts.meta.seriesField")}},P6={...WP,chartBubble:{kind:"bool",label:Zt("echarts.meta.bubbleSize")}},gs=y2({id:Vi,version:x6,kinds:Es.map(t=>({type:t.type,get label(){return Zt(t.labelKey)},icon:t.icon,fixedHeight:!0,requiredOptionKeys:t.requiredOptionKeys,get notes(){return Zt(t.notesKey)},optionMeta:t.type==="scatterChart"?P6:WP,defaultOptions:e=>em(t.type,e),binding:{bind:(e,r)=>Xg(t.type,e,r)}})),render:{html:Ov,createRenderer:()=>({render:Ov})}});let mp;function ms(t,e){const r=b2(Vi);if(!t&&!e){const i=Pg(gs);return mp=i,i}const a={...gs,designer:t??r?.designer??gs.designer,render:{...gs.render,...r?.render,...e}},n=Pg(a);return mp=n,n}function S6(t){return ms(t)}function T6(t){return ms(void 0,{executorBundle:t})}function C6(){mp?.(),mp=void 0}ms(),ms();const D6=Object.freeze(Object.defineProperty({__proto__:null,CHART_KINDS:Gg,CHART_KIND_DEFINITIONS:Es,CHART_PALETTES:Gp,CHART_PLUGIN:gs,CHART_PLUGIN_ID:Vi,bindChartData:Xg,chartFactoryDefaults:em,configureChartPlugin:hT,createDefaultChartOption:Os,fitSvgRoot:GP,getChartKindDefinition:Je,getChartPalettes:Qg,getChartPluginConfig:Ui,getSampleCategories:Jg,mmToChartPx:xn,normalizeChartOption:gp,registerChartDesigner:S6,registerChartExecutorBundle:T6,registerChartPlugin:ms,renderChartElement:Ov,renderChartToSvg:Iv,resolveChartPanelFields:Wg,uninstallChartPlugin:C6},Symbol.toStringTag,{value:"Module"})),A6={echarts:{"echarts.panel.chart":"图表","echarts.panel.config":"配置","echarts.panel.dataSource":"数据源","echarts.panel.category":"类目","echarts.panel.value":"数值","echarts.panel.series":"系列","echarts.panel.chartType.bar":"柱状","echarts.panel.chartType.barH":"条形","echarts.panel.chartType.line":"折线","echarts.panel.chartType.area":"面积","echarts.panel.chartType.pie":"饼","echarts.panel.chartType.doughnut":"环形","echarts.panel.chartType.scatter":"散点","echarts.panel.chartType.radar":"雷达","echarts.panel.chartType.funnel":"漏斗","echarts.panel.chartType.gauge":"仪表","echarts.panel.dataLabel":"数据标签","echarts.panel.valueLabel":"数值标签","echarts.panel.hint.dataBinding":"数据由模板绑定阶段注入:series/xAxis 的 data 保留 `$data` 占位即可;复杂样式可在模板 JSON 中手写 chartOption。","echarts.panel.field.dimension":"维度字段(每个字段一个维度)","echarts.panel.field.value":"数值字段","echarts.panel.field.valueMulti":"数值字段(多值多系列)","echarts.panel.default":"(默认)","echarts.panel.current":"(当前)","echarts.panel.defaultFirstArray":"(默认:顶层第一个数组)","echarts.panel.error.invalidOption":"图表 option 非法:需要对象","echarts.panel.chartFallback":"图表","echarts.panel.optionDefault":"(默认)","echarts.panel.overflow.default":"默认","echarts.panel.overflow.none":"不处理(显示完整)","echarts.panel.overflow.truncate":"截断","echarts.panel.overflow.break":"换行","echarts.panel.fontWeight.default":"默认","echarts.panel.fontWeight.normal":"常规","echarts.panel.fontWeight.bold":"加粗","echarts.panel.label.distance":"距离","echarts.panel.label.rotate":"旋转(度)","echarts.panel.label.fontSize":"字号","echarts.panel.label.fontWeight":"字重","echarts.panel.label.color":"文字颜色","echarts.panel.label.backgroundColor":"背景色","echarts.panel.label.borderColor":"边框色","echarts.panel.label.borderWidth":"边框宽度","echarts.panel.label.borderRadius":"圆角","echarts.panel.label.padding":"内边距","echarts.panel.label.show":"显示数据标签","echarts.panel.label.content":"内容","echarts.panel.label.formatterTitle":"数据标签内容","echarts.panel.label.formatterCustom":"自定义 / 默认","echarts.panel.label.formatterPlaceholder":"如 {b}: {c}","echarts.panel.label.overflow":"溢出处理","echarts.panel.label.position":"位置","echarts.panel.label.positionTitle":"标签位置","echarts.panel.label.positionDefault":"默认","echarts.panel.label.offset":"偏移 X / Y","echarts.panel.label.style":"样式","echarts.panel.labelLine.fontWeight":"字重","echarts.panel.labelLine":"引导线","echarts.panel.labelLine.show":"显示引导线","echarts.panel.labelLine.length":"引导线长度","echarts.panel.labelLine.length2":"第二段长度","echarts.panel.labelLine.smooth":"平滑引导线","echarts.panel.dataSourceTitle":"数据源","echarts.panel.categoryField":"类目字段","echarts.panel.removeField":"删除该字段","echarts.panel.addField":"+ 添加字段","echarts.panel.seriesField":"系列拆分字段","echarts.panel.seriesFieldHint":"可选,如 region(按值拆成多系列)","echarts.panel.bubbleSize":"气泡大小","echarts.panel.title":"图表标题","echarts.panel.titleHint":"留空不显示标题","echarts.panel.legend":"显示图例","echarts.panel.palette":"配色","echarts.palette.default":"默认蓝","echarts.palette.fresh":"清新绿","echarts.palette.warm":"暖橙红","echarts.palette.purple":"紫灰","echarts.panel.stack":"堆叠显示","echarts.panel.innerRadius":"内径(%)","echarts.panel.paddingTRBL":"内边距 上/右/下/左 (%)","echarts.panel.paddingTop":"上边距","echarts.panel.paddingRight":"右边距(留外置标签)","echarts.panel.paddingBottom":"下边距","echarts.panel.paddingLeft":"左边距","echarts.panel.radius":"半径(%)","echarts.panel.minMax":"最小 / 最大值","echarts.panel.group":"图表","echarts.series.typeNames.bar":"柱状图","echarts.series.typeNames.barH":"条形图","echarts.series.typeNames.line":"折线图","echarts.series.typeNames.area":"面积图","echarts.series.typeNames.pie":"饼图","echarts.series.typeNames.doughnut":"环形图","echarts.series.typeNames.scatter":"散点图","echarts.series.typeNames.radar":"雷达图","echarts.series.typeNames.funnel":"漏斗图","echarts.series.typeNames.gauge":"仪表盘","echarts.label.formatter.value":"数值","echarts.label.formatter.nameValue":"名称: 数值","echarts.label.formatter.name":"名称","echarts.label.formatter.percent":"百分比","echarts.label.position.bar.top":"顶部","echarts.label.position.bar.inside":"内部","echarts.label.position.bar.insideTop":"内部顶端","echarts.label.position.bar.bottom":"底部","echarts.label.position.bar.insideBottom":"内部底端","echarts.label.position.bar.right":"右侧","echarts.label.position.bar.left":"左侧","echarts.label.position.bar.middle":"居中","echarts.label.position.line.top":"顶部","echarts.label.position.line.bottom":"底部","echarts.label.position.line.inside":"内部","echarts.label.position.line.left":"左侧","echarts.label.position.line.right":"右侧","echarts.label.position.pie.outside":"外侧","echarts.label.position.pie.inside":"内部","echarts.label.position.pie.center":"中心","echarts.label.position.scatter.top":"顶部","echarts.label.position.scatter.bottom":"底部","echarts.label.position.scatter.left":"左侧","echarts.label.position.scatter.right":"右侧","echarts.label.position.scatter.inside":"内部","echarts.label.position.radar.top":"顶部","echarts.label.position.radar.bottom":"底部","echarts.label.position.radar.left":"左侧","echarts.label.position.radar.right":"右侧","echarts.label.position.radar.inside":"内部","echarts.label.position.funnel.outer":"外侧","echarts.label.position.funnel.inner":"内部","echarts.label.position.funnel.left":"左侧","echarts.label.position.funnel.right":"右侧","echarts.label.position.funnel.top":"顶部","echarts.label.position.funnel.bottom":"底部","echarts.meta.chartOption":"图表 option","echarts.meta.dataSource":"数据源","echarts.meta.categoryField":"类目字段","echarts.meta.valueFields":"数值字段","echarts.meta.seriesField":"系列拆分字段","echarts.meta.bubbleSize":"气泡大小","echarts.notes.bar":"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight","echarts.notes.barH":"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位","echarts.notes.line":"折线图:类目 + 多个数值字段;不写 areaStyle","echarts.notes.area":"面积图:折线 + series[].areaStyle;其余同折线图","echarts.notes.pie":"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段","echarts.notes.doughnut":"环形图:饼图 + radius:[内径,外径];内径由面板配置","echarts.notes.scatter":"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小","echarts.notes.radar":"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)","echarts.notes.funnel":"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)","echarts.notes.gauge":"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max"}},L6={echarts:{"echarts.panel.chart":"Chart","echarts.panel.config":"Config","echarts.panel.dataSource":"Data source","echarts.panel.category":"Category","echarts.panel.value":"Value","echarts.panel.series":"Series","echarts.panel.chartType.bar":"Bar","echarts.panel.chartType.barH":"Horizontal bar","echarts.panel.chartType.line":"Line","echarts.panel.chartType.area":"Area","echarts.panel.chartType.pie":"Pie","echarts.panel.chartType.doughnut":"Doughnut","echarts.panel.chartType.scatter":"Scatter","echarts.panel.chartType.radar":"Radar","echarts.panel.chartType.funnel":"Funnel","echarts.panel.chartType.gauge":"Gauge","echarts.panel.dataLabel":"Data label","echarts.panel.valueLabel":"Value label","echarts.panel.hint.dataBinding":"Data is injected at template binding; keep the `$data` placeholder in series/xAxis data; advanced styles can be written in chartOption in the template JSON.","echarts.panel.field.dimension":"Dimension fields (one per dimension)","echarts.panel.field.value":"Value fields","echarts.panel.field.valueMulti":"Value fields (multiple values, multiple series)","echarts.panel.default":"(default)","echarts.panel.current":"(current)","echarts.panel.defaultFirstArray":"(default: first top-level array)","echarts.panel.error.invalidOption":"Invalid chart option: expected an object","echarts.panel.chartFallback":"Chart","echarts.panel.optionDefault":"(default)","echarts.panel.overflow.default":"Default","echarts.panel.overflow.none":"None (show full)","echarts.panel.overflow.truncate":"Truncate","echarts.panel.overflow.break":"Wrap","echarts.panel.fontWeight.default":"Default","echarts.panel.fontWeight.normal":"Regular","echarts.panel.fontWeight.bold":"Bold","echarts.panel.label.distance":"Distance","echarts.panel.label.rotate":"Rotation (deg)","echarts.panel.label.fontSize":"Font size","echarts.panel.label.fontWeight":"Font weight","echarts.panel.label.color":"Text color","echarts.panel.label.backgroundColor":"Background color","echarts.panel.label.borderColor":"Border color","echarts.panel.label.borderWidth":"Border width","echarts.panel.label.borderRadius":"Radius","echarts.panel.label.padding":"Padding","echarts.panel.label.show":"Show data labels","echarts.panel.label.content":"Content","echarts.panel.label.formatterTitle":"Data label content","echarts.panel.label.formatterCustom":"Custom / Default","echarts.panel.label.formatterPlaceholder":"e.g. {b}: {c}","echarts.panel.label.overflow":"Overflow","echarts.panel.label.position":"Position","echarts.panel.label.positionTitle":"Label position","echarts.panel.label.positionDefault":"Default","echarts.panel.label.offset":"Offset X / Y","echarts.panel.label.style":"Style","echarts.panel.labelLine.fontWeight":"Font weight","echarts.panel.labelLine":"Label line","echarts.panel.labelLine.show":"Show label line","echarts.panel.labelLine.length":"Label line length","echarts.panel.labelLine.length2":"Second segment length","echarts.panel.labelLine.smooth":"Smooth label line","echarts.panel.dataSourceTitle":"Data source","echarts.panel.categoryField":"Category field","echarts.panel.removeField":"Remove this field","echarts.panel.addField":"+ Add field","echarts.panel.seriesField":"Series split field","echarts.panel.seriesFieldHint":"Optional, e.g. region (splits into series by value)","echarts.panel.bubbleSize":"Bubble size","echarts.panel.title":"Chart title","echarts.panel.titleHint":"Leave empty to hide the title","echarts.panel.legend":"Show legend","echarts.panel.palette":"Color palette","echarts.palette.default":"Default blue","echarts.palette.fresh":"Fresh green","echarts.palette.warm":"Warm orange-red","echarts.palette.purple":"Purple grey","echarts.panel.stack":"Stacked","echarts.panel.innerRadius":"Inner radius (%)","echarts.panel.paddingTRBL":"Padding top/right/bottom/left (%)","echarts.panel.paddingTop":"Top padding","echarts.panel.paddingRight":"Right padding (for outer labels)","echarts.panel.paddingBottom":"Bottom padding","echarts.panel.paddingLeft":"Left padding","echarts.panel.radius":"Radius (%)","echarts.panel.minMax":"Min / max","echarts.panel.group":"Chart","echarts.series.typeNames.bar":"Bar chart","echarts.series.typeNames.barH":"Horizontal bar chart","echarts.series.typeNames.line":"Line chart","echarts.series.typeNames.area":"Area chart","echarts.series.typeNames.pie":"Pie chart","echarts.series.typeNames.doughnut":"Doughnut chart","echarts.series.typeNames.scatter":"Scatter chart","echarts.series.typeNames.radar":"Radar chart","echarts.series.typeNames.funnel":"Funnel chart","echarts.series.typeNames.gauge":"Gauge chart","echarts.label.formatter.value":"Value","echarts.label.formatter.nameValue":"Name: Value","echarts.label.formatter.name":"Name","echarts.label.formatter.percent":"Percentage","echarts.label.position.bar.top":"Top","echarts.label.position.bar.inside":"Inside","echarts.label.position.bar.insideTop":"Inside top","echarts.label.position.bar.bottom":"Bottom","echarts.label.position.bar.insideBottom":"Inside bottom","echarts.label.position.bar.right":"Right","echarts.label.position.bar.left":"Left","echarts.label.position.bar.middle":"Center","echarts.label.position.line.top":"Top","echarts.label.position.line.bottom":"Bottom","echarts.label.position.line.inside":"Inside","echarts.label.position.line.left":"Left","echarts.label.position.line.right":"Right","echarts.label.position.pie.outside":"Outside","echarts.label.position.pie.inside":"Inside","echarts.label.position.pie.center":"Center","echarts.label.position.scatter.top":"Top","echarts.label.position.scatter.bottom":"Bottom","echarts.label.position.scatter.left":"Left","echarts.label.position.scatter.right":"Right","echarts.label.position.scatter.inside":"Inside","echarts.label.position.radar.top":"Top","echarts.label.position.radar.bottom":"Bottom","echarts.label.position.radar.left":"Left","echarts.label.position.radar.right":"Right","echarts.label.position.radar.inside":"Inside","echarts.label.position.funnel.outer":"Outside","echarts.label.position.funnel.inner":"Inside","echarts.label.position.funnel.left":"Left","echarts.label.position.funnel.right":"Right","echarts.label.position.funnel.top":"Top","echarts.label.position.funnel.bottom":"Bottom","echarts.meta.chartOption":"Chart option","echarts.meta.dataSource":"Data source","echarts.meta.categoryField":"Category field","echarts.meta.valueFields":"Value fields","echarts.meta.seriesField":"Series split field","echarts.meta.bubbleSize":"Bubble size","echarts.notes.bar":"Bar chart: category + multiple value fields, one series per field; write the $data placeholder in series[].data; fixed height, autoHeight is forbidden","echarts.notes.barH":"Horizontal bar: xAxis is the value axis, yAxis is the category axis; write the $data placeholder in yAxis.data for categories","echarts.notes.line":"Line chart: category + multiple value fields; do not write areaStyle","echarts.notes.area":"Area chart: line + series[].areaStyle; otherwise same as the line chart","echarts.notes.pie":"Pie chart: category + the first value field produce { name, value }; only one value field is needed","echarts.notes.doughnut":"Doughnut: pie + radius:[inner, outer]; the inner radius is configured in the panel","echarts.notes.scatter":"Scatter: the category field is x, the first value field is y; when chartBubble is on, the second value field is the point size","echarts.notes.radar":"Radar: each value field is a dimension (radar.indicator), each data row is a series (the category field is the series name); the radius is written by the panel to radar.radius (%, default 75)","echarts.notes.funnel":"Funnel: category + the first value field, sorted descending; the four insets are written by the panel to series.left/right/top/bottom (%, reserve room on the right for outer labels)","echarts.notes.gauge":"Gauge: the first value field of the first data row is the pointer value; min/max are written by the panel to series[0].min/max"}},M6={echarts:{"echarts.panel.chart":"แผนภูมิ","echarts.panel.config":"การกำหนดค่า","echarts.panel.dataSource":"แหล่งข้อมูล","echarts.panel.category":"หมวดหมู่","echarts.panel.value":"ค่า","echarts.panel.series":"ชุดข้อมูล","echarts.panel.chartType.bar":"แท่ง","echarts.panel.chartType.barH":"แท่งแนวนอน","echarts.panel.chartType.line":"เส้น","echarts.panel.chartType.area":"พื้นที่","echarts.panel.chartType.pie":"วงกลม","echarts.panel.chartType.doughnut":"วงกลมวงแหวน","echarts.panel.chartType.scatter":"จุดกระจาย","echarts.panel.chartType.radar":"เรดาร์","echarts.panel.chartType.funnel":"ช่องทาง","echarts.panel.chartType.gauge":"เกจวัด","echarts.panel.dataLabel":"ป้ายข้อมูล","echarts.panel.valueLabel":"ป้ายค่า","echarts.panel.hint.dataBinding":"ข้อมูลถูกแทรกตอนผูกเทมเพลต; คงตัวแทน `$data` ไว้ในข้อมูล series/xAxis; สามารถเขียนสไตล์ขั้นสูงใน chartOption ของ JSON เทมเพลตได้","echarts.panel.field.dimension":"ฟิลด์มิติ (หนึ่งฟิลด์ต่อหนึ่งมิติ)","echarts.panel.field.value":"ฟิลด์ค่า","echarts.panel.field.valueMulti":"ฟิลด์ค่า (หลายค่า หลายชุดข้อมูล)","echarts.panel.default":"(ค่าเริ่มต้น)","echarts.panel.current":"(ปัจจุบัน)","echarts.panel.defaultFirstArray":"(ค่าเริ่มต้น: อาร์เรย์ระดับบนตัวแรก)","echarts.panel.error.invalidOption":"ตัวเลือกแผนภูมิไม่ถูกต้อง: คาดว่าเป็นอ็อบเจกต์","echarts.panel.chartFallback":"แผนภูมิ","echarts.panel.optionDefault":"(ค่าเริ่มต้น)","echarts.panel.overflow.default":"ค่าเริ่มต้น","echarts.panel.overflow.none":"ไม่มี (แสดงทั้งหมด)","echarts.panel.overflow.truncate":"ตัดทิ้ง","echarts.panel.overflow.break":"ตัดคำ","echarts.panel.fontWeight.default":"ค่าเริ่มต้น","echarts.panel.fontWeight.normal":"ปกติ","echarts.panel.fontWeight.bold":"หนา","echarts.panel.label.distance":"ระยะห่าง","echarts.panel.label.rotate":"การหมุน (องศา)","echarts.panel.label.fontSize":"ขนาดฟอนต์","echarts.panel.label.fontWeight":"น้ำหนักฟอนต์","echarts.panel.label.color":"สีข้อความ","echarts.panel.label.backgroundColor":"สีพื้นหลัง","echarts.panel.label.borderColor":"สีเส้นขอบ","echarts.panel.label.borderWidth":"ความกว้างเส้นขอบ","echarts.panel.label.borderRadius":"รัศมี","echarts.panel.label.padding":"ระยะภายใน","echarts.panel.label.show":"แสดงป้ายข้อมูล","echarts.panel.label.content":"เนื้อหา","echarts.panel.label.formatterTitle":"เนื้อหาป้ายข้อมูล","echarts.panel.label.formatterCustom":"กำหนดเอง / ค่าเริ่มต้น","echarts.panel.label.formatterPlaceholder":"เช่น {b}: {c}","echarts.panel.label.overflow":"ล้น","echarts.panel.label.position":"ตำแหน่ง","echarts.panel.label.positionTitle":"ตำแหน่งป้าย","echarts.panel.label.positionDefault":"ค่าเริ่มต้น","echarts.panel.label.offset":"ออฟเซ็ต X / Y","echarts.panel.label.style":"สไตล์","echarts.panel.labelLine.fontWeight":"น้ำหนักฟอนต์","echarts.panel.labelLine":"เส้นป้าย","echarts.panel.labelLine.show":"แสดงเส้นป้าย","echarts.panel.labelLine.length":"ความยาวเส้นป้าย","echarts.panel.labelLine.length2":"ความยาวท่อนที่สอง","echarts.panel.labelLine.smooth":"เส้นป้ายโค้ง","echarts.panel.dataSourceTitle":"แหล่งข้อมูล","echarts.panel.categoryField":"ฟิลด์หมวดหมู่","echarts.panel.removeField":"ลบฟิลด์นี้","echarts.panel.addField":"+ เพิ่มฟิลด์","echarts.panel.seriesField":"ฟิลด์แยกชุดข้อมูล","echarts.panel.seriesFieldHint":"ไม่บังคับ เช่น region (แยกเป็นชุดข้อมูลตามค่า)","echarts.panel.bubbleSize":"ขนาดฟอง","echarts.panel.title":"ชื่อแผนภูมิ","echarts.panel.titleHint":"เว้นว่างเพื่อซ่อนชื่อ","echarts.panel.legend":"แสดงคำอธิบาย","echarts.panel.palette":"ชุดสี","echarts.palette.default":"สีน้ำเงินเริ่มต้น","echarts.palette.fresh":"สีเขียวสดชื่น","echarts.palette.warm":"สีส้มแดงอบอุ่น","echarts.palette.purple":"สีมูฟเทา","echarts.panel.stack":"ซ้อนกัน","echarts.panel.innerRadius":"รัศมีใน (%)","echarts.panel.paddingTRBL":"ระยะบน/ขวา/ล่าง/ซ้าย (%)","echarts.panel.paddingTop":"ระยะบน","echarts.panel.paddingRight":"ระยะขวา (สำหรับป้ายด้านนอก)","echarts.panel.paddingBottom":"ระยะล่าง","echarts.panel.paddingLeft":"ระยะซ้าย","echarts.panel.radius":"รัศมี (%)","echarts.panel.minMax":"ต่ำสุด / สูงสุด","echarts.panel.group":"แผนภูมิ","echarts.series.typeNames.bar":"แผนภูมิแท่ง","echarts.series.typeNames.barH":"แผนภูมิแท่งแนวนอน","echarts.series.typeNames.line":"แผนภูมิเส้น","echarts.series.typeNames.area":"แผนภูมิพื้นที่","echarts.series.typeNames.pie":"แผนภูมิวงกลม","echarts.series.typeNames.doughnut":"แผนภูมิวงกลมวงแหวน","echarts.series.typeNames.scatter":"แผนภูมิกระจาย","echarts.series.typeNames.radar":"แผนภูมิเรดาร์","echarts.series.typeNames.funnel":"แผนภูมิช่องทาง","echarts.series.typeNames.gauge":"แผนภูมิเกจวัด","echarts.label.formatter.value":"ค่า","echarts.label.formatter.nameValue":"ชื่อ: ค่า","echarts.label.formatter.name":"ชื่อ","echarts.label.formatter.percent":"เปอร์เซ็นต์","echarts.label.position.bar.top":"บน","echarts.label.position.bar.inside":"ด้านใน","echarts.label.position.bar.insideTop":"ด้านในบน","echarts.label.position.bar.bottom":"ล่าง","echarts.label.position.bar.insideBottom":"ด้านในล่าง","echarts.label.position.bar.right":"ขวา","echarts.label.position.bar.left":"ซ้าย","echarts.label.position.bar.middle":"กลาง","echarts.label.position.line.top":"บน","echarts.label.position.line.bottom":"ล่าง","echarts.label.position.line.inside":"ด้านใน","echarts.label.position.line.left":"ซ้าย","echarts.label.position.line.right":"ขวา","echarts.label.position.pie.outside":"ด้านนอก","echarts.label.position.pie.inside":"ด้านใน","echarts.label.position.pie.center":"กลาง","echarts.label.position.scatter.top":"บน","echarts.label.position.scatter.bottom":"ล่าง","echarts.label.position.scatter.left":"ซ้าย","echarts.label.position.scatter.right":"ขวา","echarts.label.position.scatter.inside":"ด้านใน","echarts.label.position.radar.top":"บน","echarts.label.position.radar.bottom":"ล่าง","echarts.label.position.radar.left":"ซ้าย","echarts.label.position.radar.right":"ขวา","echarts.label.position.radar.inside":"ด้านใน","echarts.label.position.funnel.outer":"ด้านนอก","echarts.label.position.funnel.inner":"ด้านใน","echarts.label.position.funnel.left":"ซ้าย","echarts.label.position.funnel.right":"ขวา","echarts.label.position.funnel.top":"บน","echarts.label.position.funnel.bottom":"ล่าง","echarts.meta.chartOption":"ตัวเลือกแผนภูมิ","echarts.meta.dataSource":"แหล่งข้อมูล","echarts.meta.categoryField":"ฟิลด์หมวดหมู่","echarts.meta.valueFields":"ฟิลด์ค่า","echarts.meta.seriesField":"ฟิลด์แยกชุดข้อมูล","echarts.meta.bubbleSize":"ขนาดฟอง","echarts.notes.bar":"แผนภูมิแท่ง: หมวดหมู่ + ฟิลด์ค่าหลายตัว หนึ่งฟิลด์ต่อหนึ่ง series; เขียนตัวแทน $data ใน series[].data; ความสูงคงที่ ห้ามใช้ autoHeight","echarts.notes.barH":"แท่งแนวนอน: xAxis เป็นแกนค่า yAxis เป็นแกนหมวดหมู่; เขียนตัวแทน $data ใน yAxis.data สำหรับหมวดหมู่","echarts.notes.line":"แผนภูมิเส้น: หมวดหมู่ + ฟิลด์ค่าหลายตัว; ไม่เขียน areaStyle","echarts.notes.area":"แผนภูมิพื้นที่: เส้น + series[].areaStyle; นอกนั้นเหมือนแผนภูมิเส้น","echarts.notes.pie":"แผนภูมิวงกลม: หมวดหมู่ + ฟิลด์ค่าตัวแรกสร้าง { name, value }; ต้องการเพียงหนึ่งฟิลด์ค่า","echarts.notes.doughnut":"วงกลมวงแหวน: วงกลม + radius:[รัศมีใน, รัศมีนอก]; รัศมีในกำหนดในแผง","echarts.notes.scatter":"แผนภูมิกระจาย: ฟิลด์หมวดหมู่เป็น x ฟิลด์ค่าตัวแรกเป็น y; เมื่อเปิด chartBubble ฟิลด์ค่าตัวที่สองเป็นขนาดจุด","echarts.notes.radar":"แผนภูมิเรดาร์: ฟิลด์ค่าทุกตัวคือหนึ่งมิติ (radar.indicator) ข้อมูลแต่ละแถวคือหนึ่ง series (ฟิลด์หมวดหมู่เป็นชื่อ series); รัศมีเขียนโดยแผงไปที่ radar.radius (%, ค่าเริ่มต้น 75)","echarts.notes.funnel":"แผนภูมิช่องทาง: หมวดหมู่ + ฟิลด์ค่าตัวแรก เรียงตามค่าลงมา; ระยะภายในสี่ด้านเขียนโดยแผงไปที่ series.left/right/top/bottom (%, เผื่อพื้นที่ด้านขวาสำหรับป้ายด้านนอก)","echarts.notes.gauge":"แผนภูมิเกจวัด: ฟิลด์ค่าตัวแรกของแถวข้อมูลแรกเป็นค่าผลักดัน; min/max เขียนโดยแผงไปที่ series[0].min/max"}},$P=Symbol.for("worm-print-platform.element-ui-registry.v1"),YP=globalThis;function KP(){const t=YP[$P];if(t)return t;const e={entries:new Map,listeners:new Set,nextSeq:0};return YP[$P]=e,e}function XP(){for(const t of[...KP().listeners])try{t()}catch{}}function qP(t){if(!t||typeof t!="object")throw new Error("registerElementUI: 需要 ElementUI 对象");if(!Array.isArray(t.types)||t.types.length===0)throw new Error("registerElementUI: types 必须是非空数组");for(const e of t.types)if(!e||typeof e!="string")throw new Error("registerElementUI: types 内每项必须是非空字符串");if(typeof t.renderCanvas!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 缺少 renderCanvas`);if(t.renderProperty!==void 0&&typeof t.renderProperty!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 的 renderProperty 必须是函数`);if(t.locales!==void 0){if(typeof t.locales!="object"||t.locales===null)throw new Error("registerElementUI: locales 必须是对象");const e=`${t.i18nId??t.types[0]}.`;for(const r of Object.values(t.locales)){if(typeof r!="object"||r===null)throw new Error("registerElementUI: locales 的每个语言包必须是对象");for(const a of Object.keys(r))if(!a.startsWith(e))throw new Error(`registerElementUI: 语言包键必须以 "${e}" 开头,收到 "${a}"`)}}}function E6(t){return qP(t),t}function I6(t){qP(t);const e=KP(),r=e.nextSeq++,a=t.i18nId??t.types[0],n=t.locales?Object.entries(t.locales).map(([i,o])=>YS(i,a,o)):[];for(const i of t.types)e.entries.set(i,{ui:t,seq:r,disposeLocales:n});return XP(),()=>{for(const o of n)o();let i=!1;for(const o of t.types)e.entries.get(o)?.ui===t&&(e.entries.delete(o),i=!0);i&&XP()}}function it(t,e={},r=[]){return{tag:t,props:e,children:r}}var jP="http://www.w3.org/2000/svg",O6=new Set(["draggable","contenteditable","spellcheck"]),R6=new Set(["indeterminate"]);function B6(t){return t==="svg"||t==="path"||t==="circle"||t==="rect"||t==="line"||t==="g"}function N6(t){return t instanceof Element&&t.namespaceURI===jP}function Rv(t,e){if(typeof t=="string"){const o=document.createTextNode(t);return e.appendChild(o),o}if(t instanceof Node)return e.appendChild(t),t;const{tag:r,props:a,children:n}=t,i=B6(r)||N6(e)?document.createElementNS(jP,r):document.createElement(r);for(const[o,s]of Object.entries(a))if(!(s==null||s===!1))if(o==="class")i.setAttribute("class",String(s));else if(o==="style")typeof s=="string"?i.style.cssText=s:Object.assign(i.style,s);else if(o==="html")i.innerHTML=String(s);else if(o==="text")i.textContent=String(s);else if(o.startsWith("on")&&typeof s=="function")i.addEventListener(o.slice(2).toLowerCase(),s);else if(o==="dataset")for(const[l,u]of Object.entries(s))i.dataset[l]=u;else R6.has(o)?i[o]=!0:typeof s=="boolean"?s&&i.setAttribute(o,O6.has(o)?"true":""):i.setAttribute(o,String(s));for(const o of n)Rv(o,i);return e.appendChild(i),i}var Pn=null;function Bv(t){const e=/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t.trim());if(!e)return null;const r=e[1],a=r.length===3?r.split("").map(n=>n+n).join(""):r;return{r:Number.parseInt(a.slice(0,2),16),g:Number.parseInt(a.slice(2,4),16),b:Number.parseInt(a.slice(4,6),16)}}function Nv(t){const e=Bv(t);return e?ZP(e):"#000000"}function ZP({r:t,g:e,b:r}){return`#${[t,e,r].map(a=>Math.round(ys(a/255)*255).toString(16).padStart(2,"0")).join("")}`}function F6(t,e,r){const a=t/255,n=e/255,i=r/255,o=Math.max(a,n,i),s=Math.min(a,n,i),l=o-s;let u=0;return l!==0&&(o===a?u=(n-i)/l%6:o===n?u=(i-a)/l+2:u=(a-n)/l+4,u*=60,u<0&&(u+=360)),{h:u,s:o===0?0:l/o,v:o}}function z6(t,e,r){const a=r*e,n=(t%360+360)%360/60,i=a*(1-Math.abs(n%2-1)),[o,s,l]=n<1?[a,i,0]:n<2?[i,a,0]:n<3?[0,a,i]:n<4?[0,i,a]:n<5?[i,0,a]:[a,0,i],u=r-a;return{r:(o+u)*255,g:(s+u)*255,b:(l+u)*255}}function H6(t){return((Number.isFinite(t)?t:0)%360+360)%360}function ys(t){return Math.min(1,Math.max(0,Number.isFinite(t)?t:0))}function V6(t){const e=t.translator??Zt,r=t.title??e("colorPicker.pickColor");return it("button",{type:"button",class:`preset-color-trigger${t.triggerClass?` ${t.triggerClass}`:""}`,"aria-expanded":"false","aria-haspopup":"dialog",title:r,onClick:a=>{const n=a.currentTarget??a.target,i=n.getRootNode();if(!!Pn&&Pn.root===i&&Pn.title===r&&Pn.trigger===n){bs();return}bs(),U6(n,t,e)}},[it("span",{class:"preset-color-swatch",style:t.value?{background:t.value}:{background:"transparent"}})])}function bs(){const t=Pn;t&&(Pn=null,t.teardowns.forEach(e=>e()),t.trigger.setAttribute("aria-expanded","false"),t.panel.remove())}function U6(t,e,r){const a=t.getRootNode(),n=a instanceof ShadowRoot?a:document.body,i={root:a,title:e.title??r("colorPicker.pickColor"),trigger:t,panel:null,clearable:e.clearable!==!1,onChange:e.onChange,model:e.value||void 0,hue:0,saturation:0,value_:0,hexText:"",dragging:!1,current:null,hex:null,area:null,handle:null,hueRange:null,clearBtn:null,translator:r,items:[],teardowns:[]};e.value&&zv(i,e.value)?i.hexText=Nv(e.value).toUpperCase():i.hexText=e.value?String(e.value):"",i.panel=Rv(Y6(i),n),i.current=i.panel.querySelector(".picker-current"),i.hex=i.panel.querySelector(".picker-hex"),i.area=i.panel.querySelector(".picker-area"),i.handle=i.panel.querySelector(".picker-handle"),i.hueRange=i.panel.querySelector(".picker-hue"),i.clearBtn=i.panel.querySelector(".picker-clear"),i.items=Array.from(i.panel.querySelectorAll(".preset-color-item")).map((o,s)=>({el:o,color:Sg[s]})),yp(i),G6(i),W6(i),Pn=i,t.setAttribute("aria-expanded","true")}function G6(t){const e=t.trigger.getBoundingClientRect(),r=190,a=t.panel.offsetHeight||216,n=8,i=Math.max(n,Math.min(e.left,window.innerWidth-r-n)),o=e.bottom+6,s=o+a>window.innerHeight-n?Math.max(n,e.top-a-6):o;t.panel.style.left=`${i}px`,t.panel.style.top=`${s}px`}function W6(t){const e=n=>{const i=$6(n);i.includes(t.trigger)||i.includes(t.panel)||bs()},r=n=>{n.key==="Escape"&&bs()},a=()=>bs();document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",r),window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),t.root.addEventListener("scroll",a,!0),t.teardowns.push(()=>document.removeEventListener("pointerdown",e,!0),()=>document.removeEventListener("keydown",r),()=>window.removeEventListener("scroll",a,!0),()=>window.removeEventListener("resize",a),()=>t.root.removeEventListener("scroll",a,!0))}function $6(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function Y6(t){const e=t.translator;return it("div",{class:"preset-color-panel",role:"dialog","aria-label":e("colorPicker.pickColor"),style:{position:"fixed"},onPointerdown:r=>r.stopPropagation()},[it("div",{class:"picker-preview"},[it("span",{class:"picker-current"}),it("input",{class:"picker-hex",type:"text",maxlength:7,spellcheck:"false","aria-label":e("colorPicker.hexValue"),onInput:r=>X6(t,r.target.value)})]),it("div",{class:"picker-area","aria-label":e("colorPicker.customColor"),tabindex:0,onPointerdown:r=>q6(t,r),onKeydown:r=>j6(t,r)},[it("span",{class:"picker-handle"})]),it("input",{class:"picker-hue",type:"range",min:0,max:360,step:1,"aria-label":e("colorPicker.hue"),onInput:r=>Z6(t,Number(r.target.value)),onChange:()=>Hv(t)}),it("div",{class:"picker-heading"},[it("span",{text:e("colorPicker.commonColors")}),t.clearable?it("button",{type:"button",class:"picker-clear",title:e("colorPicker.clear"),onClick:()=>bp(t,void 0)},[it("svg",{viewBox:"0 0 16 16",width:12,height:12,"aria-hidden":"true"},[it("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round",fill:"none"})]),e("colorPicker.clearShort")]):""].filter(Boolean)),it("div",{class:"preset-color-grid"},Sg.map(r=>it("button",{type:"button",class:"preset-color-item",style:{background:r},title:r,"aria-label":r,onClick:()=>K6(t,r)})))])}function Fv(t){return ZP(z6(t.hue,t.saturation,t.value_))}function yp(t){const e=Fv(t);t.hex.value!==t.hexText&&(t.hex.value=t.hexText),t.current.className=t.model?"picker-current":"picker-current is-empty",t.model?t.current.style.background=e:t.current.style.removeProperty("background"),t.area.style.setProperty("--picker-hue",`${Math.round(t.hue)}deg`),t.handle.style.left=`${t.saturation*100}%`,t.handle.style.top=`${(1-t.value_)*100}%`,t.handle.style.background=e;const r=String(Math.round(t.hue));t.hueRange.value!==r&&(t.hueRange.value=r),t.clearBtn&&(t.clearBtn.disabled=!t.model);for(const a of t.items)a.el.className=t.model&&a.color.toLowerCase()===t.model.toLowerCase()?"preset-color-item active":"preset-color-item"}function zv(t,e){const r=Bv(e);if(!r)return!1;const a=F6(r.r,r.g,r.b);return t.hue=a.h,t.saturation=a.s,t.value_=a.v,t.hexText=Nv(e).toUpperCase(),!0}function Mi(t,e,r,a){t.hue=H6(e),t.saturation=ys(r),t.value_=ys(a),t.hexText=Fv(t).toUpperCase(),yp(t)}function Hv(t){const e=Fv(t);t.model=e,yp(t),t.onChange(e)}function bp(t,e){t.model=e,e||(t.hexText=""),yp(t),t.onChange(e)}function K6(t,e){zv(t,e),bp(t,e)}function X6(t,e){const r=e.trim();if(!r){t.clearable&&bp(t,void 0);return}Bv(r)&&(zv(t,r),bp(t,Nv(r)))}function q6(t,e){t.dragging=!0,QP(t,e);const r=n=>{t.dragging&&QP(t,n)},a=()=>{t.dragging&&(t.dragging=!1,document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",a),document.removeEventListener("pointercancel",a),Hv(t))};document.addEventListener("pointermove",r),document.addEventListener("pointerup",a),document.addEventListener("pointercancel",a)}function QP(t,e){const r=t.area.getBoundingClientRect();if(!r.width||!r.height)return;const a=ys((e.clientX-r.left)/r.width),n=ys(1-(e.clientY-r.top)/r.height);Mi(t,t.hue,a,n)}function j6(t,e){const r=e.shiftKey?.1:.02;let a=!0;e.key==="ArrowLeft"?Mi(t,t.hue,t.saturation-r,t.value_):e.key==="ArrowRight"?Mi(t,t.hue,t.saturation+r,t.value_):e.key==="ArrowUp"?Mi(t,t.hue,t.saturation,t.value_+r):e.key==="ArrowDown"?Mi(t,t.hue,t.saturation,t.value_-r):a=!1,a&&(e.preventDefault(),Hv(t))}function Z6(t,e){Mi(t,e,t.saturation,t.value_)}let kp=Zt;const X=(t,e)=>kp(t,e);function Q6(t,e){const r=kp;kp=t??Zt;try{return e()}finally{kp=r}}const JP="width:100%;height:100%;min-width:0;min-height:0;pointer-events:none",J6=[".echarts-canvas-element{overflow:hidden}",".echarts-field-row{display:flex;gap:6px;align-items:center}",".echarts-field-row>.pd-input{flex:1;min-width:0}",".echarts-field-row>.pd-button{flex:none}",".echarts-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:26px;min-height:26px;padding:3px 6px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);color:inherit;font:inherit;box-sizing:border-box;cursor:pointer;text-align:left}",".echarts-dropdown-trigger:hover{border-color:var(--pd-text-faint,#b4b9c4)}",'.echarts-dropdown-trigger[aria-expanded="true"]{border-color:var(--pd-accent,#165dff);box-shadow:0 0 0 2px rgb(22 93 255 / 12%)}',".echarts-dropdown-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",".echarts-dropdown-arrow{flex:none;color:var(--pd-text-muted,#909399);font-size:10px;transition:transform .14s}",'.echarts-dropdown-trigger[aria-expanded="true"] .echarts-dropdown-arrow{transform:rotate(180deg)}',".echarts-dropdown-panel{position:fixed;z-index:1200;max-height:240px;overflow:auto;padding:3px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);box-shadow:0 6px 18px rgb(0 0 0 / 14%);box-sizing:border-box}",".echarts-dropdown-option{padding:5px 8px;border-radius:4px;cursor:pointer;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",".echarts-dropdown-option:hover{background:var(--pd-accent-soft,rgb(22 93 255 / 9%))}",".echarts-dropdown-option.is-active{background:var(--pd-accent-soft,rgb(22 93 255 / 9%));color:var(--pd-accent,#165dff)}",".echarts-label-group{margin-top:8px;border-top:1px solid var(--pd-border,#e5e7eb);padding-top:8px}",".echarts-label-group>summary{display:flex;align-items:center;cursor:pointer;list-style:none;font-size:12px;font-weight:600}",".echarts-label-summary>.pd-field{flex:1;margin:0;font-weight:400}",".echarts-label-sub{font-size:11px;color:var(--pd-text-secondary,#6b7280);margin:8px 0 4px}"].join(""),eF=["chartOption","chartDataSource","chartCategoryField","chartValueFields","chartSeriesField","chartBubble"],tF=["图表","echarts","option","配置","数据源","类目","数值","系列","柱状","条形","折线","面积","饼","环形","散点","雷达","漏斗","仪表","数据标签","数值标签","label"],rF=()=>X("echarts.panel.hint.dataBinding");function aF(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Vv(t){return t.printElementType?.type??""}function eS(t){const e=t.options.chartOption;return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}function Le(t){const e=eS(t);return Ai(e??Os(Vv(t)))}function nF(t){const e=t?.options;if(!e||typeof e!="object")return!1;const r=e;return eF.some(a=>r[a]!==void 0)}function vt(t,e,r,a={}){t.update({chartOption:gp(e,r),...a})}function wp(t){const e=t.options.chartValueFields;return Array.isArray(e)?e.map(String):[]}function iF(t){switch(t?.seriesType){case"pie":case"funnel":case"gauge":return 1;case"scatter":return 2;default:return 8}}function oF(t,e){return t?.seriesType==="radar"?X("echarts.panel.field.dimension"):X(e===1?"echarts.panel.field.value":"echarts.panel.field.valueMulti")}function sF(t,e){const r=t?.[0],a=r?Object.keys(r).filter(n=>Array.isArray(r[n])):[];for(const n of e??[])n.fieldType==="list"&&n.fieldKey&&!a.includes(n.fieldKey)&&a.push(n.fieldKey);return a}function tS(t,e){const r=t?.[0];if(!r)return[];const a=e?Array.isArray(r[e])?e:"":Object.keys(r).find(i=>Array.isArray(r[i]));if(!a)return[];const n=r[a];return n.length>0&&typeof n[0]=="object"&&n[0]!==null?Object.keys(n[0]):[]}function lF(t){const e=new Map;for(const r of t??[])r.fieldKey&&r.fieldLabel&&e.set(r.fieldKey,r.fieldLabel);return e}function rS(t,e,r){if(!t)return r??X("echarts.panel.default");const a=e.get(t),n=a?`${a}(${t})`:t;return r?`${n}${r}`:n}function Uv(t,e,r=new Map){const a=t.map(n=>({value:n,label:rS(n,r)}));return e&&!t.includes(e)&&a.unshift({value:e,label:rS(e,r,X("echarts.panel.current"))}),e||a.unshift({value:"",label:X("echarts.panel.defaultFirstArray")}),a}function Sn(t){return Array.isArray(t.series)?t.series:[]}function Gv(t,e,r){return Math.min(r,Math.max(e,t))}function Wv(t,e,r){const a=r6(Le(t.element),r.length,e);(Array.isArray(a.series)?a.series:[]).forEach((i,o)=>{const s=r[o]?.trim();s&&(i.name=s)}),vt(t,e,a,{chartValueFields:r})}function uF(t){const e=t.element,r=Vv(e),a=e.options,n=Number(a.width)||0,i=Number(a.height)||0;try{const o=e6(r,eS(e)??Os(r)),s=gp(r,o);if(!s||typeof s!="object"||Array.isArray(s))throw new Error(X("echarts.panel.error.invalidOption"));const l=typeof a.fontFamily=="string"&&a.fontFamily?a.fontFamily:void 0,u=Iv({key:e.id,type:r,option:s,widthMm:n,heightMm:i,fontFamily:l});return`<div class="echarts-canvas-element" style="${JP}">${u}</div>`}catch{const o=typeof a.title=="string"&&a.title.trim()?a.title:Je(r)?.label??X("echarts.panel.chartFallback");return`<div class="echarts-canvas-element" style="${JP}">${aF(o)}</div>`}}function xe(t,e,r){const a=document.createElement(t);return e&&(a.className=e),r!==void 0&&(a.textContent=r),a}function Ge(t){const e=xe("div","pd-field");return e.appendChild(xe("span","pd-label",t)),e}function At(t,e){const r=xe("input","pd-input");return t.type&&(r.type=t.type),t.placeholder&&(r.placeholder=t.placeholder),t.min!==void 0&&(r.min=String(t.min)),t.max!==void 0&&(r.max=String(t.max)),t.title&&(r.title=t.title),t.list&&r.setAttribute("list",t.list),r.value=t.value,r.addEventListener("change",()=>e(r.value)),r}function Ei(t,e,r){const a=Ge(t);a.style.cssText="flex-direction:row;align-items:center;justify-content:space-between";const n=xe("input","pd-switch");return n.type="checkbox",n.checked=e,n.addEventListener("change",()=>r(n.checked)),a.appendChild(n),a}function _p(t,e,r){const a=xe("select","pd-select");for(const n of t){const i=xe("option");i.value=n.value,i.textContent=n.label,a.appendChild(i)}return a.value=e,a.addEventListener("change",()=>r(a.value)),a}let xp=null;function pF(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function $v(t,e,r){const a=t.find(c=>c.value===e)??{label:e||X("echarts.panel.optionDefault")},n=xe("button","echarts-dropdown-trigger");n.type="button",n.setAttribute("aria-haspopup","listbox"),n.setAttribute("aria-expanded","false");const i=xe("span","echarts-dropdown-value",a.label),o=xe("span","echarts-dropdown-arrow","▾");n.appendChild(i),n.appendChild(o);let s=null,l=[];const u=()=>{l.forEach(c=>c()),l=[],s?.remove(),s=null,n.setAttribute("aria-expanded","false"),xp?.close===u&&(xp=null)},p=()=>{xp?.close();const c=n.getRootNode(),f=c instanceof ShadowRoot?c:document.body;s=xe("div","echarts-dropdown-panel"),s.setAttribute("role","listbox");for(const g of t){const y=xe("div",`echarts-dropdown-option${g.value===e?" is-active":""}`,g.label);y.setAttribute("role","option"),y.setAttribute("aria-selected",g.value===e?"true":"false"),y.addEventListener("click",b=>{b.stopPropagation(),u(),r(g.value)}),s.appendChild(y)}f.appendChild(s);const h=n.getBoundingClientRect();s.style.left=`${h.left}px`,s.style.top=`${h.bottom+4}px`,s.style.minWidth=`${h.width}px`,n.setAttribute("aria-expanded","true"),xp={close:u};const d=g=>{const y=pF(g);y.includes(n)||y.includes(s)||u()},v=g=>{g.key==="Escape"&&u()},m=()=>u();document.addEventListener("pointerdown",d,!0),document.addEventListener("keydown",v),window.addEventListener("scroll",m,!0),window.addEventListener("resize",m),c.addEventListener("scroll",m,!0),l.push(()=>document.removeEventListener("pointerdown",d,!0),()=>document.removeEventListener("keydown",v),()=>window.removeEventListener("scroll",m,!0),()=>window.removeEventListener("resize",m),()=>c.removeEventListener("scroll",m,!0))};return n.addEventListener("click",c=>{c.stopPropagation(),s?u():p()}),n}const cF=()=>[{value:"",label:X("echarts.panel.overflow.default")},{value:"none",label:X("echarts.panel.overflow.none")},{value:"truncate",label:X("echarts.panel.overflow.truncate")},{value:"break",label:X("echarts.panel.overflow.break")}],fF=()=>[{value:"",label:X("echarts.panel.fontWeight.default")},{value:"normal",label:X("echarts.panel.fontWeight.normal")},{value:"bold",label:X("echarts.panel.fontWeight.bold")}],hF=()=>({distance:X("echarts.panel.label.distance"),rotate:X("echarts.panel.label.rotate"),fontSize:X("echarts.panel.label.fontSize"),fontWeight:X("echarts.panel.label.fontWeight"),color:X("echarts.panel.label.color"),backgroundColor:X("echarts.panel.label.backgroundColor"),borderColor:X("echarts.panel.label.borderColor"),borderWidth:X("echarts.panel.label.borderWidth"),borderRadius:X("echarts.panel.label.borderRadius"),padding:X("echarts.panel.label.padding")});function dF(t,e){const r=t.element,a=Je(e),n=v6(e),i=g=>n.includes(g),o=g6(Le(r),e),s=hF(),l=g=>{vt(t,e,y6(Le(r),e,g))},u=(g,y)=>{if(y.trim()==="")return l({[g]:null});const b=Number(y);Number.isFinite(b)&&l({[g]:b})},p=(g,y)=>{if(y.trim()==="")return l({labelLine:{[g]:null}});const b=Number(y);Number.isFinite(b)&&l({labelLine:{[g]:b}})},c=(g,y)=>{const b=Ge(s[g]??g);return b.appendChild(At({value:y===void 0?"":String(y),type:"number"},k=>u(g,k))),b},f=(g,y)=>{const b=Ge(s[g]??g),k=xe("span");return Rv(V6({value:y??"",title:s[g]??g,translator:t.t,onChange:w=>l({[g]:w??""})}),k),b.appendChild(k),b},h=xe("details","echarts-label-group");h.open=o.show;const d=xe("summary","echarts-label-summary"),v=Ei(X("echarts.panel.label.show"),o.show,g=>l({enabled:g}));if(v.querySelector("input")?.addEventListener("click",g=>g.stopPropagation()),d.appendChild(v),h.appendChild(d),i("formatter")||i("overflow")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.content"))),i("formatter")){const g=Ge(X("echarts.panel.label.formatterTitle"));g.appendChild(_p([{value:"",label:X("echarts.panel.label.formatterCustom")},...s6.map(y=>({value:y.formatter,label:X(y.labelKey)}))],o.formatter??"",y=>l({formatter:y}))),g.appendChild(At({value:o.formatter??"",placeholder:X("echarts.panel.label.formatterPlaceholder")},y=>l({formatter:y}))),h.appendChild(g)}if(i("overflow")){const g=Ge(X("echarts.panel.label.overflow"));g.appendChild(_p(cF(),o.overflow??"",y=>l({overflow:y}))),h.appendChild(g)}}if(i("position")||i("distance")||i("rotate")||i("offset")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.position"))),i("position")){const g=Ge(X("echarts.panel.label.positionTitle")),y=a?l6[a.seriesType]??[]:[];g.appendChild(_p([{value:"",label:X("echarts.panel.label.positionDefault")},...y.map(b=>({value:b.value,label:X(b.labelKey)}))],o.position??"",b=>l({position:b}))),h.appendChild(g)}if(i("distance")&&h.appendChild(c("distance",o.distance)),i("rotate")&&h.appendChild(c("rotate",o.rotate)),i("offset")){let g=function(){const x=(T,C)=>{const P=T.value.trim();if(P==="")return 0;const S=Number(P);return Number.isFinite(S)?S:C};l({offset:[x(w,k[0]??0),x(_,k[1]??0)]})};const y=Ge(X("echarts.panel.label.offset")),b=xe("div","echarts-field-row"),k=o.offset??[0,0],w=At({value:String(k[0]??0),type:"number"},()=>g()),_=At({value:String(k[1]??0),type:"number"},()=>g());b.appendChild(w),b.appendChild(_),y.appendChild(b),h.appendChild(y)}}if(["fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"].some(i)){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.label.style"))),i("fontSize")&&h.appendChild(c("fontSize",o.fontSize)),i("fontWeight")){const g=Ge(X("echarts.panel.labelLine.fontWeight"));g.appendChild(_p(fF(),o.fontWeight??"",y=>l({fontWeight:y}))),h.appendChild(g)}for(const g of["color","backgroundColor","borderColor"])i(g)&&h.appendChild(f(g,o[g]));for(const g of["borderWidth","borderRadius","padding"])i(g)&&h.appendChild(c(g,o[g]))}if(i("labelLine.show")){if(h.appendChild(xe("div","echarts-label-sub",X("echarts.panel.labelLine"))),h.appendChild(Ei(X("echarts.panel.labelLine.show"),o.labelLine.show===!0,g=>l({labelLine:{show:g}}))),i("labelLine.length")){const g=Ge(X("echarts.panel.labelLine.length"));g.appendChild(At({value:o.labelLine.length===void 0?"":String(o.labelLine.length),type:"number"},y=>p("length",y))),h.appendChild(g)}if(i("labelLine.length2")){const g=Ge(X("echarts.panel.labelLine.length2"));g.appendChild(At({value:o.labelLine.length2===void 0?"":String(o.labelLine.length2),type:"number"},y=>p("length2",y))),h.appendChild(g)}i("labelLine.smooth")&&h.appendChild(Ei(X("echarts.panel.labelLine.smooth"),o.labelLine.smooth===!0,g=>l({labelLine:{smooth:g}})))}return h}function vF(t){return Q6(t.t,()=>gF(t))}function gF(t){const e=t.element,r=Vv(e),a=Je(r),n=Wg(r),i=d=>n.includes(d),o=e.options,s=Number(o.width)||0,l=Number(o.height)||0,u=iF(a),p=Qg(),c=lF(t.fields),f=xe("div","echarts-property"),h=xe("form","pd-form");if(h.addEventListener("submit",d=>d.preventDefault()),f.appendChild(h),i("dataSource")){const d=Ge(X("echarts.panel.dataSourceTitle")),v=String(o.chartDataSource??"");d.appendChild($v(Uv(sF(t.data,t.fields),v,c),v,m=>vt(t,r,Le(e),{chartDataSource:m}))),h.appendChild(d)}if(i("categoryField")){const d=Ge(X("echarts.panel.categoryField")),v=String(o.chartCategoryField??"");d.appendChild($v(Uv(tS(t.data,String(o.chartDataSource??"")),v,c),v,m=>vt(t,r,Le(e),{chartCategoryField:m}))),h.appendChild(d)}if(i("valueFields")){const d=Ge(oF(a,u)),v=wp(e);if(v.forEach((m,g)=>{const y=xe("div","echarts-field-row");if(y.appendChild($v(Uv(tS(t.data,String(o.chartDataSource??"")),m,c),m,b=>{const k=wp(e);k[g]=b,Wv(t,r,k)})),v.length>1){const b=xe("button","pd-button small","−");b.type="button",b.title=X("echarts.panel.removeField"),b.addEventListener("click",()=>Wv(t,r,wp(e).filter((k,w)=>w!==g))),y.appendChild(b)}d.appendChild(y)}),v.length<u){const m=xe("button","pd-button small",X("echarts.panel.addField"));m.type="button",m.addEventListener("click",()=>Wv(t,r,[...wp(e),""])),d.appendChild(m)}h.appendChild(d)}if(i("seriesField")){const d=Ge(X("echarts.panel.seriesField"));d.appendChild(At({value:String(o.chartSeriesField??""),placeholder:X("echarts.panel.seriesFieldHint")},v=>vt(t,r,Le(e),{chartSeriesField:v}))),h.appendChild(d)}if(i("bubble")&&h.appendChild(Ei(X("echarts.panel.bubbleSize"),o.chartBubble===!0,d=>{vt(t,r,Le(e),{chartBubble:d})})),i("title")){const d=Ge(X("echarts.panel.title"));d.appendChild(At({value:String(Li(Le(e).title).text??""),placeholder:X("echarts.panel.titleHint")},v=>{const m=Le(e);m.title={...Li(m.title),text:v},vt(t,r,m)})),h.appendChild(d)}if(i("legend")){const d=Li(Le(e).legend).show!==!1;h.appendChild(Ei(X("echarts.panel.legend"),d,v=>{const m=Le(e);m.legend={...Li(m.legend),show:v},vt(t,r,m)}))}if(i("palette")){const d=Ge(X("echarts.panel.palette")),v=xe("select","pd-select");for(const m of p){const g=xe("option");g.value=m.key,g.textContent=m.labelKey?X(m.labelKey):m.label,v.appendChild(g)}v.value=t6(Le(e),p),v.addEventListener("change",()=>{const m=p.find(y=>y.key===v.value)??p[0],g=Le(e);g.color=[...m.colors],vt(t,r,g)}),d.appendChild(v),h.appendChild(d)}if(i("label")&&h.appendChild(dF(t,r)),i("stack")){const v=Sn(Le(e)).some(m=>m.stack!==void 0&&m.stack!==null&&m.stack!=="");h.appendChild(Ei(X("echarts.panel.stack"),v,m=>{const g=Le(e);for(const y of Sn(g))m?y.stack="total":delete y.stack;vt(t,r,g)}))}if(i("innerRadius")){const d=Ge(X("echarts.panel.innerRadius")),v=Sn(Le(e))[0]?.radius,m=Array.isArray(v)&&Number(String(v[0]??"40%").replace("%",""))||40;d.appendChild(At({value:String(m),type:"number",min:0,max:90},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].radius=[`${Gv(Number(g)||0,0,90)}%`,"70%"]),vt(t,r,y)})),h.appendChild(d)}if(i("padding")){const d=Ge(X("echarts.panel.paddingTRBL")),v=VP(Le(e),s,l),m=xe("div","echarts-field-row"),g=[{side:"top",title:X("echarts.panel.paddingTop")},{side:"right",title:X("echarts.panel.paddingRight")},{side:"bottom",title:X("echarts.panel.paddingBottom")},{side:"left",title:X("echarts.panel.paddingLeft")}];for(const{side:y,title:b}of g)m.appendChild(At({value:String(v[y]),type:"number",min:0,max:60,title:b},k=>{const w=Number(k),_=Number.isFinite(w)?Gv(w,0,60):qg[y],x=Le(e),T=VP(x,s,l);vt(t,r,n6(x,{...T,[y]:_}))}));d.appendChild(m),h.appendChild(d)}if(i("radius")){const d=Ge(X("echarts.panel.radius"));d.appendChild(At({value:String(i6(Le(e),s,l)),type:"number",min:20,max:100},v=>{const m=Number(v),g=Number.isFinite(m)?Gv(m,20,100):jg;vt(t,r,o6(Le(e),g))})),h.appendChild(d)}if(i("gaugeRange")){const d=Ge(X("echarts.panel.minMax")),v=Sn(Le(e)),m=xe("div","echarts-field-row");m.appendChild(At({value:String(Number(v[0]?.min??0)),type:"number"},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].min=Number(g)||0),vt(t,r,y)})),m.appendChild(At({value:String(Number(v[0]?.max??100)),type:"number"},g=>{const y=Le(e),b=Sn(y);b[0]&&(b[0].max=Number(g)||100),vt(t,r,y)})),d.appendChild(m),h.appendChild(d)}return h.appendChild(xe("p","pd-hint",rF())),f}const mF=E6({types:Gg,renderCanvas:uF,renderProperty:vF,hasProperties:nF,group:X("echarts.panel.group"),searchKeywords:tF,styles:J6,i18nId:"echarts",locales:{"zh-CN":A6.echarts,"en-US":L6.echarts,"th-TH":M6.echarts}});let Yv;function yF(){return Yv?.(),Yv=I6(mF),Yv}yF();const bF={...D6};globalThis.WormPrintEcharts??=bF}));
|