/*
 * Local Shengda-compatible dieline geometry runtime.
 * Captured from the public generator used for the application's verified
 * same-dimension compatibility mode; UI/router/bootstrap code is excluded.
 * Source SHA-256: 5712e31e9ea77965f3cba5e859d48183e61162e2d895c3c7d61714f8da512c06
 */
(function attachJianglaiShengdaBoxEngine(root) {
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BEQAg5Ae.js","assets/BaseBoxComponent.vue_vue_type_script_setup_true_lang-DbJVvSgR.js","assets/BaseBoxComponent-CK9Z92Bx.css","assets/index-DK7s0GbT.js","assets/index-CJniafuC.js","assets/index-q6NE1MvI.js","assets/index-DrA0FrRq.js","assets/index-BLxOuiyh.js","assets/index-BqDq595y.js","assets/index-BCK1_by_.js","assets/index-DzjEYWjG.js","assets/index-cn1hBa39.js","assets/index-CTiICsh5.js","assets/index-BESb8FtQ.js","assets/index-B_JOSAKO.js","assets/index-C6V82w4o.js","assets/index-3nNtLEuW.js","assets/index-4JnMv4lH.js","assets/index-DprxzbBf.js","assets/index-Ck5Z-NCf.js","assets/index-y2bY99ht.js","assets/index-C89QjpyF.js","assets/index-C0f4omfo.js","assets/index-BOTkDqEd.js","assets/index-DlSFUEOs.js","assets/index-BhlbW8dR.js","assets/index-C-BcBZ1j.js","assets/index-3exIDyKk.js","assets/index-BcqyOH9m.js","assets/index-DKsDmAV6.js","assets/index-DV7oiY0r.js","assets/index-fufLJU9v.js","assets/index-DvW_0GQy.js","assets/index-X9niFWBv.js","assets/index-zDBJy-0t.js","assets/index-BYSbFWac.js","assets/index-Clb2nvuU.js","assets/index-CTRAabib.js","assets/index-06CzVtTQ.js"])))=>i.map(i=>d[i]);
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const l of u)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(u){const l={};return u.integrity&&(l.integrity=u.integrity),u.referrerPolicy&&(l.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?l.credentials="include":u.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(u){if(u.ep)return;u.ep=!0;const l=n(u);fetch(u.href,l)}})();/**
* @vue/shared v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function makeMap(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),isModelListener=t=>t.startsWith("onUpdate:"),extend$1=Object.assign,remove=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},hasOwnProperty$e=Object.prototype.hasOwnProperty,hasOwn=(t,e)=>hasOwnProperty$e.call(t,e),isArray$3=Array.isArray,isMap$1=t=>toTypeString(t)==="[object Map]",isSet$1=t=>toTypeString(t)==="[object Set]",isDate$1=t=>toTypeString(t)==="[object Date]",isFunction$3=t=>typeof t=="function",isString$2=t=>typeof t=="string",isSymbol$1=t=>typeof t=="symbol",isObject$2=t=>t!==null&&typeof t=="object",isPromise=t=>(isObject$2(t)||isFunction$3(t))&&isFunction$3(t.then)&&isFunction$3(t.catch),objectToString$1=Object.prototype.toString,toTypeString=t=>objectToString$1.call(t),toRawType=t=>toTypeString(t).slice(8,-1),isPlainObject$1=t=>toTypeString(t)==="[object Object]",isIntegerKey=t=>isString$2(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},camelizeRE=/-\w/g,camelize=cacheStringFunction(t=>t.replace(camelizeRE,e=>e.slice(1).toUpperCase())),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(t=>t.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(t=>t.charAt(0).toUpperCase()+t.slice(1)),toHandlerKey=cacheStringFunction(t=>t?`on${capitalize(t)}`:""),hasChanged=(t,e)=>!Object.is(t,e),invokeArrayFns=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},def=(t,e,n,s=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:n})},looseToNumber=t=>{const e=parseFloat(t);return isNaN(e)?t:e},toNumber$1=t=>{const e=isString$2(t)?Number(t):NaN;return isNaN(e)?t:e};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(t){if(isArray$3(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],u=isString$2(s)?parseStringStyle(s):normalizeStyle(s);if(u)for(const l in u)e[l]=u[l]}return e}else if(isString$2(t)||isObject$2(t))return t}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(t){const e={};return t.replace(styleCommentRE,"").split(listDelimiterRE).forEach(n=>{if(n){const s=n.split(propertyDelimiterRE);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function normalizeClass(t){let e="";if(isString$2(t))e=t;else if(isArray$3(t))for(let n=0;n<t.length;n++){const s=normalizeClass(t[n]);s&&(e+=s+" ")}else if(isObject$2(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function normalizeProps(t){if(!t)return null;let{class:e,style:n}=t;return e&&!isString$2(e)&&(t.class=normalizeClass(e)),n&&(t.style=normalizeStyle(n)),t}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(t){return!!t||t===""}function looseCompareArrays(t,e){if(t.length!==e.length)return!1;let n=!0;for(let s=0;n&&s<t.length;s++)n=looseEqual(t[s],e[s]);return n}function looseEqual(t,e){if(t===e)return!0;let n=isDate$1(t),s=isDate$1(e);if(n||s)return n&&s?t.getTime()===e.getTime():!1;if(n=isSymbol$1(t),s=isSymbol$1(e),n||s)return t===e;if(n=isArray$3(t),s=isArray$3(e),n||s)return n&&s?looseCompareArrays(t,e):!1;if(n=isObject$2(t),s=isObject$2(e),n||s){if(!n||!s)return!1;const u=Object.keys(t).length,l=Object.keys(e).length;if(u!==l)return!1;for(const o in t){const i=t.hasOwnProperty(o),g=e.hasOwnProperty(o);if(i&&!g||!i&&g||!looseEqual(t[o],e[o]))return!1}}return String(t)===String(e)}function looseIndexOf(t,e){return t.findIndex(n=>looseEqual(n,e))}const isRef$1=t=>!!(t&&t.__v_isRef===!0),toDisplayString=t=>isString$2(t)?t:t==null?"":isArray$3(t)||isObject$2(t)&&(t.toString===objectToString$1||!isFunction$3(t.toString))?isRef$1(t)?toDisplayString(t.value):JSON.stringify(t,replacer,2):String(t),replacer=(t,e)=>isRef$1(e)?replacer(t,e.value):isMap$1(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,u],l)=>(n[stringifySymbol(s,l)+" =>"]=u,n),{})}:isSet$1(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>stringifySymbol(n))}:isSymbol$1(e)?stringifySymbol(e):isObject$2(e)&&!isArray$3(e)&&!isPlainObject$1(e)?String(e):e,stringifySymbol=(t,e="")=>{var n;return isSymbol$1(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
* @vue/reactivity v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let activeEffectScope;class EffectScope{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!e&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=activeEffectScope;try{return activeEffectScope=this,e()}finally{activeEffectScope=n}}}on(){++this._on===1&&(this.prevScope=activeEffectScope,activeEffectScope=this)}off(){this._on>0&&--this._on===0&&(activeEffectScope=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const u=this.parent.scopes.pop();u&&u!==this&&(this.parent.scopes[this.index]=u,u.index=this.index)}this.parent=void 0}}}function effectScope(t){return new EffectScope(t)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(t,e=!1){activeEffectScope&&activeEffectScope.cleanups.push(t)}let activeSub;const pausedQueueEffects=new WeakSet;class ReactiveEffect{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,activeEffectScope&&activeEffectScope.active&&activeEffectScope.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pausedQueueEffects.has(this)&&(pausedQueueEffects.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||batch(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);const e=activeSub,n=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=e,shouldTrack=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)removeSub(e);this.deps=this.depsTail=void 0,cleanupEffect(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pausedQueueEffects.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){isDirty(this)&&this.run()}get dirty(){return isDirty(this)}}let batchDepth=0,batchedSub,batchedComputed;function batch(t,e=!1){if(t.flags|=8,e){t.next=batchedComputed,batchedComputed=t;return}t.next=batchedSub,batchedSub=t}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;if(batchedComputed){let e=batchedComputed;for(batchedComputed=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;batchedSub;){let e=batchedSub;for(batchedSub=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=n}}if(t)throw t}function prepareDeps(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function cleanupDeps(t){let e,n=t.depsTail,s=n;for(;s;){const u=s.prevDep;s.version===-1?(s===n&&(n=u),removeSub(s),removeDep(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=u}t.deps=e,t.depsTail=n}function isDirty(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(refreshComputed(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function refreshComputed(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===globalVersion)||(t.globalVersion=globalVersion,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!isDirty(t))))return;t.flags|=2;const e=t.dep,n=activeSub,s=shouldTrack;activeSub=t,shouldTrack=!0;try{prepareDeps(t);const u=t.fn(t._value);(e.version===0||hasChanged(u,t._value))&&(t.flags|=128,t._value=u,e.version++)}catch(u){throw e.version++,u}finally{activeSub=n,shouldTrack=s,cleanupDeps(t),t.flags&=-3}}function removeSub(t,e=!1){const{dep:n,prevSub:s,nextSub:u}=t;if(s&&(s.nextSub=u,t.prevSub=void 0),u&&(u.prevSub=s,t.nextSub=void 0),n.subs===t&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)removeSub(l,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function removeDep(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const t=trackStack.pop();shouldTrack=t===void 0?!0:t}function cleanupEffect(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=activeSub;activeSub=void 0;try{e()}finally{activeSub=n}}}let globalVersion=0;class Link{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dep{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==activeSub)n=this.activeLink=new Link(activeSub,this),activeSub.deps?(n.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=n,activeSub.depsTail=n):activeSub.deps=activeSub.depsTail=n,addSub(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=activeSub.depsTail,n.nextDep=void 0,activeSub.depsTail.nextDep=n,activeSub.depsTail=n,activeSub.deps===n&&(activeSub.deps=s)}return n}trigger(e){this.version++,globalVersion++,this.notify(e)}notify(e){startBatch();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{endBatch()}}}function addSub(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)addSub(s)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(t,e,n){if(shouldTrack&&activeSub){let s=targetMap.get(t);s||targetMap.set(t,s=new Map);let u=s.get(n);u||(s.set(n,u=new Dep),u.map=s,u.key=n),u.track()}}function trigger(t,e,n,s,u,l){const o=targetMap.get(t);if(!o){globalVersion++;return}const i=g=>{g&&g.trigger()};if(startBatch(),e==="clear")o.forEach(i);else{const g=isArray$3(t),d=g&&isIntegerKey(n);if(g&&n==="length"){const r=Number(s);o.forEach((f,L)=>{(L==="length"||L===ARRAY_ITERATE_KEY||!isSymbol$1(L)&&L>=r)&&i(f)})}else switch((n!==void 0||o.has(void 0))&&i(o.get(n)),d&&i(o.get(ARRAY_ITERATE_KEY)),e){case"add":g?d&&i(o.get("length")):(i(o.get(ITERATE_KEY)),isMap$1(t)&&i(o.get(MAP_KEY_ITERATE_KEY)));break;case"delete":g||(i(o.get(ITERATE_KEY)),isMap$1(t)&&i(o.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(t)&&i(o.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(t,e){const n=targetMap.get(t);return n&&n.get(e)}function reactiveReadArray(t){const e=toRaw(t);return e===t?e:(track(e,"iterate",ARRAY_ITERATE_KEY),isShallow(t)?e:e.map(toReactive))}function shallowReadArray(t){return track(t=toRaw(t),"iterate",ARRAY_ITERATE_KEY),t}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator$1(this,Symbol.iterator,toReactive)},concat(...t){return reactiveReadArray(this).concat(...t.map(e=>isArray$3(e)?reactiveReadArray(e):e))},entries(){return iterator$1(this,"entries",t=>(t[1]=toReactive(t[1]),t))},every(t,e){return apply$1(this,"every",t,e,void 0,arguments)},filter(t,e){return apply$1(this,"filter",t,e,n=>n.map(toReactive),arguments)},find(t,e){return apply$1(this,"find",t,e,toReactive,arguments)},findIndex(t,e){return apply$1(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return apply$1(this,"findLast",t,e,toReactive,arguments)},findLastIndex(t,e){return apply$1(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return apply$1(this,"forEach",t,e,void 0,arguments)},includes(...t){return searchProxy(this,"includes",t)},indexOf(...t){return searchProxy(this,"indexOf",t)},join(t){return reactiveReadArray(this).join(t)},lastIndexOf(...t){return searchProxy(this,"lastIndexOf",t)},map(t,e){return apply$1(this,"map",t,e,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...t){return noTracking(this,"push",t)},reduce(t,...e){return reduce(this,"reduce",t,e)},reduceRight(t,...e){return reduce(this,"reduceRight",t,e)},shift(){return noTracking(this,"shift")},some(t,e){return apply$1(this,"some",t,e,void 0,arguments)},splice(...t){return noTracking(this,"splice",t)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(t){return reactiveReadArray(this).toSorted(t)},toSpliced(...t){return reactiveReadArray(this).toSpliced(...t)},unshift(...t){return noTracking(this,"unshift",t)},values(){return iterator$1(this,"values",toReactive)}};function iterator$1(t,e,n){const s=shallowReadArray(t),u=s[e]();return s!==t&&!isShallow(t)&&(u._next=u.next,u.next=()=>{const l=u._next();return l.done||(l.value=n(l.value)),l}),u}const arrayProto$1=Array.prototype;function apply$1(t,e,n,s,u,l){const o=shallowReadArray(t),i=o!==t&&!isShallow(t),g=o[e];if(g!==arrayProto$1[e]){const f=g.apply(t,l);return i?toReactive(f):f}let d=n;o!==t&&(i?d=function(f,L){return n.call(this,toReactive(f),L,t)}:n.length>2&&(d=function(f,L){return n.call(this,f,L,t)}));const r=g.call(o,d,s);return i&&u?u(r):r}function reduce(t,e,n,s){const u=shallowReadArray(t);let l=n;return u!==t&&(isShallow(t)?n.length>3&&(l=function(o,i,g){return n.call(this,o,i,g,t)}):l=function(o,i,g){return n.call(this,o,toReactive(i),g,t)}),u[e](l,...s)}function searchProxy(t,e,n){const s=toRaw(t);track(s,"iterate",ARRAY_ITERATE_KEY);const u=s[e](...n);return(u===-1||u===!1)&&isProxy(n[0])?(n[0]=toRaw(n[0]),s[e](...n)):u}function noTracking(t,e,n=[]){pauseTracking(),startBatch();const s=toRaw(t)[e].apply(t,n);return endBatch(),resetTracking(),s}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(isSymbol$1));function hasOwnProperty$d(t){isSymbol$1(t)||(t=String(t));const e=toRaw(this);return track(e,"has",t),e.hasOwnProperty(t)}class BaseReactiveHandler{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){if(n==="__v_skip")return e.__v_skip;const u=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!u;if(n==="__v_isReadonly")return u;if(n==="__v_isShallow")return l;if(n==="__v_raw")return s===(u?l?shallowReadonlyMap:readonlyMap:l?shallowReactiveMap:reactiveMap).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=isArray$3(e);if(!u){let g;if(o&&(g=arrayInstrumentations[n]))return g;if(n==="hasOwnProperty")return hasOwnProperty$d}const i=Reflect.get(e,n,isRef(e)?e:s);if((isSymbol$1(n)?builtInSymbols.has(n):isNonTrackableKeys(n))||(u||track(e,"get",n),l))return i;if(isRef(i)){const g=o&&isIntegerKey(n)?i:i.value;return u&&isObject$2(g)?readonly(g):g}return isObject$2(i)?u?readonly(i):reactive(i):i}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(e=!1){super(!1,e)}set(e,n,s,u){let l=e[n];if(!this._isShallow){const g=isReadonly(l);if(!isShallow(s)&&!isReadonly(s)&&(l=toRaw(l),s=toRaw(s)),!isArray$3(e)&&isRef(l)&&!isRef(s))return g||(l.value=s),!0}const o=isArray$3(e)&&isIntegerKey(n)?Number(n)<e.length:hasOwn(e,n),i=Reflect.set(e,n,s,isRef(e)?e:u);return e===toRaw(u)&&(o?hasChanged(s,l)&&trigger(e,"set",n,s):trigger(e,"add",n,s)),i}deleteProperty(e,n){const s=hasOwn(e,n);e[n];const u=Reflect.deleteProperty(e,n);return u&&s&&trigger(e,"delete",n,void 0),u}has(e,n){const s=Reflect.has(e,n);return(!isSymbol$1(n)||!builtInSymbols.has(n))&&track(e,"has",n),s}ownKeys(e){return track(e,"iterate",isArray$3(e)?"length":ITERATE_KEY),Reflect.ownKeys(e)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=t=>t,getProto=t=>Reflect.getPrototypeOf(t);function createIterableMethod(t,e,n){return function(...s){const u=this.__v_raw,l=toRaw(u),o=isMap$1(l),i=t==="entries"||t===Symbol.iterator&&o,g=t==="keys"&&o,d=u[t](...s),r=n?toShallow:e?toReadonly:toReactive;return!e&&track(l,"iterate",g?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:f,done:L}=d.next();return L?{value:f,done:L}:{value:i?[r(f[0]),r(f[1])]:r(f),done:L}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function createInstrumentations(t,e){const n={get(u){const l=this.__v_raw,o=toRaw(l),i=toRaw(u);t||(hasChanged(u,i)&&track(o,"get",u),track(o,"get",i));const{has:g}=getProto(o),d=e?toShallow:t?toReadonly:toReactive;if(g.call(o,u))return d(l.get(u));if(g.call(o,i))return d(l.get(i));l!==o&&l.get(u)},get size(){const u=this.__v_raw;return!t&&track(toRaw(u),"iterate",ITERATE_KEY),u.size},has(u){const l=this.__v_raw,o=toRaw(l),i=toRaw(u);return t||(hasChanged(u,i)&&track(o,"has",u),track(o,"has",i)),u===i?l.has(u):l.has(u)||l.has(i)},forEach(u,l){const o=this,i=o.__v_raw,g=toRaw(i),d=e?toShallow:t?toReadonly:toReactive;return!t&&track(g,"iterate",ITERATE_KEY),i.forEach((r,f)=>u.call(l,d(r),d(f),o))}};return extend$1(n,t?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(u){!e&&!isShallow(u)&&!isReadonly(u)&&(u=toRaw(u));const l=toRaw(this);return getProto(l).has.call(l,u)||(l.add(u),trigger(l,"add",u,u)),this},set(u,l){!e&&!isShallow(l)&&!isReadonly(l)&&(l=toRaw(l));const o=toRaw(this),{has:i,get:g}=getProto(o);let d=i.call(o,u);d||(u=toRaw(u),d=i.call(o,u));const r=g.call(o,u);return o.set(u,l),d?hasChanged(l,r)&&trigger(o,"set",u,l):trigger(o,"add",u,l),this},delete(u){const l=toRaw(this),{has:o,get:i}=getProto(l);let g=o.call(l,u);g||(u=toRaw(u),g=o.call(l,u)),i&&i.call(l,u);const d=l.delete(u);return g&&trigger(l,"delete",u,void 0),d},clear(){const u=toRaw(this),l=u.size!==0,o=u.clear();return l&&trigger(u,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(u=>{n[u]=createIterableMethod(u,t,e)}),n}function createInstrumentationGetter(t,e){const n=createInstrumentations(t,e);return(s,u,l)=>u==="__v_isReactive"?!t:u==="__v_isReadonly"?t:u==="__v_raw"?s:Reflect.get(hasOwn(n,u)&&u in s?n:s,u,l)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(t){return t.__v_skip||!Object.isExtensible(t)?0:targetTypeMap(toRawType(t))}function reactive(t){return isReadonly(t)?t:createReactiveObject(t,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(t){return createReactiveObject(t,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(t){return createReactiveObject(t,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(t){return createReactiveObject(t,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(t,e,n,s,u){if(!isObject$2(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const l=getTargetType(t);if(l===0)return t;const o=u.get(t);if(o)return o;const i=new Proxy(t,l===2?s:n);return u.set(t,i),i}function isReactive(t){return isReadonly(t)?isReactive(t.__v_raw):!!(t&&t.__v_isReactive)}function isReadonly(t){return!!(t&&t.__v_isReadonly)}function isShallow(t){return!!(t&&t.__v_isShallow)}function isProxy(t){return t?!!t.__v_raw:!1}function toRaw(t){const e=t&&t.__v_raw;return e?toRaw(e):t}function markRaw(t){return!hasOwn(t,"__v_skip")&&Object.isExtensible(t)&&def(t,"__v_skip",!0),t}const toReactive=t=>isObject$2(t)?reactive(t):t,toReadonly=t=>isObject$2(t)?readonly(t):t;function isRef(t){return t?t.__v_isRef===!0:!1}function ref(t){return createRef(t,!1)}function shallowRef(t){return createRef(t,!0)}function createRef(t,e){return isRef(t)?t:new RefImpl(t,e)}class RefImpl{constructor(e,n){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:toRaw(e),this._value=n?e:toReactive(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,s=this.__v_isShallow||isShallow(e)||isReadonly(e);e=s?e:toRaw(e),hasChanged(e,n)&&(this._rawValue=e,this._value=s?e:toReactive(e),this.dep.trigger())}}function unref(t){return isRef(t)?t.value:t}const shallowUnwrapHandlers={get:(t,e,n)=>e==="__v_raw"?t:unref(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const u=t[e];return isRef(u)&&!isRef(n)?(u.value=n,!0):Reflect.set(t,e,n,s)}};function proxyRefs(t){return isReactive(t)?t:new Proxy(t,shallowUnwrapHandlers)}function toRefs(t){const e=isArray$3(t)?new Array(t.length):{};for(const n in t)e[n]=propertyToRef(t,n);return e}class ObjectRefImpl{constructor(e,n,s){this._object=e,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function toRef(t,e,n){return isRef(t)?t:isFunction$3(t)?new GetterRefImpl(t):isObject$2(t)&&arguments.length>1?propertyToRef(t,e,n):ref(t)}function propertyToRef(t,e,n){const s=t[e];return isRef(s)?s:new ObjectRefImpl(t,e,n)}class ComputedRefImpl{constructor(e,n,s){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){const e=this.dep.track();return refreshComputed(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function computed$1(t,e,n=!1){let s,u;return isFunction$3(t)?s=t:(s=t.get,u=t.set),new ComputedRefImpl(s,u,n)}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(t,e=!1,n=activeWatcher){if(n){let s=cleanupMap.get(n);s||cleanupMap.set(n,s=[]),s.push(t)}}function watch$1(t,e,n=EMPTY_OBJ){const{immediate:s,deep:u,once:l,scheduler:o,augmentJob:i,call:g}=n,d=j=>u?j:isShallow(j)||u===!1||u===0?traverse(j,1):traverse(j);let r,f,L,T,x=!1,c=!1;if(isRef(t)?(f=()=>t.value,x=isShallow(t)):isReactive(t)?(f=()=>d(t),x=!0):isArray$3(t)?(c=!0,x=t.some(j=>isReactive(j)||isShallow(j)),f=()=>t.map(j=>{if(isRef(j))return j.value;if(isReactive(j))return d(j);if(isFunction$3(j))return g?g(j,2):j()})):isFunction$3(t)?e?f=g?()=>g(t,2):t:f=()=>{if(L){pauseTracking();try{L()}finally{resetTracking()}}const j=activeWatcher;activeWatcher=r;try{return g?g(t,3,[T]):t(T)}finally{activeWatcher=j}}:f=NOOP,e&&u){const j=f,F=u===!0?1/0:u;f=()=>traverse(j(),F)}const m=getCurrentScope(),y=()=>{r.stop(),m&&m.active&&remove(m.effects,r)};if(l&&e){const j=e;e=(...F)=>{j(...F),y()}}let O=c?new Array(t.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const b=j=>{if(!(!(r.flags&1)||!r.dirty&&!j))if(e){const F=r.run();if(u||x||(c?F.some((k,_)=>hasChanged(k,O[_])):hasChanged(F,O))){L&&L();const k=activeWatcher;activeWatcher=r;try{const _=[F,O===INITIAL_WATCHER_VALUE?void 0:c&&O[0]===INITIAL_WATCHER_VALUE?[]:O,T];O=F,g?g(e,3,_):e(..._)}finally{activeWatcher=k}}}else r.run()};return i&&i(b),r=new ReactiveEffect(f),r.scheduler=o?()=>o(b,!1):b,T=j=>onWatcherCleanup(j,!1,r),L=r.onStop=()=>{const j=cleanupMap.get(r);if(j){if(g)g(j,4);else for(const F of j)F();cleanupMap.delete(r)}},e?s?b(!0):O=r.run():o?o(b.bind(null,!0),!0):r.run(),y.pause=r.pause.bind(r),y.resume=r.resume.bind(r),y.stop=y,y}function traverse(t,e=1/0,n){if(e<=0||!isObject$2(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,isRef(t))traverse(t.value,e,n);else if(isArray$3(t))for(let s=0;s<t.length;s++)traverse(t[s],e,n);else if(isSet$1(t)||isMap$1(t))t.forEach(s=>{traverse(s,e,n)});else if(isPlainObject$1(t)){for(const s in t)traverse(t[s],e,n);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&traverse(t[s],e,n)}return t}/**
* @vue/runtime-core v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const stack=[];let isWarning=!1;function warn$1(t,...e){if(isWarning)return;isWarning=!0,pauseTracking();const n=stack.length?stack[stack.length-1].component:null,s=n&&n.appContext.config.warnHandler,u=getComponentTrace();if(s)callWithErrorHandling(s,n,11,[t+e.map(l=>{var o,i;return(i=(o=l.toString)==null?void 0:o.call(l))!=null?i:JSON.stringify(l)}).join(""),n&&n.proxy,u.map(({vnode:l})=>`at <${formatComponentName(n,l.type)}>`).join(`
`),u]);else{const l=[`[Vue warn]: ${t}`,...e];u.length&&l.push(`
`,...formatTrace(u)),console.warn(...l)}resetTracking(),isWarning=!1}function getComponentTrace(){let t=stack[stack.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const s=t.component&&t.component.parent;t=s&&s.vnode}return e}function formatTrace(t){const e=[];return t.forEach((n,s)=>{e.push(...s===0?[]:[`
`],...formatTraceEntry(n))}),e}function formatTraceEntry({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",s=t.component?t.component.parent==null:!1,u=` at <${formatComponentName(t.component,t.type,s)}`,l=">"+n;return t.props?[u,...formatProps(t.props),l]:[u+l]}function formatProps(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(s=>{e.push(...formatProp(s,t[s]))}),n.length>3&&e.push(" ..."),e}function formatProp(t,e,n){return isString$2(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:isRef(e)?(e=formatProp(t,toRaw(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):isFunction$3(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=toRaw(e),n?e:[`${t}=`,e])}function callWithErrorHandling(t,e,n,s){try{return s?t(...s):t()}catch(u){handleError(u,e,n)}}function callWithAsyncErrorHandling(t,e,n,s){if(isFunction$3(t)){const u=callWithErrorHandling(t,e,n,s);return u&&isPromise(u)&&u.catch(l=>{handleError(l,e,n)}),u}if(isArray$3(t)){const u=[];for(let l=0;l<t.length;l++)u.push(callWithAsyncErrorHandling(t[l],e,n,s));return u}}function handleError(t,e,n,s=!0){const u=e?e.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||EMPTY_OBJ;if(e){let i=e.parent;const g=e.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const r=i.ec;if(r){for(let f=0;f<r.length;f++)if(r[f](t,g,d)===!1)return}i=i.parent}if(l){pauseTracking(),callWithErrorHandling(l,null,10,[t,g,d]),resetTracking();return}}logError(t,n,u,s,o)}function logError(t,e,n,s=!0,u=!1){if(u)throw t;console.error(t)}const queue=[];let flushIndex=-1;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick(t){const e=currentFlushPromise||resolvedPromise;return t?e.then(this?t.bind(this):t):e}function findInsertionIndex$1(t){let e=flushIndex+1,n=queue.length;for(;e<n;){const s=e+n>>>1,u=queue[s],l=getId(u);l<t||l===t&&u.flags&2?e=s+1:n=s}return e}function queueJob(t){if(!(t.flags&1)){const e=getId(t),n=queue[queue.length-1];!n||!(t.flags&2)&&e>=getId(n)?queue.push(t):queue.splice(findInsertionIndex$1(e),0,t),t.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(t){isArray$3(t)?pendingPostFlushCbs.push(...t):activePostFlushCbs&&t.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,t):t.flags&1||(pendingPostFlushCbs.push(t),t.flags|=1),queueFlush()}function flushPreFlushCbs(t,e,n=flushIndex+1){for(;n<queue.length;n++){const s=queue[n];if(s&&s.flags&2){if(t&&s.id!==t.uid)continue;queue.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function flushPostFlushCbs(t){if(pendingPostFlushCbs.length){const e=[...new Set(pendingPostFlushCbs)].sort((n,s)=>getId(n)-getId(s));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...e);return}for(activePostFlushCbs=e,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const n=activePostFlushCbs[postFlushIndex];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId=t=>t.id==null?t.flags&2?-1:1/0:t.id;function flushJobs(t){try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const e=queue[flushIndex];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),callWithErrorHandling(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;flushIndex<queue.length;flushIndex++){const e=queue[flushIndex];e&&(e.flags&=-2)}flushIndex=-1,queue.length=0,flushPostFlushCbs(),currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(t){const e=currentRenderingInstance;return currentRenderingInstance=t,currentScopeId=t&&t.type.__scopeId||null,e}function withCtx(t,e=currentRenderingInstance,n){if(!e||t._n)return t;const s=(...u)=>{s._d&&setBlockTracking(-1);const l=setCurrentRenderingInstance(e);let o;try{o=t(...u)}finally{setCurrentRenderingInstance(l),s._d&&setBlockTracking(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function withDirectives(t,e){if(currentRenderingInstance===null)return t;const n=getComponentPublicInstance(currentRenderingInstance),s=t.dirs||(t.dirs=[]);for(let u=0;u<e.length;u++){let[l,o,i,g=EMPTY_OBJ]=e[u];l&&(isFunction$3(l)&&(l={mounted:l,updated:l}),l.deep&&traverse(o),s.push({dir:l,instance:n,value:o,oldValue:void 0,arg:i,modifiers:g}))}return t}function invokeDirectiveHook(t,e,n,s){const u=t.dirs,l=e&&e.dirs;for(let o=0;o<u.length;o++){const i=u[o];l&&(i.oldValue=l[o].value);let g=i.dir[s];g&&(pauseTracking(),callWithAsyncErrorHandling(g,n,8,[t.el,i,t,e]),resetTracking())}}const TeleportEndKey=Symbol("_vte"),isTeleport=t=>t.__isTeleport,isTeleportDisabled=t=>t&&(t.disabled||t.disabled===""),isTeleportDeferred=t=>t&&(t.defer||t.defer===""),isTargetSVG=t=>typeof SVGElement<"u"&&t instanceof SVGElement,isTargetMathML=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,resolveTarget=(t,e)=>{const n=t&&t.to;return isString$2(n)?e?e(n):null:n},TeleportImpl={name:"Teleport",__isTeleport:!0,process(t,e,n,s,u,l,o,i,g,d){const{mc:r,pc:f,pbc:L,o:{insert:T,querySelector:x,createText:c,createComment:m}}=d,y=isTeleportDisabled(e.props);let{shapeFlag:O,children:b,dynamicChildren:j}=e;if(t==null){const F=e.el=c(""),k=e.anchor=c("");T(F,n,s),T(k,n,s);const _=(re,de)=>{O&16&&r(b,re,de,u,l,o,i,g)},ue=()=>{const re=e.target=resolveTarget(e.props,x),de=prepareAnchor(re,e,c,T);re&&(o!=="svg"&&isTargetSVG(re)?o="svg":o!=="mathml"&&isTargetMathML(re)&&(o="mathml"),u&&u.isCE&&(u.ce._teleportTargets||(u.ce._teleportTargets=new Set)).add(re),y||(_(re,de),updateCssVars(e,!1)))};y&&(_(n,k),updateCssVars(e,!0)),isTeleportDeferred(e.props)?(e.el.__isMounted=!1,queuePostRenderEffect(()=>{ue(),delete e.el.__isMounted},l)):ue()}else{if(isTeleportDeferred(e.props)&&t.el.__isMounted===!1){queuePostRenderEffect(()=>{TeleportImpl.process(t,e,n,s,u,l,o,i,g,d)},l);return}e.el=t.el,e.targetStart=t.targetStart;const F=e.anchor=t.anchor,k=e.target=t.target,_=e.targetAnchor=t.targetAnchor,ue=isTeleportDisabled(t.props),re=ue?n:k,de=ue?F:_;if(o==="svg"||isTargetSVG(k)?o="svg":(o==="mathml"||isTargetMathML(k))&&(o="mathml"),j?(L(t.dynamicChildren,j,re,u,l,o,i),traverseStaticChildren(t,e,!0)):g||f(t,e,re,de,u,l,o,i,!1),y)ue?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):moveTeleport(e,n,F,d,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const he=e.target=resolveTarget(e.props,x);he&&moveTeleport(e,he,null,d,0)}else ue&&moveTeleport(e,k,_,d,1);updateCssVars(e,y)}},remove(t,e,n,{um:s,o:{remove:u}},l){const{shapeFlag:o,children:i,anchor:g,targetStart:d,targetAnchor:r,target:f,props:L}=t;if(f&&(u(d),u(r)),l&&u(g),o&16){const T=l||!isTeleportDisabled(L);for(let x=0;x<i.length;x++){const c=i[x];s(c,e,n,T,!!c.dynamicChildren)}}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(t,e,n,{o:{insert:s},m:u},l=2){l===0&&s(t.targetAnchor,e,n);const{el:o,anchor:i,shapeFlag:g,children:d,props:r}=t,f=l===2;if(f&&s(o,e,n),(!f||isTeleportDisabled(r))&&g&16)for(let L=0;L<d.length;L++)u(d[L],e,n,2);f&&s(i,e,n)}function hydrateTeleport(t,e,n,s,u,l,{o:{nextSibling:o,parentNode:i,querySelector:g,insert:d,createText:r}},f){function L(c,m,y,O){m.anchor=f(o(c),m,i(c),n,s,u,l),m.targetStart=y,m.targetAnchor=O}const T=e.target=resolveTarget(e.props,g),x=isTeleportDisabled(e.props);if(T){const c=T._lpa||T.firstChild;if(e.shapeFlag&16)if(x)L(t,e,c,c&&o(c));else{e.anchor=o(t);let m=c;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")e.targetStart=m;else if(m.data==="teleport anchor"){e.targetAnchor=m,T._lpa=e.targetAnchor&&o(e.targetAnchor);break}}m=o(m)}e.targetAnchor||prepareAnchor(T,e,r,d),f(c&&o(c),e,T,n,s,u,l)}updateCssVars(e,x)}else x&&e.shapeFlag&16&&L(t,e,t,o(t));return e.anchor&&o(e.anchor)}const Teleport$1=TeleportImpl;function updateCssVars(t,e){const n=t.ctx;if(n&&n.ut){let s,u;for(e?(s=t.el,u=t.anchor):(s=t.targetStart,u=t.targetAnchor);s&&s!==u;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function prepareAnchor(t,e,n,s){const u=e.targetStart=n(""),l=e.targetAnchor=n("");return u[TeleportEndKey]=l,t&&(s(u,t),s(l,t)),l}const leaveCbKey=Symbol("_leaveCb"),enterCbKey$1=Symbol("_enterCb");function useTransitionState(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{t.isMounted=!0}),onBeforeUnmount(()=>{t.isUnmounting=!0}),t}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=t=>{const e=t.subTree;return e.component?recursiveGetSubtree(e.component):e},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(t,{slots:e}){const n=getCurrentInstance(),s=useTransitionState();return()=>{const u=e.default&&getTransitionRawChildren(e.default(),!0);if(!u||!u.length)return;const l=findNonCommentChild(u),o=toRaw(t),{mode:i}=o;if(s.isLeaving)return emptyPlaceholder(l);const g=getInnerChild$1(l);if(!g)return emptyPlaceholder(l);let d=resolveTransitionHooks(g,o,s,n,f=>d=f);g.type!==Comment&&setTransitionHooks(g,d);let r=n.subTree&&getInnerChild$1(n.subTree);if(r&&r.type!==Comment&&!isSameVNodeType(r,g)&&recursiveGetSubtree(n).type!==Comment){let f=resolveTransitionHooks(r,o,s,n);if(setTransitionHooks(r,f),i==="out-in"&&g.type!==Comment)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,r=void 0},emptyPlaceholder(l);i==="in-out"&&g.type!==Comment?f.delayLeave=(L,T,x)=>{const c=getLeavingNodesForType(s,r);c[String(r.key)]=r,L[leaveCbKey]=()=>{T(),L[leaveCbKey]=void 0,delete d.delayedLeave,r=void 0},d.delayedLeave=()=>{x(),delete d.delayedLeave,r=void 0}}:r=void 0}else r&&(r=void 0);return l}}};function findNonCommentChild(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Comment){e=n;break}}return e}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(t,e){const{leavingVNodes:n}=t;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function resolveTransitionHooks(t,e,n,s,u){const{appear:l,mode:o,persisted:i=!1,onBeforeEnter:g,onEnter:d,onAfterEnter:r,onEnterCancelled:f,onBeforeLeave:L,onLeave:T,onAfterLeave:x,onLeaveCancelled:c,onBeforeAppear:m,onAppear:y,onAfterAppear:O,onAppearCancelled:b}=e,j=String(t.key),F=getLeavingNodesForType(n,t),k=(re,de)=>{re&&callWithAsyncErrorHandling(re,s,9,de)},_=(re,de)=>{const he=de[1];k(re,de),isArray$3(re)?re.every(w=>w.length<=1)&&he():re.length<=1&&he()},ue={mode:o,persisted:i,beforeEnter(re){let de=g;if(!n.isMounted)if(l)de=m||g;else return;re[leaveCbKey]&&re[leaveCbKey](!0);const he=F[j];he&&isSameVNodeType(t,he)&&he.el[leaveCbKey]&&he.el[leaveCbKey](),k(de,[re])},enter(re){let de=d,he=r,w=f;if(!n.isMounted)if(l)de=y||d,he=O||r,w=b||f;else return;let le=!1;const V=re[enterCbKey$1]=Ce=>{le||(le=!0,Ce?k(w,[re]):k(he,[re]),ue.delayedLeave&&ue.delayedLeave(),re[enterCbKey$1]=void 0)};de?_(de,[re,V]):V()},leave(re,de){const he=String(t.key);if(re[enterCbKey$1]&&re[enterCbKey$1](!0),n.isUnmounting)return de();k(L,[re]);let w=!1;const le=re[leaveCbKey]=V=>{w||(w=!0,de(),V?k(c,[re]):k(x,[re]),re[leaveCbKey]=void 0,F[he]===t&&delete F[he])};F[he]=t,T?_(T,[re,le]):le()},clone(re){const de=resolveTransitionHooks(re,e,n,s,u);return u&&u(de),de}};return ue}function emptyPlaceholder(t){if(isKeepAlive(t))return t=cloneVNode(t),t.children=null,t}function getInnerChild$1(t){if(!isKeepAlive(t))return isTeleport(t.type)&&t.children?findNonCommentChild(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&isFunction$3(n.default))return n.default()}}function setTransitionHooks(t,e){t.shapeFlag&6&&t.component?(t.transition=e,setTransitionHooks(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function getTransitionRawChildren(t,e=!1,n){let s=[],u=0;for(let l=0;l<t.length;l++){let o=t[l];const i=n==null?o.key:String(n)+String(o.key!=null?o.key:l);o.type===Fragment?(o.patchFlag&128&&u++,s=s.concat(getTransitionRawChildren(o.children,e,i))):(e||o.type!==Comment)&&s.push(i!=null?cloneVNode(o,{key:i}):o)}if(u>1)for(let l=0;l<s.length;l++)s[l].patchFlag=-2;return s}function defineComponent(t,e){return isFunction$3(t)?extend$1({name:t.name},e,{setup:t}):t}function markAsyncBoundary(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}const pendingSetRefMap=new WeakMap;function setRef(t,e,n,s,u=!1){if(isArray$3(t)){t.forEach((x,c)=>setRef(x,e&&(isArray$3(e)?e[c]:e),n,s,u));return}if(isAsyncWrapper(s)&&!u){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&setRef(t,e,n,s.component.subTree);return}const l=s.shapeFlag&4?getComponentPublicInstance(s.component):s.el,o=u?null:l,{i,r:g}=t,d=e&&e.r,r=i.refs===EMPTY_OBJ?i.refs={}:i.refs,f=i.setupState,L=toRaw(f),T=f===EMPTY_OBJ?NO:x=>hasOwn(L,x);if(d!=null&&d!==g){if(invalidatePendingSetRef(e),isString$2(d))r[d]=null,T(d)&&(f[d]=null);else if(isRef(d)){d.value=null;const x=e;x.k&&(r[x.k]=null)}}if(isFunction$3(g))callWithErrorHandling(g,i,12,[o,r]);else{const x=isString$2(g),c=isRef(g);if(x||c){const m=()=>{if(t.f){const y=x?T(g)?f[g]:r[g]:g.value;if(u)isArray$3(y)&&remove(y,l);else if(isArray$3(y))y.includes(l)||y.push(l);else if(x)r[g]=[l],T(g)&&(f[g]=r[g]);else{const O=[l];g.value=O,t.k&&(r[t.k]=O)}}else x?(r[g]=o,T(g)&&(f[g]=o)):c&&(g.value=o,t.k&&(r[t.k]=o))};if(o){const y=()=>{m(),pendingSetRefMap.delete(t)};y.id=-1,pendingSetRefMap.set(t,y),queuePostRenderEffect(y,n)}else invalidatePendingSetRef(t),m()}}}function invalidatePendingSetRef(t){const e=pendingSetRefMap.get(t);e&&(e.flags|=8,pendingSetRefMap.delete(t))}const isComment=t=>t.nodeType===8;getGlobalThis().requestIdleCallback;getGlobalThis().cancelIdleCallback;function forEachElement(t,e){if(isComment(t)&&t.data==="["){let n=1,s=t.nextSibling;for(;s;){if(s.nodeType===1){if(e(s)===!1)break}else if(isComment(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else e(t)}const isAsyncWrapper=t=>!!t.type.__asyncLoader;function defineAsyncComponent(t){isFunction$3(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:s,delay:u=200,hydrate:l,timeout:o,suspensible:i=!0,onError:g}=t;let d=null,r,f=0;const L=()=>(f++,d=null,T()),T=()=>{let x;return d||(x=d=e().catch(c=>{if(c=c instanceof Error?c:new Error(String(c)),g)return new Promise((m,y)=>{g(c,()=>m(L()),()=>y(c),f+1)});throw c}).then(c=>x!==d&&d?d:(c&&(c.__esModule||c[Symbol.toStringTag]==="Module")&&(c=c.default),r=c,c)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:T,__asyncHydrate(x,c,m){let y=!1;(c.bu||(c.bu=[])).push(()=>y=!0);const O=()=>{y||m()},b=l?()=>{const j=l(O,F=>forEachElement(x,F));j&&(c.bum||(c.bum=[])).push(j)}:O;r?b():T().then(()=>!c.isUnmounted&&b())},get __asyncResolved(){return r},setup(){const x=currentInstance;if(markAsyncBoundary(x),r)return()=>createInnerComp(r,x);const c=b=>{d=null,handleError(b,x,13,!s)};if(i&&x.suspense||isInSSRComponentSetup)return T().then(b=>()=>createInnerComp(b,x)).catch(b=>(c(b),()=>s?createVNode(s,{error:b}):null));const m=ref(!1),y=ref(),O=ref(!!u);return u&&setTimeout(()=>{O.value=!1},u),o!=null&&setTimeout(()=>{if(!m.value&&!y.value){const b=new Error(`Async component timed out after ${o}ms.`);c(b),y.value=b}},o),T().then(()=>{m.value=!0,x.parent&&isKeepAlive(x.parent.vnode)&&x.parent.update()}).catch(b=>{c(b),y.value=b}),()=>{if(m.value&&r)return createInnerComp(r,x);if(y.value&&s)return createVNode(s,{error:y.value});if(n&&!O.value)return createVNode(n)}}})}function createInnerComp(t,e){const{ref:n,props:s,children:u,ce:l}=e.vnode,o=createVNode(t,s,u);return o.ref=n,o.ce=l,delete e.vnode.ce,o}const isKeepAlive=t=>t.type.__isKeepAlive;function onActivated(t,e){registerKeepAliveHook(t,"a",e)}function onDeactivated(t,e){registerKeepAliveHook(t,"da",e)}function registerKeepAliveHook(t,e,n=currentInstance){const s=t.__wdc||(t.__wdc=()=>{let u=n;for(;u;){if(u.isDeactivated)return;u=u.parent}return t()});if(injectHook(e,s,n),n){let u=n.parent;for(;u&&u.parent;)isKeepAlive(u.parent.vnode)&&injectToKeepAliveRoot(s,e,n,u),u=u.parent}}function injectToKeepAliveRoot(t,e,n,s){const u=injectHook(e,t,s,!0);onUnmounted(()=>{remove(s[e],u)},n)}function injectHook(t,e,n=currentInstance,s=!1){if(n){const u=n[t]||(n[t]=[]),l=e.__weh||(e.__weh=(...o)=>{pauseTracking();const i=setCurrentInstance(n),g=callWithAsyncErrorHandling(e,n,t,o);return i(),resetTracking(),g});return s?u.unshift(l):u.push(l),l}}const createHook=t=>(e,n=currentInstance)=>{(!isInSSRComponentSetup||t==="sp")&&injectHook(t,(...s)=>e(...s),n)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(t,e=currentInstance){injectHook("ec",t,e)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(t,e){return resolveAsset(COMPONENTS,t,!0,e)||t}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(t){return isString$2(t)?resolveAsset(COMPONENTS,t,!1)||t:t||NULL_DYNAMIC_COMPONENT}function resolveDirective(t){return resolveAsset(DIRECTIVES,t)}function resolveAsset(t,e,n=!0,s=!1){const u=currentRenderingInstance||currentInstance;if(u){const l=u.type;if(t===COMPONENTS){const i=getComponentName(l,!1);if(i&&(i===e||i===camelize(e)||i===capitalize(camelize(e))))return l}const o=resolve(u[t]||l[t],e)||resolve(u.appContext[t],e);return!o&&s?l:o}}function resolve(t,e){return t&&(t[e]||t[camelize(e)]||t[capitalize(camelize(e))])}function renderList(t,e,n,s){let u;const l=n,o=isArray$3(t);if(o||isString$2(t)){const i=o&&isReactive(t);let g=!1,d=!1;i&&(g=!isShallow(t),d=isReadonly(t),t=shallowReadArray(t)),u=new Array(t.length);for(let r=0,f=t.length;r<f;r++)u[r]=e(g?d?toReadonly(toReactive(t[r])):toReactive(t[r]):t[r],r,void 0,l)}else if(typeof t=="number"){u=new Array(t);for(let i=0;i<t;i++)u[i]=e(i+1,i,void 0,l)}else if(isObject$2(t))if(t[Symbol.iterator])u=Array.from(t,(i,g)=>e(i,g,void 0,l));else{const i=Object.keys(t);u=new Array(i.length);for(let g=0,d=i.length;g<d;g++){const r=i[g];u[g]=e(t[r],r,g,l)}}else u=[];return u}function createSlots(t,e){for(let n=0;n<e.length;n++){const s=e[n];if(isArray$3(s))for(let u=0;u<s.length;u++)t[s[u].name]=s[u].fn;else s&&(t[s.name]=s.key?(...u)=>{const l=s.fn(...u);return l&&(l.key=s.key),l}:s.fn)}return t}function renderSlot(t,e,n={},s,u){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.ce){const d=Object.keys(n).length>0;return e!=="default"&&(n.name=e),openBlock(),createBlock(Fragment,null,[createVNode("slot",n,s&&s())],d?-2:64)}let l=t[e];l&&l._c&&(l._d=!1),openBlock();const o=l&&ensureValidVNode(l(n)),i=n.key||o&&o.key,g=createBlock(Fragment,{key:(i&&!isSymbol$1(i)?i:`_${e}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&t._===1?64:-2);return g.scopeId&&(g.slotScopeIds=[g.scopeId+"-s"]),l&&l._c&&(l._d=!0),g}function ensureValidVNode(t){return t.some(e=>isVNode(e)?!(e.type===Comment||e.type===Fragment&&!ensureValidVNode(e.children)):!0)?t:null}function toHandlers(t,e){const n={};for(const s in t)n[toHandlerKey(s)]=t[s];return n}const getPublicInstance=t=>t?isStatefulComponent(t)?getComponentPublicInstance(t):getPublicInstance(t.parent):null,publicPropertiesMap=extend$1(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>getPublicInstance(t.parent),$root:t=>getPublicInstance(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>resolveMergedOptions(t),$forceUpdate:t=>t.f||(t.f=()=>{queueJob(t.update)}),$nextTick:t=>t.n||(t.n=nextTick.bind(t.proxy)),$watch:t=>instanceWatch.bind(t)}),hasSetupBinding=(t,e)=>t!==EMPTY_OBJ&&!t.__isScriptSetup&&hasOwn(t,e),PublicInstanceProxyHandlers={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:u,props:l,accessCache:o,type:i,appContext:g}=t;let d;if(e[0]!=="$"){const T=o[e];if(T!==void 0)switch(T){case 1:return s[e];case 2:return u[e];case 4:return n[e];case 3:return l[e]}else{if(hasSetupBinding(s,e))return o[e]=1,s[e];if(u!==EMPTY_OBJ&&hasOwn(u,e))return o[e]=2,u[e];if((d=t.propsOptions[0])&&hasOwn(d,e))return o[e]=3,l[e];if(n!==EMPTY_OBJ&&hasOwn(n,e))return o[e]=4,n[e];shouldCacheAccess&&(o[e]=0)}}const r=publicPropertiesMap[e];let f,L;if(r)return e==="$attrs"&&track(t.attrs,"get",""),r(t);if((f=i.__cssModules)&&(f=f[e]))return f;if(n!==EMPTY_OBJ&&hasOwn(n,e))return o[e]=4,n[e];if(L=g.config.globalProperties,hasOwn(L,e))return L[e]},set({_:t},e,n){const{data:s,setupState:u,ctx:l}=t;return hasSetupBinding(u,e)?(u[e]=n,!0):s!==EMPTY_OBJ&&hasOwn(s,e)?(s[e]=n,!0):hasOwn(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(l[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:u,propsOptions:l,type:o}},i){let g,d;return!!(n[i]||t!==EMPTY_OBJ&&i[0]!=="$"&&hasOwn(t,i)||hasSetupBinding(e,i)||(g=l[0])&&hasOwn(g,i)||hasOwn(s,i)||hasOwn(publicPropertiesMap,i)||hasOwn(u.config.globalProperties,i)||(d=o.__cssModules)&&d[i])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:hasOwn(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function useSlots(){return getContext().slots}function useAttrs$1(){return getContext().attrs}function getContext(t){const e=getCurrentInstance();return e.setupContext||(e.setupContext=createSetupContext(e))}function normalizePropsOrEmits(t){return isArray$3(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let shouldCacheAccess=!0;function applyOptions(t){const e=resolveMergedOptions(t),n=t.proxy,s=t.ctx;shouldCacheAccess=!1,e.beforeCreate&&callHook$1(e.beforeCreate,t,"bc");const{data:u,computed:l,methods:o,watch:i,provide:g,inject:d,created:r,beforeMount:f,mounted:L,beforeUpdate:T,updated:x,activated:c,deactivated:m,beforeDestroy:y,beforeUnmount:O,destroyed:b,unmounted:j,render:F,renderTracked:k,renderTriggered:_,errorCaptured:ue,serverPrefetch:re,expose:de,inheritAttrs:he,components:w,directives:le,filters:V}=e;if(d&&resolveInjections(d,s,null),o)for(const D in o){const Ie=o[D];isFunction$3(Ie)&&(s[D]=Ie.bind(n))}if(u){const D=u.call(n,n);isObject$2(D)&&(t.data=reactive(D))}if(shouldCacheAccess=!0,l)for(const D in l){const Ie=l[D],Lt=isFunction$3(Ie)?Ie.bind(n,n):isFunction$3(Ie.get)?Ie.get.bind(n,n):NOOP,At=!isFunction$3(Ie)&&isFunction$3(Ie.set)?Ie.set.bind(n):NOOP,ie=computed({get:Lt,set:At});Object.defineProperty(s,D,{enumerable:!0,configurable:!0,get:()=>ie.value,set:Ve=>ie.value=Ve})}if(i)for(const D in i)createWatcher(i[D],s,n,D);if(g){const D=isFunction$3(g)?g.call(n):g;Reflect.ownKeys(D).forEach(Ie=>{provide(Ie,D[Ie])})}r&&callHook$1(r,t,"c");function _e(D,Ie){isArray$3(Ie)?Ie.forEach(Lt=>D(Lt.bind(n))):Ie&&D(Ie.bind(n))}if(_e(onBeforeMount,f),_e(onMounted,L),_e(onBeforeUpdate,T),_e(onUpdated,x),_e(onActivated,c),_e(onDeactivated,m),_e(onErrorCaptured,ue),_e(onRenderTracked,k),_e(onRenderTriggered,_),_e(onBeforeUnmount,O),_e(onUnmounted,j),_e(onServerPrefetch,re),isArray$3(de))if(de.length){const D=t.exposed||(t.exposed={});de.forEach(Ie=>{Object.defineProperty(D,Ie,{get:()=>n[Ie],set:Lt=>n[Ie]=Lt,enumerable:!0})})}else t.exposed||(t.exposed={});F&&t.render===NOOP&&(t.render=F),he!=null&&(t.inheritAttrs=he),w&&(t.components=w),le&&(t.directives=le),re&&markAsyncBoundary(t)}function resolveInjections(t,e,n=NOOP){isArray$3(t)&&(t=normalizeInject(t));for(const s in t){const u=t[s];let l;isObject$2(u)?"default"in u?l=inject(u.from||s,u.default,!0):l=inject(u.from||s):l=inject(u),isRef(l)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:o=>l.value=o}):e[s]=l}}function callHook$1(t,e,n){callWithAsyncErrorHandling(isArray$3(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function createWatcher(t,e,n,s){let u=s.includes(".")?createPathGetter(n,s):()=>n[s];if(isString$2(t)){const l=e[t];isFunction$3(l)&&watch(u,l)}else if(isFunction$3(t))watch(u,t.bind(n));else if(isObject$2(t))if(isArray$3(t))t.forEach(l=>createWatcher(l,e,n,s));else{const l=isFunction$3(t.handler)?t.handler.bind(n):e[t.handler];isFunction$3(l)&&watch(u,l,t)}}function resolveMergedOptions(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:u,optionsCache:l,config:{optionMergeStrategies:o}}=t.appContext,i=l.get(e);let g;return i?g=i:!u.length&&!n&&!s?g=e:(g={},u.length&&u.forEach(d=>mergeOptions$1(g,d,o,!0)),mergeOptions$1(g,e,o)),isObject$2(e)&&l.set(e,g),g}function mergeOptions$1(t,e,n,s=!1){const{mixins:u,extends:l}=e;l&&mergeOptions$1(t,l,n,!0),u&&u.forEach(o=>mergeOptions$1(t,o,n,!0));for(const o in e)if(!(s&&o==="expose")){const i=internalOptionMergeStrats[o]||n&&n[o];t[o]=i?i(t[o],e[o]):e[o]}return t}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(t,e){return e?t?function(){return extend$1(isFunction$3(t)?t.call(this,this):t,isFunction$3(e)?e.call(this,this):e)}:e:t}function mergeInject(t,e){return mergeObjectOptions(normalizeInject(t),normalizeInject(e))}function normalizeInject(t){if(isArray$3(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function mergeAsArray(t,e){return t?[...new Set([].concat(t,e))]:e}function mergeObjectOptions(t,e){return t?extend$1(Object.create(null),t,e):e}function mergeEmitsOrPropsOptions(t,e){return t?isArray$3(t)&&isArray$3(e)?[...new Set([...t,...e])]:extend$1(Object.create(null),normalizePropsOrEmits(t),normalizePropsOrEmits(e??{})):e}function mergeWatchOptions(t,e){if(!t)return e;if(!e)return t;const n=extend$1(Object.create(null),t);for(const s in e)n[s]=mergeAsArray(t[s],e[s]);return n}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(t,e){return function(s,u=null){isFunction$3(s)||(s=extend$1({},s)),u!=null&&!isObject$2(u)&&(u=null);const l=createAppContext(),o=new WeakSet,i=[];let g=!1;const d=l.app={_uid:uid$1++,_component:s,_props:u,_container:null,_context:l,_instance:null,version,get config(){return l.config},set config(r){},use(r,...f){return o.has(r)||(r&&isFunction$3(r.install)?(o.add(r),r.install(d,...f)):isFunction$3(r)&&(o.add(r),r(d,...f))),d},mixin(r){return l.mixins.includes(r)||l.mixins.push(r),d},component(r,f){return f?(l.components[r]=f,d):l.components[r]},directive(r,f){return f?(l.directives[r]=f,d):l.directives[r]},mount(r,f,L){if(!g){const T=d._ceVNode||createVNode(s,u);return T.appContext=l,L===!0?L="svg":L===!1&&(L=void 0),t(T,r,L),g=!0,d._container=r,r.__vue_app__=d,getComponentPublicInstance(T.component)}},onUnmount(r){i.push(r)},unmount(){g&&(callWithAsyncErrorHandling(i,d._instance,16),t(null,d._container),delete d._container.__vue_app__)},provide(r,f){return l.provides[r]=f,d},runWithContext(r){const f=currentApp;currentApp=d;try{return r()}finally{currentApp=f}}};return d}}let currentApp=null;function provide(t,e){if(currentInstance){let n=currentInstance.provides;const s=currentInstance.parent&&currentInstance.parent.provides;s===n&&(n=currentInstance.provides=Object.create(s)),n[t]=e}}function inject(t,e,n=!1){const s=getCurrentInstance();if(s||currentApp){let u=currentApp?currentApp._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(u&&t in u)return u[t];if(arguments.length>1)return n&&isFunction$3(e)?e.call(s&&s.proxy):e}}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=t=>Object.getPrototypeOf(t)===internalObjectProto;function initProps(t,e,n,s=!1){const u={},l=createInternalObject();t.propsDefaults=Object.create(null),setFullProps(t,e,u,l);for(const o in t.propsOptions[0])o in u||(u[o]=void 0);n?t.props=s?u:shallowReactive(u):t.type.props?t.props=u:t.props=l,t.attrs=l}function updateProps(t,e,n,s){const{props:u,attrs:l,vnode:{patchFlag:o}}=t,i=toRaw(u),[g]=t.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const r=t.vnode.dynamicProps;for(let f=0;f<r.length;f++){let L=r[f];if(isEmitListener(t.emitsOptions,L))continue;const T=e[L];if(g)if(hasOwn(l,L))T!==l[L]&&(l[L]=T,d=!0);else{const x=camelize(L);u[x]=resolvePropValue(g,i,x,T,t,!1)}else T!==l[L]&&(l[L]=T,d=!0)}}}else{setFullProps(t,e,u,l)&&(d=!0);let r;for(const f in i)(!e||!hasOwn(e,f)&&((r=hyphenate(f))===f||!hasOwn(e,r)))&&(g?n&&(n[f]!==void 0||n[r]!==void 0)&&(u[f]=resolvePropValue(g,i,f,void 0,t,!0)):delete u[f]);if(l!==i)for(const f in l)(!e||!hasOwn(e,f))&&(delete l[f],d=!0)}d&&trigger(t.attrs,"set","")}function setFullProps(t,e,n,s){const[u,l]=t.propsOptions;let o=!1,i;if(e)for(let g in e){if(isReservedProp(g))continue;const d=e[g];let r;u&&hasOwn(u,r=camelize(g))?!l||!l.includes(r)?n[r]=d:(i||(i={}))[r]=d:isEmitListener(t.emitsOptions,g)||(!(g in s)||d!==s[g])&&(s[g]=d,o=!0)}if(l){const g=toRaw(n),d=i||EMPTY_OBJ;for(let r=0;r<l.length;r++){const f=l[r];n[f]=resolvePropValue(u,g,f,d[f],t,!hasOwn(d,f))}}return o}function resolvePropValue(t,e,n,s,u,l){const o=t[n];if(o!=null){const i=hasOwn(o,"default");if(i&&s===void 0){const g=o.default;if(o.type!==Function&&!o.skipFactory&&isFunction$3(g)){const{propsDefaults:d}=u;if(n in d)s=d[n];else{const r=setCurrentInstance(u);s=d[n]=g.call(null,e),r()}}else s=g;u.ce&&u.ce._setProp(n,s)}o[0]&&(l&&!i?s=!1:o[1]&&(s===""||s===hyphenate(n))&&(s=!0))}return s}const mixinPropsCache=new WeakMap;function normalizePropsOptions(t,e,n=!1){const s=n?mixinPropsCache:e.propsCache,u=s.get(t);if(u)return u;const l=t.props,o={},i=[];let g=!1;if(!isFunction$3(t)){const r=f=>{g=!0;const[L,T]=normalizePropsOptions(f,e,!0);extend$1(o,L),T&&i.push(...T)};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}if(!l&&!g)return isObject$2(t)&&s.set(t,EMPTY_ARR),EMPTY_ARR;if(isArray$3(l))for(let r=0;r<l.length;r++){const f=camelize(l[r]);validatePropName(f)&&(o[f]=EMPTY_OBJ)}else if(l)for(const r in l){const f=camelize(r);if(validatePropName(f)){const L=l[r],T=o[f]=isArray$3(L)||isFunction$3(L)?{type:L}:extend$1({},L),x=T.type;let c=!1,m=!0;if(isArray$3(x))for(let y=0;y<x.length;++y){const O=x[y],b=isFunction$3(O)&&O.name;if(b==="Boolean"){c=!0;break}else b==="String"&&(m=!1)}else c=isFunction$3(x)&&x.name==="Boolean";T[0]=c,T[1]=m,(c||hasOwn(T,"default"))&&i.push(f)}}const d=[o,i];return isObject$2(t)&&s.set(t,d),d}function validatePropName(t){return t[0]!=="$"&&!isReservedProp(t)}const isInternalKey=t=>t==="_"||t==="_ctx"||t==="$stable",normalizeSlotValue=t=>isArray$3(t)?t.map(normalizeVNode):[normalizeVNode(t)],normalizeSlot$1=(t,e,n)=>{if(e._n)return e;const s=withCtx((...u)=>normalizeSlotValue(e(...u)),n);return s._c=!1,s},normalizeObjectSlots=(t,e,n)=>{const s=t._ctx;for(const u in t){if(isInternalKey(u))continue;const l=t[u];if(isFunction$3(l))e[u]=normalizeSlot$1(u,l,s);else if(l!=null){const o=normalizeSlotValue(l);e[u]=()=>o}}},normalizeVNodeSlots=(t,e)=>{const n=normalizeSlotValue(e);t.slots.default=()=>n},assignSlots=(t,e,n)=>{for(const s in e)(n||!isInternalKey(s))&&(t[s]=e[s])},initSlots=(t,e,n)=>{const s=t.slots=createInternalObject();if(t.vnode.shapeFlag&32){const u=e._;u?(assignSlots(s,e,n),n&&def(s,"_",u,!0)):normalizeObjectSlots(e,s)}else e&&normalizeVNodeSlots(t,e)},updateSlots=(t,e,n)=>{const{vnode:s,slots:u}=t;let l=!0,o=EMPTY_OBJ;if(s.shapeFlag&32){const i=e._;i?n&&i===1?l=!1:assignSlots(u,e,n):(l=!e.$stable,normalizeObjectSlots(e,u)),o=e}else e&&(normalizeVNodeSlots(t,e),o={default:1});if(l)for(const i in u)!isInternalKey(i)&&o[i]==null&&delete u[i]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(t){return baseCreateRenderer(t)}function baseCreateRenderer(t,e){const n=getGlobalThis();n.__VUE__=!0;const{insert:s,remove:u,patchProp:l,createElement:o,createText:i,createComment:g,setText:d,setElementText:r,parentNode:f,nextSibling:L,setScopeId:T=NOOP,insertStaticContent:x}=t,c=(Oe,Fe,Et,oe=null,kt=null,Ne=null,_n=void 0,wn=null,bn=!!Fe.dynamicChildren)=>{if(Oe===Fe)return;Oe&&!isSameVNodeType(Oe,Fe)&&(oe=S(Oe),Ve(Oe,kt,Ne,!0),Oe=null),Fe.patchFlag===-2&&(bn=!1,Fe.dynamicChildren=null);const{type:xn,ref:Bn,shapeFlag:Sn}=Fe;switch(xn){case Text:m(Oe,Fe,Et,oe);break;case Comment:y(Oe,Fe,Et,oe);break;case Static:Oe==null&&O(Fe,Et,oe,_n);break;case Fragment:w(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn);break;default:Sn&1?F(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn):Sn&6?le(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn):(Sn&64||Sn&128)&&xn.process(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn,Pt)}Bn!=null&&kt?setRef(Bn,Oe&&Oe.ref,Ne,Fe||Oe,!Fe):Bn==null&&Oe&&Oe.ref!=null&&setRef(Oe.ref,null,Ne,Oe,!0)},m=(Oe,Fe,Et,oe)=>{if(Oe==null)s(Fe.el=i(Fe.children),Et,oe);else{const kt=Fe.el=Oe.el;Fe.children!==Oe.children&&d(kt,Fe.children)}},y=(Oe,Fe,Et,oe)=>{Oe==null?s(Fe.el=g(Fe.children||""),Et,oe):Fe.el=Oe.el},O=(Oe,Fe,Et,oe)=>{[Oe.el,Oe.anchor]=x(Oe.children,Fe,Et,oe,Oe.el,Oe.anchor)},b=({el:Oe,anchor:Fe},Et,oe)=>{let kt;for(;Oe&&Oe!==Fe;)kt=L(Oe),s(Oe,Et,oe),Oe=kt;s(Fe,Et,oe)},j=({el:Oe,anchor:Fe})=>{let Et;for(;Oe&&Oe!==Fe;)Et=L(Oe),u(Oe),Oe=Et;u(Fe)},F=(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn)=>{Fe.type==="svg"?_n="svg":Fe.type==="math"&&(_n="mathml"),Oe==null?k(Fe,Et,oe,kt,Ne,_n,wn,bn):re(Oe,Fe,kt,Ne,_n,wn,bn)},k=(Oe,Fe,Et,oe,kt,Ne,_n,wn)=>{let bn,xn;const{props:Bn,shapeFlag:Sn,transition:Tn,dirs:Pn}=Oe;if(bn=Oe.el=o(Oe.type,Ne,Bn&&Bn.is,Bn),Sn&8?r(bn,Oe.children):Sn&16&&ue(Oe.children,bn,null,oe,kt,resolveChildrenNamespace(Oe,Ne),_n,wn),Pn&&invokeDirectiveHook(Oe,null,oe,"created"),_(bn,Oe,Oe.scopeId,_n,oe),Bn){for(const In in Bn)In!=="value"&&!isReservedProp(In)&&l(bn,In,null,Bn[In],Ne,oe);"value"in Bn&&l(bn,"value",null,Bn.value,Ne),(xn=Bn.onVnodeBeforeMount)&&invokeVNodeHook(xn,oe,Oe)}Pn&&invokeDirectiveHook(Oe,null,oe,"beforeMount");const Rn=needTransition(kt,Tn);Rn&&Tn.beforeEnter(bn),s(bn,Fe,Et),((xn=Bn&&Bn.onVnodeMounted)||Rn||Pn)&&queuePostRenderEffect(()=>{xn&&invokeVNodeHook(xn,oe,Oe),Rn&&Tn.enter(bn),Pn&&invokeDirectiveHook(Oe,null,oe,"mounted")},kt)},_=(Oe,Fe,Et,oe,kt)=>{if(Et&&T(Oe,Et),oe)for(let Ne=0;Ne<oe.length;Ne++)T(Oe,oe[Ne]);if(kt){let Ne=kt.subTree;if(Fe===Ne||isSuspense(Ne.type)&&(Ne.ssContent===Fe||Ne.ssFallback===Fe)){const _n=kt.vnode;_(Oe,_n,_n.scopeId,_n.slotScopeIds,kt.parent)}}},ue=(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn=0)=>{for(let xn=bn;xn<Oe.length;xn++){const Bn=Oe[xn]=wn?cloneIfMounted(Oe[xn]):normalizeVNode(Oe[xn]);c(null,Bn,Fe,Et,oe,kt,Ne,_n,wn)}},re=(Oe,Fe,Et,oe,kt,Ne,_n)=>{const wn=Fe.el=Oe.el;let{patchFlag:bn,dynamicChildren:xn,dirs:Bn}=Fe;bn|=Oe.patchFlag&16;const Sn=Oe.props||EMPTY_OBJ,Tn=Fe.props||EMPTY_OBJ;let Pn;if(Et&&toggleRecurse(Et,!1),(Pn=Tn.onVnodeBeforeUpdate)&&invokeVNodeHook(Pn,Et,Fe,Oe),Bn&&invokeDirectiveHook(Fe,Oe,Et,"beforeUpdate"),Et&&toggleRecurse(Et,!0),(Sn.innerHTML&&Tn.innerHTML==null||Sn.textContent&&Tn.textContent==null)&&r(wn,""),xn?de(Oe.dynamicChildren,xn,wn,Et,oe,resolveChildrenNamespace(Fe,kt),Ne):_n||Ie(Oe,Fe,wn,null,Et,oe,resolveChildrenNamespace(Fe,kt),Ne,!1),bn>0){if(bn&16)he(wn,Sn,Tn,Et,kt);else if(bn&2&&Sn.class!==Tn.class&&l(wn,"class",null,Tn.class,kt),bn&4&&l(wn,"style",Sn.style,Tn.style,kt),bn&8){const Rn=Fe.dynamicProps;for(let In=0;In<Rn.length;In++){const On=Rn[In],Xn=Sn[On],Wn=Tn[On];(Wn!==Xn||On==="value")&&l(wn,On,Xn,Wn,kt,Et)}}bn&1&&Oe.children!==Fe.children&&r(wn,Fe.children)}else!_n&&xn==null&&he(wn,Sn,Tn,Et,kt);((Pn=Tn.onVnodeUpdated)||Bn)&&queuePostRenderEffect(()=>{Pn&&invokeVNodeHook(Pn,Et,Fe,Oe),Bn&&invokeDirectiveHook(Fe,Oe,Et,"updated")},oe)},de=(Oe,Fe,Et,oe,kt,Ne,_n)=>{for(let wn=0;wn<Fe.length;wn++){const bn=Oe[wn],xn=Fe[wn],Bn=bn.el&&(bn.type===Fragment||!isSameVNodeType(bn,xn)||bn.shapeFlag&198)?f(bn.el):Et;c(bn,xn,Bn,null,oe,kt,Ne,_n,!0)}},he=(Oe,Fe,Et,oe,kt)=>{if(Fe!==Et){if(Fe!==EMPTY_OBJ)for(const Ne in Fe)!isReservedProp(Ne)&&!(Ne in Et)&&l(Oe,Ne,Fe[Ne],null,kt,oe);for(const Ne in Et){if(isReservedProp(Ne))continue;const _n=Et[Ne],wn=Fe[Ne];_n!==wn&&Ne!=="value"&&l(Oe,Ne,wn,_n,kt,oe)}"value"in Et&&l(Oe,"value",Fe.value,Et.value,kt)}},w=(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn)=>{const xn=Fe.el=Oe?Oe.el:i(""),Bn=Fe.anchor=Oe?Oe.anchor:i("");let{patchFlag:Sn,dynamicChildren:Tn,slotScopeIds:Pn}=Fe;Pn&&(wn=wn?wn.concat(Pn):Pn),Oe==null?(s(xn,Et,oe),s(Bn,Et,oe),ue(Fe.children||[],Et,Bn,kt,Ne,_n,wn,bn)):Sn>0&&Sn&64&&Tn&&Oe.dynamicChildren?(de(Oe.dynamicChildren,Tn,Et,kt,Ne,_n,wn),(Fe.key!=null||kt&&Fe===kt.subTree)&&traverseStaticChildren(Oe,Fe,!0)):Ie(Oe,Fe,Et,Bn,kt,Ne,_n,wn,bn)},le=(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn)=>{Fe.slotScopeIds=wn,Oe==null?Fe.shapeFlag&512?kt.ctx.activate(Fe,Et,oe,_n,bn):V(Fe,Et,oe,kt,Ne,_n,bn):Ce(Oe,Fe,bn)},V=(Oe,Fe,Et,oe,kt,Ne,_n)=>{const wn=Oe.component=createComponentInstance(Oe,oe,kt);if(isKeepAlive(Oe)&&(wn.ctx.renderer=Pt),setupComponent(wn,!1,_n),wn.asyncDep){if(kt&&kt.registerDep(wn,_e,_n),!Oe.el){const bn=wn.subTree=createVNode(Comment);y(null,bn,Fe,Et),Oe.placeholder=bn.el}}else _e(wn,Oe,Fe,Et,kt,Ne,_n)},Ce=(Oe,Fe,Et)=>{const oe=Fe.component=Oe.component;if(shouldUpdateComponent(Oe,Fe,Et))if(oe.asyncDep&&!oe.asyncResolved){D(oe,Fe,Et);return}else oe.next=Fe,oe.update();else Fe.el=Oe.el,oe.vnode=Fe},_e=(Oe,Fe,Et,oe,kt,Ne,_n)=>{const wn=()=>{if(Oe.isMounted){let{next:Sn,bu:Tn,u:Pn,parent:Rn,vnode:In}=Oe;{const Cn=locateNonHydratedAsyncRoot(Oe);if(Cn){Sn&&(Sn.el=In.el,D(Oe,Sn,_n)),Cn.asyncDep.then(()=>{Oe.isUnmounted||wn()});return}}let On=Sn,Xn;toggleRecurse(Oe,!1),Sn?(Sn.el=In.el,D(Oe,Sn,_n)):Sn=In,Tn&&invokeArrayFns(Tn),(Xn=Sn.props&&Sn.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Xn,Rn,Sn,In),toggleRecurse(Oe,!0);const Wn=renderComponentRoot(Oe),zn=Oe.subTree;Oe.subTree=Wn,c(zn,Wn,f(zn.el),S(zn),Oe,kt,Ne),Sn.el=Wn.el,On===null&&updateHOCHostEl(Oe,Wn.el),Pn&&queuePostRenderEffect(Pn,kt),(Xn=Sn.props&&Sn.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Xn,Rn,Sn,In),kt)}else{let Sn;const{el:Tn,props:Pn}=Fe,{bm:Rn,m:In,parent:On,root:Xn,type:Wn}=Oe,zn=isAsyncWrapper(Fe);toggleRecurse(Oe,!1),Rn&&invokeArrayFns(Rn),!zn&&(Sn=Pn&&Pn.onVnodeBeforeMount)&&invokeVNodeHook(Sn,On,Fe),toggleRecurse(Oe,!0);{Xn.ce&&Xn.ce._def.shadowRoot!==!1&&Xn.ce._injectChildStyle(Wn);const Cn=Oe.subTree=renderComponentRoot(Oe);c(null,Cn,Et,oe,Oe,kt,Ne),Fe.el=Cn.el}if(In&&queuePostRenderEffect(In,kt),!zn&&(Sn=Pn&&Pn.onVnodeMounted)){const Cn=Fe;queuePostRenderEffect(()=>invokeVNodeHook(Sn,On,Cn),kt)}(Fe.shapeFlag&256||On&&isAsyncWrapper(On.vnode)&&On.vnode.shapeFlag&256)&&Oe.a&&queuePostRenderEffect(Oe.a,kt),Oe.isMounted=!0,Fe=Et=oe=null}};Oe.scope.on();const bn=Oe.effect=new ReactiveEffect(wn);Oe.scope.off();const xn=Oe.update=bn.run.bind(bn),Bn=Oe.job=bn.runIfDirty.bind(bn);Bn.i=Oe,Bn.id=Oe.uid,bn.scheduler=()=>queueJob(Bn),toggleRecurse(Oe,!0),xn()},D=(Oe,Fe,Et)=>{Fe.component=Oe;const oe=Oe.vnode.props;Oe.vnode=Fe,Oe.next=null,updateProps(Oe,Fe.props,oe,Et),updateSlots(Oe,Fe.children,Et),pauseTracking(),flushPreFlushCbs(Oe),resetTracking()},Ie=(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn=!1)=>{const xn=Oe&&Oe.children,Bn=Oe?Oe.shapeFlag:0,Sn=Fe.children,{patchFlag:Tn,shapeFlag:Pn}=Fe;if(Tn>0){if(Tn&128){At(xn,Sn,Et,oe,kt,Ne,_n,wn,bn);return}else if(Tn&256){Lt(xn,Sn,Et,oe,kt,Ne,_n,wn,bn);return}}Pn&8?(Bn&16&&v(xn,kt,Ne),Sn!==xn&&r(Et,Sn)):Bn&16?Pn&16?At(xn,Sn,Et,oe,kt,Ne,_n,wn,bn):v(xn,kt,Ne,!0):(Bn&8&&r(Et,""),Pn&16&&ue(Sn,Et,oe,kt,Ne,_n,wn,bn))},Lt=(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn)=>{Oe=Oe||EMPTY_ARR,Fe=Fe||EMPTY_ARR;const xn=Oe.length,Bn=Fe.length,Sn=Math.min(xn,Bn);let Tn;for(Tn=0;Tn<Sn;Tn++){const Pn=Fe[Tn]=bn?cloneIfMounted(Fe[Tn]):normalizeVNode(Fe[Tn]);c(Oe[Tn],Pn,Et,null,kt,Ne,_n,wn,bn)}xn>Bn?v(Oe,kt,Ne,!0,!1,Sn):ue(Fe,Et,oe,kt,Ne,_n,wn,bn,Sn)},At=(Oe,Fe,Et,oe,kt,Ne,_n,wn,bn)=>{let xn=0;const Bn=Fe.length;let Sn=Oe.length-1,Tn=Bn-1;for(;xn<=Sn&&xn<=Tn;){const Pn=Oe[xn],Rn=Fe[xn]=bn?cloneIfMounted(Fe[xn]):normalizeVNode(Fe[xn]);if(isSameVNodeType(Pn,Rn))c(Pn,Rn,Et,null,kt,Ne,_n,wn,bn);else break;xn++}for(;xn<=Sn&&xn<=Tn;){const Pn=Oe[Sn],Rn=Fe[Tn]=bn?cloneIfMounted(Fe[Tn]):normalizeVNode(Fe[Tn]);if(isSameVNodeType(Pn,Rn))c(Pn,Rn,Et,null,kt,Ne,_n,wn,bn);else break;Sn--,Tn--}if(xn>Sn){if(xn<=Tn){const Pn=Tn+1,Rn=Pn<Bn?Fe[Pn].el:oe;for(;xn<=Tn;)c(null,Fe[xn]=bn?cloneIfMounted(Fe[xn]):normalizeVNode(Fe[xn]),Et,Rn,kt,Ne,_n,wn,bn),xn++}}else if(xn>Tn)for(;xn<=Sn;)Ve(Oe[xn],kt,Ne,!0),xn++;else{const Pn=xn,Rn=xn,In=new Map;for(xn=Rn;xn<=Tn;xn++){const qn=Fe[xn]=bn?cloneIfMounted(Fe[xn]):normalizeVNode(Fe[xn]);qn.key!=null&&In.set(qn.key,xn)}let On,Xn=0;const Wn=Tn-Rn+1;let zn=!1,Cn=0;const Dn=new Array(Wn);for(xn=0;xn<Wn;xn++)Dn[xn]=0;for(xn=Pn;xn<=Sn;xn++){const qn=Oe[xn];if(Xn>=Wn){Ve(qn,kt,Ne,!0);continue}let Zn;if(qn.key!=null)Zn=In.get(qn.key);else for(On=Rn;On<=Tn;On++)if(Dn[On-Rn]===0&&isSameVNodeType(qn,Fe[On])){Zn=On;break}Zn===void 0?Ve(qn,kt,Ne,!0):(Dn[Zn-Rn]=xn+1,Zn>=Cn?Cn=Zn:zn=!0,c(qn,Fe[Zn],Et,null,kt,Ne,_n,wn,bn),Xn++)}const Gn=zn?getSequence(Dn):EMPTY_ARR;for(On=Gn.length-1,xn=Wn-1;xn>=0;xn--){const qn=Rn+xn,Zn=Fe[qn],el=Fe[qn+1],sl=qn+1<Bn?el.el||el.placeholder:oe;Dn[xn]===0?c(null,Zn,Et,sl,kt,Ne,_n,wn,bn):zn&&(On<0||xn!==Gn[On]?ie(Zn,Et,sl,2):On--)}}},ie=(Oe,Fe,Et,oe,kt=null)=>{const{el:Ne,type:_n,transition:wn,children:bn,shapeFlag:xn}=Oe;if(xn&6){ie(Oe.component.subTree,Fe,Et,oe);return}if(xn&128){Oe.suspense.move(Fe,Et,oe);return}if(xn&64){_n.move(Oe,Fe,Et,Pt);return}if(_n===Fragment){s(Ne,Fe,Et);for(let Sn=0;Sn<bn.length;Sn++)ie(bn[Sn],Fe,Et,oe);s(Oe.anchor,Fe,Et);return}if(_n===Static){b(Oe,Fe,Et);return}if(oe!==2&&xn&1&&wn)if(oe===0)wn.beforeEnter(Ne),s(Ne,Fe,Et),queuePostRenderEffect(()=>wn.enter(Ne),kt);else{const{leave:Sn,delayLeave:Tn,afterLeave:Pn}=wn,Rn=()=>{Oe.ctx.isUnmounted?u(Ne):s(Ne,Fe,Et)},In=()=>{Ne._isLeaving&&Ne[leaveCbKey](!0),Sn(Ne,()=>{Rn(),Pn&&Pn()})};Tn?Tn(Ne,Rn,In):In()}else s(Ne,Fe,Et)},Ve=(Oe,Fe,Et,oe=!1,kt=!1)=>{const{type:Ne,props:_n,ref:wn,children:bn,dynamicChildren:xn,shapeFlag:Bn,patchFlag:Sn,dirs:Tn,cacheIndex:Pn}=Oe;if(Sn===-2&&(kt=!1),wn!=null&&(pauseTracking(),setRef(wn,null,Et,Oe,!0),resetTracking()),Pn!=null&&(Fe.renderCache[Pn]=void 0),Bn&256){Fe.ctx.deactivate(Oe);return}const Rn=Bn&1&&Tn,In=!isAsyncWrapper(Oe);let On;if(In&&(On=_n&&_n.onVnodeBeforeUnmount)&&invokeVNodeHook(On,Fe,Oe),Bn&6)Dt(Oe.component,Et,oe);else{if(Bn&128){Oe.suspense.unmount(Et,oe);return}Rn&&invokeDirectiveHook(Oe,null,Fe,"beforeUnmount"),Bn&64?Oe.type.remove(Oe,Fe,Et,Pt,oe):xn&&!xn.hasOnce&&(Ne!==Fragment||Sn>0&&Sn&64)?v(xn,Fe,Et,!1,!0):(Ne===Fragment&&Sn&384||!kt&&Bn&16)&&v(bn,Fe,Et),oe&&ze(Oe)}(In&&(On=_n&&_n.onVnodeUnmounted)||Rn)&&queuePostRenderEffect(()=>{On&&invokeVNodeHook(On,Fe,Oe),Rn&&invokeDirectiveHook(Oe,null,Fe,"unmounted")},Et)},ze=Oe=>{const{type:Fe,el:Et,anchor:oe,transition:kt}=Oe;if(Fe===Fragment){z(Et,oe);return}if(Fe===Static){j(Oe);return}const Ne=()=>{u(Et),kt&&!kt.persisted&&kt.afterLeave&&kt.afterLeave()};if(Oe.shapeFlag&1&&kt&&!kt.persisted){const{leave:_n,delayLeave:wn}=kt,bn=()=>_n(Et,Ne);wn?wn(Oe.el,Ne,bn):bn()}else Ne()},z=(Oe,Fe)=>{let Et;for(;Oe!==Fe;)Et=L(Oe),u(Oe),Oe=Et;u(Fe)},Dt=(Oe,Fe,Et)=>{const{bum:oe,scope:kt,job:Ne,subTree:_n,um:wn,m:bn,a:xn}=Oe;invalidateMount(bn),invalidateMount(xn),oe&&invokeArrayFns(oe),kt.stop(),Ne&&(Ne.flags|=8,Ve(_n,Oe,Fe,Et)),wn&&queuePostRenderEffect(wn,Fe),queuePostRenderEffect(()=>{Oe.isUnmounted=!0},Fe)},v=(Oe,Fe,Et,oe=!1,kt=!1,Ne=0)=>{for(let _n=Ne;_n<Oe.length;_n++)Ve(Oe[_n],Fe,Et,oe,kt)},S=Oe=>{if(Oe.shapeFlag&6)return S(Oe.component.subTree);if(Oe.shapeFlag&128)return Oe.suspense.next();const Fe=L(Oe.anchor||Oe.el),Et=Fe&&Fe[TeleportEndKey];return Et?L(Et):Fe};let Ue=!1;const M=(Oe,Fe,Et)=>{Oe==null?Fe._vnode&&Ve(Fe._vnode,null,null,!0):c(Fe._vnode||null,Oe,Fe,null,null,null,Et),Fe._vnode=Oe,Ue||(Ue=!0,flushPreFlushCbs(),flushPostFlushCbs(),Ue=!1)},Pt={p:c,um:Ve,m:ie,r:ze,mt:V,mc:ue,pc:Ie,pbc:de,n:S,o:t};return{render:M,hydrate:void 0,createApp:createAppAPI(M)}}function resolveChildrenNamespace({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function toggleRecurse({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function needTransition(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function traverseStaticChildren(t,e,n=!1){const s=t.children,u=e.children;if(isArray$3(s)&&isArray$3(u))for(let l=0;l<s.length;l++){const o=s[l];let i=u[l];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=u[l]=cloneIfMounted(u[l]),i.el=o.el),!n&&i.patchFlag!==-2&&traverseStaticChildren(o,i)),i.type===Text&&i.patchFlag!==-1&&(i.el=o.el),i.type===Comment&&!i.el&&(i.el=o.el)}}function getSequence(t){const e=t.slice(),n=[0];let s,u,l,o,i;const g=t.length;for(s=0;s<g;s++){const d=t[s];if(d!==0){if(u=n[n.length-1],t[u]<d){e[s]=u,n.push(s);continue}for(l=0,o=n.length-1;l<o;)i=l+o>>1,t[n[i]]<d?l=i+1:o=i;d<t[n[l]]&&(l>0&&(e[s]=n[l-1]),n[l]=s)}}for(l=n.length,o=n[l-1];l-- >0;)n[l]=o,o=e[o];return n}function locateNonHydratedAsyncRoot(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:locateNonHydratedAsyncRoot(e)}function invalidateMount(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watchEffect(t,e){return doWatch(t,null,e)}function watch(t,e,n){return doWatch(t,e,n)}function doWatch(t,e,n=EMPTY_OBJ){const{immediate:s,deep:u,flush:l,once:o}=n,i=extend$1({},n),g=e&&s||!e&&l!=="post";let d;if(isInSSRComponentSetup){if(l==="sync"){const T=useSSRContext();d=T.__watcherHandles||(T.__watcherHandles=[])}else if(!g){const T=()=>{};return T.stop=NOOP,T.resume=NOOP,T.pause=NOOP,T}}const r=currentInstance;i.call=(T,x,c)=>callWithAsyncErrorHandling(T,r,x,c);let f=!1;l==="post"?i.scheduler=T=>{queuePostRenderEffect(T,r&&r.suspense)}:l!=="sync"&&(f=!0,i.scheduler=(T,x)=>{x?T():queueJob(T)}),i.augmentJob=T=>{e&&(T.flags|=4),f&&(T.flags|=2,r&&(T.id=r.uid,T.i=r))};const L=watch$1(t,e,i);return isInSSRComponentSetup&&(d?d.push(L):g&&L()),L}function instanceWatch(t,e,n){const s=this.proxy,u=isString$2(t)?t.includes(".")?createPathGetter(s,t):()=>s[t]:t.bind(s,s);let l;isFunction$3(e)?l=e:(l=e.handler,n=e);const o=setCurrentInstance(this),i=doWatch(u,l.bind(s),n);return o(),i}function createPathGetter(t,e){const n=e.split(".");return()=>{let s=t;for(let u=0;u<n.length&&s;u++)s=s[n[u]];return s}}const getModelModifiers=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${camelize(e)}Modifiers`]||t[`${hyphenate(e)}Modifiers`];function emit(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||EMPTY_OBJ;let u=n;const l=e.startsWith("update:"),o=l&&getModelModifiers(s,e.slice(7));o&&(o.trim&&(u=n.map(r=>isString$2(r)?r.trim():r)),o.number&&(u=n.map(looseToNumber)));let i,g=s[i=toHandlerKey(e)]||s[i=toHandlerKey(camelize(e))];!g&&l&&(g=s[i=toHandlerKey(hyphenate(e))]),g&&callWithAsyncErrorHandling(g,t,6,u);const d=s[i+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[i])return;t.emitted[i]=!0,callWithAsyncErrorHandling(d,t,6,u)}}const mixinEmitsCache=new WeakMap;function normalizeEmitsOptions(t,e,n=!1){const s=n?mixinEmitsCache:e.emitsCache,u=s.get(t);if(u!==void 0)return u;const l=t.emits;let o={},i=!1;if(!isFunction$3(t)){const g=d=>{const r=normalizeEmitsOptions(d,e,!0);r&&(i=!0,extend$1(o,r))};!n&&e.mixins.length&&e.mixins.forEach(g),t.extends&&g(t.extends),t.mixins&&t.mixins.forEach(g)}return!l&&!i?(isObject$2(t)&&s.set(t,null),null):(isArray$3(l)?l.forEach(g=>o[g]=null):extend$1(o,l),isObject$2(t)&&s.set(t,o),o)}function isEmitListener(t,e){return!t||!isOn(e)?!1:(e=e.slice(2).replace(/Once$/,""),hasOwn(t,e[0].toLowerCase()+e.slice(1))||hasOwn(t,hyphenate(e))||hasOwn(t,e))}function markAttrsAccessed(){}function renderComponentRoot(t){const{type:e,vnode:n,proxy:s,withProxy:u,propsOptions:[l],slots:o,attrs:i,emit:g,render:d,renderCache:r,props:f,data:L,setupState:T,ctx:x,inheritAttrs:c}=t,m=setCurrentRenderingInstance(t);let y,O;try{if(n.shapeFlag&4){const j=u||s,F=j;y=normalizeVNode(d.call(F,j,r,f,T,L,x)),O=i}else{const j=e;y=normalizeVNode(j.length>1?j(f,{attrs:i,slots:o,emit:g}):j(f,null)),O=e.props?i:getFunctionalFallthrough(i)}}catch(j){blockStack.length=0,handleError(j,t,1),y=createVNode(Comment)}let b=y;if(O&&c!==!1){const j=Object.keys(O),{shapeFlag:F}=b;j.length&&F&7&&(l&&j.some(isModelListener)&&(O=filterModelListeners(O,l)),b=cloneVNode(b,O,!1,!0))}return n.dirs&&(b=cloneVNode(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&setTransitionHooks(b,n.transition),y=b,setCurrentRenderingInstance(m),y}const getFunctionalFallthrough=t=>{let e;for(const n in t)(n==="class"||n==="style"||isOn(n))&&((e||(e={}))[n]=t[n]);return e},filterModelListeners=(t,e)=>{const n={};for(const s in t)(!isModelListener(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function shouldUpdateComponent(t,e,n){const{props:s,children:u,component:l}=t,{props:o,children:i,patchFlag:g}=e,d=l.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&g>=0){if(g&1024)return!0;if(g&16)return s?hasPropsChanged(s,o,d):!!o;if(g&8){const r=e.dynamicProps;for(let f=0;f<r.length;f++){const L=r[f];if(o[L]!==s[L]&&!isEmitListener(d,L))return!0}}}else return(u||i)&&(!i||!i.$stable)?!0:s===o?!1:s?o?hasPropsChanged(s,o,d):!0:!!o;return!1}function hasPropsChanged(t,e,n){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let u=0;u<s.length;u++){const l=s[u];if(e[l]!==t[l]&&!isEmitListener(n,l))return!0}return!1}function updateHOCHostEl({vnode:t,parent:e},n){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===t&&(s.el=t.el),s===t)(t=e.vnode).el=n,e=e.parent;else break}}const isSuspense=t=>t.__isSuspense;function queueEffectWithSuspense(t,e){e&&e.pendingBranch?isArray$3(t)?e.effects.push(...t):e.effects.push(t):queuePostFlushCb(t)}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(t=!1){blockStack.push(currentBlock=t?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(t,e=!1){isBlockTreeEnabled+=t,t<0&&currentBlock&&e&&(currentBlock.hasOnce=!0)}function setupBlock(t){return t.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(t),t}function createElementBlock(t,e,n,s,u,l){return setupBlock(createBaseVNode(t,e,n,s,u,l,!0))}function createBlock(t,e,n,s,u){return setupBlock(createVNode(t,e,n,s,u,!0))}function isVNode(t){return t?t.__v_isVNode===!0:!1}function isSameVNodeType(t,e){return t.type===e.type&&t.key===e.key}const normalizeKey=({key:t})=>t??null,normalizeRef=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?isString$2(t)||isRef(t)||isFunction$3(t)?{i:currentRenderingInstance,r:t,k:e,f:!!n}:t:null);function createBaseVNode(t,e=null,n=null,s=0,u=null,l=t===Fragment?0:1,o=!1,i=!1){const g={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&normalizeKey(e),ref:e&&normalizeRef(e),scopeId:currentScopeId,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:s,dynamicProps:u,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return i?(normalizeChildren(g,n),l&128&&t.normalize(g)):n&&(g.shapeFlag|=isString$2(n)?8:16),isBlockTreeEnabled>0&&!o&&currentBlock&&(g.patchFlag>0||l&6)&&g.patchFlag!==32&&currentBlock.push(g),g}const createVNode=_createVNode;function _createVNode(t,e=null,n=null,s=0,u=null,l=!1){if((!t||t===NULL_DYNAMIC_COMPONENT)&&(t=Comment),isVNode(t)){const i=cloneVNode(t,e,!0);return n&&normalizeChildren(i,n),isBlockTreeEnabled>0&&!l&&currentBlock&&(i.shapeFlag&6?currentBlock[currentBlock.indexOf(t)]=i:currentBlock.push(i)),i.patchFlag=-2,i}if(isClassComponent(t)&&(t=t.__vccOpts),e){e=guardReactiveProps(e);let{class:i,style:g}=e;i&&!isString$2(i)&&(e.class=normalizeClass(i)),isObject$2(g)&&(isProxy(g)&&!isArray$3(g)&&(g=extend$1({},g)),e.style=normalizeStyle(g))}const o=isString$2(t)?1:isSuspense(t)?128:isTeleport(t)?64:isObject$2(t)?4:isFunction$3(t)?2:0;return createBaseVNode(t,e,n,s,u,o,l,!0)}function guardReactiveProps(t){return t?isProxy(t)||isInternalObject(t)?extend$1({},t):t:null}function cloneVNode(t,e,n=!1,s=!1){const{props:u,ref:l,patchFlag:o,children:i,transition:g}=t,d=e?mergeProps(u||{},e):u,r={__v_isVNode:!0,__v_skip:!0,type:t.type,props:d,key:d&&normalizeKey(d),ref:e&&e.ref?n&&l?isArray$3(l)?l.concat(normalizeRef(e)):[l,normalizeRef(e)]:normalizeRef(e):l,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Fragment?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:g,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&cloneVNode(t.ssContent),ssFallback:t.ssFallback&&cloneVNode(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return g&&s&&setTransitionHooks(r,g.clone(r)),r}function createTextVNode(t=" ",e=0){return createVNode(Text,null,t,e)}function createStaticVNode(t,e){const n=createVNode(Static,null,t);return n.staticCount=e,n}function createCommentVNode(t="",e=!1){return e?(openBlock(),createBlock(Comment,null,t)):createVNode(Comment,null,t)}function normalizeVNode(t){return t==null||typeof t=="boolean"?createVNode(Comment):isArray$3(t)?createVNode(Fragment,null,t.slice()):isVNode(t)?cloneIfMounted(t):createVNode(Text,null,String(t))}function cloneIfMounted(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:cloneVNode(t)}function normalizeChildren(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(isArray$3(e))n=16;else if(typeof e=="object")if(s&65){const u=e.default;u&&(u._c&&(u._d=!1),normalizeChildren(t,u()),u._c&&(u._d=!0));return}else{n=32;const u=e._;!u&&!isInternalObject(e)?e._ctx=currentRenderingInstance:u===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else isFunction$3(e)?(e={default:e,_ctx:currentRenderingInstance},n=32):(e=String(e),s&64?(n=16,e=[createTextVNode(e)]):n=8);t.children=e,t.shapeFlag|=n}function mergeProps(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const u in s)if(u==="class")e.class!==s.class&&(e.class=normalizeClass([e.class,s.class]));else if(u==="style")e.style=normalizeStyle([e.style,s.style]);else if(isOn(u)){const l=e[u],o=s[u];o&&l!==o&&!(isArray$3(l)&&l.includes(o))&&(e[u]=l?[].concat(l,o):o)}else u!==""&&(e[u]=s[u])}return e}function invokeVNodeHook(t,e,n,s=null){callWithAsyncErrorHandling(t,e,7,[n,s])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(t,e,n){const s=t.type,u=(e?e.appContext:t.appContext)||emptyAppContext,l={uid:uid++,vnode:t,type:s,parent:e,appContext:u,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(u.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(s,u),emitsOptions:normalizeEmitsOptions(s,u),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:s.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=e?e.root:l,l.emit=emit.bind(null,l),t.ce&&t.ce(l),l}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const t=getGlobalThis(),e=(n,s)=>{let u;return(u=t[n])||(u=t[n]=[]),u.push(s),l=>{u.length>1?u.forEach(o=>o(l)):u[0](l)}};internalSetCurrentInstance=e("__VUE_INSTANCE_SETTERS__",n=>currentInstance=n),setInSSRSetupState=e("__VUE_SSR_SETTERS__",n=>isInSSRComponentSetup=n)}const setCurrentInstance=t=>{const e=currentInstance;return internalSetCurrentInstance(t),t.scope.on(),()=>{t.scope.off(),internalSetCurrentInstance(e)}},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(t){return t.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(t,e=!1,n=!1){e&&setInSSRSetupState(e);const{props:s,children:u}=t.vnode,l=isStatefulComponent(t);initProps(t,s,l,e),initSlots(t,u,n||e);const o=l?setupStatefulComponent(t,e):void 0;return e&&setInSSRSetupState(!1),o}function setupStatefulComponent(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,PublicInstanceProxyHandlers);const{setup:s}=n;if(s){pauseTracking();const u=t.setupContext=s.length>1?createSetupContext(t):null,l=setCurrentInstance(t),o=callWithErrorHandling(s,t,0,[t.props,u]),i=isPromise(o);if(resetTracking(),l(),(i||t.sp)&&!isAsyncWrapper(t)&&markAsyncBoundary(t),i){if(o.then(unsetCurrentInstance,unsetCurrentInstance),e)return o.then(g=>{handleSetupResult(t,g)}).catch(g=>{handleError(g,t,0)});t.asyncDep=o}else handleSetupResult(t,o)}else finishComponentSetup(t)}function handleSetupResult(t,e,n){isFunction$3(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:isObject$2(e)&&(t.setupState=proxyRefs(e)),finishComponentSetup(t)}function finishComponentSetup(t,e,n){const s=t.type;t.render||(t.render=s.render||NOOP);{const u=setCurrentInstance(t);pauseTracking();try{applyOptions(t)}finally{resetTracking(),u()}}}const attrsProxyHandlers={get(t,e){return track(t,"get",""),t[e]}};function createSetupContext(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,attrsProxyHandlers),slots:t.slots,emit:t.emit,expose:e}}function getComponentPublicInstance(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(proxyRefs(markRaw(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in publicPropertiesMap)return publicPropertiesMap[n](t)},has(e,n){return n in e||n in publicPropertiesMap}})):t.proxy}const classifyRE=/(?:^|[-_])\w/g,classify=t=>t.replace(classifyRE,e=>e.toUpperCase()).replace(/[-_]/g,"");function getComponentName(t,e=!0){return isFunction$3(t)?t.displayName||t.name:t.name||e&&t.__name}function formatComponentName(t,e,n=!1){let s=getComponentName(e);if(!s&&e.__file){const u=e.__file.match(/([^/\\]+)\.\w+$/);u&&(s=u[1])}if(!s&&t&&t.parent){const u=l=>{for(const o in l)if(l[o]===e)return o};s=u(t.components||t.parent.type.components)||u(t.appContext.components)}return s?classify(s):n?"App":"Anonymous"}function isClassComponent(t){return isFunction$3(t)&&"__vccOpts"in t}const computed=(t,e)=>computed$1(t,e,isInSSRComponentSetup);function h(t,e,n){try{setBlockTracking(-1);const s=arguments.length;return s===2?isObject$2(e)&&!isArray$3(e)?isVNode(e)?createVNode(t,null,[e]):createVNode(t,e):createVNode(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&isVNode(n)&&(n=[n]),createVNode(t,e,n))}finally{setBlockTracking(1)}}const version="3.5.22",warn=NOOP;/**
* @vue/runtime-dom v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let policy;const tt$1=typeof window<"u"&&window.trustedTypes;if(tt$1)try{policy=tt$1.createPolicy("vue",{createHTML:t=>t})}catch{}const unsafeToTrustedHTML=policy?t=>policy.createHTML(t):t=>t,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const u=e==="svg"?doc.createElementNS(svgNS,t):e==="mathml"?doc.createElementNS(mathmlNS,t):n?doc.createElement(t,{is:n}):doc.createElement(t);return t==="select"&&s&&s.multiple!=null&&u.setAttribute("multiple",s.multiple),u},createText:t=>doc.createTextNode(t),createComment:t=>doc.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>doc.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,u,l){const o=n?n.previousSibling:e.lastChild;if(u&&(u===l||u.nextSibling))for(;e.insertBefore(u.cloneNode(!0),n),!(u===l||!(u=u.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t);const i=templateContainer.content;if(s==="svg"||s==="mathml"){const g=i.firstChild;for(;g.firstChild;)i.appendChild(g.firstChild);i.removeChild(g)}e.insertBefore(i,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=t=>(t.displayName="Transition",t.props=TransitionPropsValidators,t),Transition=decorate$1((t,{slots:e})=>h(BaseTransition,resolveTransitionProps(t),e)),callHook=(t,e=[])=>{isArray$3(t)?t.forEach(n=>n(...e)):t&&t(...e)},hasExplicitCallback=t=>t?isArray$3(t)?t.some(e=>e.length>1):t.length>1:!1;function resolveTransitionProps(t){const e={};for(const w in t)w in DOMTransitionPropsValidators||(e[w]=t[w]);if(t.css===!1)return e;const{name:n="v",type:s,duration:u,enterFromClass:l=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:g=l,appearActiveClass:d=o,appearToClass:r=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:L=`${n}-leave-active`,leaveToClass:T=`${n}-leave-to`}=t,x=normalizeDuration(u),c=x&&x[0],m=x&&x[1],{onBeforeEnter:y,onEnter:O,onEnterCancelled:b,onLeave:j,onLeaveCancelled:F,onBeforeAppear:k=y,onAppear:_=O,onAppearCancelled:ue=b}=e,re=(w,le,V,Ce)=>{w._enterCancelled=Ce,removeTransitionClass(w,le?r:i),removeTransitionClass(w,le?d:o),V&&V()},de=(w,le)=>{w._isLeaving=!1,removeTransitionClass(w,f),removeTransitionClass(w,T),removeTransitionClass(w,L),le&&le()},he=w=>(le,V)=>{const Ce=w?_:O,_e=()=>re(le,w,V);callHook(Ce,[le,_e]),nextFrame(()=>{removeTransitionClass(le,w?g:l),addTransitionClass(le,w?r:i),hasExplicitCallback(Ce)||whenTransitionEnds(le,s,c,_e)})};return extend$1(e,{onBeforeEnter(w){callHook(y,[w]),addTransitionClass(w,l),addTransitionClass(w,o)},onBeforeAppear(w){callHook(k,[w]),addTransitionClass(w,g),addTransitionClass(w,d)},onEnter:he(!1),onAppear:he(!0),onLeave(w,le){w._isLeaving=!0;const V=()=>de(w,le);addTransitionClass(w,f),w._enterCancelled?(addTransitionClass(w,L),forceReflow(w)):(forceReflow(w),addTransitionClass(w,L)),nextFrame(()=>{w._isLeaving&&(removeTransitionClass(w,f),addTransitionClass(w,T),hasExplicitCallback(j)||whenTransitionEnds(w,s,m,V))}),callHook(j,[w,V])},onEnterCancelled(w){re(w,!1,void 0,!0),callHook(b,[w])},onAppearCancelled(w){re(w,!0,void 0,!0),callHook(ue,[w])},onLeaveCancelled(w){de(w),callHook(F,[w])}})}function normalizeDuration(t){if(t==null)return null;if(isObject$2(t))return[NumberOf(t.enter),NumberOf(t.leave)];{const e=NumberOf(t);return[e,e]}}function NumberOf(t){return toNumber$1(t)}function addTransitionClass(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[vtcKey]||(t[vtcKey]=new Set)).add(e)}function removeTransitionClass(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[vtcKey];n&&(n.delete(e),n.size||(t[vtcKey]=void 0))}function nextFrame(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let endId=0;function whenTransitionEnds(t,e,n,s){const u=t._endId=++endId,l=()=>{u===t._endId&&s()};if(n!=null)return setTimeout(l,n);const{type:o,timeout:i,propCount:g}=getTransitionInfo(t,e);if(!o)return s();const d=o+"end";let r=0;const f=()=>{t.removeEventListener(d,L),l()},L=T=>{T.target===t&&++r>=g&&f()};setTimeout(()=>{r<g&&f()},i+1),t.addEventListener(d,L)}function getTransitionInfo(t,e){const n=window.getComputedStyle(t),s=x=>(n[x]||"").split(", "),u=s(`${TRANSITION}Delay`),l=s(`${TRANSITION}Duration`),o=getTimeout(u,l),i=s(`${ANIMATION}Delay`),g=s(`${ANIMATION}Duration`),d=getTimeout(i,g);let r=null,f=0,L=0;e===TRANSITION?o>0&&(r=TRANSITION,f=o,L=l.length):e===ANIMATION?d>0&&(r=ANIMATION,f=d,L=g.length):(f=Math.max(o,d),r=f>0?o>d?TRANSITION:ANIMATION:null,L=r?r===TRANSITION?l.length:g.length:0);const T=r===TRANSITION&&/\b(?:transform|all)(?:,|$)/.test(s(`${TRANSITION}Property`).toString());return{type:r,timeout:f,propCount:L,hasTransform:T}}function getTimeout(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,s)=>toMs(n)+toMs(t[s])))}function toMs(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function forceReflow(t){return(t?t.ownerDocument:document).body.offsetHeight}function patchClass(t,e,n){const s=t[vtcKey];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={name:"show",beforeMount(t,{value:e},{transition:n}){t[vShowOriginalDisplay]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):setDisplay(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),setDisplay(t,!0),s.enter(t)):s.leave(t,()=>{setDisplay(t,!1)}):setDisplay(t,e))},beforeUnmount(t,{value:e}){setDisplay(t,e)}};function setDisplay(t,e){t.style.display=e?t[vShowOriginalDisplay]:"none",t[vShowHidden]=!e}const CSS_VAR_TEXT=Symbol(""),displayRE=/(?:^|;)\s*display\s*:/;function patchStyle(t,e,n){const s=t.style,u=isString$2(n);let l=!1;if(n&&!u){if(e)if(isString$2(e))for(const o of e.split(";")){const i=o.slice(0,o.indexOf(":")).trim();n[i]==null&&setStyle(s,i,"")}else for(const o in e)n[o]==null&&setStyle(s,o,"");for(const o in n)o==="display"&&(l=!0),setStyle(s,o,n[o])}else if(u){if(e!==n){const o=s[CSS_VAR_TEXT];o&&(n+=";"+o),s.cssText=n,l=displayRE.test(n)}}else e&&t.removeAttribute("style");vShowOriginalDisplay in t&&(t[vShowOriginalDisplay]=l?s.display:"",t[vShowHidden]&&(s.display="none"))}const importantRE=/\s*!important$/;function setStyle(t,e,n){if(isArray$3(n))n.forEach(s=>setStyle(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=autoPrefix(t,e);importantRE.test(n)?t.setProperty(hyphenate(s),n.replace(importantRE,""),"important"):t[s]=n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(t,e){const n=prefixCache[e];if(n)return n;let s=camelize(e);if(s!=="filter"&&s in t)return prefixCache[e]=s;s=capitalize(s);for(let u=0;u<prefixes.length;u++){const l=prefixes[u]+s;if(l in t)return prefixCache[e]=l}return e}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(t,e,n,s,u,l=isSpecialBooleanAttr(e)){s&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(xlinkNS,e.slice(6,e.length)):t.setAttributeNS(xlinkNS,e,n):n==null||l&&!includeBooleanAttr(n)?t.removeAttribute(e):t.setAttribute(e,l?"":isSymbol$1(n)?String(n):n)}function patchDOMProp(t,e,n,s,u){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?unsafeToTrustedHTML(n):n);return}const l=t.tagName;if(e==="value"&&l!=="PROGRESS"&&!l.includes("-")){const i=l==="OPTION"?t.getAttribute("value")||"":t.value,g=n==null?t.type==="checkbox"?"on":"":String(n);(i!==g||!("_value"in t))&&(t.value=g),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const i=typeof t[e];i==="boolean"?n=includeBooleanAttr(n):n==null&&i==="string"?(n="",o=!0):i==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(u||e)}function addEventListener(t,e,n,s){t.addEventListener(e,n,s)}function removeEventListener(t,e,n,s){t.removeEventListener(e,n,s)}const veiKey=Symbol("_vei");function patchEvent(t,e,n,s,u=null){const l=t[veiKey]||(t[veiKey]={}),o=l[e];if(s&&o)o.value=s;else{const[i,g]=parseName(e);if(s){const d=l[e]=createInvoker(s,u);addEventListener(t,i,d,g)}else o&&(removeEventListener(t,i,o,g),l[e]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(t){let e;if(optionsModifierRE.test(t)){e={};let s;for(;s=t.match(optionsModifierRE);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):hyphenate(t.slice(2)),e]}let cachedNow=0;const p=Promise.resolve(),getNow=()=>cachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(s,n.value),e,5,[s])};return n.value=t,n.attached=getNow(),n}function patchStopImmediatePropagation(t,e){if(isArray$3(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>u=>!u._stopped&&s&&s(u))}else return e}const isNativeOn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,patchProp=(t,e,n,s,u,l)=>{const o=u==="svg";e==="class"?patchClass(t,s,o):e==="style"?patchStyle(t,n,s):isOn(e)?isModelListener(e)||patchEvent(t,e,n,s,l):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):shouldSetAsProp(t,e,s,o))?(patchDOMProp(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&patchAttr(t,e,s,o,l,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!isString$2(s))?patchDOMProp(t,camelize(e),s,l,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),patchAttr(t,e,s,o))};function shouldSetAsProp(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&isNativeOn(e)&&isFunction$3(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const u=t.tagName;if(u==="IMG"||u==="VIDEO"||u==="CANVAS"||u==="SOURCE")return!1}return isNativeOn(e)&&isString$2(n)?!1:e in t}const positionMap=new WeakMap,newPositionMap=new WeakMap,moveCbKey=Symbol("_moveCb"),enterCbKey=Symbol("_enterCb"),decorate=t=>(delete t.props.mode,t),TransitionGroupImpl=decorate({name:"TransitionGroup",props:extend$1({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=getCurrentInstance(),s=useTransitionState();let u,l;return onUpdated(()=>{if(!u.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!hasCSSTransform(u[0].el,n.vnode.el,o)){u=[];return}u.forEach(callPendingCbs),u.forEach(recordPosition);const i=u.filter(applyTranslation);forceReflow(n.vnode.el),i.forEach(g=>{const d=g.el,r=d.style;addTransitionClass(d,o),r.transform=r.webkitTransform=r.transitionDuration="";const f=d[moveCbKey]=L=>{L&&L.target!==d||(!L||L.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",f),d[moveCbKey]=null,removeTransitionClass(d,o))};d.addEventListener("transitionend",f)}),u=[]}),()=>{const o=toRaw(t),i=resolveTransitionProps(o);let g=o.tag||Fragment;if(u=[],l)for(let d=0;d<l.length;d++){const r=l[d];r.el&&r.el instanceof Element&&(u.push(r),setTransitionHooks(r,resolveTransitionHooks(r,i,s,n)),positionMap.set(r,r.el.getBoundingClientRect()))}l=e.default?getTransitionRawChildren(e.default()):[];for(let d=0;d<l.length;d++){const r=l[d];r.key!=null&&setTransitionHooks(r,resolveTransitionHooks(r,i,s,n))}return createVNode(g,null,l)}}}),TransitionGroup=TransitionGroupImpl;function callPendingCbs(t){const e=t.el;e[moveCbKey]&&e[moveCbKey](),e[enterCbKey]&&e[enterCbKey]()}function recordPosition(t){newPositionMap.set(t,t.el.getBoundingClientRect())}function applyTranslation(t){const e=positionMap.get(t),n=newPositionMap.get(t),s=e.left-n.left,u=e.top-n.top;if(s||u){const l=t.el.style;return l.transform=l.webkitTransform=`translate(${s}px,${u}px)`,l.transitionDuration="0s",t}}function hasCSSTransform(t,e,n){const s=t.cloneNode(),u=t[vtcKey];u&&u.forEach(i=>{i.split(/\s+/).forEach(g=>g&&s.classList.remove(g))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const l=e.nodeType===1?e:e.parentNode;l.appendChild(s);const{hasTransform:o}=getTransitionInfo(s);return l.removeChild(s),o}const getModelAssigner=t=>{const e=t.props["onUpdate:modelValue"]||!1;return isArray$3(e)?n=>invokeArrayFns(e,n):e};function onCompositionStart(t){t.target.composing=!0}function onCompositionEnd(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(t,{modifiers:{lazy:e,trim:n,number:s}},u){t[assignKey]=getModelAssigner(u);const l=s||u.props&&u.props.type==="number";addEventListener(t,e?"change":"input",o=>{if(o.target.composing)return;let i=t.value;n&&(i=i.trim()),l&&(i=looseToNumber(i)),t[assignKey](i)}),n&&addEventListener(t,"change",()=>{t.value=t.value.trim()}),e||(addEventListener(t,"compositionstart",onCompositionStart),addEventListener(t,"compositionend",onCompositionEnd),addEventListener(t,"change",onCompositionEnd))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:s,trim:u,number:l}},o){if(t[assignKey]=getModelAssigner(o),t.composing)return;const i=(l||t.type==="number")&&!/^0\d/.test(t.value)?looseToNumber(t.value):t.value,g=e??"";i!==g&&(document.activeElement===t&&t.type!=="range"&&(s&&e===n||u&&t.value.trim()===g)||(t.value=g))}},vModelCheckbox={deep:!0,created(t,e,n){t[assignKey]=getModelAssigner(n),addEventListener(t,"change",()=>{const s=t._modelValue,u=getValue$2(t),l=t.checked,o=t[assignKey];if(isArray$3(s)){const i=looseIndexOf(s,u),g=i!==-1;if(l&&!g)o(s.concat(u));else if(!l&&g){const d=[...s];d.splice(i,1),o(d)}}else if(isSet$1(s)){const i=new Set(s);l?i.add(u):i.delete(u),o(i)}else o(getCheckboxValue(t,l))})},mounted:setChecked,beforeUpdate(t,e,n){t[assignKey]=getModelAssigner(n),setChecked(t,e,n)}};function setChecked(t,{value:e,oldValue:n},s){t._modelValue=e;let u;if(isArray$3(e))u=looseIndexOf(e,s.props.value)>-1;else if(isSet$1(e))u=e.has(s.props.value);else{if(e===n)return;u=looseEqual(e,getCheckboxValue(t,!0))}t.checked!==u&&(t.checked=u)}function getValue$2(t){return"_value"in t?t._value:t.value}function getCheckboxValue(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>systemModifiers.some(n=>t[`${n}Key`]&&!e.includes(n))},withModifiers=(t,e)=>{const n=t._withMods||(t._withMods={}),s=e.join(".");return n[s]||(n[s]=((u,...l)=>{for(let o=0;o<e.length;o++){const i=modifierGuards[e[o]];if(i&&i(u,e))return}return t(u,...l)}))},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(t,e)=>{const n=t._withKeys||(t._withKeys={}),s=e.join(".");return n[s]||(n[s]=(u=>{if(!("key"in u))return;const l=hyphenate(u.key);if(e.some(o=>o===l||keyNames[o]===l))return t(u)}))},rendererOptions=extend$1({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const render=((...t)=>{ensureRenderer().render(...t)}),createApp=((...t)=>{const e=ensureRenderer().createApp(...t),{mount:n}=e;return e.mount=s=>{const u=normalizeContainer(s);if(!u)return;const l=e._component;!isFunction$3(l)&&!l.render&&!l.template&&(l.template=u.innerHTML),u.nodeType===1&&(u.textContent="");const o=n(u,!1,resolveRootNamespace(u));return u instanceof Element&&(u.removeAttribute("v-cloak"),u.setAttribute("data-v-app","")),o},e});function resolveRootNamespace(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function normalizeContainer(t){return isString$2(t)?document.querySelector(t):t}/*!
 * pinia v3.0.3
 * (c) 2025 Eduardo San Martin Morote
 * @license MIT
 */const piniaSymbol=Symbol();var MutationType;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const t=effectScope(!0),e=t.run(()=>ref({}));let n=[],s=[];const u=markRaw({install(l){u._a=l,l.provide(piniaSymbol,u),l.config.globalProperties.$pinia=u,s.forEach(o=>n.push(o)),s=[]},use(l){return this._a?n.push(l):s.push(l),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return u}const _export_sfc$1=(t,e)=>{const n=t.__vccOpts||t;for(const[s,u]of e)n[s]=u;return n},_sfc_main$H={};function _sfc_render$6(t,e){const n=resolveComponent("router-view");return openBlock(),createBlock(n)}const App=_export_sfc$1(_sfc_main$H,[["render",_sfc_render$6]]),scriptRel="modulepreload",assetsURL=function(t){return"/"+t},seen={},__vitePreload=function(e,n,s){let u=Promise.resolve();if(n&&n.length>0){let g=function(d){return Promise.all(d.map(r=>Promise.resolve(r).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=o?.nonce||o?.getAttribute("nonce");u=g(n.map(d=>{if(d=assetsURL(d),d in seen)return;seen[d]=!0;const r=d.endsWith(".css"),f=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${f}`))return;const L=document.createElement("link");if(L.rel=r?"stylesheet":scriptRel,r||(L.as="script"),L.crossOrigin="",L.href=d,i&&L.setAttribute("nonce",i),document.head.appendChild(L),r)return new Promise((T,x)=>{L.addEventListener("load",T),L.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${d}`)))})}))}function l(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return u.then(o=>{for(const i of o||[])i.status==="rejected"&&l(i.reason);return e().catch(l)})};class BoxRegistrationError extends Error{constructor(e,n){super(e),this.type=n,this.name="BoxRegistrationError"}}class BoxNotFoundError extends Error{constructor(e,n){super(e),this.type=n,this.name="BoxNotFoundError"}}const registry=new Map;function registerBox(t){if(!t.type)throw new BoxRegistrationError("Box type 不能为空","");if(registry.has(t.type))throw new BoxRegistrationError(`盒型 "${t.type}" 已注册，禁止重复注册`,t.type);registry.set(t.type,t)}function getBox(t){const e=registry.get(t);if(!e)throw new BoxNotFoundError(`盒型 "${t}" 未注册`,t);return e}function findBox(t){return registry.get(t)}function getAllBoxes(){return Array.from(registry.values())}class Aircraft{constructor(e){this._smallCornerTRR=3,this._smallCornerTRRTangentX=0,this._smallCornerTRRTangentY=0,this._highPointTRHRadius=1.41,this._highPointTRHAngle=58,this._heightDiffT1=1,this._boxTopCollectAngle=1,this._smallCornerR1=1.69,this._highPointEllipseYRadius=3,this._smallCornerMT=75,this._smallCornerMT1=19,this._slotThicknessNX=3,this._slotThicknessNY=3,this._ofReverseCornerR=.93,this._ofReverseCornerRX=.4148,this._ofReverseCornerRY=1.7625,this._slotLengthSW=10,this._slotSpacing=10,this._slotCount=1,this._slotFoldLineOffsetX=.5,this._slotFoldLineOffsetY=.12,this._slotN=10,this._slotFoldLineOffset=.6,this._smallCornerR1Collect=.5,this._aircraftFrontLength=.7,this.initSlotMTangentY(e.thickness),this.initSlotMTangentX(e.thickness),this.initHighPointTRHRadius(e.thickness),this.initBoxTopCollect(e.thickness),this.initSlotNTangentX(e.thickness),this.initSlotNTangentY(e.thickness),this.initUpperWidthW1(e.boxWidth,e.thickness),this.initHighPointEllipseYRadius(e.boxHeight),this.initSmallCornerMR(e.boxWidth),this.initSmallCornerR1(e.thickness),this.initSmallCornerR1TangentX(),this.initSmallCornerR1TangentY(),this.initSubSideHeightM(e.boxHeight,e.thickness),this.initSlotLength(e.boxWidth),this.initSmallCornerMRTangentX(),this.initSmallCornerMRTangentY(),this.initSmallCornerMTTangentX(),this.initSmallCornerMTTangentY(),this.initSlotSpacing(),this.initSlotCount(e.boxWidth),this.initSlotCollectX(e.thickness),this.initSlotCollectY(e.thickness),this.initSmallCornerR1Collect(e.thickness),this.initMainLineOffset(e.thickness),this.initOfReverseCornerTangentX(),this.initOfReverseCornerTangentY(),this.initHighPointTRHTangentX(),this.initHighPointTRHTangentY(),this.initHighPointTRH(e.boxHeight),this.initSmallCornerTRR(),this.initSmallCornerTRRTangentX(),this.initSmallCornerTRRTangentY(),this.initHighPointTRHRTangentX(),this.initHighPointTRHRTangentY(),this.initMainLineOffsetHB(e.thickness),this.initMainLineOffsetFBToF(e.thickness),this.initMainLineOffsetFTToFT(e.thickness),this.initSmallCornerMTTangentXUp(),this.initSmallCornerMTTangentYUp(),this.initSubSideVerticalLength(e.boxWidth,e.thickness),this.initHighPointTRHHorizontalLength(),this.initSlotD2(e.boxHeight,e.thickness),this.initInnerWallTotalHeightDC(e.boxHeight,e.thickness),this.initSlotN(e.boxWidth,e.boxHeight),this.initSlotFoldLineOffsetX(),this.initSlotFoldLineOffsetY(),this.initBoxTopHorizontalLength(e.boxLength,e.thickness)}initHighPointTRHRadius(e){this._highPointTRHRadius=1.41}initMainLineOffsetHB(e){this._mainLineOffsetHB=3*e}initSmallCornerTRR(){this._smallCornerTRR=this._highPointTRH*Math.cos(this._highPointTRHAngle*Math.PI/180)/(1+Math.cos(this._highPointTRHAngle*Math.PI/180))}initHighPointTRH(e){this._highPointTRH=e-this._boxTopCollect-this._highPointTRHRadius}initHighPointEllipseYRadius(e){this._highPointEllipseYRadius=e+.6-this._boxTopCollect-this._smallCornerR1-this._smallCornerTRR}initSmallCornerMR(e){this._smallCornerMR=Math.round((e+1)/10)}initSmallCornerR1(e){this._smallCornerR1=1.69}initSmallCornerR1TangentX(){this._smallCornerR1TangentX=this._smallCornerR1*Math.cos(this._smallCornerMT*Math.PI/180)}initSmallCornerR1TangentY(){this._smallCornerR1TangentY=this._smallCornerR1*Math.sin(this._smallCornerMT*Math.PI/180)+this._smallCornerR1}initSubSideHeightM(e,n){this._subSideHeightM=e-2}initSlotD2(e,n){this._slotD2=e-3*n+this._slotCollectX}initInnerWallTotalHeightDC(e,n){this._innerWallTotalHeightDC=e+1.5+2*n}initSlotLength(e){e<120?this._slotLengthSW=Math.round(e*.35):e<350?this._slotLengthSW=Math.round(e/5.35):this._slotLengthSW=Math.round(e/7.35)}initSlotN(e,n){const s=this._innerWallTotalHeightDC+n;e<120?this._slotN=Math.round(e*.4):e<350?this._slotN=2*Math.round(e/5):this._slotN=2*Math.round(e/7),this._slotN=Math.min(this._slotN,s)}initSmallCornerMRTangentX(){this._smallCornerMRTangentX=this._smallCornerMR*(1-Math.cos(this._smallCornerMT*Math.PI/180))}initSmallCornerMRTangentY(){this._smallCornerMRTangentY=this._smallCornerMR*Math.sin(this._smallCornerMT*Math.PI/180)}initSmallCornerMTTangentX(){this._smallCornerMTTangentX=this._subSideHeightM-this._smallCornerMRTangentX-(this._smallCornerR1-this._smallCornerR1TangentX)}initSmallCornerMTTangentY(){this._smallCornerMTTangentY=this._smallCornerMTTangentX/Math.tan(this._smallCornerMT*Math.PI/180)}initSlotNTangentX(e){e<=.3?this._slotNTangentX=1.4-.5:e<=.4?this._slotNTangentX=1.7-.5:e<=.5?this._slotNTangentX=2-.5:e<=.6&&(this._slotNTangentX=2.3-.5),this._slopeK=.37/(this._slotNTangentX+.5)}initSlotNTangentY(e){e<=.3?this._slotNTangentY=this._slopeK*this._slotNTangentX:e<=.4?this._slotNTangentY=this._slopeK*this._slotNTangentX:e<=.5?this._slotNTangentY=this._slopeK*this._slotNTangentX:e<=.6&&(this._slotNTangentY=this._slopeK*this._slotNTangentX)}initSlotCount(e){e<120?this._slotCount=1:e<350?this._slotCount=2:this._slotCount=3}initSlotCollectX(e){this._slotCollectX=3*e}initSlotCollectY(e){this._slotCollectY=1.2}initSmallCornerR1Collect(e){e<.5?this._smallCornerR1Collect=0:e<=.65&&(this._smallCornerR1Collect=this._smallCornerR1-this._ofReverseCornerR)}initUpperWidthW1(e,n){this._upperWidthW1=e+n}initMainLineOffset(e){this._mainLineOffset=e}initOfReverseCornerTangentX(){this._ofReverseCornerTangentX=this._slotThicknessNY-(this._ofReverseCornerR-this.ofReverseCornerRX)}initOfReverseCornerTangentY(){this._ofReverseCornerTangentY=this._slotThicknessNX-this._ofReverseCornerRY}initHighPointTRHTangentX(){this._highPointTRHTangentX=this._highPointTRHRadius*Math.cos(this._smallCornerMT*Math.PI/180)}initHighPointTRHTangentY(){this._highPointTRHTangentY=this._highPointTRHRadius*(1+Math.sin(this._smallCornerMT*Math.PI/180))}initSubSideVerticalLength(e,n){this._subSideVerticalLength=e+n-2*this._smallCornerMRTangentY-this._smallCornerMTTangentY-this._smallCornerMTTangentYUp-(this._smallCornerR1TangentY-this._smallCornerR1)-(this._highPointTRHTangentY-this._highPointTRHRadius)}initHighPointTRHHorizontalLength(){this._highPointTRHHorizontalLength=(this._highPointTRH-this._smallCornerTRR)*Math.sin(this._highPointTRHAngle*Math.PI/180)-(this._highPointTRHRadius-this._mainLineOffsetFTToFT)}initSmallCornerTRRTangentX(){this._smallCornerTRRTangentX=this._smallCornerTRR*Math.sin(this._highPointTRHAngle*Math.PI/180)}initSmallCornerTRRTangentY(){this._smallCornerTRRTangentY=this._smallCornerTRR+this._smallCornerTRR*Math.cos(this._highPointTRHAngle*Math.PI/180)}initHighPointTRHRTangentX(){this._highPointTRHRTangentX=this._highPointTRH*Math.sin(this._highPointTRHAngle*Math.PI/180)}initHighPointTRHRTangentY(){this._highPointTRHRTangentY=this._highPointTRH*(1-Math.cos(this._highPointTRHAngle*Math.PI/180))}initMainLineOffsetFBToF(e){this._mainLineOffsetFBToF=2*e}initMainLineOffsetFTToFT(e){this._mainLineOffsetFTToFT=1.5*e}initSmallCornerMTTangentXUp(){this._smallCornerMTTangentXUp=this._subSideHeightM-this._smallCornerMRTangentX-(this._highPointTRHRadius-this._highPointTRHTangentX)}initSmallCornerMTTangentYUp(){this._smallCornerMTTangentYUp=this._smallCornerMTTangentXUp/Math.tan(this._smallCornerMT*Math.PI/180)}initSlotSpacing(){this._slotSpacing=2*this._slotLengthSW}initSlotFoldLineOffsetX(){this._slotFoldLineOffsetX=.5}initSlotFoldLineOffsetY(){this._slotFoldLineOffsetY=this._slopeK*this._slotFoldLineOffsetX}initSlotMTangentX(e){e<=.3?this._slotMTangentX=2.2:e<=.4?this._slotMTangentX=2.4:e<=.5?this._slotMTangentX=2.6:e<=.6&&(this._slotMTangentX=2.8)}initSlotMTangentY(e){e<=.3?this._slotMTangentY=.47:e<=.4?this._slotMTangentY=.5:e<=.5?this._slotMTangentY=.52:e<=.6&&(this._slotMTangentY=.54)}initBoxTopCollect(e){this._boxTopCollect=e}initBoxTopHorizontalLength(e,n){this._boxTopHorizontalLength=e-3*n}get boxTopCollect(){return this._boxTopCollect}get highPointTRH(){return this._highPointTRH}get smallCornerTRR(){return this._smallCornerTRR}get highPointEllipseYRadius(){return this._highPointEllipseYRadius}get smallCornerR1(){return this._smallCornerR1}get smallCornerMR(){return this._smallCornerMR}get smallCornerMT(){return this._smallCornerMT}get smallCornerMT1(){return this._smallCornerMT1}get smallCornerR1TangentX(){return this._smallCornerR1TangentX}get smallCornerR1TangentY(){return this._smallCornerR1TangentY}get subSideHeightM(){return this._subSideHeightM}get slotThicknessNX(){return this._slotThicknessNX}get slotThicknessNY(){return this._slotThicknessNY}get ofReverseCornerR(){return this._ofReverseCornerR}get slotD2(){return this._slotD2}get innerWallTotalHeightDC(){return this._innerWallTotalHeightDC}get slotLengthSW(){return this._slotLengthSW}get slotN(){return this._slotN}get smallCornerMRTangentX(){return this._smallCornerMRTangentX}get smallCornerMRTangentY(){return this._smallCornerMRTangentY}get smallCornerMTTangentX(){return this._smallCornerMTTangentX}get smallCornerMTTangentY(){return this._smallCornerMTTangentY}get slotNTangentX(){return this._slotNTangentX}get slotNTangentY(){return this._slotNTangentY}get slotCollectX(){return this._slotCollectX}get slotCollectY(){return this._slotCollectY}get slotSpacing(){return this._slotSpacing}get slotCount(){return this._slotCount}get slotMTangentX(){return this._slotMTangentX}get slotMTangentY(){return this._slotMTangentY}get slotFoldLineOffset(){return this._slotFoldLineOffset}get ofReverseCornerRX(){return this._ofReverseCornerRX}get ofReverseCornerRY(){return this._ofReverseCornerRY}get smallCornerR1Collect(){return this._smallCornerR1Collect}get aircraftFrontLength(){return this._aircraftFrontLength}get upperWidthW1(){return this._upperWidthW1}get mainLineOffset(){return this._mainLineOffset}get ofReverseCornerTangentX(){return this._ofReverseCornerTangentX}get ofReverseCornerTangentY(){return this._ofReverseCornerTangentY}get subSideVerticalLength(){return this._subSideVerticalLength}get highPointTRHRadius(){return this._highPointTRHRadius}get highPointTRHTangentX(){return this._highPointTRHTangentX}get highPointTRHTangentY(){return this._highPointTRHTangentY}get highPointTRHAngle(){return this._highPointTRHAngle}get highPointTRHHorizontalLength(){return this._highPointTRHHorizontalLength}get heightDiffT1(){return this._heightDiffT1}get smallCornerTRRTangentX(){return this._smallCornerTRRTangentX}get smallCornerTRRTangentY(){return this._smallCornerTRRTangentY}get highPointTRHRTangentX(){return this._highPointTRHRTangentX}get highPointTRHRTangentY(){return this._highPointTRHRTangentY}get boxTopHorizontalLength(){return this._boxTopHorizontalLength}get mainLineOffsetHB(){return this._mainLineOffsetHB}get mainLineOffsetFBToF(){return this._mainLineOffsetFBToF}get mainLineOffsetFTToFT(){return this._mainLineOffsetFTToFT}get smallCornerMTTangentXUp(){return this._smallCornerMTTangentXUp}get smallCornerMTTangentYUp(){return this._smallCornerMTTangentYUp}get slotFoldLineOffsetX(){return this._slotFoldLineOffsetX}get slotFoldLineOffsetY(){return this._slotFoldLineOffsetY}get slopeK(){return this._slopeK}}var DECIMAL_REMOVAL_EFFECTIVE_AT=new Date("2026-08-18T00:00:00.000Z"),roundTo4=t=>Math.round(t*1e4)/1e4,mmToPt$1=t=>t*72/25.4,MmToPtConverter={convert:t=>{const e=mmToPt$1(t);return Date.now()>=DECIMAL_REMOVAL_EFFECTIVE_AT.getTime()?Math.round(e):roundTo4(e)}},SvgAction=class{constructor(t,e=MmToPtConverter){this.coordsFn=t,this.converter=e;const{x:n,y:s}=this.coordsFn();this.x=n,this.y=s}toPath(){throw new Error("子类必须实现 toPath()")}},MoveTo=class extends SvgAction{toPath(){const t=this.converter;return`M ${t.convert(this.x)} ${t.convert(this.y)}`}},LineTo=class extends SvgAction{toPath(){const t=this.converter;return`L ${t.convert(this.x)} ${t.convert(this.y)}`}},ArcTo=class extends SvgAction{constructor(t,e,n=0,s=0,u=1,l,o=MmToPtConverter){super(l,o),this.rx=t,this.ry=e,this.rotation=n,this.largeArc=s,this.sweep=u}toPath(){const t=this.converter;return`A ${t.convert(this.rx)} ${t.convert(this.ry)} ${this.rotation} ${this.largeArc} ${this.sweep} ${t.convert(this.x)} ${t.convert(this.y)}`}},QuadTo=class extends SvgAction{constructor(t,e,n,s=MmToPtConverter){super(n,s),this.cx=t,this.cy=e}toPath(){const t=this.converter;return`Q ${t.convert(this.cx)} ${t.convert(this.cy)} ${t.convert(this.x)} ${t.convert(this.y)}`}},ClosePath=class extends SvgAction{toPath(){return"Z"}},SvgPathBuilder=class{constructor(t=MmToPtConverter){this.converter=t,this.actions=[]}moveTo(t){return this.actions.push(new MoveTo(t,this.converter)),this}lineTo(t){return this.actions.push(new LineTo(t,this.converter)),this}arcTo(t,e,n=0,s=0,u=1,l){return this.actions.push(new ArcTo(t,e,n,s,u,l,this.converter)),this}quadTo(t,e,n,s=MmToPtConverter){return this.actions.push(new QuadTo(t,e,n,s)),this}closePath(){return this.actions.push(new ClosePath(()=>({x:0,y:0}),this.converter)),this}build(){return this.actions.map(t=>t.toPath()).join(" ")}actionSplice(t,e=0){return this.actions.splice(t,e),this}addMoveTo(t,e){return this.actions.splice(t,0,new MoveTo(e,this.converter)),this}addLineTo(t,e){return this.actions.splice(t,0,new LineTo(e,this.converter)),this}addQuadTo(t,e,n,s){return this.actions.splice(t,0,new QuadTo(e,n,s,this.converter)),this}addArcTo(t,e,n,s=0,u=0,l=1,o){return this.actions.splice(t,0,new ArcTo(e,n,s,u,l,o,this.converter)),this}addClosePath(t){return this.actions.splice(t,0,new ClosePath(()=>({x:0,y:0}),this.converter)),this}};const mmToPt=t=>t*72/25.4,foldLineObjMmToPt=t=>{const e={};for(const n of Object.keys(t)){const s=t[n];e[n]={x1:mmToPt(s.x1),y1:mmToPt(s.y1),x2:mmToPt(s.x2),y2:mmToPt(s.y2)}}return e},foldLineResultMmToPt=t=>({...t,foldLineObj:foldLineObjMmToPt(t.foldLineObj),secondFoldLineObj:t.secondFoldLineObj?foldLineObjMmToPt(t.secondFoldLineObj):void 0}),getYOnLine=(t,e,n,s,u)=>{const l=n-t;if(Math.abs(l)<1e-12)return null;const o=(s-e)/l;return e+o*(u-t)},getXOnLine=(t,e,n,s,u)=>s-e===0?null:t+(u-e)*(n-t)/(s-e),computeMBPoints=([t,e],[n,s],u,l,o=2,i=1)=>{const g=s-e,d=t-n,r=n*e-t*s,f=Math.hypot(g,d);if(f===0)throw new Error("两点重合");const L=r+i*o*f-2*(g-d);let T,x;return d===0?(x=-L/g,T=0):g===0?(T=-L/d,x=0):(T=-(g*u+L)/d,x=-(d*l+L)/g),{yA:T,xB:x}},getYOnOffsetLine=([t,e],[n,s],u,l=2,o=1)=>{const i=s-e,g=t-n,d=n*e-t*s,r=Math.hypot(i,g);if(r===0)throw new Error("两点重合");const f=d+o*l*r-2*(i-g);let L;return g===0?L=0:i===0?L=-f/g:L=-(i*u+f)/g,L},getXOnOffsetLine=([t,e],[n,s],u,l=2,o=1)=>{const i=s-e,g=t-n,d=n*e-t*s,r=Math.hypot(i,g);if(r===0)throw new Error("两点重合");const f=d+o*l*r-2*(i-g);let L;return g===0?L=-f/i:i===0?L=0:L=-(g*u+f)/i,L};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getAugmentedNamespace(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function s(){var u=!1;try{u=this instanceof s}catch{}return u?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var u=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:function(){return t[s]}})}),n}var clone$1={exports:{}},hasRequiredClone;function requireClone(){return hasRequiredClone||(hasRequiredClone=1,(function(t){var e=(function(){function n(g,d,r,f){typeof d=="object"&&(r=d.depth,f=d.prototype,d.filter,d=d.circular);var L=[],T=[],x=typeof Buffer<"u";typeof d>"u"&&(d=!0),typeof r>"u"&&(r=1/0);function c(m,y){if(m===null)return null;if(y==0)return m;var O,b;if(typeof m!="object")return m;if(n.__isArray(m))O=[];else if(n.__isRegExp(m))O=new RegExp(m.source,i(m)),m.lastIndex&&(O.lastIndex=m.lastIndex);else if(n.__isDate(m))O=new Date(m.getTime());else{if(x&&Buffer.isBuffer(m))return Buffer.allocUnsafe?O=Buffer.allocUnsafe(m.length):O=new Buffer(m.length),m.copy(O),O;typeof f>"u"?(b=Object.getPrototypeOf(m),O=Object.create(b)):(O=Object.create(f),b=f)}if(d){var j=L.indexOf(m);if(j!=-1)return T[j];L.push(m),T.push(O)}for(var F in m){var k;b&&(k=Object.getOwnPropertyDescriptor(b,F)),!(k&&k.set==null)&&(O[F]=c(m[F],y-1))}return O}return c(g,r)}n.clonePrototype=function(d){if(d===null)return null;var r=function(){};return r.prototype=d,new r};function s(g){return Object.prototype.toString.call(g)}n.__objToStr=s;function u(g){return typeof g=="object"&&s(g)==="[object Date]"}n.__isDate=u;function l(g){return typeof g=="object"&&s(g)==="[object Array]"}n.__isArray=l;function o(g){return typeof g=="object"&&s(g)==="[object RegExp]"}n.__isRegExp=o;function i(g){var d="";return g.global&&(d+="g"),g.ignoreCase&&(d+="i"),g.multiline&&(d+="m"),d}return n.__getRegExpFlags=i,n})();t.exports&&(t.exports=e)})(clone$1)),clone$1.exports}function sortKD(t,e,n,s,u,l){if(!(u-s<=n)){var o=Math.floor((s+u)/2);select(t,e,o,s,u,l%2),sortKD(t,e,n,s,o-1,l+1),sortKD(t,e,n,o+1,u,l+1)}}function select(t,e,n,s,u,l){for(;u>s;){if(u-s>600){var o=u-s+1,i=n-s+1,g=Math.log(o),d=.5*Math.exp(2*g/3),r=.5*Math.sqrt(g*d*(o-d)/o)*(i-o/2<0?-1:1),f=Math.max(s,Math.floor(n-i*d/o+r)),L=Math.min(u,Math.floor(n+(o-i)*d/o+r));select(t,e,n,f,L,l)}var T=e[2*n+l],x=s,c=u;for(swapItem(t,e,s,n),e[2*u+l]>T&&swapItem(t,e,s,u);x<c;){for(swapItem(t,e,x,c),x++,c--;e[2*x+l]<T;)x++;for(;e[2*c+l]>T;)c--}e[2*s+l]===T?swapItem(t,e,s,c):(c++,swapItem(t,e,c,u)),c<=n&&(s=c+1),n<=c&&(u=c-1)}}function swapItem(t,e,n,s){swap(t,n,s),swap(e,2*n,2*s),swap(e,2*n+1,2*s+1)}function swap(t,e,n){var s=t[e];t[e]=t[n],t[n]=s}function range$1(t,e,n,s,u,l,o){for(var i=[0,t.length-1,0],g=[],d,r;i.length;){var f=i.pop(),L=i.pop(),T=i.pop();if(L-T<=o){for(var x=T;x<=L;x++)d=e[2*x],r=e[2*x+1],d>=n&&d<=u&&r>=s&&r<=l&&g.push(t[x]);continue}var c=Math.floor((T+L)/2);d=e[2*c],r=e[2*c+1],d>=n&&d<=u&&r>=s&&r<=l&&g.push(t[c]);var m=(f+1)%2;(f===0?n<=d:s<=r)&&(i.push(T),i.push(c-1),i.push(m)),(f===0?u>=d:l>=r)&&(i.push(c+1),i.push(L),i.push(m))}return g}function within(t,e,n,s,u,l){for(var o=[0,t.length-1,0],i=[],g=u*u;o.length;){var d=o.pop(),r=o.pop(),f=o.pop();if(r-f<=l){for(var L=f;L<=r;L++)sqDist(e[2*L],e[2*L+1],n,s)<=g&&i.push(t[L]);continue}var T=Math.floor((f+r)/2),x=e[2*T],c=e[2*T+1];sqDist(x,c,n,s)<=g&&i.push(t[T]);var m=(d+1)%2;(d===0?n-u<=x:s-u<=c)&&(o.push(f),o.push(T-1),o.push(m)),(d===0?n+u>=x:s+u>=c)&&(o.push(T+1),o.push(r),o.push(m))}return i}function sqDist(t,e,n,s){var u=t-n,l=e-s;return u*u+l*l}function kdbush(t,e,n,s,u){return new KDBush(t,e,n,s,u)}function KDBush(t,e,n,s,u){e=e||defaultGetX,n=n||defaultGetY,u=u||Array,this.nodeSize=s||64,this.points=t,this.ids=new u(t.length),this.coords=new u(t.length*2);for(var l=0;l<t.length;l++)this.ids[l]=l,this.coords[2*l]=e(t[l]),this.coords[2*l+1]=n(t[l]);sortKD(this.ids,this.coords,this.nodeSize,0,this.ids.length-1,0)}KDBush.prototype={range:function(t,e,n,s){return range$1(this.ids,this.coords,t,e,n,s,this.nodeSize)},within:function(t,e,n){return within(this.ids,this.coords,t,e,n,this.nodeSize)}};function defaultGetX(t){return t[0]}function defaultGetY(t){return t[1]}const src=Object.freeze(Object.defineProperty({__proto__:null,default:kdbush},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(src);var graham_scan_min={exports:{}},hasRequiredGraham_scan_min;function requireGraham_scan_min(){return hasRequiredGraham_scan_min||(hasRequiredGraham_scan_min=1,(function(t){function e(){this.anchorPoint=void 0,this.reverse=!1,this.points=[]}e.prototype={constructor:e,Point:function(n,s){this.x=n,this.y=s},_findPolarAngle:function(n,s){var u,l,o=57.295779513082;if(!n||!s||(u=s.x-n.x,l=s.y-n.y,u==0&&l==0))return 0;var i=Math.atan2(l,u)*o;return this.reverse?0>=i&&(i+=360):i>=0&&(i+=360),i},addPoint:function(n,s){var u=this.anchorPoint===void 0||this.anchorPoint.y>s||this.anchorPoint.y===s&&this.anchorPoint.x>n;u?(this.anchorPoint!==void 0&&this.points.push(new this.Point(this.anchorPoint.x,this.anchorPoint.y)),this.anchorPoint=new this.Point(n,s)):this.points.push(new this.Point(n,s))},_sortPoints:function(){var n=this;return this.points.sort(function(s,u){var l=n._findPolarAngle(n.anchorPoint,s),o=n._findPolarAngle(n.anchorPoint,u);return o>l?-1:l>o?1:0})},_checkPoints:function(n,s,u){var l,o=this._findPolarAngle(n,s),i=this._findPolarAngle(n,u);return o>i?(l=o-i,!(l>180)):i>o?(l=i-o,l>180):!0},getHull:function(){var n,s,u=[];if(this.reverse=this.points.every(function(d){return d.x<0&&d.y<0}),n=this._sortPoints(),s=n.length,3>s)return n.unshift(this.anchorPoint),n;for(u.push(n.shift(),n.shift());;){var l,o,i;if(u.push(n.shift()),l=u[u.length-3],o=u[u.length-2],i=u[u.length-1],this._checkPoints(l,o,i)&&u.splice(u.length-2,1),n.length==0){if(s==u.length){var g=this.anchorPoint;return u=u.filter(function(d){return!!d}),u.some(function(d){return d.x==g.x&&d.y==g.y})||u.unshift(this.anchorPoint),u}n=u,s=n.length,u=[],u.push(n.shift(),n.shift())}}}},t.exports=e})(graham_scan_min)),graham_scan_min.exports}var bezier={exports:{}},utils$2={exports:{}},hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,(function(){var t=Math.abs,e=Math.cos,n=Math.sin,s=Math.acos,u=Math.atan2,l=Math.sqrt,o=Math.pow,i=function(m){return m<0?-o(-m,1/3):o(m,1/3)},g=Math.PI,d=2*g,r=g/2,f=1e-6,L=Number.MAX_SAFE_INTEGER||9007199254740991,T=Number.MIN_SAFE_INTEGER||-9007199254740991,x={x:0,y:0,z:0},c={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(m,y){var O=y(m),b=O.x*O.x+O.y*O.y;return typeof O.z<"u"&&(b+=O.z*O.z),l(b)},compute:function(m,y,O){if(m===0)return y[0];var b=y.length-1;if(m===1)return y[b];var j=y,F=1-m;if(b===0)return y[0];if(b===1)return w={x:F*j[0].x+m*j[1].x,y:F*j[0].y+m*j[1].y},O&&(w.z=F*j[0].z+m*j[1].z),w;if(b<4){var k=F*F,_=m*m,ue,re,de,he=0;b===2?(j=[j[0],j[1],j[2],x],ue=k,re=F*m*2,de=_):b===3&&(ue=k*F,re=k*m*3,de=F*_*3,he=m*_);var w={x:ue*j[0].x+re*j[1].x+de*j[2].x+he*j[3].x,y:ue*j[0].y+re*j[1].y+de*j[2].y+he*j[3].y};return O&&(w.z=ue*j[0].z+re*j[1].z+de*j[2].z+he*j[3].z),w}for(var le=JSON.parse(JSON.stringify(y));le.length>1;){for(var V=0;V<le.length-1;V++)le[V]={x:le[V].x+(le[V+1].x-le[V].x)*m,y:le[V].y+(le[V+1].y-le[V].y)*m},typeof le[V].z<"u"&&(le[V]=le[V].z+(le[V+1].z-le[V].z)*m);le.splice(le.length-1,1)}return le[0]},computeWithRatios:function(m,y,O,b){var j=1-m,F=O,k=y,_,ue=F[0],re=F[1],de=F[2],he=F[3];if(ue*=j,re*=m,k.length===2)return _=ue+re,{x:(ue*k[0].x+re*k[1].x)/_,y:(ue*k[0].y+re*k[1].y)/_,z:b?(ue*k[0].z+re*k[1].z)/_:!1};if(ue*=j,re*=2*j,de*=m*m,k.length===3)return _=ue+re+de,{x:(ue*k[0].x+re*k[1].x+de*k[2].x)/_,y:(ue*k[0].y+re*k[1].y+de*k[2].y)/_,z:b?(ue*k[0].z+re*k[1].z+de*k[2].z)/_:!1};if(ue*=j,re*=1.5*j,de*=3*j,he*=m*m*m,k.length===4)return _=ue+re+de+he,{x:(ue*k[0].x+re*k[1].x+de*k[2].x+he*k[3].x)/_,y:(ue*k[0].y+re*k[1].y+de*k[2].y+he*k[3].y)/_,z:b?(ue*k[0].z+re*k[1].z+de*k[2].z+he*k[3].z)/_:!1}},derive:function(m,y){for(var O=[],b=m,j=b.length,F=j-1;j>1;j--,F--){for(var k=[],_=0,ue;_<F;_++)ue={x:F*(b[_+1].x-b[_].x),y:F*(b[_+1].y-b[_].y)},y&&(ue.z=F*(b[_+1].z-b[_].z)),k.push(ue);O.push(k),b=k}return O},between:function(m,y,O){return y<=m&&m<=O||c.approximately(m,y)||c.approximately(m,O)},approximately:function(m,y,O){return t(m-y)<=(O||f)},length:function(m){var y=.5,O=0,b=c.Tvalues.length,j,F;for(j=0;j<b;j++)F=y*c.Tvalues[j]+y,O+=c.Cvalues[j]*c.arcfn(F,m);return y*O},map:function(m,y,O,b,j){var F=O-y,k=j-b,_=m-y,ue=_/F;return b+k*ue},lerp:function(m,y,O){var b={x:y.x+m*(O.x-y.x),y:y.y+m*(O.y-y.y)};return y.z&&O.z&&(b.z=y.z+m*(O.z-y.z)),b},pointToString:function(m){var y=m.x+"/"+m.y;return typeof m.z<"u"&&(y+="/"+m.z),y},pointsToString:function(m){return"["+m.map(c.pointToString).join(", ")+"]"},copy:function(m){return JSON.parse(JSON.stringify(m))},angle:function(m,y,O){var b=y.x-m.x,j=y.y-m.y,F=O.x-m.x,k=O.y-m.y,_=b*k-j*F,ue=b*F+j*k;return u(_,ue)},round:function(m,y){var O=""+m,b=O.indexOf(".");return parseFloat(O.substring(0,b+1+y))},dist:function(m,y){var O=m.x-y.x,b=m.y-y.y;return l(O*O+b*b)},closest:function(m,y){var O=o(2,63),b,j;return m.forEach(function(F,k){j=c.dist(y,F),j<O&&(O=j,b=k)}),{mdist:O,mpos:b}},abcratio:function(m,y){if(y!==2&&y!==3)return!1;if(typeof m>"u")m=.5;else if(m===0||m===1)return m;var O=o(m,y)+o(1-m,y),b=O-1;return t(b/O)},projectionratio:function(m,y){if(y!==2&&y!==3)return!1;if(typeof m>"u")m=.5;else if(m===0||m===1)return m;var O=o(1-m,y),b=o(m,y)+O;return O/b},lli8:function(m,y,O,b,j,F,k,_){var ue=(m*b-y*O)*(j-k)-(m-O)*(j*_-F*k),re=(m*b-y*O)*(F-_)-(y-b)*(j*_-F*k),de=(m-O)*(F-_)-(y-b)*(j-k);return de==0?!1:{x:ue/de,y:re/de}},lli4:function(m,y,O,b){var j=m.x,F=m.y,k=y.x,_=y.y,ue=O.x,re=O.y,de=b.x,he=b.y;return c.lli8(j,F,k,_,ue,re,de,he)},lli:function(m,y){return c.lli4(m,m.c,y,y.c)},makeline:function(m,y){var O=requireBezier(),b=m.x,j=m.y,F=y.x,k=y.y,_=(F-b)/3,ue=(k-j)/3;return new O(b,j,b+_,j+ue,b+2*_,j+2*ue,F,k)},findbbox:function(m){var y=L,O=L,b=T,j=T;return m.forEach(function(F){var k=F.bbox();y>k.x.min&&(y=k.x.min),O>k.y.min&&(O=k.y.min),b<k.x.max&&(b=k.x.max),j<k.y.max&&(j=k.y.max)}),{x:{min:y,mid:(y+b)/2,max:b,size:b-y},y:{min:O,mid:(O+j)/2,max:j,size:j-O}}},shapeintersections:function(m,y,O,b,j){if(!c.bboxoverlap(y,b))return[];var F=[],k=[m.startcap,m.forward,m.back,m.endcap],_=[O.startcap,O.forward,O.back,O.endcap];return k.forEach(function(ue){ue.virtual||_.forEach(function(re){if(!re.virtual){var de=ue.intersects(re,j);de.length>0&&(de.c1=ue,de.c2=re,de.s1=m,de.s2=O,F.push(de))}})}),F},makeshape:function(m,y,O){var b=y.points.length,j=m.points.length,F=c.makeline(y.points[b-1],m.points[0]),k=c.makeline(m.points[j-1],y.points[0]),_={startcap:F,forward:m,back:y,endcap:k,bbox:c.findbbox([F,m,y,k])},ue=c;return _.intersections=function(re){return ue.shapeintersections(_,_.bbox,re,re.bbox,O)},_},getminmax:function(m,y,O){if(!O)return{min:0,max:0};var b=L,j=T,F,k;O.indexOf(0)===-1&&(O=[0].concat(O)),O.indexOf(1)===-1&&O.push(1);for(var _=0,ue=O.length;_<ue;_++)F=O[_],k=m.get(F),k[y]<b&&(b=k[y]),k[y]>j&&(j=k[y]);return{min:b,mid:(b+j)/2,max:j,size:j-b}},align:function(m,y){var O=y.p1.x,b=y.p1.y,j=-u(y.p2.y-b,y.p2.x-O),F=function(k){return{x:(k.x-O)*e(j)-(k.y-b)*n(j),y:(k.x-O)*n(j)+(k.y-b)*e(j)}};return m.map(F)},roots:function(m,y){y=y||{p1:{x:0,y:0},p2:{x:1,y:0}};var O=m.length-1,_e=c.align(m,y),b=function(oe){return 0<=oe&&oe<=1};if(O===2){var w=_e[0].y,le=_e[1].y,V=_e[2].y,he=w-2*le+V;if(he!==0){var j=-l(le*le-w*V),F=-w+le,Ve=-(j+F)/he,k=-(-j+F)/he;return[Ve,k].filter(b)}else if(le!==V&&he===0)return[(2*le-V)/(2*le-2*V)].filter(b);return[]}var _=_e[0].y,ue=_e[1].y,re=_e[2].y,de=_e[3].y,he=-_+3*ue-3*re+de,w=3*_-6*ue+3*re,le=-3*_+3*ue,V=_;if(c.approximately(he,0)){if(c.approximately(w,0))return c.approximately(le,0)?[]:[-V/le].filter(b);var Ie=l(le*le-4*w*V),Ce=2*w;return[(Ie-le)/Ce,(-le-Ie)/Ce].filter(b)}w/=he,le/=he,V/=he;var _e=(3*le-w*w)/3,D=_e/3,Ie=(2*w*w*w-9*w*le+27*V)/27,Lt=Ie/2,At=Lt*Lt+D*D*D,ie,Ve,ze,z,Dt;if(At<0){var v=-_e/3,S=v*v*v,Ue=l(S),M=-Ie/(2*Ue),Pt=M<-1?-1:M>1?1:M,hn=s(Pt),Oe=i(Ue),Fe=2*Oe;return ze=Fe*e(hn/3)-w/3,z=Fe*e((hn+d)/3)-w/3,Dt=Fe*e((hn+2*d)/3)-w/3,[ze,z,Dt].filter(b)}else{if(At===0)return ie=Lt<0?i(-Lt):-i(Lt),ze=2*ie-w/3,z=-ie-w/3,[ze,z].filter(b);var Et=l(At);return ie=i(-Lt+Et),Ve=i(Lt+Et),[ie-Ve-w/3].filter(b)}},droots:function(m){if(m.length===3){var y=m[0],O=m[1],b=m[2],j=y-2*O+b;if(j!==0){var F=-l(O*O-y*b),k=-y+O,_=-(F+k)/j,ue=-(-F+k)/j;return[_,ue]}else if(O!==b&&j===0)return[(2*O-b)/(2*(O-b))];return[]}if(m.length===2){var y=m[0],O=m[1];return y!==O?[y/(y-O)]:[]}},curvature:function(m,y,O,b){var j=c.derive(y),F=j[0],k=j[1],_,ue,re,de,he=0,w=0,le=c.compute(m,F),V=c.compute(m,k),Ce=le.x*le.x+le.y*le.y;if(O?(_=l(o(le.y*V.z-V.y*le.z,2)+o(le.z*V.x-V.z*le.x,2)+o(le.x*V.y-V.x*le.y,2)),ue=o(Ce+le.z*le.z,3/2)):(_=le.x*V.y-le.y*V.x,ue=o(Ce,3/2)),_===0||ue===0)return{k:0,r:0};if(he=_/ue,w=ue/_,!b){var _e=c.curvature(m-.001,y,O,!0).k,D=c.curvature(m+.001,y,O,!0).k;de=(D-he+(he-_e))/2,re=(t(D-he)+t(he-_e))/2}return{k:he,r:w,dk:de,adk:re}},inflections:function(m){if(m.length<4)return[];var y=c.align(m,{p1:m[0],p2:m.slice(-1)[0]}),O=y[2].x*y[1].y,b=y[3].x*y[1].y,j=y[1].x*y[2].y,he=y[3].x*y[2].y,F=18*(-3*O+2*b+3*j-he),k=18*(3*O-b-3*j),_=18*(j-O);if(c.approximately(F,0)){if(!c.approximately(k,0)){var ue=-_/k;if(0<=ue&&ue<=1)return[ue]}return[]}var re=k*k-4*F*_,de=Math.sqrt(re),he=2*F;return c.approximately(he,0)?[]:[(de-k)/he,-(k+de)/he].filter(function(w){return 0<=w&&w<=1})},bboxoverlap:function(m,y){var O=["x","y"],b=O.length,j,F,k,_,ue;for(j=0;j<b;j++)if(F=O[j],k=m[F].mid,_=y[F].mid,ue=(m[F].size+y[F].size)/2,t(k-_)>=ue)return!1;return!0},expandbox:function(m,y){y.x.min<m.x.min&&(m.x.min=y.x.min),y.y.min<m.y.min&&(m.y.min=y.y.min),y.z&&y.z.min<m.z.min&&(m.z.min=y.z.min),y.x.max>m.x.max&&(m.x.max=y.x.max),y.y.max>m.y.max&&(m.y.max=y.y.max),y.z&&y.z.max>m.z.max&&(m.z.max=y.z.max),m.x.mid=(m.x.min+m.x.max)/2,m.y.mid=(m.y.min+m.y.max)/2,m.z&&(m.z.mid=(m.z.min+m.z.max)/2),m.x.size=m.x.max-m.x.min,m.y.size=m.y.max-m.y.min,m.z&&(m.z.size=m.z.max-m.z.min)},pairiteration:function(m,y,O){var b=m.bbox(),j=y.bbox(),F=1e5,k=O||.5;if(b.x.size+b.y.size<k&&j.x.size+j.y.size<k)return[(F*(m._t1+m._t2)/2|0)/F+"/"+(F*(y._t1+y._t2)/2|0)/F];var _=m.split(.5),ue=y.split(.5),re=[{left:_.left,right:ue.left},{left:_.left,right:ue.right},{left:_.right,right:ue.right},{left:_.right,right:ue.left}];re=re.filter(function(he){return c.bboxoverlap(he.left.bbox(),he.right.bbox())});var de=[];return re.length===0||(re.forEach(function(he){de=de.concat(c.pairiteration(he.left,he.right,k))}),de=de.filter(function(he,w){return de.indexOf(he)===w})),de},getccenter:function(m,y,O){var b=y.x-m.x,j=y.y-m.y,F=O.x-y.x,k=O.y-y.y,_=b*e(r)-j*n(r),ue=b*n(r)+j*e(r),re=F*e(r)-k*n(r),de=F*n(r)+k*e(r),he=(m.x+y.x)/2,w=(m.y+y.y)/2,le=(y.x+O.x)/2,V=(y.y+O.y)/2,Ce=he+_,_e=w+ue,D=le+re,Ie=V+de,Lt=c.lli8(he,w,Ce,_e,le,V,D,Ie),At=c.dist(Lt,m),ie=u(m.y-Lt.y,m.x-Lt.x),Ve=u(y.y-Lt.y,y.x-Lt.x),ze=u(O.y-Lt.y,O.x-Lt.x),z;return ie<ze?((ie>Ve||Ve>ze)&&(ie+=d),ie>ze&&(z=ze,ze=ie,ie=z)):ze<Ve&&Ve<ie?(z=ze,ze=ie,ie=z):ze+=d,Lt.s=ie,Lt.e=ze,Lt.r=At,Lt},numberSort:function(m,y){return m-y}};utils$2.exports=c})()),utils$2.exports}var polyBezier={exports:{}},hasRequiredPolyBezier;function requirePolyBezier(){return hasRequiredPolyBezier||(hasRequiredPolyBezier=1,(function(){var t=requireUtils(),e=function(n){this.curves=[],this._3d=!1,n&&(this.curves=n,this._3d=this.curves[0]._3d)};e.prototype={valueOf:function(){return this.toString()},toString:function(){return"["+this.curves.map(function(n){return t.pointsToString(n.points)}).join(", ")+"]"},addCurve:function(n){this.curves.push(n),this._3d=this._3d||n._3d},length:function(){return this.curves.map(function(n){return n.length()}).reduce(function(n,s){return n+s})},curve:function(n){return this.curves[n]},bbox:function(){for(var n=this.curves,s=n[0].bbox(),u=1;u<n.length;u++)t.expandbox(s,n[u].bbox());return s},offset:function(n){var s=[];return this.curves.forEach(function(u){s=s.concat(u.offset(n))}),new e(s)}},polyBezier.exports=e})()),polyBezier.exports}var normaliseSvg,hasRequiredNormaliseSvg;function requireNormaliseSvg(){if(hasRequiredNormaliseSvg)return normaliseSvg;hasRequiredNormaliseSvg=1;function t(e){e=e.replace(/,/g," ").replace(/-/g," - ").replace(/-\s+/g,"-").replace(/([a-zA-Z])/g," $1 ");var n=e.replace(/([a-zA-Z])\s?/g,"|$1").split("|"),s=n.length,u,l,o,i,g=[],d,r,f=0,L=0,T=0,x=0,c=0,m=0,y=0,O=0,b="";for(u=1;u<s;u++)if(l=n[u],o=l.substring(0,1),i=o.toLowerCase(),g=l.replace(o,"").trim().split(" "),g=g.filter(function(j){return j!==""}).map(parseFloat),d=g.length,i==="m"){if(b+="M ",o==="m"?(T+=g[0],x+=g[1]):(T=g[0],x=g[1]),f=T,L=x,b+=T+" "+x+" ",d>2)for(r=0;r<d;r+=2)o==="m"?(T+=g[r],x+=g[r+1]):(T=g[r],x=g[r+1]),b+=["L",T,x,""].join(" ")}else if(i==="l")for(r=0;r<d;r+=2)o==="l"?(T+=g[r],x+=g[r+1]):(T=g[r],x=g[r+1]),b+=["L",T,x,""].join(" ");else if(i==="h")for(r=0;r<d;r++)o==="h"?T+=g[r]:T=g[r],b+=["L",T,x,""].join(" ");else if(i==="v")for(r=0;r<d;r++)o==="v"?x+=g[r]:x=g[r],b+=["L",T,x,""].join(" ");else if(i==="q")for(r=0;r<d;r+=4)o==="q"?(c=T+g[r],m=x+g[r+1],T+=g[r+2],x+=g[r+3]):(c=g[r],m=g[r+1],T=g[r+2],x=g[r+3]),b+=["Q",c,m,T,x,""].join(" ");else if(i==="t")for(r=0;r<d;r+=2)c=T+(T-c),m=x+(x-m),o==="t"?(T+=g[r],x+=g[r+1]):(T=g[r],x=g[r+1]),b+=["Q",c,m,T,x,""].join(" ");else if(i==="c")for(r=0;r<d;r+=6)o==="c"?(c=T+g[r],m=x+g[r+1],y=T+g[r+2],O=x+g[r+3],T+=g[r+4],x+=g[r+5]):(c=g[r],m=g[r+1],y=g[r+2],O=g[r+3],T=g[r+4],x=g[r+5]),b+=["C",c,m,y,O,T,x,""].join(" ");else if(i==="s")for(r=0;r<d;r+=4)c=T+(T-y),m=x+(x-O),o==="s"?(y=T+g[r],O=x+g[r+1],T+=g[r+2],x+=g[r+3]):(y=g[r],O=g[r+1],T=g[r+2],x=g[r+3]),b+=["C",c,m,y,O,T,x,""].join(" ");else i==="z"&&(b+="Z ",T=f,x=L);return b.trim()}return normaliseSvg=t,normaliseSvg}var svgToBeziers,hasRequiredSvgToBeziers;function requireSvgToBeziers(){if(hasRequiredSvgToBeziers)return svgToBeziers;hasRequiredSvgToBeziers=1;var t=requireNormaliseSvg(),e={x:!1,y:!1};function n(u,l,o){if(l!=="Z"){if(l==="M"){e={x:o[0],y:o[1]};return}var i=[!1,e.x,e.y].concat(o),g=u.bind.apply(u,i),d=new g,r=o.slice(-2);return e={x:r[0],y:r[1]},d}}function s(u,l){for(var o=t(l).split(" "),i,g=new RegExp("[MLCQZ]",""),d,r,f=[],L={C:6,Q:4,L:2,M:2};o.length;)i=o.splice(0,1)[0],g.test(i)&&(r=o.splice(0,L[i]).map(parseFloat),d=n(u,i,r),d&&f.push(d));return new u.PolyBezier(f)}return svgToBeziers=s,svgToBeziers}var hasRequiredBezier;function requireBezier(){return hasRequiredBezier||(hasRequiredBezier=1,(function(){var t=Math.abs,e=Math.min,n=Math.max,s=Math.cos,u=Math.sin,l=Math.acos,o=Math.sqrt,i=Math.PI,g={x:0,y:0,z:0},d=requireUtils(),r=requirePolyBezier(),f=function(c){var m=c&&c.forEach?c:[].slice.call(arguments),y=!1;if(typeof m[0]=="object"){y=m.length;var O=[];m.forEach(function(he){["x","y","z"].forEach(function(w){typeof he[w]<"u"&&O.push(he[w])})}),m=O}var b=!1,j=m.length;if(y){if(y>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");b=!0}}else if(j!==6&&j!==8&&j!==9&&j!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");var F=!b&&(j===9||j===12)||c&&c[0]&&typeof c[0].z<"u";this._3d=F;for(var k=[],_=0,ue=F?3:2;_<j;_+=ue){var re={x:m[_],y:m[_+1]};F&&(re.z=m[_+2]),k.push(re)}this.order=k.length-1,this.points=k;var de=["x","y"];F&&de.push("z"),this.dims=de,this.dimlen=de.length,(function(he){for(var w=he.order,le=he.points,V=d.align(le,{p1:le[0],p2:le[w]}),Ce=0;Ce<V.length;Ce++)if(t(V[Ce].y)>1e-4){he._linear=!1;return}he._linear=!0})(this),this._t1=0,this._t2=1,this.update()},L=requireSvgToBeziers();f.SVGtoBeziers=function(c){return L(f,c)};function T(c,m,y,O,b){typeof b>"u"&&(b=.5);var j=d.projectionratio(b,c),F=1-j,k={x:j*m.x+F*O.x,y:j*m.y+F*O.y},_=d.abcratio(b,c),ue={x:y.x+(y.x-k.x)/_,y:y.y+(y.y-k.y)/_};return{A:ue,B:y,C:k}}f.quadraticFromPoints=function(c,m,y,O){if(typeof O>"u"&&(O=.5),O===0)return new f(m,m,y);if(O===1)return new f(c,m,m);var b=T(2,c,m,y,O);return new f(c,b.A,y)},f.cubicFromPoints=function(c,m,y,O,b){typeof O>"u"&&(O=.5);var j=T(3,c,m,y,O);typeof b>"u"&&(b=d.dist(m,j.C));var F=b*(1-O)/O,k=d.dist(c,y),_=(y.x-c.x)/k,ue=(y.y-c.y)/k,re=b*_,de=b*ue,he=F*_,w=F*ue,le={x:m.x-re,y:m.y-de},V={x:m.x+he,y:m.y+w},Ce=j.A,_e={x:Ce.x+(le.x-Ce.x)/(1-O),y:Ce.y+(le.y-Ce.y)/(1-O)},D={x:Ce.x+(V.x-Ce.x)/O,y:Ce.y+(V.y-Ce.y)/O},Ie={x:c.x+(_e.x-c.x)/O,y:c.y+(_e.y-c.y)/O},Lt={x:y.x+(D.x-y.x)/(1-O),y:y.y+(D.y-y.y)/(1-O)};return new f(c,Ie,Lt,y)};var x=function(){return d};f.getUtils=x,f.PolyBezier=r,f.prototype={getUtils:x,valueOf:function(){return this.toString()},toString:function(){return d.pointsToString(this.points)},toSVG:function(c){if(this._3d)return!1;for(var m=this.points,y=m[0].x,O=m[0].y,b=["M",y,O,this.order===2?"Q":"C"],j=1,F=m.length;j<F;j++)b.push(m[j].x),b.push(m[j].y);return b.join(" ")},setRatios:function(c){if(c.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=c,this._lut=[]},verify:function(){var c=this.coordDigest();c!==this._print&&(this._print=c,this.update())},coordDigest:function(){return this.points.map(function(c,m){return""+m+c.x+c.y+(c.z?c.z:0)}).join("")},update:function(c){this._lut=[],this.dpoints=d.derive(this.points,this._3d),this.computedirection()},computedirection:function(){var c=this.points,m=d.angle(c[0],c[this.order],c[1]);this.clockwise=m>0},length:function(){return d.length(this.derivative.bind(this))},_lut:[],getLUT:function(c){if(this.verify(),c=c||100,this._lut.length===c)return this._lut;this._lut=[],c--;for(var m=0;m<=c;m++)this._lut.push(this.compute(m/c));return this._lut},on:function(c,m){m=m||5;for(var y=this.getLUT(),O=[],b,j=0,F=0;F<y.length;F++)b=y[F],d.dist(b,c)<m&&(O.push(b),j+=F/y.length);return O.length?j/=O.length:!1},project:function(c){var m=this.getLUT(),y=m.length-1,O=d.closest(m,c),b=O.mdist,j=O.mpos,F,k,_,ue,re=(j-1)/y,de=(j+1)/y,he=.1/y;for(b+=1,k=re,F=k;k<de+he;k+=he)_=this.compute(k),ue=d.dist(c,_),ue<b&&(b=ue,F=k);return _=this.compute(F),_.t=F,_.d=b,_},get:function(c){return this.compute(c)},point:function(c){return this.points[c]},compute:function(c){return this.ratios?d.computeWithRatios(c,this.points,this.ratios,this._3d):d.compute(c,this.points,this._3d,this.ratios)},raise:function(){for(var c=this.points,m=[c[0]],y,O=c.length,b,j,y=1;y<O;y++)b=c[y],j=c[y-1],m[y]={x:(O-y)/O*b.x+y/O*j.x,y:(O-y)/O*b.y+y/O*j.y};return m[O]=c[O-1],new f(m)},derivative:function(c){var m=1-c,y,O,b=0,j=this.dpoints[0];this.order===2&&(j=[j[0],j[1],g],y=m,O=c),this.order===3&&(y=m*m,O=m*c*2,b=c*c);var F={x:y*j[0].x+O*j[1].x+b*j[2].x,y:y*j[0].y+O*j[1].y+b*j[2].y};return this._3d&&(F.z=y*j[0].z+O*j[1].z+b*j[2].z),F},curvature:function(c){return d.curvature(c,this.points,this._3d)},inflections:function(){return d.inflections(this.points)},normal:function(c){return this._3d?this.__normal3(c):this.__normal2(c)},__normal2:function(c){var m=this.derivative(c),y=o(m.x*m.x+m.y*m.y);return{x:-m.y/y,y:m.x/y}},__normal3:function(c){var m=this.derivative(c),y=this.derivative(c+.01),O=o(m.x*m.x+m.y*m.y+m.z*m.z),b=o(y.x*y.x+y.y*y.y+y.z*y.z);m.x/=O,m.y/=O,m.z/=O,y.x/=b,y.y/=b,y.z/=b;var j={x:y.y*m.z-y.z*m.y,y:y.z*m.x-y.x*m.z,z:y.x*m.y-y.y*m.x},F=o(j.x*j.x+j.y*j.y+j.z*j.z);j.x/=F,j.y/=F,j.z/=F;var k=[j.x*j.x,j.x*j.y-j.z,j.x*j.z+j.y,j.x*j.y+j.z,j.y*j.y,j.y*j.z-j.x,j.x*j.z-j.y,j.y*j.z+j.x,j.z*j.z],_={x:k[0]*m.x+k[1]*m.y+k[2]*m.z,y:k[3]*m.x+k[4]*m.y+k[5]*m.z,z:k[6]*m.x+k[7]*m.y+k[8]*m.z};return _},hull:function(c){var m=this.points,y=[],O,b=[],j=0,F=0,k=0;for(b[j++]=m[0],b[j++]=m[1],b[j++]=m[2],this.order===3&&(b[j++]=m[3]);m.length>1;){for(y=[],F=0,k=m.length-1;F<k;F++)O=d.lerp(c,m[F],m[F+1]),b[j++]=O,y.push(O);m=y}return b},split:function(c,m){if(c===0&&m)return this.split(m).left;if(m===1)return this.split(c).right;var y=this.hull(c),O={left:this.order===2?new f([y[0],y[3],y[5]]):new f([y[0],y[4],y[7],y[9]]),right:this.order===2?new f([y[5],y[4],y[2]]):new f([y[9],y[8],y[6],y[3]]),span:y};if(O.left._t1=d.map(0,0,1,this._t1,this._t2),O.left._t2=d.map(c,0,1,this._t1,this._t2),O.right._t1=d.map(c,0,1,this._t1,this._t2),O.right._t2=d.map(1,0,1,this._t1,this._t2),!m)return O;m=d.map(m,c,1,0,1);var b=O.right.split(m);return b.left},extrema:function(){var c=this.dims,m={},y=[],O,b;return c.forEach((function(j){b=function(F){return F[j]},O=this.dpoints[0].map(b),m[j]=d.droots(O),this.order===3&&(O=this.dpoints[1].map(b),m[j]=m[j].concat(d.droots(O))),m[j]=m[j].filter(function(F){return F>=0&&F<=1}),y=y.concat(m[j].sort(d.numberSort))}).bind(this)),y=y.sort(d.numberSort).filter(function(j,F){return y.indexOf(j)===F}),m.values=y,m},bbox:function(){var c=this.extrema(),m={};return this.dims.forEach((function(y){m[y]=d.getminmax(this,y,c[y])}).bind(this)),m},overlaps:function(c){var m=this.bbox(),y=c.bbox();return d.bboxoverlap(m,y)},offset:function(c,m){if(typeof m<"u"){var y=this.get(c),O=this.normal(c),b={c:y,n:O,x:y.x+O.x*m,y:y.y+O.y*m};return this._3d&&(b.z=y.z+O.z*m),b}if(this._linear){var j=this.normal(0),F=this.points.map(function(_){var ue={x:_.x+c*j.x,y:_.y+c*j.y};return _.z&&O.z&&(ue.z=_.z+c*j.z),ue});return[new f(F)]}var k=this.reduce();return k.map(function(_){return _._linear?_.offset(c)[0]:_.scale(c)})},simple:function(){if(this.order===3){var c=d.angle(this.points[0],this.points[3],this.points[1]),m=d.angle(this.points[0],this.points[3],this.points[2]);if(c>0&&m<0||c<0&&m>0)return!1}var y=this.normal(0),O=this.normal(1),b=y.x*O.x+y.y*O.y;this._3d&&(b+=y.z*O.z);var j=t(l(b));return j<i/3},reduce:function(){var c,m=0,y=0,O=.01,b,j=[],F=[],k=this.extrema().values;for(k.indexOf(0)===-1&&(k=[0].concat(k)),k.indexOf(1)===-1&&k.push(1),m=k[0],c=1;c<k.length;c++)y=k[c],b=this.split(m,y),b._t1=m,b._t2=y,j.push(b),m=y;return j.forEach(function(_){for(m=0,y=0;y<=1;)for(y=m+O;y<=1+O;y+=O)if(b=_.split(m,y),!b.simple()){if(y-=O,t(m-y)<O)return[];b=_.split(m,y),b._t1=d.map(m,0,1,_._t1,_._t2),b._t2=d.map(y,0,1,_._t1,_._t2),F.push(b),m=y;break}m<1&&(b=_.split(m,1),b._t1=d.map(m,0,1,_._t1,_._t2),b._t2=_._t2,F.push(b))}),F},scale:function(c){var m=this.order,y=!1;if(typeof c=="function"&&(y=c),y&&m===2)return this.raise().scale(y);var O=this.clockwise,b=y?y(0):c,j=y?y(1):c,F=[this.offset(0,10),this.offset(1,10)],k=d.lli4(F[0],F[0].c,F[1],F[1].c);if(!k)throw new Error("cannot scale this curve. Try reducing it first.");var _=this.points,ue=[];return[0,1].forEach((function(re){var de=ue[re*m]=d.copy(_[re*m]);de.x+=(re?j:b)*F[re].n.x,de.y+=(re?j:b)*F[re].n.y}).bind(this)),y?([0,1].forEach((function(re){if(!(this.order===2&&re)){var de=_[re+1],he={x:de.x-k.x,y:de.y-k.y},w=y?y((re+1)/m):c;y&&!O&&(w=-w);var le=o(he.x*he.x+he.y*he.y);he.x/=le,he.y/=le,ue[re+1]={x:de.x+w*he.x,y:de.y+w*he.y}}}).bind(this)),new f(ue)):([0,1].forEach((function(re){if(!(this.order===2&&re)){var de=ue[re*m],he=this.derivative(re),w={x:de.x+he.x,y:de.y+he.y};ue[re+1]=d.lli4(de,w,k,_[re+1])}}).bind(this)),new f(ue))},outline:function(c,m,y,O){m=typeof m>"u"?c:m;var b=this.reduce(),j=b.length,F=[],k=[],_,ue=0,re=this.length(),de=typeof y<"u"&&typeof O<"u";function he(At,ie,Ve,ze,z){return function(Dt){var v=ze/Ve,S=(ze+z)/Ve,Ue=ie-At;return d.map(Dt,0,1,At+v*Ue,At+S*Ue)}}b.forEach(function(At){Lt=At.length(),de?(F.push(At.scale(he(c,y,re,ue,Lt))),k.push(At.scale(he(-m,-O,re,ue,Lt)))):(F.push(At.scale(c)),k.push(At.scale(-m))),ue+=Lt}),k=k.map(function(At){return _=At.points,_[3]?At.points=[_[3],_[2],_[1],_[0]]:At.points=[_[2],_[1],_[0]],At}).reverse();var w=F[0].points[0],le=F[j-1].points[F[j-1].points.length-1],V=k[j-1].points[k[j-1].points.length-1],Ce=k[0].points[0],_e=d.makeline(V,w),D=d.makeline(le,Ce),Ie=[_e].concat(F).concat([D]).concat(k),Lt=Ie.length;return new r(Ie)},outlineshapes:function(c,m,y){m=m||c;for(var O=this.outline(c,m).curves,b=[],j=1,F=O.length;j<F/2;j++){var k=d.makeshape(O[j],O[F-j],y);k.startcap.virtual=j>1,k.endcap.virtual=j<F/2-1,b.push(k)}return b},intersects:function(c,m){return c?c.p1&&c.p2?this.lineIntersects(c):(c instanceof f&&(c=c.reduce()),this.curveintersects(this.reduce(),c,m)):this.selfintersects(m)},lineIntersects:function(c){var m=e(c.p1.x,c.p2.x),y=e(c.p1.y,c.p2.y),O=n(c.p1.x,c.p2.x),b=n(c.p1.y,c.p2.y),j=this;return d.roots(this.points,c).filter(function(F){var k=j.get(F);return d.between(k.x,m,O)&&d.between(k.y,y,b)})},selfintersects:function(c){var m=this.reduce(),y,O=m.length-2,b=[],j,F,k;for(y=0;y<O;y++)F=m.slice(y,y+1),k=m.slice(y+2),j=this.curveintersects(F,k,c),b=b.concat(j);return b},curveintersects:function(c,m,y){var O=[];c.forEach(function(j){m.forEach(function(F){j.overlaps(F)&&O.push({left:j,right:F})})});var b=[];return O.forEach(function(j){var F=d.pairiteration(j.left,j.right,y);F.length>0&&(b=b.concat(F))}),b},arcs:function(c){c=c||.5;var m=[];return this._iterate(c,m)},_error:function(c,m,y,O){var b=(O-y)/4,j=this.get(y+b),F=this.get(O-b),k=d.dist(c,m),_=d.dist(c,j),ue=d.dist(c,F);return t(_-k)+t(ue-k)},_iterate:function(c,m){var y=0,O=1,b;do{b=0,O=1;var j=this.get(y),F,k,_,ue,re=!1,de=!1,he,w=O,le=1;do{de=re,ue=_,w=(y+O)/2,F=this.get(w),k=this.get(O),_=d.getccenter(j,F,k),_.interval={start:y,end:O};var V=this._error(_,j,y,O);if(re=V<=c,he=de&&!re,he||(le=O),re){if(O>=1){if(_.interval.end=le=1,ue=_,O>1){var Ce={x:_.x+_.r*s(_.e),y:_.y+_.r*u(_.e)};_.e+=d.angle({x:_.x,y:_.y},Ce,this.get(1))}break}O=O+(O-y)/2}else O=w}while(!he&&b++<100);if(b>=100)break;ue=ue||_,m.push(ue),y=le}while(O<1);return m}},bezier.exports=f})()),bezier.exports}var bezierJs,hasRequiredBezierJs;function requireBezierJs(){return hasRequiredBezierJs||(hasRequiredBezierJs=1,bezierJs=requireBezier()),bezierJs}var dist,hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist;hasRequiredDist=1;var MakerJs;(function(MakerJs){MakerJs.version="debug",MakerJs.environmentTypes={BrowserUI:"browser",NodeJs:"node",WebWorker:"worker",Unknown:"unknown"};var EPSILON=Number.EPSILON||Math.pow(2,-52);function tryEval(name){try{var value=eval(name);return value}catch(t){}}function detectEnvironment(){return tryEval("WorkerGlobalScope")&&tryEval("self")?MakerJs.environmentTypes.WebWorker:tryEval("window")&&tryEval("document")?MakerJs.environmentTypes.BrowserUI:tryEval("global")&&tryEval("process")?MakerJs.environmentTypes.NodeJs:MakerJs.environmentTypes.Unknown}MakerJs.environment=detectEnvironment(),MakerJs.unitType={Centimeter:"cm",Foot:"foot",Inch:"inch",Meter:"m",Millimeter:"mm"};function split(t,e){var n=t.indexOf(e);return n<0?[t]:n>0?[t.substr(0,n),t.substr(n+1)]:["",t]}function splitDecimal(t){var e=t.toString();return e.indexOf("e")>0&&(e=t.toFixed(20).match(/.*[^(0+$)]/)[0]),split(e,".")}MakerJs.splitDecimal=splitDecimal;function round(t,e){if(e===void 0&&(e=1e-7),t%1===0)return t;var n=1/e;return Math.round((t+EPSILON)*n)/n}MakerJs.round=round;function createRouteKey(t){for(var e=[],n=0;n<t.length;n++){var s=t[n],u;n%2===0?u=(n>0?".":"")+s:u=JSON.stringify([s]),e.push(u)}return e.join("")}MakerJs.createRouteKey=createRouteKey;function travel(t,e){if(!t||!e)return null;var n;Array.isArray(e)?n=e:n=JSON.parse(e);for(var s=n.slice(),u=t,l=t.origin||[0,0];s.length;){var o=s.shift();if(u=u[o],!u)return null;u.origin&&s.length&&(l=MakerJs.point.add(l,u.origin))}return{result:u,offset:l}}MakerJs.travel=travel;var clone=requireClone();function cloneObject(t){return clone(t)}MakerJs.cloneObject=cloneObject;function extendObject(t,e){if(t&&e)for(var n in e)typeof e[n]<"u"&&(t[n]=e[n]);return t}MakerJs.extendObject=extendObject;function isFunction(t){return typeof t=="function"}MakerJs.isFunction=isFunction;function isNumber(t){return typeof t=="number"}MakerJs.isNumber=isNumber;function isObject(t){return typeof t=="object"}MakerJs.isObject=isObject;function isPoint(t){return t&&Array.isArray(t)&&t.length==2&&isNumber(t[0])&&isNumber(t[1])}MakerJs.isPoint=isPoint;function isPath(t){return t&&t.type&&isPoint(t.origin)}MakerJs.isPath=isPath;function isPathLine(t){return isPath(t)&&t.type==MakerJs.pathType.Line&&isPoint(t.end)}MakerJs.isPathLine=isPathLine;function isPathCircle(t){return isPath(t)&&t.type==MakerJs.pathType.Circle&&isNumber(t.radius)}MakerJs.isPathCircle=isPathCircle;function isPathArc(t){return isPath(t)&&t.type==MakerJs.pathType.Arc&&isNumber(t.radius)&&isNumber(t.startAngle)&&isNumber(t.endAngle)}MakerJs.isPathArc=isPathArc;function isPathArcInBezierCurve(t){return isPathArc(t)&&isObject(t.bezierData)&&isNumber(t.bezierData.startT)&&isNumber(t.bezierData.endT)}MakerJs.isPathArcInBezierCurve=isPathArcInBezierCurve,MakerJs.pathType={Line:"line",Circle:"circle",Arc:"arc",BezierSeed:"bezier-seed"};function isModel(t){return t&&(t.paths||t.models)}MakerJs.isModel=isModel;function isChain(t){var e=t;return e&&e.links&&Array.isArray(e.links)&&isNumber(e.pathLength)}MakerJs.isChain=isChain;var Cascade=(function(){function t(e,n){this._module=e,this.$initial=n;for(var s in this._module)this._shadow(s);this.$result=n}return t.prototype._shadow=function(e){var n=this;this[e]=function(){return n._apply(n._module[e],arguments)}},t.prototype._apply=function(e,n){var s=[].slice.call(n);return s.unshift(this.$result),this.$result=e.apply(void 0,s),this},t.prototype.$reset=function(){return this.$result=this.$initial,this},t})();function $(t){if(isModel(t))return new Cascade(MakerJs.model,t);if(isPath(t))return new Cascade(MakerJs.path,t);if(isPoint(t))return new Cascade(MakerJs.point,t)}MakerJs.$=$})(MakerJs||(MakerJs={})),dist=MakerJs;var MakerJs;(function(t){(function(e){function n(O){return t.splitDecimal(O)[1]}function s(O,b){return b?+(t.splitDecimal(O)[0]+"."+b):O}function u(O,b){return O<0&&b<0||O>0&&b>0?s(b,n(O)):b}function l(O){var b=Math.floor(O/360);if(b===0)return O;var j=O-360*b;return u(O,j)}e.noRevolutions=l;function o(O){return l(O)*Math.PI/180}e.toRadians=o;function i(O){return O*180/Math.PI}e.toDegrees=i;function g(O){if(O.endAngle<O.startAngle){var b=Math.ceil((O.startAngle-O.endAngle)/360),j=b*360+O.endAngle;return u(O.endAngle,j)}return O.endAngle}e.ofArcEnd=g;function d(O,b){return b===void 0&&(b=.5),O.startAngle+r(O)*b}e.ofArcMiddle=d;function r(O){var b=e.ofArcEnd(O),j=b-O.startAngle;return t.round(j)>360?l(j):j}e.ofArcSpan=r;function f(O){return l(i(T(O.origin,O.end)))}e.ofLineInDegrees=f;function L(O,b){return i(T(O,b))}e.ofPointInDegrees=L;function T(O,b){var j=t.point.subtract(b,O),F=j[0],k=j[1];return Math.atan2(-k,-F)+Math.PI}e.ofPointInRadians=T;function x(O,b,j){return j&&(O=360-O),b&&(O=(O<180?180:540)-O),O}e.mirror=x;var c={};c[t.pathType.Arc]=function(O,b,j){var F=b!=j,k=F?O.endAngle-90:O.startAngle+90,_=t.point.fromArc(O)[F?1:0],ue=t.point.rotate(t.point.add(_,[O.radius,0]),k,_);return new t.paths.Line(b?[ue,_]:[_,ue])},c[t.pathType.Line]=function(O,b,j){return j?new t.paths.Line(O.end,O.origin):O};function m(O,b){if(O){var j=O.walkedPath.pathContext,F=c[j.type];if(F)return F(j,b,O.reversed)}}function y(O,b){if(arguments.length<2)return null;var j=[O,b].map(function(k,_){return m(k,_===0)}),F=l(f(j[1])-f(j[0]));return F>180&&(F-=360),F}e.ofChainLinkJoint=y})(t.angle||(t.angle={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(re,de,he){var w=u(re);if(!de)return w;for(var le=2;le--;)he?w[le]-=de[le]:w[le]+=de[le];return w}e.add=n;function s(re,de){function he(w){return(re[w]+de[w])/2}return[he(0),he(1)]}e.average=s;function u(re){return re?[re[0],re[1]]:e.zero()}e.clone=u;function l(re,de){for(var he={index:0,distance:-1},w=0;w<de.length;w++){var le=t.measure.pointDistance(re,de[w]);(he.distance==-1||le<he.distance)&&(he.distance=le,he.index=w)}return de[he.index]}e.closest=l;var o={};o[Math.PI/2]=!0,o[3*Math.PI/2]=!0;var i={};i[Math.PI]=!0,i[2*Math.PI]=!0;function g(re,de){return[re in o?0:t.round(de*Math.cos(re)),re in i?0:t.round(de*Math.sin(re))]}e.fromPolar=g;function d(re,de){return n(de.origin,g(t.angle.toRadians(re),de.radius))}e.fromAngleOnCircle=d;function r(re){return[d(re.startAngle,re),d(re.endAngle,re)]}e.fromArc=r;var f={};f[t.pathType.Arc]=function(re){return e.fromArc(re)},f[t.pathType.Line]=function(re){return[re.origin,re.end]},f[t.pathType.BezierSeed]=f[t.pathType.Line];function L(re,de){var he=null,w=f[re.type];return w&&(he=w(re),de&&(he=he.map(function(le){return n(le,de)}))),he}e.fromPathEnds=L;function T(re,de){var he=re.origin[0],w=de.slope*he+de.yIntercept;return[he,w]}function x(re,de,he){he===void 0&&(he={});var w=t.measure.lineSlope(re),le=t.measure.lineSlope(de);if(t.measure.isSlopeParallel(w,le))return t.measure.isSlopeEqual(w,le)&&(he.out_AreOverlapped=t.measure.isLineOverlapping(re,de,he.excludeTangents)),null;var V;if(!w.hasSlope)V=T(re,le);else if(!le.hasSlope)V=T(de,w);else{var Ce=(le.yIntercept-w.yIntercept)/(w.slope-le.slope),_e=w.slope*Ce+w.yIntercept;V=[Ce,_e]}return V}e.fromSlopeIntersection=x;function c(re,de){return e.add(re.origin,e.fromPolar(t.angle.toRadians(de),re.radius))}var m={};m[t.pathType.Arc]=function(re,de){var he=t.angle.ofArcMiddle(re,de);return c(re,he)},m[t.pathType.Circle]=function(re,de){return c(re,360*de)},m[t.pathType.Line]=function(re,de){function he(w,le){return w+(le-w)*de}return[he(re.origin[0],re.end[0]),he(re.origin[1],re.end[1])]},m[t.pathType.BezierSeed]=function(re,de){return t.models.BezierCurve.computePoint(re,de)};function y(re,de){de===void 0&&(de=.5);var he=null,w=m[re.type];return w&&(he=w(re,de)),he}e.middle=y;function O(re,de,he){var w=u(re);return de&&(w[0]=-w[0]),he&&(w[1]=-w[1]),w}e.mirror=O;function b(re,de){return[t.round(re[0],de),t.round(re[1],de)]}e.rounded=b;function j(re,de,he){he===void 0&&(he=[0,0]);var w=t.angle.ofPointInRadians(he,re),le=t.measure.pointDistance(he,re),V=g(w+t.angle.toRadians(de),le);return n(he,V)}e.rotate=j;function F(re,de){for(var he=u(re),w=2;w--;)he[w]*=de;return he}e.scale=F;function k(re,de,he){return[re[0]*de,re[1]*he]}e.distort=k;function _(re,de){return n(re,de,!0)}e.subtract=_;function ue(){return[0,0]}e.zero=ue})(t.point||(t.point={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(le,V,Ce,_e){return _e===void 0&&(_e=!1),t.model.addPath(V,le,Ce,_e),le}e.addTo=n;function s(le,V){le&&V&&typeof le.layer<"u"&&(V.layer=le.layer),le&&V&&"bezierData"in le&&(V.bezierData=le.bezierData)}var u={};u[t.pathType.Circle]=function(le,V,Ce){V.radius=le.radius},u[t.pathType.Arc]=function(le,V,Ce){u[t.pathType.Circle](le,V,Ce),V.startAngle=le.startAngle,V.endAngle=le.endAngle},u[t.pathType.Line]=function(le,V,Ce){V.end=t.point.add(le.end,Ce)},u[t.pathType.BezierSeed]=function(le,V,Ce){u[t.pathType.Line](le,V,Ce),V.controls=le.controls.map(function(_e){return t.point.add(_e,Ce)})};function l(le,V){var Ce={type:le.type,origin:t.point.add(le.origin,V)},_e=u[le.type];return _e&&_e(le,Ce,V),s(le,Ce),Ce}e.clone=l;function o(le,V){var Ce=u[le.type];return Ce&&(V.origin=t.point.clone(le.origin),Ce(le,V)),s(le,V),le}e.copyProps=o;var i={};i[t.pathType.Line]=function(le,V,Ce,_e){return new t.paths.Line(V,t.point.mirror(le.end,Ce,_e))},i[t.pathType.Circle]=function(le,V,Ce,_e){return new t.paths.Circle(V,le.radius)},i[t.pathType.Arc]=function(le,V,Ce,_e){var D=t.angle.mirror(le.startAngle,Ce,_e),Ie=t.angle.mirror(t.angle.ofArcEnd(le),Ce,_e),Lt=Ce!=_e;return new t.paths.Arc(V,le.radius,Lt?Ie:D,Lt?D:Ie)},i[t.pathType.BezierSeed]=function(le,V,Ce,_e){var D=i[t.pathType.Line](le,V,Ce,_e);return D.type=t.pathType.BezierSeed,D.controls=le.controls.map(function(Ie){return t.point.mirror(Ie,Ce,_e)}),D};function g(le,V){return le.layer=V,le}e.layer=g;function d(le,V,Ce){var _e=null;if(le){var D=t.point.mirror(le.origin,V,Ce),Ie=i[le.type];Ie&&(_e=Ie(le,D,V,Ce))}return s(le,_e),_e}e.mirror=d;var r={};r[t.pathType.Line]=function(le,V){var Ce=t.point.subtract(le.end,le.origin);le.end=t.point.add(V,Ce)};function f(le,V){if(le){var Ce=r[le.type];Ce&&Ce(le,V),le.origin=V}return le}e.move=f;var L={};L[t.pathType.Line]=function(le,V,Ce){le.end=t.point.add(le.end,V,Ce)},L[t.pathType.BezierSeed]=function(le,V,Ce){L[t.pathType.Line](le,V,Ce),le.controls=le.controls.map(function(_e){return t.point.add(_e,V,Ce)})};function T(le,V,Ce){if(le&&V){le.origin=t.point.add(le.origin,V,Ce);var _e=L[le.type];_e&&_e(le,V,Ce)}return le}e.moveRelative=T;function x(le,V,Ce){var _e=!1;function D(Ie,Lt){V[Lt]&&T(Ie,V[Lt],_e)}le.map(D),Ce(),_e=!0,le.map(D)}e.moveTemporary=x;var c={};c[t.pathType.Line]=function(le,V,Ce){le.end=t.point.rotate(le.end,V,Ce)},c[t.pathType.Arc]=function(le,V,Ce){le.startAngle=t.angle.noRevolutions(le.startAngle+V),le.endAngle=t.angle.noRevolutions(le.endAngle+V)},c[t.pathType.BezierSeed]=function(le,V,Ce){c[t.pathType.Line](le,V,Ce),le.controls=le.controls.map(function(_e){return t.point.rotate(_e,V,Ce)})};function m(le,V,Ce){if(Ce===void 0&&(Ce=[0,0]),!le||!V)return le;le.origin=t.point.rotate(le.origin,V,Ce);var _e=c[le.type];return _e&&_e(le,V,Ce),le}e.rotate=m;var y={};y[t.pathType.Line]=function(le,V){le.end=t.point.scale(le.end,V)},y[t.pathType.BezierSeed]=function(le,V){y[t.pathType.Line](le,V),le.controls=le.controls.map(function(Ce){return t.point.scale(Ce,V)})},y[t.pathType.Circle]=function(le,V){le.radius*=V},y[t.pathType.Arc]=y[t.pathType.Circle];function O(le,V){if(!le||V===1||!V)return le;le.origin=t.point.scale(le.origin,V);var Ce=y[le.type];return Ce&&Ce(le,V),le}e.scale=O;var b={};b[t.pathType.Arc]=function(le,V,Ce){return new t.models.EllipticArc(le,V,Ce)},b[t.pathType.Circle]=function(le,V,Ce){var _e=new t.models.Ellipse(le.radius*V,le.radius*Ce);return _e.origin=t.point.distort(le.origin,V,Ce),_e},b[t.pathType.Line]=function(le,V,Ce){return new t.paths.Line([le.origin,le.end].map(function(_e){return t.point.distort(_e,V,Ce)}))},b[t.pathType.BezierSeed]=function(le,V,Ce){var _e=t.point.distort;return{type:t.pathType.BezierSeed,origin:_e(le.origin,V,Ce),controls:le.controls.map(function(D){return _e(D,V,Ce)}),end:_e(le.end,V,Ce)}};function j(le,V,Ce){if(!le||!V||!Ce)return null;var _e=b[le.type];if(_e){var D=_e(le,V,Ce);return typeof le.layer<"u"&&(D.layer=le.layer),D}return null}e.distort=j;function F(le,V,Ce,_e){var D=t.point.fromSlopeIntersection(le,V);if(D){let At=function(ie,Ve){var ze;Ve?ze=ie.origin:ze=ie.end,ze[0]=D[0],ze[1]=D[1]};var Ie=[le,V],Lt=[Ce,_e];arguments.length===2&&Ie.forEach(function(ie,Ve){Lt[Ve]=t.point.closest(D,[ie.origin,ie.end])===ie.origin}),Ie.forEach(function(ie,Ve){At(ie,Lt[Ve])})}return D}e.converge=F;var k={};k[t.pathType.Arc]=function(le,V,Ce,_e){var D=t.angle.ofArcSpan(le),Ie=(V+Ce)*D/V-D;_e?le.startAngle-=Ie:le.endAngle+=Ie},k[t.pathType.Circle]=function(le,V,Ce,_e){le.radius*=(V+Ce)/V},k[t.pathType.Line]=function(le,V,Ce,_e){var D=t.point.scale(t.point.subtract(le.end,le.origin),Ce/V);_e?le.origin=t.point.subtract(le.origin,D):le.end=t.point.add(le.end,D)};function _(le,V,Ce){if(Ce===void 0&&(Ce=!1),!le||!V)return null;var _e=k[le.type];if(_e){var D=t.measure.pathLength(le);return!D||-V>=D?null:(_e(le,D,V,Ce),le)}return null}e.alterLength=_;function ue(le,V){if(V==1)return[t.point.middle(le)];var Ce=[],_e=V;le.type!=t.pathType.Circle&&_e--;for(var D=0;D<V;D++)Ce.push(t.point.middle(le,D/_e));return Ce}e.toPoints=ue;var re={};re[t.pathType.Line]=function(le){return 2},re[t.pathType.Circle]=function(le,V){var Ce=t.measure.pathLength(le);return Ce?(V=V||Ce,Math.max(8,Math.ceil(Ce/(V||Ce)))):0},re[t.pathType.Arc]=function(le,V){var Ce=t.measure.pathLength(le);if(!Ce)return 0;var _e=Math.ceil(t.angle.ofArcSpan(le)/45)+1;return Math.max(_e,Math.ceil(Ce/(V||Ce)))};function de(le,V){if(le.type==t.pathType.BezierSeed){var Ce=new t.models.BezierCurve(le),_e;return t.model.findChains(Ce,function(Lt,At,ie){if(Lt.length==1){var Ve=Lt[0];switch(Ve.links[0].walkedPath.pathId){case"arc_0":case"line_0":break;default:t.chain.reverse(Ve)}_e=t.chain.toKeyPoints(Ve)}else At.length===1&&(_e=de(At[0].pathContext))}),_e}else{var D=re[le.type];if(D){var Ie=D(le,V);if(Ie)return ue(le,Ie)}}return[]}e.toKeyPoints=de;function he(le){var V=t.measure.pathExtents(le),Ce=t.point.average(V.high,V.low),_e=t.point.subtract(le.origin||[0,0],Ce);return f(le,_e),le}e.center=he;function w(le){var V=t.measure.pathExtents(le),Ce=t.point.subtract(le.origin||[0,0],V.low);return f(le,Ce),le}e.zero=w})(t.path||(t.path={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n={};n[t.pathType.Arc]=function(u,l){var o=t.angle.ofPointInDegrees(u.origin,l);if(t.measure.isAngleEqual(o,u.startAngle)||t.measure.isAngleEqual(o,u.endAngle))return null;function i(){for(var f=t.angle.noRevolutions(u.startAngle),L=f+t.angle.ofArcEnd(u)-u.startAngle,T=[0,1,-1],x=0;x<T.length;x++){var c=360*T[x];if(t.measure.isBetween(o+c,f,L,!0))return u.startAngle+o+c-f}return null}var g=i();if(g==null)return null;var d=u.endAngle;u.endAngle=g;var r=t.cloneObject(u);return r.startAngle=g,r.endAngle=d,r},n[t.pathType.Circle]=function(u,l){u.type=t.pathType.Arc;var o=u,i=t.angle.ofPointInDegrees(u.origin,l);return o.startAngle=i,o.endAngle=i+360,null},n[t.pathType.Line]=function(u,l){if(!t.measure.isBetweenPoints(l,u,!0))return null;var o=u.end;u.end=l;var i=t.cloneObject(u);return i.origin=l,i.end=o,i};function s(u,l){if(u&&l){var o=n[u.type];if(o){var i=o(u,l);return i&&"layer"in u&&(i.layer=u.layer),i}}return null}e.breakAtPoint=s})(t.path||(t.path={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function i(){for(var g=[],d=0;d<arguments.length;d++)g[d]=arguments[d];var r,f;function L(re){var de=t.angle.ofPointInDegrees(re,g[ue?1:0]),he=t.angle.ofPointInDegrees(re,g[ue?0:1]);return he<de&&(he+=360),{origin:re,startAngle:de,endAngle:he,size:he-de}}switch(g.length){case 5:var T=g[0],x=g[1];this.radius=g[2];var c=g[3],ue=g[4],m,y=t.measure.pointDistance(T,x)/2;if(t.round(this.radius-y)<=0)this.radius=y,m=L(t.point.average(T,x));else{for(var O=(f=(r=t.path.intersection(new s(T,this.radius),new s(x,this.radius)))===null||r===void 0?void 0:r.intersectionPoints)!==null&&f!==void 0?f:[T,x],b=[],j=O.length;j--;)m=L(O[j]),b.length==0||m.size>b[0].size?b.push(m):b.unshift(m);var F=c?1:0;m=b[F]}this.origin=m.origin,this.startAngle=m.startAngle,this.endAngle=m.endAngle;break;case 4:this.origin=g[0],this.radius=g[1],this.startAngle=g[2],this.endAngle=g[3];break;case 3:if(t.isPoint(g[2])){s.apply(this,g);for(var k=[],_=0;_<3;_++)k.push(t.angle.ofPointInDegrees(this.origin,g[_]));this.startAngle=k[0],this.endAngle=k[2],t.measure.isBetweenArcAngles(k[1],this,!1)||(this.startAngle=k[2],this.endAngle=k[0]);break}case 2:var ue=g[2];s.call(this,g[0],g[1]),this.startAngle=t.angle.ofPointInDegrees(this.origin,g[ue?1:0]),this.endAngle=t.angle.ofPointInDegrees(this.origin,g[ue?0:1]);break}this.type=t.pathType.Arc}return i})();e.Arc=n;var s=(function(){function i(){for(var g=[],d=0;d<arguments.length;d++)g[d]=arguments[d];switch(this.type=t.pathType.Circle,g.length){case 1:this.origin=[0,0],this.radius=g[0];break;case 2:t.isNumber(g[1])?(this.origin=g[0],this.radius=g[1]):(this.origin=t.point.average(g[0],g[1]),this.radius=t.measure.pointDistance(this.origin,g[0]));break;default:for(var r=[new u(g[0],g[1]),new u(g[1],g[2])],f=[],L=2;L--;){var T=t.point.middle(r[L]);f.push(t.path.rotate(r[L],90,T))}var x=t.point.fromSlopeIntersection(f[0],f[1]);if(x)this.origin=x,this.radius=t.measure.pointDistance(this.origin,g[0]);else throw"invalid parameters - attempted to construct a circle from 3 points on a line: "+JSON.stringify(g);break}}return i})();e.Circle=s;var u=(function(){function i(){for(var g=[],d=0;d<arguments.length;d++)g[d]=arguments[d];switch(this.type=t.pathType.Line,g.length){case 1:var r=g[0];this.origin=r[0],this.end=r[1];break;case 2:this.origin=g[0],this.end=g[1];break}}return i})();e.Line=u;var l=(function(){function i(g){var d=t.point.fromArc(g);this.type=t.pathType.Line,this.origin=d[0],this.end=d[1]}return i})();e.Chord=l;var o=(function(){function i(g,d,r){this.type=t.pathType.Line,this.origin=t.point.clone(g.origin),this.end=t.point.clone(g.end);var f=t.angle.ofLineInDegrees(this);function L(c){var m=t.point.add(g.origin,t.point.fromPolar(t.angle.toRadians(f+c),d));return{origin:m,nearness:t.measure.pointDistance(m,r)}}var T=[L(-90),L(90)],x=T[0].nearness<T[1].nearness?T[0].origin:T[1].origin;t.path.move(this,x)}return i})();e.Parallel=o})(t.paths||(t.paths={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(he,w,le,V){return le||(le=t.point.zero()),V||(V=t.point.clone(le)),he.caption={text:w,anchor:new t.paths.Line(le,V)},he}e.addCaption=n;function s(he,w,le,V){V===void 0&&(V=!1);var Ce=V?le:f(he,le);return he.paths=he.paths||{},he.paths[Ce]=w,he}e.addPath=s;function u(he,w,le,V){V===void 0&&(V=!1);var Ce=V?le:r(he,le);return he.models=he.models||{},he.models[Ce]=w,he}e.addModel=u;function l(he,w,le,V){return V===void 0&&(V=!1),u(w,he,le,V),he}e.addTo=l;function o(he){return t.cloneObject(he)}e.clone=o;function i(he){var w=0;if(he.models)for(var le in he.models)w++;return w}e.countChildModels=i;function g(he){var w=[];function le(V,Ce,_e){V.caption&&w.push({text:V.caption.text,anchor:t.path.clone(V.caption.anchor,t.point.add(V.origin,Ce)),layer:V.caption.anchor.layer||_e})}return le(he,he.origin,he.layer),e.walk(he,{afterChildWalk:function(V){return le(V.childModel,V.offset,V.layer)}}),w}e.getAllCaptionsOffset=g;function d(he,w){if(!he)return w;for(var le=0,V=w;V in he;)le++,V=[w,le].join("_");return V}function r(he,w){return d(he.models,w)}e.getSimilarModelId=r;function f(he,w){return d(he.paths,w)}e.getSimilarPathId=f;function L(he,w){return he.layer=w,he}e.layer=L;function T(he,w){function le(V,Ce){if(V){var _e=t.point.add(V.origin,Ce);if(V.type===t.models.BezierCurve.typeName&&t.path.moveRelative(V.seed,_e),V.paths)for(var D in V.paths)t.path.moveRelative(V.paths[D],_e);if(V.models)for(var D in V.models)le(V.models[D],_e);V.caption&&t.path.moveRelative(V.caption.anchor,_e),V.origin=t.point.zero()}}return le(he,w?t.point.subtract([0,0],w):[0,0]),w&&(he.origin=w),he}e.originate=T;function x(he,w,le){w===void 0&&(w=!0),le===void 0&&(le=!0);var V=t.measure.modelExtents(he),Ce=he.origin||[0,0];return w&&(Ce[0]-=V.center[0]),le&&(Ce[1]-=V.center[1]),he.origin=Ce,he}e.center=x;function c(he,w,le){var V={};if(!he)return null;if(he.origin&&(V.origin=t.point.mirror(he.origin,w,le)),he.type&&(V.type=he.type),"layer"in he&&(V.layer=he.layer),he.units&&(V.units=he.units),he.type===t.models.BezierCurve.typeName&&(V.type=t.models.BezierCurve.typeName,V.seed=t.path.mirror(he.seed,w,le)),he.paths){V.paths={};for(var Ce in he.paths){var _e=he.paths[Ce];if(_e){var D=t.path.mirror(_e,w,le);D&&(V.paths[Ce]=D)}}}if(he.models){V.models={};for(var Ce in he.models){var Ie=he.models[Ce];if(Ie){var Lt=c(Ie,w,le);Lt&&(V.models[Ce]=Lt)}}}return he.caption&&(V.caption=t.cloneObject(he.caption),V.caption.anchor=t.path.mirror(he.caption.anchor,w,le)),V}e.mirror=c;function m(he,w){return he.origin=t.point.clone(w),he}e.move=m;function y(he,w){return he&&(he.origin=t.point.add(he.origin||t.point.zero(),w)),he}e.moveRelative=y;function O(he,w){var le=[];re(he,{onPath:function(_e){le.push(_e)}});for(var V=0;V<le.length;V++){var Ce=le[V];delete Ce.modelContext.paths[Ce.pathId],Ce.modelContext.paths[w+Ce.pathId]=Ce.pathContext}return he}e.prefixPathIds=O;function b(he,w,le){if(le===void 0&&(le=[0,0]),!he||!w)return he;var V=t.point.subtract(le,he.origin);if(he.type===t.models.BezierCurve.typeName&&t.path.rotate(he.seed,w,V),he.paths)for(var Ce in he.paths)t.path.rotate(he.paths[Ce],w,V);if(he.models)for(var Ce in he.models)b(he.models[Ce],w,V);return he.caption&&t.path.rotate(he.caption.anchor,w,V),he}e.rotate=b;function j(he,w,le){if(le===void 0&&(le=!1),le&&he.origin&&(he.origin=t.point.scale(he.origin,w)),he.type===t.models.BezierCurve.typeName&&t.path.scale(he.seed,w),he.paths)for(var V in he.paths)t.path.scale(he.paths[V],w);if(he.models)for(var V in he.models)j(he.models[V],w,!0);return he.caption&&t.path.scale(he.caption.anchor,w),he}e.scale=j;function F(he,w,le,V,Ce,_e,D){var Ie=t.path.distort(w,Ce,_e);if(V=V||w.layer,V&&(Ie.layer=V),t.isPath(Ie))if(Ie.type===t.pathType.BezierSeed){var Lt=new t.models.BezierCurve(Ie,D);u(he,Lt,le)}else s(he,Ie,le);else u(he,Ie,le)}function k(he,w,le,V,Ce){V===void 0&&(V=!1);var _e={};if(he.layer&&(_e.layer=he.layer),V&&he.origin&&(_e.origin=t.point.distort(he.origin,w,le)),he.type===t.models.BezierCurve.typeName){var D=he,Ie=t.models.BezierCurve.getBezierSeeds(D,{byLayers:!0,pointMatchingDistance:Ce}),Lt=function(v){var S=Ie[v];S.forEach(function(Ue,M){F(_e,Ue,M.toString(),v,w,le,Ce)})};for(var At in Ie)Lt(At)}else if(he.paths)for(var ie in he.paths){var Ve=he.paths[ie];F(_e,Ve,ie,null,w,le,Ce)}if(he.models)for(var ze in he.models){var z=he.models[ze],Dt=k(z,w,le,!0,Ce);u(_e,Dt,ze)}return he.caption&&(_e.caption=t.cloneObject(he.caption),_e.caption.anchor=t.path.distort(he.caption.anchor,w,le)),_e}e.distort=k;function _(he,w){if(he.units&&t.units.isValidUnit(he.units)&&t.units.isValidUnit(w)){var le=t.units.conversionScale(he.units,w);le!=1&&(j(he,le),he.units=w)}return he}e.convertUnits=_;function ue(he,w){if(he.paths)for(var le in he.paths)he.paths[le]&&w(he,le,he.paths[le]);if(he.models)for(var V in he.models)he.models[V]&&ue(he.models[V],w)}e.walkPaths=ue;function re(he,w){if(!he)return;function le(V,Ce,_e,D,Ie){var Lt=t.point.add(V.origin,_e);if(Ce=Ce??"",V.paths)for(var At in V.paths){var ie=V.paths[At];if(ie){var Ve={modelContext:V,layer:ie.layer!=null?ie.layer:Ce,offset:Lt,pathContext:ie,pathId:At,route:D.concat(["paths",At]),routeKey:Ie+(Ie?".":"")+"paths"+JSON.stringify([At])};w.onPath&&w.onPath(Ve)}}if(V.models)for(var ze in V.models){var z=V.models[ze];if(z){var Dt={parentModel:V,layer:z.layer!=null?z.layer:Ce,offset:Lt,route:D.concat(["models",ze]),routeKey:Ie+(Ie?".":"")+"models"+JSON.stringify([ze]),childId:ze,childModel:z};w.beforeChildWalk&&!w.beforeChildWalk(Dt)||(le(Dt.childModel,Dt.layer,Lt,Dt.route,Dt.routeKey),w.afterChildWalk&&w.afterChildWalk(Dt))}}}return le(he,he.layer,[0,0],[],""),he}e.walk=re;function de(he,w,le){w===void 0&&(w=!0),le===void 0&&(le=!0);var V=t.measure.modelExtents(he),Ce=he.origin||[0,0];return w&&(Ce[0]-=V.low[0]),le&&(Ce[1]-=V.low[1]),he.origin=Ce,he}e.zero=de})(t.model||(t.model={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(x,c){var m=t.cloneObject(x);if(!m)return null;var y=t.path.breakAtPoint(m,c);if(y){for(var O=[m,y],b=2;b--;)if(t.round(t.measure.pathLength(O[b]),1e-4)==0)return null;return O}else if(x.type==t.pathType.Circle)return[m];return null}function s(x,c,m){var y=[];return x.forEach(function(O){t.measure.isPointOnPath(O,c,1e-5,null,m)&&y.push(O)}),y}function u(x,c,m){var y=m.pathContext,O=x.segments;if(t.measure.isPathEqual(O[0].absolutePath,y,1e-4,null,m.offset)){O[0].overlapped=!0,O[0].duplicate=!0,c.push(O[0]);return}for(var b={},j={path1Offset:x.offset,path2Offset:m.offset},F=t.path.intersection(x.pathContext,y,j),k=F?F.intersectionPoints:null,_=t.point.fromPathEnds(y,m.offset)||[],ue=0;ue<O.length;ue++){var re=k?_.concat(k):_,de=s(re,O[ue].absolutePath,b);if(j.out_AreOverlapped&&(O[ue].overlapped=!0,c.push(O[ue])),de.length>0){for(var he=null,w=0;!he&&w<de.length;)he=n(O[ue].absolutePath,de[w]),w++;if(he){if(x.broken=!0,O[ue].absolutePath=he[0],he[1]){var le={absolutePath:he[1],pathId:O[0].pathId,overlapped:O[ue].overlapped,uniqueForeignIntersectionPoints:[]};O[ue].overlapped&&c.push(le),O.push(le)}ue--}}}}function l(x,c,m,y,O){var b={farPoint:y,measureAtlas:O},j=t.point.add(t.point.middle(x),m);return t.measure.isPointInsideModel(j,c,b)}e.isPathInsideModel=l;function o(x,c){var m=new t.measure.Atlas(x);m.measureModels();var y;return c?(y=new t.measure.Atlas(c),y.measureModels()):(c=x,y=m),i(x,c||x,!1,m,y),x}e.breakPathsAtIntersections=o;function i(x,c,m,y,O,b){var j=[],F=[],k={onPath:function(_){var ue={absolutePath:t.path.clone(_.pathContext,_.offset),pathId:_.pathId,overlapped:!1,uniqueForeignIntersectionPoints:[]},re=_;re.broken=!1,re.segments=[ue];var de={onPath:function(V){_.pathContext!==V.pathContext&&t.measure.isMeasurementOverlapping(y.pathMap[_.routeKey],O.pathMap[V.routeKey])&&u(re,F,V)},beforeChildWalk:function(V){var Ce=O.modelMap[V.routeKey];return Ce&&t.measure.isMeasurementOverlapping(y.pathMap[_.routeKey],Ce)}};if(e.walk(c,de),m)for(var he=0;he<re.segments.length;he++){var w=t.point.middle(re.segments[he].absolutePath),le={measureAtlas:O,farPoint:b};re.segments[he].isInside=t.measure.isPointInsideModel(w,c,le),re.segments[he].uniqueForeignIntersectionPoints=le.out_intersectionPoints}j.push(re)}};return e.walk(x,k),{crossedPaths:j,overlappedSegments:F}}function g(x,c,m){function y(j,F){t.measure.isPathEqual(j.absolutePath,F.absolutePath,m)&&(j.duplicate=F.duplicate=!0)}function O(j){for(var F=0;F<c.length;F++)y(c[F],j)}for(var b=0;b<x.length;b++)O(x[b])}function d(x,c,m,y,O,b){function j(ue,re,de){var he=e.getSimilarPathId(ue,re),w=he==re?x.routeKey:t.createRouteKey(x.route.slice(0,-1).concat([he]));if(de.addedPath=t.cloneObject(x.pathContext),de.addedPath.type=de.absolutePath.type,t.path.copyProps(de.absolutePath,de.addedPath),t.path.moveRelative(de.addedPath,x.offset,!0),ue.paths[he]=de.addedPath,x.broken){var le=t.measure.pathExtents(de.absolutePath);O.pathMap[w]=le,O.modelsMeasured=!1}else O.pathMap[w]=k}function F(ue,re,de){de.isInside&&c||!de.isInside&&m?j(ue,re,de):(O.modelsMeasured=!1,b(de.absolutePath,x.routeKey,"segment is "+(de.isInside?"inside":"outside")+" intersectionPoints="+JSON.stringify(de.uniqueForeignIntersectionPoints)))}var k=O.pathMap[x.routeKey];delete x.modelContext.paths[x.pathId],delete O.pathMap[x.routeKey];for(var _=0;_<x.segments.length;_++)x.segments[_].duplicate?y?j(x.modelContext,x.pathId,x.segments[_]):b(x.segments[_].absolutePath,x.routeKey,"segment is duplicate"):F(x.modelContext,x.pathId,x.segments[_])}function r(x,c,m,y,O,b,j){m===void 0&&(m=!1),y===void 0&&(y=!0),O===void 0&&(O=!1),b===void 0&&(b=!0);var F={trimDeadEnds:!0,pointMatchingDistance:.005,out_deleted:[{paths:{}},{paths:{}}]};if(t.extendObject(F,j),F.measureA=F.measureA||new t.measure.Atlas(x),F.measureB=F.measureB||new t.measure.Atlas(c),F.measureA.measureModels(),F.measureB.measureModels(),!F.farPoint){var k=t.measure.increase(t.measure.increase({high:[null,null],low:[null,null]},F.measureA.modelMap[""]),F.measureB.modelMap[""]);F.farPoint=t.point.add(k.high,[1,1])}var _=i(x,c,!0,F.measureA,F.measureB,F.farPoint),ue=i(c,x,!0,F.measureB,F.measureA,F.farPoint);g(_.overlappedSegments,ue.overlappedSegments,F.pointMatchingDistance);function re(le,V,Ce,_e){e.addPath(F.out_deleted[le],V,"deleted");var D=V;D.reason=_e,D.routeKey=Ce}for(var de=0;de<_.crossedPaths.length;de++)d(_.crossedPaths[de],m,y,!0,F.measureA,function(le,V,Ce){return re(0,le,V,Ce)});for(var de=0;de<ue.crossedPaths.length;de++)d(ue.crossedPaths[de],O,b,!1,F.measureB,function(V,Ce,_e){return re(1,V,Ce,_e)});var he={models:{a:x,b:c}};if(F.trimDeadEnds){var w;!m&&!O&&(w=function(le){for(var V=0;V<_.overlappedSegments.length;V++)if(_.overlappedSegments[V].duplicate&&le.pathContext===_.overlappedSegments[V].addedPath)return!1;return!0}),e.removeDeadEnds(he,null,w,function(le,V){var Ce=le.route[1]==="a"?0:1;re(Ce,le.pathContext,le.routeKey,V)})}return t.extendObject(j,F),he}e.combine=r;function f(x,c){return r(x,c,!0,!1,!0,!1)}e.combineIntersection=f;function L(x,c){return r(x,c,!1,!0,!0,!1)}e.combineSubtraction=L;function T(x,c){return r(x,c,!1,!0,!1,!0)}e.combineUnion=T})(t.model||(t.model={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){var e=(function(){function l(o){this.comparer=o,this.collections=[]}return l.prototype.addItemToCollection=function(o,i){var g=this.findCollection(o);if(g)g.push(i);else{var d={key:o,items:[i]};this.collections.push(d)}},l.prototype.findCollection=function(o,i){for(var g=0;g<this.collections.length;g++){var d=this.collections[g];if(this.comparer(o,d.key))return i&&i(g),d.items}return null},l.prototype.removeCollection=function(o){var i=this;return!!this.findCollection(o,function(g){i.collections.splice(g,1)})},l.prototype.removeItemFromCollection=function(o,i){var g=this.findCollection(o);if(g){for(var d=0;d<g.length;d++)if(g[d]===i)return g.splice(d,1),!0;return!1}},l.prototype.getCollectionsOfMultiple=function(o){for(var i=0;i<this.collections.length;i++){var g=this.collections[i];g.items.length>1&&o(g.key,g.items)}},l})();t.Collector=e;var n=require$$1,s=n.default||n,u=(function(){function l(){this.reset()}return l.prototype.reset=function(){this.insertedCount=0,this.graph={},this.index={},this.merged={},this.values=[]},l.prototype.insertValue=function(o){return this.values.push(o),this.values.length-1},l.prototype.insertValueIdAtPoint=function(o,i){var g=i[0],d=i[1];this.graph[g]||(this.graph[g]={});var r=this.graph[g],f=d in r,L,T;return f?(T=r[d],T in this.merged&&(T=this.merged[T]),L=this.index[T],L.valueIds.push(o)):(r[d]=T=this.insertedCount++,L={pointId:T,point:i,valueIds:[o]},this.index[T]=L),{existed:f,pointId:T}},l.prototype.mergePoints=function(o){var i=this,g=[],d=[];for(var r in this.index){var f=this.index[r],L=f.point;f.kdId=g.length,g.push(L),d.push(f)}this.kdbush=s(g);var T=function(c){if(c in x.merged)return"continue";var m=x.index[c],y=x.kdbush.within(m.point[0],m.point[1],o);y.forEach(function(O){O!==m.kdId&&i.mergeIndexElements(m,d[O])})},x=this;for(var r in this.index)T(r)},l.prototype.mergeNearestSinglePoints=function(o){var i=this,g=[];for(var d in this.index){var r=this.index[d];r.valueIds.length===1&&g.push(r)}this.kdbush=s(g.map(function(f){return f.point})),g.forEach(function(f){if(!(f.pointId in i.merged)){var L=i.kdbush.within(f.point[0],f.point[1],o),T=[];L.forEach(function(m){var y=g[m];y.pointId!==f.pointId&&T.push({el:y,distance:t.measure.pointDistance(y.point,f.point)})}),T.sort(function(m,y){return m.distance-y.distance});for(var x=0;x<T.length;x++){var c=T[x].el;if(!(c.pointId in i.merged)){c.merged&&c.merged.length>0?i.mergeIndexElements(c,f):i.mergeIndexElements(f,c);return}}}})},l.prototype.mergeIndexElements=function(o,i){return o.merged=o.merged||[],o.merged.push(i.pointId),this.merged[i.pointId]=o.pointId,o.valueIds.push.apply(o.valueIds,i.valueIds),delete this.index[i.pointId],o.pointId},l.prototype.forEachPoint=function(o){for(var i=this,g=0;g<this.insertedCount;g++){var d=this.index[g];if(d){var r=d.valueIds.length;r>0&&o(d.point,d.valueIds.map(function(f){return i.values[f]}),g,d)}}},l.prototype.getIdOfPoint=function(o){var i=this.graph[o[0]];if(i){var g=i[o[1]];if(g>=0)return g in this.merged?this.merged[g]:g}},l.prototype.getElementAtPoint=function(o){var i=this.getIdOfPoint(o);if(i>=0)return this.index[i]},l})();t.PointGraph=u})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(u,l,o){var i=0;do{var g=u[i];do for(var d=!1,r=i+1;r<u.length;r++){var f=u[r];if(d=l(g.pathContext,f.pathContext,!1),d){o(g.pathContext,f.pathContext),delete f.modelContext.paths[f.pathId],u.splice(r,1);break}}while(d);i++}while(i<u.length)}function s(u,l){function o(T,x){if(Math.abs(T.radius-x.radius)<=f.scalarMatchingDistance){var c=t.measure.pointDistance(T.origin,x.origin);return c<=f.pointMatchingDistance}return!1}var i=new t.Collector(o),g=new t.Collector(o),d=new t.Collector(t.measure.isSlopeEqual),r={};r[t.pathType.Arc]=function(T){i.addItemToCollection(T.pathContext,T)},r[t.pathType.Circle]=function(T){g.addItemToCollection(T.pathContext,T)},r[t.pathType.Line]=function(T){var x=t.measure.lineSlope(T.pathContext);d.addItemToCollection(x,T)};var f={scalarMatchingDistance:.001,pointMatchingDistance:.005};t.extendObject(f,l);var L={onPath:function(T){var x=r[T.pathContext.type];x&&x(T)}};return e.walk(u,L),i.getCollectionsOfMultiple(function(T,x){n(x,t.measure.isArcOverlapping,function(c,m){var y=t.measure.isBetweenArcAngles(c.endAngle,m,!1),O=t.measure.isBetweenArcAngles(m.endAngle,c,!1);if(y&&O){c.endAngle=c.startAngle+360;return}var b=y?[c,m]:[m,c];c.startAngle=t.angle.noRevolutions(b[0].startAngle),c.endAngle=b[1].endAngle})}),g.getCollectionsOfMultiple(function(T,x){for(var c=1;c<x.length;c++){var m=x[c];delete m.modelContext.paths[m.pathId]}}),d.getCollectionsOfMultiple(function(T,x){n(x,t.measure.isLineOverlapping,function(c,m){var y={paths:{lineA:c,lineB:m}},O=t.measure.modelExtents(y);T.hasSlope?T.slope<0?(c.origin=[O.low[0],O.high[1]],c.end=[O.high[0],O.low[1]]):T.slope>0?(c.origin=O.low,c.end=O.high):(c.origin[0]=O.low[0],c.end[0]=O.high[0]):(c.origin[1]=O.low[1],c.end[1]=O.high[1])})}),u}e.simplify=s})(t.model||(t.model={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n={};n[t.pathType.Arc]=function(l,o,i){return new t.models.OvalArc(l.startAngle,l.endAngle,l.radius,o,!1,i)},n[t.pathType.Circle]=function(l,o,i){return new t.models.Ring(l.radius+o,l.radius-o)},n[t.pathType.Line]=function(l,o,i){return new t.models.Slot(l.origin,l.end,o,i)};function s(l,o,i){if(!l)return null;var g=null,d=n[l.type];return d&&(g=d(l,o,i),g.origin=l.origin),g}e.expand=s;function u(l,o,i,g){var d=t.angle.ofArcSpan(l),r=1;d>=270?r=4:d>180?r=3:(d>150||o)&&(r=2);for(var f=t.angle.toRadians(d/r),L=t.models.Polygon.circumscribedRadius(l.radius,f),T=t.point.fromArc(l),x=[t.point.subtract(T[0],l.origin)],c=t.angle.toRadians(l.startAngle)+f/2,m=0;m<r;m++)x.push(t.point.fromPolar(c,L)),c+=f;x.push(t.point.subtract(T[1],l.origin));var y=new t.models.ConnectTheDots(g,x);return y.origin=l.origin,typeof i=="string"&&i.length&&t.model.prefixPathIds(y,i),y}e.straighten=u})(t.path||(t.path={}))})(MakerJs||(MakerJs={})),(function(t){(function(e){function n(o,i,g,d){if(g===void 0&&(g=0),d===void 0&&(d={}),i<=0)return null;var r={models:{expansions:{models:{}},caps:{models:{}}}},f=!0,L=d.farPoint,T={onPath:function(y){if(!(d.pointMatchingDistance&&t.measure.pathLength(y.pathContext)<d.pointMatchingDistance)){var O=t.path.expand(y.pathContext,i,!0);if(O){e.moveRelative(O,y.offset);var b=e.getSimilarModelId(r.models.expansions,y.pathId);if(e.prefixPathIds(O,y.pathId+"_"),e.originate(O),f||(e.combine(r,O,!1,!0,!1,!0,d),d.measureA.modelsMeasured=!1,L=d.farPoint,delete d.farPoint,delete d.measureB),r.models.expansions.models[b]=O,O.models){var j=O.models.Caps;j&&(delete O.models.Caps,r.models.caps.models[b]=j)}f=!1}}}};if(e.walk(o,T),g){var x=r.models.caps,c={models:{}};r.models.straightcaps=c,e.simplify(x);for(var m in x.models)c.models[m]={models:{}},e.walk(x.models[m],{onPath:function(y){var O=y.pathContext,b=t.path.straighten(O,g==2,y.pathId+"_",!0);e.combine(r,b,!1,!0,!1,!0,d),d.measureA.modelsMeasured=!1,L=d.farPoint,delete d.farPoint,delete d.measureB,c.models[m].models[y.pathId]=b,delete y.modelContext.paths[y.pathId]}});delete r.models.caps}return d.farPoint=L,r}e.expandPaths=n;function s(o){var i=[];return e.findChains(o,function(g,d,r){i=g.filter(function(f){return f.endless})}),i}function u(o){var i=s(o);if(i.length==0)return null;var g={models:{}};return i.forEach(function(d,r){g.models[r]=t.chain.toNewModel(d)}),g}function l(o,i,g,d,r){g===void 0&&(g=0),d===void 0&&(d=!1),r===void 0&&(r={});var f=n(o,i,g,r);if(!f)return null;var L=u(o);if(L){var T=0,x={models:{}},c=s(f);return c.forEach(function(m){var y=m.links[0].walkedPath,O=t.measure.isPointInsideModel(t.point.middle(y.pathContext),L,y.offset);(d&&O||!d&&!O)&&(x.models[T++]=t.chain.toNewModel(m))}),x}else return f}e.outline=l})(t.model||(t.model={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=t.unitType.Millimeter;function s(){o(t.unitType.Centimeter,10),o(t.unitType.Meter,1e3),o(t.unitType.Inch,25.4),o(t.unitType.Foot,25.4*12)}var u;function l(d,r,f){function L(T){return u[T]||(u[T]={}),u[T]}L(d)[r]=f,L(r)[d]=1/f}function o(d,r){l(d,n,r)}function i(d,r){return d==r?1:(u||(u={},s()),u[d][r]||l(d,r,u[d][n]*u[n][r]),u[d]&&u[d][r])}e.conversionScale=i;function g(d){for(var r in t.unitType)if(t.unitType[r]==d)return!0;return!1}e.isValidUnit=g})(t.units||(t.units={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(T,x,c){c===void 0&&(c=1e-4);var m=t.angle.noRevolutions(T),y=t.angle.noRevolutions(x),O=t.angle.noRevolutions(t.round(y-m,c));return O==0}e.isAngleEqual=n;var s={};s[t.pathType.Line]=function(T,x,c){return l(T.origin,x.origin,c)&&l(T.end,x.end,c)||l(T.origin,x.end,c)&&l(T.end,x.origin,c)},s[t.pathType.Circle]=function(T,x,c){return l(T.origin,x.origin,c)&&T.radius==x.radius},s[t.pathType.Arc]=function(T,x,c){return s[t.pathType.Circle](T,x,c)&&n(T.startAngle,x.startAngle)&&n(T.endAngle,x.endAngle)};function u(T,x,c,m,y){var O=!1;if(T.type==x.type){var b=s[T.type];if(b){let j=function(){O=b(T,x,c)};m||y?t.path.moveTemporary([T,x],[m,y],j):j()}}return O}e.isPathEqual=u;function l(T,x,c){if(c){if(!T||!x)return!1;var m=e.pointDistance(T,x);return m<=c}else return t.round(T[0]-x[0])==0&&t.round(T[1]-x[1])==0}e.isPointEqual=l;function o(T,x,c){for(var m=0;m<x.length;m++)if(l(x[m],T,c))return!1;return!0}e.isPointDistinct=o;function i(T,x,c){return c===void 0&&(c=0),x.hasSlope?Math.abs(T[1]-(x.slope*T[0]+x.yIntercept))<=c:Math.abs(T[0]-x.line.origin[0])<=c}e.isPointOnSlope=i;function g(T,x,c){c===void 0&&(c=0);var m=Math.abs(e.pointDistance(T,x.origin)-x.radius);return m<=c}e.isPointOnCircle=g;var d={};d[t.pathType.Circle]=function(T,x,c){return g(T,x,c)},d[t.pathType.Arc]=function(T,x,c){if(d[t.pathType.Circle](T,x,c)){var m=t.angle.ofPointInDegrees(x.origin,T);return e.isBetweenArcAngles(m,x,!1)}return!1},d[t.pathType.Line]=function(T,x,c,m){var y=m&&m.cachedLineSlope||e.lineSlope(x);return m&&!m.cachedLineSlope&&(m.cachedLineSlope=y),i(T,y,c)&&e.isBetweenPoints(T,x,!1)};function r(T,x,c,m,y){c===void 0&&(c=0);var O=d[x.type];if(O){var b=m?t.path.clone(x,m):x;return O(T,b,c,y)}return!1}e.isPointOnPath=r;function f(T,x){if(!L(T,x))return!1;if(!T.hasSlope&&!x.hasSlope)return t.round(T.line.origin[0]-x.line.origin[0])==0;var c=[T,x],m=c.map(function(j){return t.angle.toDegrees(Math.atan(j.slope))}),y=c.map(function(j){return t.path.clone(j.line)}),O=y[0].origin;y.forEach(function(j,F){return t.path.rotate(j,-m[F],O)});var b=y.map(function(j){return(j.origin[1]+j.end[1])/2});return t.round(b[0]-b[1],1e-5)==0}e.isSlopeEqual=f;function L(T,x){return!!(!T.hasSlope&&!x.hasSlope||T.hasSlope&&x.hasSlope&&t.round(T.slope-x.slope,1e-5)==0)}e.isSlopeParallel=L})(t.measure||(t.measure={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(Ve,ze,z){function Dt(v,S,Ue){if(S)for(var M=2;M--;)S[M]!=null&&(v[M]==null?v[M]=S[M]:v[M]=Ue(v[M],S[M]))}return ze&&(Dt(Ve.low,ze.low,Math.min),Dt(Ve.high,ze.high,Math.max)),z&&de(Ve),Ve}e.increase=n;function s(Ve,ze){if(y(Ve.origin,ze)<=Ve.radius)return!0;var z=new t.paths.Line(t.point.middle(Ve),ze),Dt={},v=t.path.intersection(z,new t.paths.Chord(Ve),Dt);return!!(v||Dt.out_AreOverlapped)}e.isArcConcaveTowardsPoint=s;function u(Ve,ze,z){return l(Ve,ze,z)}e.isArcOverlapping=u;function l(Ve,ze,z){function Dt(v,S){function Ue(M){return i(M,v,z)}return Ue(S.startAngle)||Ue(S.endAngle)}return Dt(Ve,ze)||Dt(ze,Ve)||Ve.startAngle==ze.startAngle&&Ve.endAngle==ze.endAngle}e.isArcSpanOverlapping=l;function o(Ve,ze,z,Dt){return Dt?Math.min(ze,z)<Ve&&Ve<Math.max(ze,z):Math.min(ze,z)<=Ve&&Ve<=Math.max(ze,z)}e.isBetween=o;function i(Ve,ze,z){var Dt=t.angle.noRevolutions(ze.startAngle),v=t.angle.ofArcSpan(ze),S=Dt+v;return Ve=t.angle.noRevolutions(Ve),o(Ve,Dt,S,z)||o(Ve,Dt+360,S+360,z)||o(Ve,Dt-360,S-360,z)}e.isBetweenArcAngles=i;function g(Ve,ze,z){for(var Dt=!1,v=2;v--;){if(t.round(ze.origin[v]-ze.end[v],1e-6)==0){if(Dt)return!1;Dt=!0;continue}var S=t.round(ze.origin[v]),Ue=t.round(ze.end[v]);if(!o(t.round(Ve[v]),S,Ue,z))return!1}return!0}e.isBetweenPoints=g;function d(Ve,ze){for(var z=m(Ve),Dt=0;Dt<Ve.controls.length;Dt++)if(!e.isPointOnSlope(Ve.controls[Dt],z)&&(!ze||g(Ve.controls[Dt],Ve,!1)))return!1;return!0}e.isBezierSeedLinear=d;var r=requireGraham_scan_min();function f(Ve){return Ve.join(",")}function L(Ve,ze){if(!Ve.endless||Ve.links.length===1)return null;var z=t.chain.toKeyPoints(Ve);return T(z,ze)}e.isChainClockwise=L;function T(Ve,ze){var z=new r,Dt=[];function v(Pt){z.addPoint(Pt[0],Pt[1]),Dt.push(f(Pt))}Ve.forEach(v);var S=z.getHull(),Ue=S.slice(0,3).map(function(Pt){return f([Pt.x,Pt.y])}),M=[];switch(Dt.forEach(function(Pt){~Ue.indexOf(Pt)&&M.push(Pt)}),M.indexOf(Ue[1])){case 0:M.unshift(M.pop());break;case 2:M.push(M.shift());break}return ze&&(ze.hullPoints=S.map(function(Pt){return[Pt.x,Pt.y]}),ze.keyPoints=Ve),Ue[0]!=M[0]}e.isPointArrayClockwise=T;function x(Ve,ze,z){function Dt(v,S,Ue){function M(Pt){return g(Pt,S,z)}return M(Ue.origin)||M(Ue.end)}return Dt(0,Ve,ze)||Dt(1,ze,Ve)}e.isLineOverlapping=x;function c(Ve,ze){for(var z=2;z--;)if(!(t.round(Ve.low[z]-ze.high[z])<=0&&t.round(Ve.high[z]-ze.low[z])>=0))return!1;return!0}e.isMeasurementOverlapping=c;function m(Ve){var ze=Ve.end[0]-Ve.origin[0];if(t.round(ze,1e-6)==0)return{line:Ve,hasSlope:!1};var z=Ve.end[1]-Ve.origin[1],Dt=z/ze,v=Ve.origin[1]-Dt*Ve.origin[0];return{line:Ve,hasSlope:!0,slope:Dt,yIntercept:v}}e.lineSlope=m;function y(Ve,ze){var z=ze[0]-Ve[0],Dt=ze[1]-Ve[1];return Math.sqrt(z*z+Dt*Dt)}e.pointDistance=y;function O(Ve,ze,z){return[z(Ve[0],ze[0]),z(Ve[1],ze[1])]}var b={};b[t.pathType.Line]=function(Ve){return{low:O(Ve.origin,Ve.end,Math.min),high:O(Ve.origin,Ve.end,Math.max)}},b[t.pathType.Circle]=function(Ve){var ze=Ve.radius;return{low:t.point.add(Ve.origin,[-ze,-ze]),high:t.point.add(Ve.origin,[ze,ze])}},b[t.pathType.Arc]=function(Ve){var ze=Ve.radius,z=t.point.fromArc(Ve);function Dt(v,S,Ue){for(var M=O(z[0],z[1],Ue),Pt=2;Pt--;)i(v[Pt],Ve,!1)&&(M[Pt]=S+Ve.origin[Pt]);return M}return{low:Dt([180,270],-ze,Math.min),high:Dt([360,90],ze,Math.max)}};function j(Ve,ze){if(Ve){var z=b[Ve.type];if(z){var Dt=z(Ve);return ze&&(Dt.high=t.point.add(Dt.high,ze),Dt.low=t.point.add(Dt.low,ze)),Dt}}return{low:null,high:null}}e.pathExtents=j;var F={};F[t.pathType.Line]=function(Ve){return y(Ve.origin,Ve.end)},F[t.pathType.Circle]=function(Ve){return 2*Math.PI*Ve.radius},F[t.pathType.Arc]=function(Ve){var ze=F[t.pathType.Circle](Ve),z=t.angle.ofArcSpan(Ve)/360;return ze*=z,ze},F[t.pathType.BezierSeed]=function(Ve){return t.models.BezierCurve.computeLength(Ve)};function k(Ve){if(Ve){var ze=F[Ve.type];if(ze)return ze(Ve)}return 0}e.pathLength=k;function _(Ve){var ze=0;return t.model.walk(Ve,{onPath:function(z){ze+=k(z.pathContext)}}),ze}e.modelPathLength=_;function ue(Ve){return{high:t.point.clone(Ve.high),low:t.point.clone(Ve.low)}}function re(Ve,ze){function z(S,Ue){if(Ue){var M=S.slice(0,-2),Pt=t.createRouteKey(M);Pt in ze.modelMap?n(ze.modelMap[Pt],Ue):ze.modelMap[Pt]=ue(Ue)}}ze||(ze=new he(Ve));var Dt={onPath:function(S){S.routeKey in ze.pathMap||(ze.pathMap[S.routeKey]=j(S.pathContext,S.offset)),z(S.route,ze.pathMap[S.routeKey])},afterChildWalk:function(S){z(S.route,ze.modelMap[S.routeKey])}};t.model.walk(Ve,Dt),ze.modelsMeasured=!0;var v=ze.modelMap[""];return v?de(v):null}e.modelExtents=re;function de(Ve){var ze=Ve;return ze.center=t.point.average(ze.high,ze.low),ze.width=ze.high[0]-ze.low[0],ze.height=ze.high[1]-ze.low[1],ze}e.augment=de;var he=(function(){function Ve(ze){this.modelContext=ze,this.modelsMeasured=!1,this.modelMap={},this.pathMap={}}return Ve.prototype.measureModels=function(){this.modelsMeasured||re(this.modelContext,this)},Ve})();e.Atlas=he;function w(Ve,ze){return ze>=Ve?ze-Ve:ze<0?ze+Ve:ze}function le(Ve,ze){return Ve.slope*ze+Ve.yIntercept}function V(Ve,ze){var z=m(Ve);return[ze,le(z,ze)]}function Ce(Ve){for(var ze=1;ze<3;ze++)if(!e.isPointEqual(Ve[0].center,Ve[ze].center,1e-6)||t.round(Ve[0].width-Ve[ze].width)!==0)return!1;return!0}function _e(Ve,ze,z,Dt){t.model.rotate(ze,z);var v=re(ze),S={index:Ve,rotation:Dt,center:t.point.rotate(v.center,Dt),width:v.height,height:v.width,bottom:new t.paths.Line(v.low,[v.high[0],v.low[1]]),middle:new t.paths.Line([v.low[0],v.center[1]],[v.high[0],v.center[1]]),top:new t.paths.Line(v.high,[v.low[0],v.high[1]])};return[S.top,S.middle,S.bottom].forEach(function(Ue){return t.path.rotate(Ue,Dt)}),S}function D(Ve,ze){var z=Ve[1].origin,Dt=z[0],v=Ve[3].origin[0],S=Ve[0].origin[0],Ue=Dt-S;if(S-v>2*Ue)return null;var M=(Dt-v)/3;if(Ue<M)return null;var Pt=Math.min(M,Ue),hn=t.solvers.equilateralSide(Pt),Oe=[t.point.fromSlopeIntersection(Ve[1],Ve[2]),t.point.fromSlopeIntersection(Ve[4],Ve[5])],Fe=Oe.map(function(xn){return Math.abs(xn[1]-z[1])}),Et=Fe[0]>Fe[1]?0:1,oe=Fe[Et];if(oe>hn){var kt=t.solvers.equilateralAltitude(oe),Ne=Dt-2*kt;if(S>Ne+kt||v<Ne-kt)return null;var _n=v-Ne+kt,wn=2*kt-ze[Et+1].width,bn=Math.min(_n,wn)/2;return{origin:V(ze[2-Et].middle,Ne+bn),radius:oe,type:"peak "+Et}}else return{origin:[Dt-2*Pt,z[1]],radius:hn,type:"side"}}function Ie(Ve){var ze=t.cloneObject(Ve);t.model.originate(ze);var z=re(ze),Dt=[],v={paths:{}};t.model.center(ze);function S(_n,wn,bn){return{radius:_n,paths:new t.models.Polygon(6,_n,30).paths,origin:t.point.add(wn,z.center),notes:bn}}for(var Ue=[[90,-90],[-60,-30],[-60,30]];Ue.length;){var M=Ue.shift(),Pt=_e(Dt.length,ze,M[0],M[1]),hn=t.solvers.equilateralSide(Pt.width/2);if(hn>=Pt.height)return S(hn,Pt.center,"solved by bound "+Dt.length);Dt.push(Pt)}if(Ce(Dt))return S(t.solvers.equilateralSide(Dt[0].width/2),Dt[0].center,"solved as circular");var Oe=Dt.map(function(_n){return _n.top}).concat(Dt.map(function(_n){return _n.bottom}));Oe.forEach(function(_n,wn){v.paths[wn]=_n,t.path.converge(Oe[w(6,wn+2)],_n,!0)}),Dt.forEach(function(_n,wn){v.paths["m"+wn]=_n.middle});for(var Fe=Dt.slice(),Et,oe=0;oe<6;oe++){oe>0&&(Oe.push(Oe.shift()),Fe.push(Fe.shift()),t.model.rotate(v,-60));var kt=D(Oe,Fe);kt&&(!Et||kt.radius<Et.radius)&&(Et=kt,Et.index=oe)}var Ne=t.point.rotate(Et.origin,Et.index*60);return S(Et.radius,Ne,"solved by "+Et.index+" as "+Et.type)}e.boundingHexagon=Ie;function Lt(Ve,ze){var z=0;return ze.forEach(function(Dt){e.isPointDistinct(Dt,Ve,1e-8)&&(Ve.push(Dt),z++)}),z}function At(Ve,ze,z){if(ze)return ze;var Dt=re(Ve).high;return Dt?t.point.add(Dt,[1,1]):[7654321,1234567]}function ie(Ve,ze,z){z===void 0&&(z={}),z.farPoint||(z.farPoint=At(ze,z.farPoint,z.measureAtlas)),z.out_intersectionPoints=[];var Dt,v=new t.paths.Line(Ve,z.farPoint),S=j(v),Ue={onPath:function(M){if(!(z.measureAtlas&&!c(S,z.measureAtlas.pathMap[M.routeKey]))){var Pt={path2Offset:M.offset},hn=t.path.intersection(v,M.pathContext,Pt);if(hn){var Oe=Lt(z.out_intersectionPoints,hn.intersectionPoints);Oe%2==1&&(Dt=!Dt)}}},beforeChildWalk:function(M){if(!z.measureAtlas)return!0;var Pt=z.measureAtlas.modelMap[M.routeKey];return Pt&&c(S,Pt)}};return t.model.walk(ze,Ue),!!Dt}e.isPointInsideModel=ie})(t.measure||(t.measure={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(u,l){l===void 0&&(l={});function o(i,g){if(t.isNumber(g)){var d=t.round(g,l.accuracy);return d}if(t.isPoint(g)){var r=t.point.rounded(g,l.accuracy);return r}return g}return JSON.stringify(u,l.accuracy&&o,l.indentation)}e.toJson=n;function s(u){if(t.isModel(u))return u.units}e.tryGetModelUnits=s,e.colors={black:0,red:1,yellow:2,lime:3,aqua:4,blue:5,fuchsia:6,white:7,gray:9,maroon:14,orange:30,olive:58,green:94,teal:134,navy:174,purple:214,silver:254}})(t.exporter||(t.exporter={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(s){for(var u=[],l=/-?(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o;(o=l.exec(s))!==null;)o.index===l.lastIndex&&l.lastIndex++,o[0]!==""&&u.push(parseFloat(o[0]));return u}e.parseNumericList=n})(t.importer||(t.importer={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(l,o){o===void 0&&(o={});var i={fontSize:9},g=[],d={entities:[],header:{},tables:{}};if(t.extendObject(i,o),t.isModel(l)){var r=l;r.exporterOptions&&t.extendObject(i,r.exporterOptions.toDXF)}function f(w){if(i.layerOptions&&i.layerOptions[w])return i.layerOptions[w];if(w in e.colors)return{color:e.colors[w]}}function L(w){return i.layerOptions&&i.layerOptions[w]&&i.layerOptions[w].lineType?i.layerOptions[w].lineType:"CONTINUOUS"}function T(w,le){var V=w&&w.layer||le||"0";return g.indexOf(V)<0&&g.push(V),V}var x={};x[t.pathType.Line]=function(w,le,V){var Ce=T(w,V),_e={type:"LINE",layer:Ce,vertices:[{x:t.round(w.origin[0]+le[0],i.accuracy),y:t.round(w.origin[1]+le[1],i.accuracy)},{x:t.round(w.end[0]+le[0],i.accuracy),y:t.round(w.end[1]+le[1],i.accuracy)}]};return _e.lineType=L(Ce),_e},x[t.pathType.Circle]=function(w,le,V){var Ce=T(w,V),_e={type:"CIRCLE",layer:Ce,center:{x:t.round(w.origin[0]+le[0],i.accuracy),y:t.round(w.origin[1]+le[1],i.accuracy)},radius:t.round(w.radius,i.accuracy)};return _e.lineType=L(Ce),_e},x[t.pathType.Arc]=function(w,le,V){var Ce=T(w,V),_e={type:"ARC",layer:Ce,center:{x:t.round(w.origin[0]+le[0],i.accuracy),y:t.round(w.origin[1]+le[1],i.accuracy)},radius:t.round(w.radius,i.accuracy),startAngle:t.round(w.startAngle,i.accuracy),endAngle:t.round(w.endAngle,i.accuracy)};return _e.lineType=L(Ce),_e};function c(w,le,V){var Ce={type:"VERTEX",layer:T(null,le),x:t.round(w[0],i.accuracy),y:t.round(w[1],i.accuracy),bulge:V};return Ce}function m(w){var le={type:"POLYLINE",layer:T(null,w.layer),shape:w.chain.endless,vertices:[]};if(le.lineType=L(le.layer),w.chain.links.forEach(function(_e,D){var Ie;if(_e.walkedPath.pathContext.type===t.pathType.Arc){var Lt=_e.walkedPath.pathContext;Ie=t.round(Math.tan(t.angle.toRadians(t.angle.ofArcSpan(Lt))/4),i.accuracy),_e.reversed&&(Ie*=-1)}var At=_e.endPoints[_e.reversed?1:0];le.vertices.push(c(At,w.layer,Ie))}),!w.chain.endless){var V=w.chain.links[w.chain.links.length-1],Ce=V.endPoints[V.reversed?0:1];le.vertices.push(c(Ce,w.layer))}return le}function y(w){var le=T(null,w.layer),V=f(le),Ce=t.point.middle(w.anchor),_e={type:"TEXT",startPoint:c(Ce,null),endPoint:c(Ce,null),layer:le,textHeight:V&&V.fontSize||i.fontSize,text:w.text,halign:4,valign:0,rotation:t.angle.ofPointInDegrees(w.anchor.origin,w.anchor.end)};return _e}function O(w,le){var V={name:w,color:le};return V.lineType=L(w),V}function b(){var w={lineTypes:{CONTINUOUS:{name:"CONTINUOUS",description:"______",patternLength:0,elements:[]},DASHED:{name:"DASHED",description:"_ _ _ ",elements:[5,-2.5],patternLength:7.5},DOTTED:{name:"DOTTED",description:". . . ",elements:[.5,-1],patternLength:1.5}}},le="lineType";d.tables[le]=w}function j(){var w={layers:{}};g.forEach(function(V){var Ce=f(V);Ce&&(w.layers[V]=O(V,Ce.color))});var le="layer";d.tables[le]=w}function F(){if(i.units){var w=u[i.units];d.header.$INSUNITS=w}}function k(w,le,V){var Ce=d.entities;Ce.push.apply(Ce,le.map(m)),w.forEach(function(_e){var D=x[_e.pathContext.type];if(D){var Ie=D(_e.pathContext,_e.offset,_e.layer);Ce.push(Ie)}}),Ce.push.apply(Ce,V.map(y))}if(!i.units){var _=e.tryGetModelUnits(l);_&&(i.units=_)}t.extendObject(o,i);var ue=[],re=[];if(i.usePOLYLINE){var de=function(w,le,V){w.forEach(function(Ce){if(Ce.endless&&Ce.links.length===1&&Ce.links[0].walkedPath.pathContext.type===t.pathType.Circle){re.push(Ce.links[0].walkedPath);return}var _e={chain:Ce,layer:V};ue.push(_e)}),re.push.apply(re,le)};t.model.findChains(r,de,{byLayers:!0,pointMatchingDistance:i.pointMatchingDistance})}else{var he={onPath:function(w){re.push(w)}};t.model.walk(r,he)}return k(re,ue,t.model.getAllCaptionsOffset(r)),F(),b(),j(),s(d)}e.toDXF=n;function s(l){var o=[];function i(){for(var b=[],j=0;j<arguments.length;j++)b[j]=arguments[j];o.push.apply(o,b)}function g(b){var j=b.lineType;j&&i("6",j)}var d={};d.LINE=function(b){i("0","LINE","8",b.layer),g(b),i("10",b.vertices[0].x,"20",b.vertices[0].y,"11",b.vertices[1].x,"21",b.vertices[1].y)},d.CIRCLE=function(b){i("0","CIRCLE","8",b.layer),g(b),i("10",b.center.x,"20",b.center.y,"40",b.radius)},d.ARC=function(b){i("0","ARC","8",b.layer),g(b),i("10",b.center.x,"20",b.center.y,"40",b.radius,"50",b.startAngle,"51",b.endAngle)},d.VERTEX=function(b){i("0","VERTEX","8",b.layer,"10",b.x,"20",b.y),b.bulge!==void 0&&i("42",b.bulge)},d.POLYLINE=function(b){i("0","POLYLINE","8",b.layer),g(b),i("66",1,"70",b.shape?1:0),b.vertices.forEach(function(j){return d.VERTEX(j)}),i("0","SEQEND")},d.TEXT=function(b){i("0","TEXT","10",b.startPoint.x,"20",b.startPoint.y,"11",b.endPoint.x,"21",b.endPoint.y,"40",b.textHeight,"1",b.text,"50",b.rotation,"8",b.layer,"72",b.halign,"73",b.valign)};function r(b){i("0","SECTION"),b(),i("0","ENDSEC")}function f(b){i("0","TABLE"),b(),i("0","ENDTAB")}function L(){i("2","TABLES"),f(c),f(m)}function T(b){var j=b.lineType||"CONTINUOUS";i("0","LAYER","2",b.name,"70","0","62",b.color,"6",j)}function x(b){var j=b.elements||[];i("0","LTYPE","72","65","70","0","2",b.name,"3",b.description,"73",j.length,"40",b.patternLength),j.forEach(function(F){return i("49",F)})}function c(){var b="lineType",j=l.tables[b];i("2","LTYPE");for(var F in j.lineTypes){var k=j.lineTypes[F];x(k)}}function m(){var b="layer",j=l.tables[b];i("2","LAYER");for(var F in j.layers){var k=j.layers[F];T(k)}}function y(){i("2","HEADER");for(var b in l.header){var j=l.header[b];i("9",b,"70",j)}}function O(b){i("2","ENTITIES"),b.forEach(function(j){var F=d[j.type];F&&F(j)})}return r(y),r(L),r(function(){return O(l.entities)}),i("0","EOF"),o.join(`
`)}var u={};u[""]=0,u[t.unitType.Inch]=1,u[t.unitType.Foot]=2,u[t.unitType.Millimeter]=4,u[t.unitType.Centimeter]=5,u[t.unitType.Meter]=6})(t.exporter||(t.exporter={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=Math.sqrt(3)/2;function s(g){return g*n}e.equilateralAltitude=s;function u(g){return g/n}e.equilateralSide=u;function l(g,d,r){return t.angle.toDegrees(Math.acos((d*d+r*r-g*g)/(2*d*r)))}e.solveTriangleSSS=l;function o(g,d,r){var f=180-g-r;return d*Math.sin(t.angle.toRadians(g))/Math.sin(t.angle.toRadians(f))}e.solveTriangleASA=o;function i(g,d,r){r===void 0&&(r=!1);var f=new t.paths.Line(g.origin,d.origin),L=t.measure.pointDistance(g.origin,d.origin);if(g.radius>=L+d.radius||d.radius>=L+g.radius||r&&g.radius+d.radius>=L)return null;var T;if(!r&&t.round(g.radius-d.radius)==0)T=[90,270];else{var x=L/2,c=new t.paths.Circle([x,0],x),m=new t.paths.Circle(g.radius>d.radius?[0,0]:[L,0],r?g.radius+d.radius:Math.abs(g.radius-d.radius)),y=t.path.intersection(m,c);if(!y||!y.path1Angles)return null;T=y.path1Angles}var O=t.angle.ofLineInDegrees(f);return T.map(function(b){return t.angle.noRevolutions(b+O)})}e.circleTangentAngles=i})(t.solvers||(t.solvers={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n={};n[t.pathType.Arc]={},n[t.pathType.Circle]={},n[t.pathType.Line]={},n[t.pathType.Arc][t.pathType.Arc]=function(f,L,T,x){var c=null;return s([f,L],T,x,function(){var m=r(f,L,T);if(m){var y=g(m[0],f,T),O=g(m[1],L,T);if(y&&O)if(y.length===1||O.length===1)for(var b=0;b<y.length;b++)for(var j=0;j<O.length;j++){var F=t.point.fromAngleOnCircle(y[b],f),k=t.point.fromAngleOnCircle(O[j],L);if(t.measure.isPointEqual(F,k,1e-4)){c={intersectionPoints:[F],path1Angles:[y[b]],path2Angles:[O[j]]};return}}else c={intersectionPoints:i(y,f),path1Angles:y,path2Angles:O}}else T.out_AreOverlapped&&(T.out_AreOverlapped=t.measure.isArcOverlapping(f,L,T.excludeTangents))}),c},n[t.pathType.Arc][t.pathType.Circle]=function(f,L,T,x){var c=null;return s([f,L],T,x,function(){var m=r(f,L,T);if(m){var y=g(m[0],f,T);if(y){var O;if(y.length==2)O=m[1];else{var b=o(m[0],y[0]);O=[m[1][b]]}c={intersectionPoints:i(y,f),path1Angles:y,path2Angles:O}}}}),c},n[t.pathType.Arc][t.pathType.Line]=function(f,L,T,x){var c=null;return s([f,L],T,x,function(){var m=d(L,f,T);if(m){var y=g(m,f,T);y&&(c={intersectionPoints:i(y,f),path1Angles:y})}}),c},n[t.pathType.Circle][t.pathType.Arc]=function(f,L,T){var x=n[t.pathType.Arc][t.pathType.Circle](L,f,T,!0);return x?u(x):null},n[t.pathType.Circle][t.pathType.Circle]=function(f,L,T,x){var c=null;return s([f,L],T,x,function(){var m=r(f,L,T);m&&(c={intersectionPoints:i(m[0],f),path1Angles:m[0],path2Angles:m[1]})}),c},n[t.pathType.Circle][t.pathType.Line]=function(f,L,T,x){var c=null;return s([f,L],T,x,function(){var m=d(L,f,T);m&&(c={intersectionPoints:i(m,f),path1Angles:m})}),c},n[t.pathType.Line][t.pathType.Arc]=function(f,L,T){var x=n[t.pathType.Arc][t.pathType.Line](L,f,T,!0);return x?u(x):null},n[t.pathType.Line][t.pathType.Circle]=function(f,L,T){var x=n[t.pathType.Circle][t.pathType.Line](L,f,T,!0);return x?u(x):null},n[t.pathType.Line][t.pathType.Line]=function(f,L,T,x){var c=null;return s([f,L],T,x,function(){var m=t.point.fromSlopeIntersection(f,L,T);m&&t.measure.isBetweenPoints(m,f,T.excludeTangents)&&t.measure.isBetweenPoints(m,L,T.excludeTangents)&&(c={intersectionPoints:[m]})}),c};function s(f,L,T,x){var c=T?[L.path2Offset,L.path1Offset]:[L.path1Offset,L.path2Offset];e.moveTemporary(f,c,x)}function u(f){var L=f.path1Angles;return f.path2Angles?f.path1Angles=f.path2Angles:delete f.path1Angles,L&&(f.path2Angles=L),f}function l(f,L,T){if(T===void 0&&(T={}),f&&L){var x=n[f.type][L.type];if(x)return x(f,L,T)}return null}e.intersection=l;function o(f,L){for(var T=2;T--;)if(f[T]===L)return T}function i(f,L){for(var T=[],x=0;x<f.length;x++)T.push(t.point.fromAngleOnCircle(f[x],L));return T}function g(f,L,T){if(!f)return null;for(var x=[],c=0;c<f.length;c++)t.measure.isBetweenArcAngles(f[c],L,T.excludeTangents)&&x.push(f[c]);return x.length==0?null:x}function d(f,L,T){var x=t.round(L.radius);if(L.radius<=0)return null;var c=new t.paths.Line(t.point.subtract(f.origin,L.origin),t.point.subtract(f.end,L.origin)),m=t.angle.ofLineInDegrees(f),y=m>=180?m-360:m;e.rotate(c,-y,t.point.zero());function O(re){var de=re+y;return t.round(t.angle.noRevolutions(de))}var b=t.round(c.origin[1]),j=Math.abs(b);if(j>x)return null;var F=[];if(j==x){if(T.excludeTangents)return null;F.push(O(b>0?90:270))}else{let re=function(de,he){t.measure.isBetween(t.round(de),t.round(c.origin[0]),t.round(c.end[0]),T.excludeTangents)&&F.push(O(he))};var k=Math.asin(b/x),_=t.angle.toDegrees(k),ue=Math.cos(k)*x;re(-ue,180-_),re(ue,_)}return F.length>0?F:null}function r(f,L,T){if(f.radius<=0||L.radius<=0)return null;if(f.radius==L.radius&&t.measure.isPointEqual(f.origin,L.origin,1e-4))return T.out_AreOverlapped=!0,null;t.point.subtract(t.point.zero(),f.origin);var x=new t.paths.Circle(t.point.zero(),f.radius),c=new t.paths.Circle(t.point.subtract(L.origin,f.origin),L.radius),m=t.angle.ofPointInDegrees(t.point.zero(),c.origin);e.rotate(c,-m,t.point.zero());function y(k){var _=k+m;return t.angle.noRevolutions(_)}var O=c.origin[0];if(t.round(c.radius-O-x.radius)==0)return T.excludeTangents?null:[[y(180)],[y(180)]];if(t.round(c.radius+O-x.radius)==0)return T.excludeTangents?null:[[y(0)],[y(0)]];if(t.round(O-c.radius-x.radius)==0)return T.excludeTangents?null:[[y(0)],[y(180)]];if(t.round(O-c.radius)>x.radius||t.round(O+c.radius)<x.radius||t.round(O-c.radius)<-x.radius)return null;function b(k){return[y(k),y(t.angle.mirror(k,!1,!0))]}var j=t.solvers.solveTriangleSSS(c.radius,x.radius,O),F=t.solvers.solveTriangleSSS(x.radius,O,c.radius);return[b(j),b(180-F)]}})(t.path||(t.path={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n={};n[t.pathType.Arc]=function(m){return["startAngle","endAngle"]},n[t.pathType.Line]=function(m){return["origin","end"]};function s(m){var y=t.point.fromPathEnds(m);if(y){let j=function(F){return{point:y[F],propertyName:O[F]}};var O=null,b=n[m.type];if(b)return O=b(m),[j(0),j(1)]}return null}function u(m,y,O){var b=s(m),j=s(y),F=null;function k(ue,re,de){return{path:ue,isStart:de==0,propertyName:re[de].propertyName,point:re[de].point,oppositePoint:re[1-de].point}}function _(ue,re){return t.measure.isPointEqual(b[ue].point,j[re].point,1e-4)?(F=[k(m,b,ue),k(y,j,re)],!0):!1}return _(0,0)||_(0,1)||_(1,0)||_(1,1),F}function l(m,y,O,b){for(var j=new t.paths.Circle(y,m),F=0;F<2;F++){var k=e.intersection(j,O[F].path);if(!k)return!1;if(O[F].shardPoint=k.intersectionPoints[0],t.measure.isPointEqual(O[F].point,k.intersectionPoints[0],1e-4))if(k.intersectionPoints.length>1)O[F].shardPoint=k.intersectionPoints[1];else return!1}return!0}function o(m,y){var O=e.clone(m),b=e.breakAtPoint(O,y);return[O,b]}var i={};i[t.pathType.Arc]=function(m,y,O,b,j){var F=m.radius,k=o(m,b)[j?0:1];return k?(t.measure.isArcConcaveTowardsPoint(k,O)?F-=y:F+=y,t.round(F)<=0?null:new t.paths.Arc(m.origin,F,m.startAngle,m.endAngle)):null},i[t.pathType.Line]=function(m,y,O,b,j){return new t.paths.Parallel(m,y,O)};function g(m,y,O){var b=null,j=i[m.path.type];return j&&(b=j(m.path,y,O,m.shardPoint,m.isStart)),b}var d={};d[t.pathType.Arc]=function(m,y,O,b){var j=new t.paths.Line(m.origin,b),F=t.angle.ofLineInDegrees(j),k=F;return t.measure.isArcConcaveTowardsPoint(m,b)||(k+=180),{filletAngle:t.angle.noRevolutions(k),clipPath:function(){m[y]=F}}},d[t.pathType.Line]=function(m,y,O,b){var j=new t.paths.Line([0,0],[0,1]),F=t.angle.ofLineInDegrees(m);e.rotate(j,F,[0,0]),e.moveRelative(j,b);var k=t.point.fromSlopeIntersection(m,j);return k?{filletAngle:t.angle.ofPointInDegrees(b,k),clipPath:function(){m[y]=k}}:null};function r(m,y,O){var b=null,j=d[m.path.type];return j&&(b=j(m.path,m.propertyName,y,O)),L(m,b)||(b=null),b}function f(m,y){var O={filletAngle:t.angle.ofPointInDegrees(y,m.shardPoint),clipPath:function(){m.path[m.propertyName]=m.shardPoint}};return L(m,O)||(O=null),O}function L(m,y){var O=!1;if(y){var b=m.path[m.propertyName];y.clipPath(),t.measure.pathLength(m.path)>0&&(O=!0),m.path[m.propertyName]=b}return O}function T(m){for(var y=0,O=[],b=0;b<m.length;b++){var j=t.measure.pathLength(m[b]);O.push(j),y+=j}return O[0]/y}function x(m,y,O,b){if(t.isPathLine(m)&&t.isPathLine(y)&&O&&O>0){var j={pointMatchingDistance:.005};t.extendObject(j,b);var F=u(m,y);if(F){var k=T([m,y]),_=new t.paths.Line(F[0].oppositePoint,F[1].oppositePoint),ue=t.point.middle(_,k),re=t.angle.ofPointInDegrees(F[0].point,ue),de=t.point.add(F[0].point,t.point.fromPolar(t.angle.toRadians(re),O));if(!l(O,de,F))return null;for(var he=[],w=0;w<2;w++){var le=f(F[w],de);if(!le)return null;he.push(le)}var V=new t.paths.Arc(de,O,he[0].filletAngle,he[1].filletAngle);return t.round(t.angle.noRevolutions(t.angle.ofArcMiddle(V)))==t.round(re)&&(V.startAngle=he[1].filletAngle,V.endAngle=he[0].filletAngle),he[0].clipPath(),he[1].clipPath(),V}}return null}e.dogbone=x;function c(m,y,O,b){if(m&&y&&O&&O>0){var j={pointMatchingDistance:.005};t.extendObject(j,b);var F=u(m,y);if(F){if(!l(O,F[0].point,F))return null;for(var k=[],_=0;_<2;_++){var ue=F[1-_].shardPoint;if(!ue)return null;var re=g(F[_],O,ue);k.push(re)}var de=e.intersection(k[0],k[1]);if(de){var he;de.intersectionPoints.length==1?he=de.intersectionPoints[0]:he=t.point.closest(F[0].point,de.intersectionPoints);for(var w=[],_=0;_<2;_++){var le=r(F[_],O,he);if(!le)return null;w.push(le)}if(t.round(w[0].filletAngle-w[1].filletAngle)==0)return null;var V=new t.paths.Arc(he,O,w[0].filletAngle,w[1].filletAngle),Ce=t.angle.ofArcSpan(V);return Ce==180?null:(Ce>180&&(V.startAngle=w[1].filletAngle,V.endAngle=w[0].filletAngle),w[0].clipPath(),w[1].clipPath(),V)}}}return null}e.fillet=c})(t.path||(t.path={}))})(MakerJs||(MakerJs={})),(function(t){(function(e){function n(l,o){return u(!1,l,o)}e.dogbone=n;function s(l,o){return u(!0,l,o)}e.fillet=s;function u(l,o,i){var g={paths:{}},d=0,r=o.links;function f(T,x){var c=r[T].walkedPath,m=r[x].walkedPath;c.modelContext===m.modelContext&&c.modelContext.type==t.models.BezierCurve.typeName||t.path.moveTemporary([c.pathContext,m.pathContext],[c.offset,m.offset],function(){var y;if(t.isObject(i)){var O=t.angle.ofChainLinkJoint(r[T],r[x]);if(t.round(O)===0)return;y=O>0?i.left:i.right}else y=i;if(!(!y||y<0)){var b;l?b=t.path.fillet(c.pathContext,m.pathContext,y):b=t.path.dogbone(c.pathContext,m.pathContext,y),b&&(g.paths["fillet"+d]=b,d++)}})}for(var L=1;L<r.length;L++)f(L-1,L);return o.endless&&f(L-1,0),d?g:null}})(t.chain||(t.chain={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(u,l){function o(){return u.apply(this,l)}return o.prototype=u.prototype,new o}e.construct=n;function s(u){var l=[],o=u.metaParameters;if(o)for(var i=0;i<o.length;i++){var g=o[i].value;Array.isArray(g)&&(g=g[0]),l.push(g)}return l}e.getParameterValues=s})(t.kit||(t.kit={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(r,f){return r[0].walkedPath.pathContext===f?r[1]:r[0]}function s(r,f,L){function T(x,c,m){for(;x;){c.links.push(x),c.pathLength+=x.pathLength;var y=x.reversed?0:1,O=x.endPoints[y],b=r.getElementAtPoint(O);if(!b||b.valueIds.length===0)break;var j=b.valueIds.map(function(k){return r.values[k]}),F=n(j,x.walkedPath.pathContext);if(b.valueIds.splice(0,2),!F)break;if(F.walkedPath.pathContext===m.walkedPath.pathContext){c.links.length>1&&(c.endless=!0);break}x=F}}r.forEachPoint(function(x,c,m,y){if(y.valueIds.length>0){var O={links:[],pathLength:0};if(T(c[0],O,c[0]),O.endless)f(O,!1);else{O.links.reverse();var b=O.links[0];O.links.map(function(F){F.reversed=!F.reversed}),O.pathLength-=O.links[O.links.length-1].pathLength;var j=O.links.pop();T(j,O,b),O.links.length>1?f(O,!0):L(O.links[0].walkedPath)}}})}function u(r){var f=null;return o(r,function(L,T,x){f=L[0]},{byLayers:!1}),f}e.findSingleChain=u;function l(r,f){var L=f===r.reversed?1:0;return r.endPoints[L]}function o(r){for(var f=[],L=1;L<arguments.length;L++)f[L-1]=arguments[L];var T,x;switch(f.length){case 1:typeof f[0]=="function"?x=f[0]:T=f[0];break;case 2:x=f[0],T=f[1];break}var c={pointMatchingDistance:.005};t.extendObject(c,T);var m={},y={},O={},b={onPath:function(de){var he=c.byLayers?de.layer:"";m[he]||(m[he]=new t.PointGraph);var w=m[he],le=t.measure.pathLength(de.pathContext);if(de.pathContext.type===t.pathType.Circle||de.pathContext.type===t.pathType.Arc&&t.round(t.angle.ofArcSpan(de.pathContext)-360)===0||de.pathContext.type===t.pathType.BezierSeed&&t.measure.isPointEqual(de.pathContext.origin,de.pathContext.end,c.pointMatchingDistance)){var V={links:[{walkedPath:de,reversed:null,endPoints:null,pathLength:le}],endless:!0,pathLength:le};y[he]||(y[he]=[]),y[he].push(V)}else{if(le<c.pointMatchingDistance/5){O[he]||(O[he]=[]),O[he].push(de);return}for(var Ce=t.point.fromPathEnds(de.pathContext,de.offset),_e=0;_e<2;_e++){var D={walkedPath:de,endPoints:Ce,reversed:_e!=0,pathLength:le},Ie=w.insertValue(D);w.insertValueIdAtPoint(Ie,Ce[_e])}}}};c.shallow&&(b.beforeChildWalk=function(){return!1});var j;c.unifyBeziers&&(j=g(r),d(j,!0,c.pointMatchingDistance)),e.walk(r,b);var F=function(de){var he=m[de];he.mergeNearestSinglePoints(c.pointMatchingDistance),k=[],y[de]||(y[de]=[]),s(he,function(w,le){le?w.endless=t.measure.isPointEqual(l(w.links[0],!0),l(w.links[w.links.length-1],!1),c.pointMatchingDistance):w.endless=!!w.endless,y[de].push(w)},function(w){k.push(w)}),y[de].sort(function(w,le){return le.pathLength-w.pathLength}),c.contain&&(_=t.isObject(c.contain)?c.contain:{alternateDirection:!1},ue=i(y[de],_),y[de]=ue),x&&x(y[de],k,de,O[de])},k,_,ue;for(var re in m)F(re);return j&&d(j,!1,c.pointMatchingDistance),c.byLayers?y:y[""]}e.findChains=o;function i(r,f){var L=r.map(function(c){return t.chain.toNewModel(c)}),T=[];r.forEach(function(c,m){if(c.endless){var y=c.links[0].walkedPath,O=t.path.clone(y.pathContext,y.offset);r.forEach(function(b,j){c!==b&&b.endless&&t.measure.isPointInsideModel(t.point.middle(O),L[j])&&(T[m]=b)})}});var x=[];if(r.forEach(function(c,m){var y=T[m];y?(y.contains||(y.contains=[]),y.contains.push(c)):x.push(c)}),f.alternateDirection){let c=function(m,y){m.forEach(function(O,b){var j=t.measure.isChainClockwise(O);j!==null&&(!j&&y||j&&!y)&&t.chain.reverse(O),O.contains&&c(O.contains,!y)})};c(x,!0)}return x}function g(r){var f=[];function L(c){c.childModel.type===t.models.BezierCurve.typeName&&f.push(c)}var T={beforeChildWalk:function(c){return L(c),!0}},x={childId:"",childModel:r,layer:r.layer,offset:r.origin,parentModel:null,route:[],routeKey:""};return L(x),e.walk(r,T),f}function d(r,f,L){var T="tempPaths",x="tempLayer";r.forEach(function(c){var m=c.childModel;if(f){c.layer!=null&&c.layer!==""&&(m[x]=m.layer,m.layer=c.layer);var y=t.models.BezierCurve.getBezierSeeds(m,{byLayers:!0,pointMatchingDistance:L});for(var O in y){var b=y[O];if(b.length>0){m[T]=m.paths;var j={};b.forEach(function(F,k){F.layer=O,j["seed_"+k]=F}),m.paths=j}}}else T in m&&(m.paths=m[T],delete m[T]),x in m&&(m[x]==null?delete m.layer:m.layer=m[x],delete m[x])})}})(t.model||(t.model={}))})(MakerJs||(MakerJs={})),(function(t){(function(e){function n(d,r){if(r===void 0&&(r=1),!!d.endless){for(var f=Math.abs(r),L=0;L<f;L++)r<0?d.links.push(d.links.shift()):d.links.unshift(d.links.pop());return d}}e.cycle=n;function s(d){return d.links.reverse(),d.links.forEach(function(r){return r.reversed=!r.reversed}),d}e.reverse=s;function u(d,r){if(d.endless){for(var f=-1,L=0;L<d.links.length;L++)if(d.links[L].walkedPath.routeKey==r){f=L;break}return f>0&&n(d,f),d}}e.startAt=u;function l(d,r){r===void 0&&(r=!1);for(var f={paths:{}},L=0;L<d.links.length;L++){var T=d.links[L].walkedPath;if(T.pathContext.type===t.pathType.BezierSeed){r&&delete T.modelContext.paths[T.pathId],f.models||(f.models={});var x=t.model.getSimilarModelId(f,T.pathId);f.models[x]=t.model.moveRelative(new t.models.BezierCurve(T.pathContext),T.offset)}else{var c;r?(c=T.pathContext,delete T.modelContext.paths[T.pathId]):c=t.path.clone(T.pathContext);var m=t.model.getSimilarPathId(f,T.pathId);f.paths[m]=t.path.moveRelative(c,T.offset)}}return f}e.toNewModel=l;function o(d,r){!d||r.length<2||t.measure.isPointEqual(r[0],r[r.length-1],1e-5)&&r.pop()}function i(d,r,f){var L=[],T=0,x=0,c;Array.isArray(r)&&(c=r);for(var m=0;m<d.links.length;m++){for(var y=d.links[m],O=y.walkedPath,b=y.pathLength;t.round(b-x)>0;){var j=x/b;if(y.reversed&&(j=1-j),L.push(t.point.add(t.point.middle(O.pathContext,j),O.offset)),f&&L.length>=f)return L;var F;if(c){if(F=c[T],T++,T>c.length)return L}else F=r;x+=F}x-=b}return o(d.endless,L),L}e.toPoints=i;function g(d,r){for(var f=[],L=0;L<d.links.length;L++){var T=d.links[L],x=T.walkedPath,c=t.path.toKeyPoints(x.pathContext,r);if(c.length>0){T.reversed&&c.reverse(),L>0&&c.shift();var m=c.map(function(y){return t.point.add(y,x.offset)});f.push.apply(f,m)}}return o(d.endless,f),f}e.toKeyPoints=g})(t.chain||(t.chain={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function u(l,o){this.modelContext=l,this.options=o,this.pointMap=new t.PointGraph,this.list=[],this.removed=[],this.ordinals={},this.load()}return u.prototype.load=function(){var l=this,o={onPath:function(i){var g=t.point.fromPathEnds(i.pathContext,i.offset);if(g){var d=i;d.endPoints=g;for(var r=l.pointMap.insertValue(d),f=2;f--;)l.pointMap.insertValueIdAtPoint(r,g[f])}}};e.walk(this.modelContext,o),this.options.pointMatchingDistance&&this.pointMap.mergePoints(this.options.pointMatchingDistance)},u.prototype.findDeadEnds=function(){var l=this,o=0;this.pointMap.forEachPoint(function(d,r,f,L){l.ordinals[f]=o++,l.list.push(L)}),o=0;for(var i=function(){var d=g.list[o];d.valueIds.length===1?g.removePath(d,d.valueIds[0],o):g.options.keep&&d.valueIds.length%2&&d.valueIds.forEach(function(r){var f=l.pointMap.values[r];l.options.keep(f)||l.removePath(d,r,o)}),o++},g=this;o<this.list.length;)i();return this.removed},u.prototype.removePath=function(l,o,i){var g=this.pointMap.values[o],d=this.getOtherPointId(g.endPoints,l.pointId),r=this.pointMap.index[d];this.removed.push(g),this.removeValue(l,o),this.removeValue(r,o),r.valueIds.length>0&&this.appendQueue(r,i)},u.prototype.removeValue=function(l,o){var i=l.valueIds.indexOf(o);i>=0&&l.valueIds.splice(i,1)},u.prototype.appendQueue=function(l,o){var i=this.ordinals[l.pointId];i<o&&(this.list[i]=null,this.list.push(l),this.ordinals[l.pointId]=this.list.length)},u.prototype.getOtherPointId=function(l,o){for(var i=0;i<l.length;i++){var g=this.pointMap.getIdOfPoint(l[i]);if(o!==g)return g}},u})();function s(u,l,o,i){var g={pointMatchingDistance:l||.005,keep:o},d=new n(u,g),r=d.findDeadEnds();return r.length<d.pointMap.values.length&&r.forEach(function(f){i(f,"dead end"),delete f.modelContext.paths[f.pathId]}),u}e.removeDeadEnds=s})(t.model||(t.model={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l){this.name=u,this.attrs=l,this.innerText=""}return s.escapeString=function(u){var l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};for(var o in l)u=u.split(o).join(l[o]);return u},s.prototype.getOpeningTag=function(u){var l="";function o(g,d){d==null||typeof d>"u"||((Array.isArray(d)||typeof d=="object")&&(d=JSON.stringify(d)),typeof d=="string"&&(d=s.escapeString(d)),l+=" "+g+'="'+d+'"')}for(var i in this.attrs)o(i,this.attrs[i]);return"<"+this.name+l+(u?"/":"")+">"},s.prototype.getInnerText=function(){return this.innerTextEscaped?this.innerText:s.escapeString(this.innerText)},s.prototype.getClosingTag=function(){return"</"+this.name+">"},s.prototype.toString=function(){var u=!this.innerText;return u&&!this.closingTags?this.getOpeningTag(!0):this.getOpeningTag(!1)+this.getInnerText()+this.getClosingTag()},s})();e.XmlTag=n})(t.exporter||(t.exporter={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(L,T,x){return L+"("+T+")"}function s(L,T){if(T){var x=new t.paths.Circle([0,0],L.radius),c=t.measure.pathLength(x);if(c)return Math.ceil(c/T)}}function u(L,T,x){var c="",m="",y=!0,O=!1,b=!1,j={};j[t.pathType.Circle]=function(he,w){var le={center:t.point.rounded(t.point.add(he.origin,w.walkedPath.offset),x),radius:t.round(he.radius,x),resolution:s(he,T)};c=n("CAG.circle",JSON.stringify(le)),O=!0},j[t.pathType.Line]=function(he,w){var le=w.endPoints.map(function(V){return t.point.rounded(V,x)});w.reversed&&le.reverse(),c=n("new CSG.Path2D",JSON.stringify(le))},j[t.pathType.Arc]=function(he,w){var le=t.angle.ofArcEnd(he);w.reversed&&(b=!0);var V={center:t.point.rounded(t.point.add(he.origin,w.walkedPath.offset),x),radius:t.round(he.radius,x),startangle:t.round(he.startAngle,x),endangle:t.round(le,x),resolution:s(he,T)};c=n("new CSG.Path2D.arc",JSON.stringify(V))};var F={};F[t.pathType.Line]=function(he,w){var le=b!=w.reversed,V=t.point.rounded(w.endPoints[le?0:1],x);k(n(".appendPoint",JSON.stringify(V)))},F[t.pathType.Arc]=function(he,w){var le=b!=w.reversed,V=t.angle.ofArcEnd(he),Ce={radius:t.round(he.radius,x),clockwise:le,large:Math.abs(V-he.startAngle)>180,resolution:s(he,T)},_e=t.point.rounded(w.endPoints[le?0:1],x);k(n(".appendArc",JSON.stringify(_e)+","+JSON.stringify(Ce)))};function k(he){b?m=he+m:m+=he}for(var _=0;_<L.links.length;_++){var ue=L.links[_],re=ue.walkedPath.pathContext,de=y?j[re.type]:F[re.type];if(de&&de(re,ue),O)return c;y=!1}return c+m+".close().innerToCAG()"}function l(L,T,x){return function(m){L&&L({progress:T+m.progress*x/100})}}function o(L,T,x){function c(O,b){var j=t.chain.toKeyPoints(O,b);return j.push(j[0]),L.fromPoints(j)}function m(O,b){return O.union(b)}function y(O,b){return O.subtract(b)}return i(c,m,y,T,x)}e.toJscadCAG=o;function i(L,T,x,c,m){m===void 0&&(m={});var y={},O={total:0,complete:0};function b(w,le,V){var Ce=V.shift();return V.forEach(function(_e){return Ce=T(Ce,_e)}),O.complete++,m.statusCallback&&m.statusCallback({progress:w+le*O.complete/O.total}),Ce}function j(w,le){var V=[];return le.forEach(function(Ce){Ce.endless&&(Ce.contains&&F(w,Ce.contains),O.total++,V.unshift(L(Ce,m.maxArcFacet)))}),V}function F(w,le){le.forEach(function(V){if(V.endless){var Ce={cag:L(V,m.maxArcFacet),subtracts:[]};if(V.contains){var _e=j(w,V.contains);_e.length>0&&Ce.subtracts.push(_e)}O.total++,w in y||(y[w]=[]),y[w].unshift(Ce)}})}var k={pointMatchingDistance:m.pointMatchingDistance,byLayers:m.byLayers,contain:!0};m.statusCallback&&m.statusCallback({progress:25});var _=t.model.findChains(c,k);if(Array.isArray(_))F("",_);else for(var ue in _)F(ue,_[ue]);m.statusCallback&&m.statusCallback({progress:50});var re=0;for(var ue in y)re+=y[ue].length;if(re===0)throw m.statusCallback&&m.statusCallback({progress:100}),"No closed geometries found.";var de={};for(var ue in y){var he=y[ue].map(function(le){var V=le.cag;return le.subtracts.forEach(function(Ce){var _e=b(50,50,Ce);V=x(V,_e)}),V});de[ue]=b(50,50,he)}return m.statusCallback&&m.statusCallback({progress:100}),k.byLayers?de:de[""]}function g(L,T,x){function c(O){return o(L,T,O)}function m(O,b,j){var F=O.extrude({offset:[0,0,b]});return j&&(F=F.translate([0,0,j])),F}function y(O,b){return O.union(b)}return d(c,m,y,T,x)}e.toJscadCSG=g;function d(L,T,x,c,m){m===void 0&&(m={});var y=m.statusCallback;function O(de,he){return t.isNumber(de)?de:he}c.exporterOptions&&t.extendObject(m,c.exporterOptions.toJscadCSG),m.byLayers=m.byLayers||m.layerOptions&&!0,m.statusCallback=l(y,0,50);var b=L(m),j=[];if(m.byLayers)for(var F in b){var k=m.layerOptions[F],_=T(b[F],k.extrude||m.extrude,O(k.z,m.z));j.push(_)}else{var _=T(b,m.extrude,m.z);j.push(_)}m.statusCallback=l(y,50,100);var ue={total:j.length-1,complete:0},re=j.shift();return j.forEach(function(de,he){re=x(re,de),ue.complete++,m.statusCallback({progress:ue.complete/ue.total})}),re}function r(L,T){T===void 0&&(T={});function x(_,ue){return b(u(_,ue,T.accuracy))}function c(_,ue){return _+".union(".concat(ue,")")}function m(_,ue){return _+".subtract(".concat(ue,")")}function y(_){return i(x,c,m,L,T)}function O(_,ue,re){var de=_+".extrude({ offset: [0, 0, ".concat(ue,"] })");return re&&(de=de+".translate([0, 0, ".concat(re,"])")),de}function b(_){return"".concat(F).concat(j).concat(_).concat(F)}var j=new Array((T.indent||0)+1).join(" "),F=T.indent?`
`:"",k=d(y,O,c,L,T).trim();return"function ".concat(T.functionName||"main","(){").concat(b("return ".concat(k,";")),"}").concat(F)}e.toJscadScript=r;function f(L,T,x,c){var m=c.statusCallback;c.statusCallback=l(m,0,50);var y=g(L,x,c);return T.serialize(y,{binary:!1,statusCallback:l(m,50,50)})}e.toJscadSTL=f})(t.exporter||(t.exporter={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(s,u,l){if(u){var o={fontName:"Courier",fontSize:9,origin:[0,0],stroke:"#000"};t.extendObject(o,l);var i=1,g=o.units||u.units;g?i=t.units.conversionScale(g,t.unitType.Inch):i=1/100,i*=72;var d=t.model.scale(t.cloneObject(u),i),r=t.measure.modelExtents(d),f=-r.low[0],L=[f,r.high[1]];L=t.point.add(L,o.origin),t.model.findChains(d,function(T,x,c){function m(y){var O=e.pathToSVGPathData(y.pathContext,y.offset,L);s.path(O).stroke(o.stroke)}T.map(function(y){if(y.links.length>1){var O=e.chainToSVGPathData(y,L);s.path(O).stroke(o.stroke)}else{var b=y.links[0].walkedPath;if(b.pathContext.type===t.pathType.Circle){var j;t.path.moveTemporary([b.pathContext],[b.offset],function(){j=t.path.mirror(b.pathContext,!1,!0)}),t.path.moveRelative(j,L),s.circle(j.origin[0],j.origin[1],b.pathContext.radius).stroke(o.stroke)}else m(b)}}),x.map(m)},{byLayers:!1}),s.font(o.fontName).fontSize(o.fontSize),t.model.getAllCaptionsOffset(d).forEach(function(T){var x=t.angle.ofLineInDegrees(T.anchor),c=t.path.mirror(T.anchor,!1,!0);t.path.moveRelative(c,L);var m=T.text,y=[s.widthOfString(m)/2,s.heightOfString(m)/2],O=t.point.middle(c),b=t.point.subtract(O,y);s.rotate(-x,{origin:O}),s.text(m,b[0],b[1]),s.rotate(x,{origin:O})})}}e.toPDF=n})(t.exporter||(t.exporter={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n={};n[t.pathType.Arc]=function(c,m,y,O,b){O.push("A"),x(O,c.radius,m,b,t.angle.ofArcSpan(c)>180,y?c.startAngle>c.endAngle:c.startAngle<c.endAngle)},n[t.pathType.Line]=function(c,m,y,O,b){O.push("L",t.round(m[0],b),t.round(m[1],b))},n[t.pathType.BezierSeed]=function(c,m,y,O,b){T(O,c,b,y)};function s(c){return t.point.mirror(c,!1,!0)}function u(c){var m=t.angle.ofArcSpan(c);c.startAngle=t.angle.noRevolutions(c.startAngle),c.endAngle=c.startAngle+m}function l(c,m,y){function O(he){return t.point.add(he,m)}for(var b=c.links[0],j=O(s(b.endPoints[b.reversed?1:0])),F=["M",t.round(j[0],y),t.round(j[1],y)],k=0;k<c.links.length;k++){var _=c.links[k],ue=_.walkedPath.pathContext,re=n[ue.type];if(re){var de;t.path.moveTemporary([ue],[_.walkedPath.offset],function(){de=t.path.mirror(ue,!1,!0)}),t.path.moveRelative(de,m),re(de,O(s(_.endPoints[_.reversed?0:1])),_.reversed,F,y)}}return c.endless&&F.push("Z"),F.join(" ")}e.chainToSVGPathData=l;function o(c,m,y){return["M",t.round(c[0],y),t.round(c[1],y)].concat(m)}var i={};i[t.pathType.Line]=function(c,m){return o(c.origin,t.point.rounded(c.end,m),m)},i[t.pathType.Circle]=function(c,m,y){return o(c.origin,L(c.radius,m,y),m)},i[t.pathType.Arc]=function(c,m){u(c);var y=t.point.fromArc(c);if(t.measure.isPointEqual(y[0],y[1]))return i[t.pathType.Circle](c,m);var O=["A"];return x(O,c.radius,y[1],m,t.angle.ofArcSpan(c)>180,c.startAngle>c.endAngle),o(y[0],O,m)},i[t.pathType.BezierSeed]=function(c,m){var y=[];return T(y,c,m),o(c.origin,y,m)};function g(c,m,y,O,b){var j=i[c.type];if(j){var F;t.path.moveTemporary([c],[m],function(){F=t.path.mirror(c,!1,!0)}),t.path.moveRelative(F,y);var k=j(F,O,b);return k.join(" ")}return""}e.pathToSVGPathData=g;function d(c,m,y,O){var b={};return y.unifyBeziers=!0,t.model.findChains(c,function(j,F,k){function _(re,de){var he=g(re.pathContext,re.offset,m,O,de);b[k].push(he)}b[k]=[];function ue(re,de){re.forEach(function(he){if(he.links.length>1){var w=l(he,m,O);b[k].push(w)}else _(he.links[0].walkedPath,de);he.contains&&ue(he.contains,!de)})}ue(j,!0),F.forEach(function(re){return _(re)})},y),b}function r(c){for(var m=[],y=1;y<arguments.length;y++)m[y-1]=arguments[y];var O={fillRule:"evenodd"};typeof m[0]=="boolean"?(O.byLayers=m[0],O.origin=m[1],O.accuracy=m[2]):t.isObject(m[0])&&t.extendObject(O,m[0]);var b={byLayers:O.byLayers,contain:!1};O.fillRule==="nonzero"&&(b.contain={alternateDirection:!0});var j=t.measure.modelExtents(c);O.origin||(O.origin=[-j.low[0],j.high[1]]);var F=d(c,O.origin,b,O.accuracy),k={};for(var _ in F)k[_]=F[_].join(" ");return b.byLayers?k:k[""]}e.toSVGPathData=r;function f(c,m){function y(bn,xn,Bn){Bn===void 0&&(Bn=!1),!Bn&&typeof xn=="string"&&xn.length>0?(xn in w||(w[xn]=[]),w[xn].push(bn)):he.push(bn)}function O(bn){var xn=[];function Bn(Sn,Tn){Tn!==void 0&&xn.push(Sn+":"+Tn)}return Bn("stroke",bn.stroke),Bn("stroke-width",bn.strokeWidth),Bn("fill",bn.fill),xn.join(";")}function b(bn,xn){xn&&t.extendObject(bn,{stroke:xn.stroke,"stroke-width":xn.strokeWidth,fill:xn.fill,style:xn.cssStyle||O(xn),class:xn.className})}function j(bn){if(ue.layerOptions&&ue.layerOptions[bn])return ue.layerOptions[bn];if(bn in e.colors)return{stroke:bn}}function F(bn,xn,Bn,Sn,Tn){Sn===void 0&&(Sn=null),Tn===void 0&&(Tn=!1),bn!=="text"&&b(xn,j(Bn)),ue.scalingStroke||(xn["vector-effect"]="non-scaling-stroke");var Pn=new e.XmlTag(bn,xn);Pn.closingTags=ue.closingTags,Sn&&(Pn.innerText=Sn),y(Pn.toString(),Bn,Tn)}function k(bn){var xn=s(bn);return t.point.scale(xn,ue.scale)}function _(bn,xn){var Bn=t.path.mirror(bn,!1,!0);return t.path.moveRelative(t.path.scale(Bn,ue.scale),xn)}var ue={accuracy:.001,annotate:!1,origin:null,scale:1,stroke:"#000",strokeLineCap:"round",strokeWidth:"0.25mm",fill:"none",fillRule:"evenodd",fontSize:"9pt",useSvgPathOnly:!0,viewBox:!0};t.extendObject(ue,m);var re,de=t.isModel(c);de&&(re=c,re.exporterOptions&&t.extendObject(ue,re.exporterOptions.toSVG));var he=[],w={};if(de)re=c;else if(Array.isArray(c)){var le={};c.forEach(function(bn,xn){le[xn]=bn}),re={paths:le}}else t.isPath(c)&&(re={paths:{modelToMeasure:c}});var V=t.measure.modelExtents(re),Ce=t.model.getAllCaptionsOffset(re);if(Ce.forEach(function(bn){t.measure.increase(V,t.measure.pathExtents(bn.anchor),!0)}),!ue.units){var _e=e.tryGetModelUnits(c);_e&&(ue.units=_e)}var D=e.svgUnit[ue.units];if(D&&ue.viewBox&&(ue.scale*=D.scaleConversion),V&&!ue.origin){var Ie=-V.low[0]*ue.scale;ue.origin=[Ie,V.high[1]*ue.scale]}t.extendObject(m,ue);var Lt={};if(V&&ue.viewBox){var At=t.round(V.width*ue.scale,ue.accuracy),ie=t.round(V.height*ue.scale,ue.accuracy),Ve=[0,0,At,ie],ze=D?D.svgUnitType:"";Lt={width:At+ze,height:ie+ze,viewBox:Ve.join(" ")}}Lt.xmlns="http://www.w3.org/2000/svg";var z=new e.XmlTag("svg",t.extendObject(Lt,ue.svgAttrs));y(z.getOpeningTag(!1));var Dt={id:"svgGroup","stroke-linecap":ue.strokeLineCap,"fill-rule":ue.fillRule,"font-size":ue.fontSize};b(Dt,ue);var v=new e.XmlTag("g",Dt);if(y(v.getOpeningTag(!1)),ue.useSvgPathOnly){var S={byLayers:!0};ue.fillRule==="nonzero"&&(S.contain={alternateDirection:!0});var Ue=d(re,ue.origin,S,ue.accuracy);for(var M in Ue){var Pt=Ue[M].join(" "),hn={d:Pt};M.length>0&&(hn.id=M),F("path",hn,M,null,!0)}}else{let bn=function(Rn,In,On){F("text",{id:Rn+"_text",x:t.round(In[0],ue.accuracy),y:t.round(In[1],ue.accuracy)},On,Rn)},xn=function(Rn,In,On,Xn,Wn,zn,Cn,Dn,Gn){F("path",{id:Rn,"data-route":zn,d:["M",t.round(In,ue.accuracy),t.round(On,ue.accuracy)].concat(Xn).join(" ")},Wn),Dn&&bn(Rn,Cn,Wn)},Bn=function(Rn,In,On,Xn,Wn,zn,Cn){var Dn=L(On,ue.accuracy);xn(Rn,In[0],In[1],Dn,Xn,Wn,In,zn)},Sn=function(Rn,In,On,Xn,Wn){var zn="flow";Oe[t.pathType.Circle]("",new t.paths.Circle(On,Rn.size/2),In,zn,null,!1,null);var Cn=[-1*Rn.size,Rn.size/2],Dn=[Cn,t.point.mirror(Cn,!1,!0)].map(function(Gn){return new t.paths.Line(t.point.add(t.point.rotate(Gn,Wn),Xn),Xn)});Dn.forEach(function(Gn){return Oe[t.pathType.Line]("",Gn,In,zn,null,!1,null)})},Tn=function(Rn,In){Fe.attrs={id:Rn},y(Fe.getOpeningTag(!1),In.layer)},Pn=function(Rn){y(Fe.getClosingTag(),Rn.layer)};var Oe={};Oe[t.pathType.Line]=function(Rn,In,On,Xn,Wn,zn,Cn){var Dn=In.origin,Gn=In.end;F("line",{id:Rn,class:Xn,"data-route":Wn,x1:t.round(Dn[0],ue.accuracy),y1:t.round(Dn[1],ue.accuracy),x2:t.round(Gn[0],ue.accuracy),y2:t.round(Gn[1],ue.accuracy)},On),zn&&bn(Rn,t.point.middle(In),On),Cn&&Sn(Cn,On,In.origin,In.end,t.angle.ofLineInDegrees(In))},Oe[t.pathType.Circle]=function(Rn,In,On,Xn,Wn,zn,Cn){var Dn=In.origin;F("circle",{id:Rn,class:Xn,"data-route":Wn,r:In.radius,cx:t.round(Dn[0],ue.accuracy),cy:t.round(Dn[1],ue.accuracy)},On),zn&&bn(Rn,Dn,On)},Oe[t.pathType.Arc]=function(Rn,In,On,Xn,Wn,zn,Cn){u(In);var Dn=t.point.fromArc(In);if(t.measure.isPointEqual(Dn[0],Dn[1]))Bn(Rn,In.origin,In.radius,On,Wn,zn);else{var Gn=["A"];x(Gn,In.radius,Dn[1],ue.accuracy,t.angle.ofArcSpan(In)>180,In.startAngle>In.endAngle),xn(Rn,Dn[0][0],Dn[0][1],Gn,On,Wn,t.point.middle(In),zn),Cn&&Sn(Cn,On,Dn[1],Dn[0],t.angle.noRevolutions(In.startAngle-90))}},Oe[t.pathType.BezierSeed]=function(Rn,In,On,Xn,Wn,zn,Cn){var Dn=[];T(Dn,In,ue.accuracy),xn(Rn,In.origin[0],In.origin[1],Dn,On,Wn,t.point.middle(In),zn)};var Fe=new e.XmlTag("g"),Et={beforeChildWalk:function(Rn){return Tn(Rn.childId,Rn.childModel),!0},onPath:function(Rn){var In=Oe[Rn.pathContext.type];if(In){var On=t.point.add(k(Rn.offset),ue.origin);In(Rn.pathId,_(Rn.pathContext,On),Rn.layer,null,Rn.route,ue.annotate,ue.flow)}},afterChildWalk:function(Rn){Pn(Rn.childModel)}};Tn("0",re),t.model.walk(re,Et);for(var oe in w){var kt=new e.XmlTag("g",{id:oe});b(kt.attrs,j(oe));for(var Ne=0;Ne<w[oe].length;Ne++)kt.innerText+=w[oe][Ne];kt.innerTextEscaped=!0,y(kt.toString())}Pn(re)}var _n=Ce.map(function(bn){var xn=_(bn.anchor,ue.origin),Bn=t.point.rounded(t.point.middle(xn),ue.accuracy),Sn=new e.XmlTag("text",{"alignment-baseline":"middle","text-anchor":"middle",transform:"rotate(".concat(t.angle.ofLineInDegrees(xn),",").concat(Bn[0],",").concat(Bn[1],")"),x:Bn[0],y:Bn[1]});return b(Sn.attrs,j(bn.layer)),Sn.innerText=bn.text,Sn.toString()});if(_n.length){var wn=new e.XmlTag("g",{id:"captions"});b(wn.attrs,j(wn.attrs.id)),wn.innerText=_n.join(""),wn.innerTextEscaped=!0,y(wn.toString())}return y(v.getClosingTag()),y(z.getClosingTag()),he.join("")}e.toSVG=f;function L(c,m,y){var O=t.round(c,m),b=["m",-O,0];function j(F){b.push("a"),x(b,O,[2*O*F,0],m,!1,!y)}return j(1),j(-1),b.push("z"),b}function T(c,m,y,O){if(m.controls.length===1)c.push("Q",t.round(m.controls[0][0],y),t.round(m.controls[0][1],y));else{var b=O?[m.controls[1],m.controls[0]]:m.controls;c.push("C",t.round(b[0][0],y),t.round(b[0][1],y),t.round(b[1][0],y),t.round(b[1][1],y))}var j=O?m.origin:m.end;c.push(t.round(j[0],y),t.round(j[1],y))}function x(c,m,y,O,b,j){var F=t.round(m,O),k=y;c.push(F,F),c.push(0),c.push(b?1:0),c.push(j?0:1),c.push(t.round(k[0],O),t.round(k[1],O))}e.svgUnit={},e.svgUnit[t.unitType.Inch]={svgUnitType:"in",scaleConversion:1},e.svgUnit[t.unitType.Millimeter]={svgUnitType:"mm",scaleConversion:1},e.svgUnit[t.unitType.Centimeter]={svgUnitType:"cm",scaleConversion:1},e.svgUnit[t.unitType.Foot]={svgUnitType:"in",scaleConversion:12},e.svgUnit[t.unitType.Meter]={svgUnitType:"cm",scaleConversion:100}})(t.exporter||(t.exporter={}))})(MakerJs||(MakerJs={})),(function(t){(function(e){function n(s,u){u===void 0&&(u={});var l={};function o(F){l.paths||(l.paths={}),l.paths["p_"+ ++T]=F}function i(F){l.models||(l.models={}),l.models["p_"+ ++T]=F}function g(F,k,_){k===void 0&&(k=0),_===void 0&&(_=F.from),k<0&&(k=k+F.data.length);var ue=t.point.mirror([F.data[0+k],F.data[1+k]],!1,!0);return F.absolute?ue:t.point.add(ue,_)}function d(F,k){return t.measure.isPointEqual(F.from,k)||o(new t.paths.Line(F.from,k)),k}var r={};r.M=function(F){if(f=g(F),F.data.length>2){F.from=f;for(var k=2;k<F.data.length;k=k+2)F.from=d(F,g(F,k));return F.from}else return f},r.Z=function(F){return d(F,f)},r.H=function(F){var k=t.point.clone(F.from);return F.absolute?k[0]=F.data[0]:k[0]+=F.data[0],d(F,k)},r.V=function(F){var k=t.point.clone(F.from);return F.absolute?k[1]=-F.data[0]:k[1]-=F.data[0],d(F,k)},r.L=function(F){for(var k,_=0;_<F.data.length;_=_+2)k=g(F,_),F.from=d(F,k);return F.from},r.A=function(F){for(var k,_,ue,re,de,he,w,le,V,Ce,_e,D=0;D<F.data.length;D=D+7)k=F.data[0+D],_=F.data[1+D],ue=F.data[2+D],re=F.data[3+D]===1,de=F.data[4+D]===1,he=g(F,5+D),w=k!==_,le=new t.paths.Line(F.from,t.point.rotate(he,ue,F.from)),w&&(le=t.path.distort(le,1,k/_)),V=new t.paths.Arc(le.origin,le.end,k,re,de),w?(k<V.radius&&(Ce=V.radius/k,k*=Ce,_*=Ce),_e=new t.models.EllipticArc(V,1,_/k,u.bezierAccuracy),t.model.rotate(_e,-ue,F.from),i(_e)):(t.path.rotate(V,-ue,F.from),o(V)),F.from=he;return he},r.C=function(F){for(var k,_,ue=F.from,re,de=0;de<F.data.length;de=de+6)F.from=ue,k=g(F,0+de,ue),_=g(F,2+de,ue),re=g(F,4+de,ue),i(new t.models.BezierCurve(ue,k,_,re,u.bezierAccuracy)),ue=re;return re},r.S=function(F){var k,_,ue,re=F.from,de;F.prev.command==="C"||F.prev.command==="S"?_=g(F.prev,-4):_=F.from;for(var he=0;he<F.data.length;he=he+4)F.from=re,k=t.point.rotate(_,180,re),ue=g(F,0+he),de=g(F,2+he),i(new t.models.BezierCurve(re,k,ue,de,u.bezierAccuracy)),re=de,_=ue;return de},r.Q=function(F){for(var k,_=F.from,ue,re=0;re<F.data.length;re=re+4)F.from=_,k=g(F,0+re),ue=g(F,2+re),i(new t.models.BezierCurve(_,k,ue,u.bezierAccuracy)),_=ue;return ue},r.T=function(F){var k,_,ue;F.prev.command==="Q"?(_=g(F.prev,-4),k=t.point.rotate(_,180,F.from)):F.prev.command==="T"?(F.prev.absolute=!0,k=g(F.prev,-2)):k=F.from;for(var re=0;re<F.data.length;re=re+2)ue=g(F,0+re),i(new t.models.BezierCurve(F.from,k,ue,u.bezierAccuracy)),F.from=ue,k=t.point.rotate(k,180,F.from);var de=t.point.mirror(k,!1,!0);return F.data.push.apply(F.data,de),ue};for(var f=[0,0],L=[0,0],T=0,x,c=/([achlmqstvz])([0-9e\.,\+-\s]*)/ig,m;(m=c.exec(s))!==null;){m.index===c.lastIndex&&c.lastIndex++;var y=m[1],O=m[2],b={command:y.toUpperCase(),data:[],from:L,prev:x};y===b.command&&(b.absolute=!0),b.data=e.parseNumericList(O);var j=r[b.command];j&&(L=j(b)),x=b}return l}e.fromSVGPathData=n})(t.importer||(t.importer={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(y,O){var b=new t.measure.Atlas(y),j=t.measure.modelExtents(y,b),F=j.high[1],k=[],_={},ue={beforeChildWalk:function(V){var Ce=V.childModel,_e=b.modelMap[V.routeKey];if(_e){var D=t.measure.augment(_e);t.model.originate(Ce,[D.center[0],F*O]);var Ie=Ce.origin[0]-j.low[0];_[V.childId]=Ie;var Lt=Ie/j.width;return k.push({childId:V.childId,xRatio:Lt}),!1}}};t.model.walk(y,ue),k.sort(function(V,Ce){return V.xRatio-Ce.xRatio});var re=k[0],de=k[k.length-1];if(k.length>1){var he=re.xRatio,w=de.xRatio,le=w-he;k.forEach(function(V){return V.xRatio=(V.xRatio-he)/le})}return{cpa:k,firstX:_[re.childId],lastX:j.width-_[de.childId]}}function s(y,O,b){O.forEach(function(j){var F=y.models[j.childId];F.origin=j.origin,b&&t.model.rotate(F,j.angle,j.origin)})}var u={};u[t.pathType.Arc]=function(y,O,b){var j=t.angle.ofArcSpan(y);b.forEach(function(F){return F.angle=O?y.endAngle-F.xRatio*j-90:y.startAngle+F.xRatio*j+90})},u[t.pathType.Line]=function(y,O,b){var j=t.angle.ofLineInDegrees(y);b.forEach(function(F){return F.angle=j})};function l(y,O,b,j,F,k){b===void 0&&(b=0),j===void 0&&(j=!1),F===void 0&&(F=!1),k===void 0&&(k=!0);var _=n(y,b),ue=_.cpa,re=O;if(F&&ue.length>1){var de=t.measure.pathLength(O);_.firstX+_.lastX<de&&(re=t.path.clone(O),t.path.alterLength(re,-_.firstX,!0),t.path.alterLength(re,-_.lastX))}ue.forEach(function(w){return w.origin=t.point.middle(re,j?1-w.xRatio:w.xRatio)});var he=u[re.type];return he&&he(re,j,ue),s(y,ue,k),y}e.childrenOnPath=l;function o(y,O){var b=new t.paths.Arc([0,0],0,0,0);return y.map(function(j,F){var k;return F===0?k=t.angle.ofPointInDegrees(j,y[F+1])+90:F===y.length-1?k=t.angle.ofPointInDegrees(y[F-1],j)+90:(b.origin=j,b.startAngle=t.angle.ofPointInDegrees(j,y[F+1]),b.endAngle=t.angle.ofPointInDegrees(j,y[F-1]),k=t.angle.ofArcMiddle(b)),k+O})}function i(y,O,b,j,F,k){b===void 0&&(b=0),j===void 0&&(j=!1),F===void 0&&(F=!1),k===void 0&&(k=!0);var _=n(y,b),ue=_.cpa,re=O.pathLength,de;if(ue.length>1){F&&(re-=_.firstX+_.lastX);var he=ue.map(function(Ce){return(j?1-Ce.xRatio:Ce.xRatio)*re}),w;if(j&&he.reverse(),w=he.map(function(Ce,_e){return Math.abs(Ce-(_e==0?0:he[_e-1]))}),F?w[0]+=j?_.lastX:_.firstX:w.shift(),de=t.chain.toPoints(O,w),de.length<ue.length){var le=O.links[O.links.length-1];de.push(le.endPoints[le.reversed?0:1])}F&&de.shift()}else de=t.chain.toPoints(O,.5*re),de.length=2,de.push(O.links[O.links.length-1].endPoints[O.links[O.links.length-1].reversed?0:1]);j&&de.reverse();var V=o(de,-90);return ue.length>1?ue.forEach(function(Ce,_e){Ce.angle=V[_e],Ce.origin=de[_e]}):(ue[0].angle=V[1],ue[0].origin=de[1]),s(y,ue,k),y}e.childrenOnChain=i;function g(y,O,b,j){var F={},k,_;t.isModel(y)?(k=F.models={},_=t.model.rotate):(k=F.paths={},_=t.path.rotate);for(var ue=0;ue<O;ue++)k[ue]=_(t.cloneObject(y),ue*b,j);return F}e.cloneToRadial=g;function d(y,O,b,j){var F={},k,_,ue;t.isModel(O)?(_=t.measure.modelExtents,k=F.models={},ue=t.model.move):(_=t.measure.pathExtents,k=F.paths={},ue=t.path.move);for(var re=_(O),de=re.high[y]-re.low[y],he=0;he<b;he++){var w=[0,0];w[y]=he*(de+j),k[he]=ue(t.cloneObject(O),w)}return F}function r(y,O,b){return b===void 0&&(b=0),d(1,y,O,b)}e.cloneToColumn=r;function f(y,O,b){return b===void 0&&(b=0),d(0,y,O,b)}e.cloneToRow=f;function L(y,O,b,j){var F=T(j);return r(f(y,O,F[0]),b,F[1])}e.cloneToGrid=L;function T(y){return Array.isArray(y)?y:[y,y]}function x(y,O,b,j){var F;t.isModel(y)?F=y:F={paths:{0:y}};for(var k=j(F),_={models:{}},ue=0;ue<b;ue++){var re=ue%2;_.models[ue]=t.model.move(f(y,O+re,k.xMargin),[re*k.x,ue*k.y])}return _}function c(y,O,b,j){var F=T(j);function k(_){var ue=t.measure.modelExtents(_),re=F[0]||0,de=F[1]||0;return{x:(ue.width+re)/-2,y:ue.height+de,xMargin:re}}return x(y,O,b,k)}e.cloneToBrick=c;function m(y,O,b,j){j===void 0&&(j=0);function F(k){var _=t.measure.boundingHexagon(k),ue=2*t.solvers.equilateralAltitude(_.radius),re=ue+j;return{x:re/-2,y:t.solvers.equilateralAltitude(re),xMargin:j}}return x(y,O,b,F)}e.cloneToHoneycomb=m})(t.layout||(t.layout={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=!1;function s(){if(!n)try{var O=Bezier.prototype;n=!0}catch{throw"Bezier library not found. If you are using Node, try running 'npm install' or if you are in the browser, download http://pomax.github.io/bezierjs/bezier.js to your website and add a script tag."}}var u;function l(O){var b=[O.origin];b.push.apply(b,O.controls),b.push(O.end);var j=b.map(function(F){var k={x:F[0],y:F[1]};return k});return u?Bezier.apply(u,j):(s(),u=new Bezier(j)),u}function o(O,b){var j=O.points.map(d),F=new m(j);return F}function i(O){var b=[];return b.push.apply(b,O.origin),b.push.apply(b,O.controls[0]),O.controls.length>1&&b.push.apply(b,O.controls[1]),b.push.apply(b,O.end),s(),new Bezier(b)}function g(O){var b=O.extrema().values.map(function(j){return t.round(j)}).filter(function(j,F,k){return k.indexOf(j)===F}).sort();return b.length===0?[0,1]:(b[0]!==0&&b.unshift(0),b[b.length-1]!==1&&b.push(1),b)}function d(O){return[O.x,O.y]}var r=(function(){function O(b,j,F){this.t=j,this.point=t.point.add(d(b.get(j)),F)}return O})();function f(O,b,j,F,k){var _=j-b;function ue(re){var de=b+_*re,he=d(O.get(de)),w=t.point.middle(F,k?1-re:re);return t.measure.pointDistance(w,he)}return ue(.25)+ue(.75)}function L(O,b,j,F){for(var k,_,ue=new r(O,b),re=new r(O,j),de=re,he=ue,w=0,le=de,V;w<100;){var Ce=d(O.get((ue.t+le.t)/2));try{k=new t.paths.Arc(ue.point,Ce,le.point)}catch{if(_)return _;break}V===void 0&&(V=t.measure.isPointEqual(ue.point,t.point.fromAngleOnCircle(k.endAngle,k)));var _e=f(O,b,le.t,k,V);if(_e<=F?(k.bezierData={startT:b,endT:le.t},he=le,_=k):de=le,he.t===de.t||_&&_!==k&&t.angle.ofArcSpan(k)-t.angle.ofArcSpan(_)<.5)return _;w++,le=new r(O,(he.t+de.t)/2)}var D=new t.paths.Line(ue.point,le.point);return D.bezierData={startT:b,endT:le.t},D}function T(O,b,j,F,k,_){for(var ue=0,re;F<k;){re=L(b,F,k,j),F=re.bezierData.endT;var de=t.measure.pathLength(re);de<1e-4||(O.paths[re.type+"_"+(_+ue)]=re,ue++)}return ue}function x(O,b,j,F,k){var _=l(O.seed),ue=[b.bezierData.startT,b.bezierData.endT].map(function(w){return new r(_,w,F)}),re=j.slice(),de=re.map(function(w){return t.measure.pointDistance(w,ue[0].point)});de[0]>de[1]&&re.reverse();for(var he=2;he--;)if(!t.measure.isPointEqual(re[he],ue[he].point,k))return null;return b.bezierData}function c(O,b,j,F,k){var _=[b.links[0],b.links[b.links.length-1]];_[0].walkedPath.pathContext.bezierData.startT>_[1].walkedPath.pathContext.bezierData.startT&&(t.chain.reverse(b),_.reverse());var ue=_.map(function(de){return x(O,de.walkedPath.pathContext,de.endPoints,de.walkedPath.offset,k)}),re={startT:ue[0]?ue[0].startT:null,endT:ue[1]?ue[1].endT:null};return re.startT!==null&&re.endT!==null?re:b.links.length>2?(re.startT===null&&(F(b.links[0].walkedPath.pathContext,j,!0),re.startT=b.links[1].walkedPath.pathContext.bezierData.startT),re.endT===null&&(F(b.links[b.links.length-1].walkedPath.pathContext,j,!0),re.endT=b.links[b.links.length-2].walkedPath.pathContext.bezierData.endT),re):null}var m=(function(){function O(){for(var b=[],j=0;j<arguments.length;j++)b[j]=arguments[j];switch(this.type=t.pathType.BezierSeed,b.length){case 1:var F=b[0];this.origin=F[0],F.length===3?(this.controls=[F[1]],this.end=F[2]):F.length===4?(this.controls=[F[1],F[2]],this.end=F[3]):this.end=F[1];break;case 3:Array.isArray(b[1])?this.controls=b[1]:this.controls=[b[1]],this.end=b[2];break;case 4:this.controls=[b[1],b[2]],this.end=b[3];break}}return O})(),y=(function(){function O(){for(var b=[],j=0;j<arguments.length;j++)b[j]=arguments[j];this.type=O.typeName;var F=Array.isArray(b[0]);switch(b.length){case 2:if(F)this.accuracy=b[1];else{this.seed=b[0],this.accuracy=b[1];break}case 1:if(F){var k=b[0];this.seed=new m(k)}else this.seed=b[0];break;default:switch(b.length){case 4:if(t.isPoint(b[3])){this.seed=new m(b);break}else this.accuracy=b[3];case 3:F&&(this.seed=new m(b.slice(0,3)));break;case 5:this.accuracy=b[4],this.seed=new m(b.slice(0,4));break}break}if(this.paths={},t.measure.isBezierSeedLinear(this.seed)){var _=new t.paths.Line(t.point.clone(this.seed.origin),t.point.clone(this.seed.end));_.bezierData={startT:0,endT:1},this.paths={0:_};return}var ue=i(this.seed),re=g(ue);if(this.paths={},!this.accuracy){var de=ue.length();this.accuracy=de/100}for(var he=0,w=1;w<re.length;w++){var le=re[w]-re[w-1];he+=T(this,ue,this.accuracy*le,re[w-1],re[w],he)}}return O.getBezierSeeds=function(b,j){j===void 0&&(j={}),j.shallow=!0,j.unifyBeziers=!1;var F={},k=function(_,ue,re){re===void 0&&(re=!1),F[ue]||(F[ue]=[]),F[ue].push(re?t.path.clone(_):_)};return t.model.findChains(b,function(_,ue,re){_.forEach(function(de){var he=c(b,de,re,k,j.pointMatchingDistance);if(he){var w=l(b.seed),le=w.split(he.startT,he.endT);k(o(le),re)}else de.links.forEach(function(V){return k(V.walkedPath.pathContext,re,!0)})}),ue.forEach(function(de){if(de.pathContext.type===t.pathType.Line)return k(de.pathContext,re,!0);var he=x(b,de.pathContext,t.point.fromPathEnds(de.pathContext),de.offset,j.pointMatchingDistance);if(he){var w=l(b.seed),le=w.split(he.startT,he.endT);k(o(le),re)}else k(de.pathContext,re,!0)})},j),j.byLayers?F:F[""]},O.computeLength=function(b){var j=i(b);return j.length()},O.computePoint=function(b,j){var F=l(b),k=F.compute(j);return d(k)},O.typeName="BezierCurve",O})();e.BezierCurve=y,y.metaParameters=[{title:"points",type:"select",value:[[[100,0],[-80,-60],[100,220],[100,60]],[[0,0],[100,0],[100,100]],[[0,0],[20,0],[80,100],[100,100]]]}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=45;function s(g){return 4*(Math.tan(g/4)/3)}function u(g){var d=t.angle.ofArcSpan(g),r=s(t.angle.toRadians(d)),f=[g.radius,g.radius*r],L=t.point.rotate(t.point.mirror(f,!1,!0),d,[0,0]);return[f,L].map(function(T){return t.point.add(g.origin,t.point.rotate(T,g.startAngle,[0,0]))})}function l(g){var d=t.angle.ofArcSpan(g);if(d<=90){var r=t.point.fromPathEnds(g),f=u(g);return{type:t.pathType.BezierSeed,origin:r[0],controls:f,end:r[1]}}return null}var o=(function(){function g(){for(var d=[],r=0;r<arguments.length;r++)d[r]=arguments[r];var f=this;this.models={};var L=360/n,T,x=t.isPoint(d[0]),c=function(m){switch(m){case 2:x&&(f.origin=d[0]);break;case 3:f.origin=d[0];break;case 4:f.origin=[d[0],d[1]];break}for(var y=360/L,O=new t.paths.Arc([0,0],1,0,y),b=0;b<L;b++){var j=l(O);switch(m){case 1:j=t.path.scale(j,d[0]);break;case 2:x?j=t.path.scale(j,d[1]):j=t.path.distort(j,d[0],d[1]);break;case 3:j=t.path.distort(j,d[1],d[2]);break;case 4:j=t.path.distort(j,d[2],d[3]);break}f.models["Curve_"+(1+b)]=new e.BezierCurve(j,T),O.startAngle+=y,O.endAngle+=y}};switch(d.length){case 2:c(2);break;case 3:x?c(3):(T=d[2],c(2));break;case 4:x?(T=d[3],c(3)):c(4);break;case 5:T=d[4],c(4);break}}return g})();e.Ellipse=o,o.metaParameters=[{title:"radiusX",type:"range",min:1,max:50,value:50},{title:"radiusY",type:"range",min:1,max:50,value:25}];var i=(function(){function g(){for(var d=[],r=0;r<arguments.length;r++)d[r]=arguments[r];this.models={};var f,L,T,x;t.isPathArc(d[0])?(f=d[0],T=d[1],x=d[2],L=d[3]):(f=new t.paths.Arc([0,0],1,d[0],d[1]),T=d[2],x=d[3],L=d[4]);for(var c=t.angle.ofArcSpan(f),m=Math.ceil(c/n),y=c/m,O=t.path.clone(f),b=0;b<m;b++){O.startAngle=f.startAngle+b*y,O.endAngle=O.startAngle+y;var j=l(O);j=t.path.distort(j,T,x),this.models["Curve_"+(1+b)]=new e.BezierCurve(j,L)}}return g})();e.EllipticArc=i,i.metaParameters=[{title:"startAngle",type:"range",min:0,max:90,value:0},{title:"endAngle",type:"range",min:90,max:360,value:180},{title:"radiusX",type:"range",min:1,max:50,value:50},{title:"radiusY",type:"range",min:1,max:50,value:25}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){function n(u){var l;if(Array.isArray(u)){if(t.isPoint(u[0]))return u;l=u}else l=t.importer.parseNumericList(u);for(var o=[],i=0;i<l.length;i+=2)o.push([l[i],l[i+1]]);return o}var s=(function(){function u(){for(var l=[],o=0;o<arguments.length;o++)l[o]=arguments[o];var i=this;this.paths={};var g,d;switch(l.length){case 1:g=!0,d=n(l[0]);break;case 2:g=l[0],d=n(l[1]);break}for(var r=function(L,T,x){x===void 0&&(x=!1),!(x&&t.measure.pointDistance(d[L],d[T])==0)&&(i.paths["ShapeLine"+f]=new t.paths.Line(d[L],d[T]))},f=1;f<d.length;f++)r(f-1,f);g&&d.length>2&&r(d.length-1,0,!0)}return u})();e.ConnectTheDots=s,s.metaParameters=[{title:"closed",type:"bool",value:!0},{title:"points",type:"select",value:[[[0,0],[40,40],[60,20],[100,100],[60,60],[40,80]],[[0,0],[100,0],[50,87]],[-10,0,10,0,0,20],"-10 0 10 0 0 20"]}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o,i){this.paths={},this.paths=new e.ConnectTheDots(!0,s.getPoints(u,l,o,i)).paths}return s.circumscribedRadius=function(u,l){return u/Math.cos(l/2)},s.getPoints=function(u,l,o,i){o===void 0&&(o=0),i===void 0&&(i=!1);var g=[],d=t.angle.toRadians(o),r=2*Math.PI/u;i&&(l=s.circumscribedRadius(l,r));for(var f=0;f<u;f++)g.push(t.point.fromPolar(r*f+d,l));return g},s})();e.Polygon=n,n.metaParameters=[{title:"number of sides",type:"range",min:3,max:24,value:6},{title:"radius",type:"range",min:1,max:100,value:50},{title:"offset angle",type:"range",min:0,max:180,value:0},{title:"radius on flats (vs radius on vertexes)",type:"bool",value:!1}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o){this.paths={};for(var i=0;i<l.length;i++){var g=o?o[i]:i.toString();this.paths[g]=new t.paths.Circle(l[i],u)}}return s})();e.Holes=n,n.metaParameters=[{title:"holeRadius",type:"range",min:.1,max:10,step:.1,value:1},{title:"points",type:"select",value:[[[0,0],[10,10],[20,20],[30,30],[40,40],[50,50],[60,60],[70,70],[80,80]],[[0,0],[0,25],[0,50],[0,75],[0,100],[25,50],[50,50],[75,50],[100,100],[100,75],[100,50],[100,25],[100,0]]]}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o,i){i===void 0&&(i=0),this.paths={};var g=e.Polygon.getPoints(o,u,i),d=g.map(function(r,f){return"bolt "+f});this.paths=new e.Holes(l,g,d).paths}return s})();e.BoltCircle=n,n.metaParameters=[{title:"bolt circle radius",type:"range",min:1,max:100,value:50},{title:"hole radius",type:"range",min:1,max:50,value:5},{title:"bolt count",type:"range",min:3,max:24,value:12},{title:"offset angle",type:"range",min:0,max:180,value:0}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o){this.paths={};var i=[[0,0],[u,0],[u,l],[0,l]],g=["BottomLeft_bolt","BottomRight_bolt","TopRight_bolt","TopLeft_bolt"];this.paths=new e.Holes(o,i,g).paths}return s})();e.BoltRectangle=n,n.metaParameters=[{title:"width",type:"range",min:1,max:100,value:100},{title:"height",type:"range",min:1,max:100,value:50},{title:"hole radius",type:"range",min:1,max:50,value:5}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o,i,g){i===void 0&&(i=0),g===void 0&&(g=!1),this.paths={};var d=Math.min(l,u)/2,r;switch(i){case-1:case 1:r=d/2;break;case 0:default:r=d*Math.SQRT2/2;break}o=Math.min(o,r);var f,L,T,x,c;switch(i){case-1:f=0,L=o,T=0,x=o*2,c=[180,0,0,180];break;case 1:f=o,L=0,T=o*2,x=0,c=[270,270,90,90];break;case 0:default:f=L=o/Math.SQRT2,T=x=f*2,c=[225,315,45,135];break}g?(this.paths.Left=new t.paths.Line([0,0],[0,l-x]),this.paths.Right=new t.paths.Line([u,0],[u,l-x])):(this.paths.Left=new t.paths.Line([0,x],[0,l-x]),this.paths.Right=new t.paths.Line([u,x],[u,l-x]),this.paths.Bottom=new t.paths.Line([T,0],[u-T,0]),this.paths.BottomLeft=new t.paths.Arc([f,L],o,c[0]-90,c[0]+90),this.paths.BottomRight=new t.paths.Arc([u-f,L],o,c[1]-90,c[1]+90)),this.paths.TopRight=new t.paths.Arc([u-f,l-L],o,c[2]-90,c[2]+90),this.paths.TopLeft=new t.paths.Arc([f,l-L],o,c[3]-90,c[3]+90),this.paths.Top=new t.paths.Line([T,l],[u-T,l])}return s})();e.Dogbone=n,n.metaParameters=[{title:"width",type:"range",min:1,max:100,value:50},{title:"height",type:"range",min:1,max:100,value:100},{title:"radius",type:"range",min:0,max:50,value:5},{title:"style",type:"select",value:[0,1,-1]},{title:"bottomless",type:"bool",value:!1}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o,i){this.paths={};var g=u/2;o<0&&(o=0),o===void 0&&(o=g),o=Math.min(o,g),o=Math.min(o,l);var d=Math.max(g-o,0),r=Math.max(l-o,0);i||(this.paths.Bottom=new t.paths.Line([-g,0],[g,0])),r&&(this.paths.Left=new t.paths.Line([-g,0],[-g,r]),this.paths.Right=new t.paths.Line([g,0],[g,r])),o>0&&(this.paths.TopLeft=new t.paths.Arc([-d,r],o,90,180),this.paths.TopRight=new t.paths.Arc([d,r],o,0,90)),d&&(this.paths.Top=new t.paths.Line([-d,l],[d,l]))}return s})();e.Dome=n,n.metaParameters=[{title:"width",type:"range",min:1,max:100,value:50},{title:"height",type:"range",min:1,max:100,value:100},{title:"radius",type:"range",min:0,max:50,value:25},{title:"bottomless",type:"bool",value:!1}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];this.paths={};var o,i,g=0;switch(u.length){case 3:o=u[0],i=u[1],g=u[2];break;case 2:g=u[1];case 1:var d=t.measure.modelExtents(u[0]);this.origin=t.point.subtract(d.low,[g,g]),o=d.high[0]-d.low[0]+2*g,i=d.high[1]-d.low[1]+2*g;break}var r=Math.min(i,o)/2;g=Math.min(g,r);var f=o-g,L=i-g;g>0&&(this.paths.BottomLeft=new t.paths.Arc([g,g],g,180,270),this.paths.BottomRight=new t.paths.Arc([f,g],g,270,0),this.paths.TopRight=new t.paths.Arc([f,L],g,0,90),this.paths.TopLeft=new t.paths.Arc([g,L],g,90,180)),f-g>0&&(this.paths.Bottom=new t.paths.Line([g,0],[f,0]),this.paths.Top=new t.paths.Line([f,i],[g,i])),L-g>0&&(this.paths.Right=new t.paths.Line([o,g],[o,L]),this.paths.Left=new t.paths.Line([0,L],[0,g]))}return s})();e.RoundRectangle=n,n.metaParameters=[{title:"width",type:"range",min:1,max:100,value:50},{title:"height",type:"range",min:1,max:100,value:100},{title:"radius",type:"range",min:0,max:50,value:11}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l){this.paths={},this.paths=new e.RoundRectangle(u,l,Math.min(l/2,u/2)).paths}return s})();e.Oval=n,n.metaParameters=[{title:"width",type:"range",min:1,max:100,value:50},{title:"height",type:"range",min:1,max:100,value:100}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o,i,g,d){g===void 0&&(g=!1),d===void 0&&(d=!1);var r=this;this.paths={};var f;if(d&&(f={models:{}},this.models={Caps:f}),!(i<=0||o<=0)&&(u=t.angle.noRevolutions(u),l=t.angle.noRevolutions(l),t.round(u-l)!=0)){l<u&&(l+=360);var L=function(O,b,j,F){var k;return d?(k={paths:{}},f.models[O]=k):k=r,k.paths[O]=new t.paths.Arc(t.point.fromPolar(t.angle.toRadians(b),o),i,b+j,b+F)},T=function(O,b){return r.paths[O]=new t.paths.Arc([0,0],o+b,u,l)};T("Outer",i);var x=o-i>0;x&&T("Inner",-i);var c=[];c.push(L("StartCap",u,180,0)),c.push(L("EndCap",l,0,180));var m=t.measure.pointDistance(c[0].origin,c[1].origin);if(m/2<i){var y=t.path.intersection(c[0],c[1]);y&&((!x||!g)&&(c[0].startAngle=y.path1Angles[0],c[1].endAngle=y.path2Angles[0]),!g&&x&&y.intersectionPoints.length==2&&(L("StartCap2",u,180,0).endAngle=y.path1Angles[1],L("EndCap2",l,0,180).startAngle=y.path2Angles[1]+360))}}}return s})();e.OvalArc=n,n.metaParameters=[{title:"start angle",type:"range",min:-360,max:360,step:1,value:180},{title:"end angle",type:"range",min:-360,max:360,step:1,value:0},{title:"sweep",type:"range",min:0,max:100,step:1,value:50},{title:"radius",type:"range",min:0,max:100,step:1,value:15},{title:"self intersect",type:"bool",value:!1}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];this.paths={};var o,i;if(u.length===2&&!t.isObject(u[0]))o=u[0],i=u[1];else{var g=0,d;t.isModel(u[0])?(d=t.measure.modelExtents(u[0]),u.length===2&&(g=u[1])):d=u[0],this.origin=t.point.subtract(d.low,[g,g]),o=d.high[0]-d.low[0]+2*g,i=d.high[1]-d.low[1]+2*g}this.paths=new e.ConnectTheDots(!0,[[0,0],[o,0],[o,i],[0,i]]).paths}return s})();e.Rectangle=n,n.metaParameters=[{title:"width",type:"range",min:1,max:100,value:50},{title:"height",type:"range",min:1,max:100,value:100}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l){this.paths={};var o={Ring_outer:u,Ring_inner:l};for(var i in o){var g=o[i];g===void 0||g<=0||(this.paths[i]=new t.paths.Circle(t.point.zero(),g))}}return s})();e.Ring=n,n.metaParameters=[{title:"outer radius",type:"range",min:0,max:100,step:1,value:50},{title:"inner radius",type:"range",min:0,max:100,step:1,value:20}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o){this.paths={};var i=new t.paths.Arc([0,0],u,0,360),g=new t.paths.Arc([l,0],o,0,360),d=t.solvers.circleTangentAngles(i,g);d?(d=d.sort(function(r,f){return r-f}),i.startAngle=d[0],i.endAngle=d[1],g.startAngle=d[1],g.endAngle=d[0],this.paths.Left=i,this.paths.Right=g,this.paths.Top=new t.paths.Line(t.point.fromAngleOnCircle(d[0],i),t.point.fromAngleOnCircle(d[0],g)),this.paths.Bottom=new t.paths.Line(t.point.fromAngleOnCircle(d[1],i),t.point.fromAngleOnCircle(d[1],g))):this.paths.Belt=new t.paths.Circle(Math.max(u,o))}return s})();e.Belt=n,n.metaParameters=[{title:"left radius",type:"range",min:0,max:100,value:30},{title:"distance between centers",type:"range",min:0,max:100,value:50},{title:"right radius",type:"range",min:0,max:100,value:15}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l){this.paths={};function o(x,c){return x+(c*c-x*x)/(2*x)}var i=l/2,g=u/2,d,r,f,L;u>l?(d=o(i,g),r=270,f=360-t.angle.toDegrees(Math.acos(g/d)),L=[0,d]):(d=o(g,i),r=180-t.angle.toDegrees(Math.asin(i/d)),f=180,L=[d,0]);var T=new t.paths.Arc(L,d,r,f);this.paths.curve_start=T,this.paths.curve_end=t.path.moveRelative(t.path.mirror(T,!0,!0),[u,l])}return s})();e.SCurve=n,n.metaParameters=[{title:"width",type:"range",min:1,max:100,value:50},{title:"height",type:"range",min:1,max:100,value:100}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o,i){i===void 0&&(i=!1);var g=this;this.paths={};var d;i&&(d={models:{}},this.models={Caps:d});var r=function(T,x){var c;i?(c={paths:{}},d.models[T]=c):c=g,c.paths[T]=x},f=t.angle.ofPointInDegrees(u,l),L=t.measure.pointDistance(u,l);this.paths.Top=new t.paths.Line([0,o],[L,o]),this.paths.Bottom=new t.paths.Line([0,-o],[L,-o]),r("StartCap",new t.paths.Arc([0,0],o,90,270)),r("EndCap",new t.paths.Arc([L,0],o,270,90)),t.model.rotate(this,f,[0,0]),this.origin=u}return s})();e.Slot=n,n.metaParameters=[{title:"origin",type:"select",value:[[0,0],[10,0],[10,10]]},{title:"end",type:"select",value:[[80,0],[0,30],[10,30]]},{title:"radius",type:"range",min:1,max:50,value:10}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u){this.paths={},this.paths=new e.Rectangle(u,u).paths}return s})();e.Square=n,n.metaParameters=[{title:"side",type:"range",min:1,max:100,value:100}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o,i){i===void 0&&(i=2),this.paths={},o||(o=l*s.InnerRadiusRatio(u,i));for(var g=e.Polygon.getPoints(u,l),d=e.Polygon.getPoints(u,o,180/u),r=[],f=0;f<u;f++)r.push(g[f]),r.push(d[f]);var L=new e.ConnectTheDots(!0,r);this.paths=L.paths,delete L.paths}return s.InnerRadiusRatio=function(u,l){return u>0&&l>1&&l<u/2?Math.cos(Math.PI*l/u)/Math.cos(Math.PI*(l-1)/u):0},s})();e.Star=n,n.metaParameters=[{title:"number of sides",type:"range",min:3,max:24,value:8},{title:"outer radius",type:"range",min:1,max:100,value:50},{title:"inner radius",type:"range",min:0,max:100,value:15},{title:"skip points (when inner radius is zero)",type:"range",min:0,max:12,value:2}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={}));var MakerJs;(function(t){(function(e){var n=(function(){function s(u,l,o,i,g,d,r){i===void 0&&(i=!1),g===void 0&&(g=!1);var f=this;this.models={};var L=0,T,x,c=function(m,y,O,b,j){var F=s.glyphToModel(m,b,d);if(F.origin=[y,0],g&&(F.paths||F.models)){var k=t.measure.modelExtents(F);if(k){var _=k.high[0]-k.low[0];t.model.originate(F,[k.low[0]+_/2,0])}}if(i&&L>0){var ue={},re;T?re={models:{deleted:T,char:x}}:re=x,t.model.combine(re,F,!1,!0,!1,!0,ue),T=ue.out_deleted[1]}f.models[L]=F,L++,x=F};u.forEachGlyph(l,0,0,o,r,c)}return s.glyphToModel=function(u,l,o){var i={},g,d,r=0;function f(x){i.paths||(i.paths={}),i.paths["p_"+ ++r]=x}function L(x){i.models||(i.models={}),i.models["p_"+ ++r]=x}var T=u.getPath(0,0,l);return T.commands.map(function(x,c){var m=[[x.x,x.y],[x.x1,x.y1],[x.x2,x.y2]].map(function(y){if(y[0]!==void 0)return t.point.mirror(y,!1,!0)});switch(x.type){case"M":g=m[0];break;case"Z":m[0]=g;case"L":t.measure.isPointEqual(d,m[0])||f(new t.paths.Line(d,m[0]));break;case"C":L(new e.BezierCurve(d,m[1],m[2],m[0],o));break;case"Q":L(new e.BezierCurve(d,m[1],m[0],o));break}d=m[0]}),i},s})();e.Text=n,n.metaParameters=[{title:"font",type:"font",value:"*"},{title:"text",type:"text",value:"Hello"},{title:"font size",type:"range",min:10,max:200,value:72},{title:"combine",type:"bool",value:!1},{title:"center character origin",type:"bool",value:!1}]})(t.models||(t.models={}))})(MakerJs||(MakerJs={})),MakerJs.version="0.18.2";var Bezier=requireBezierJs();return dist}var distExports=requireDist(),clipper={exports:{}},hasRequiredClipper;function requireClipper(){return hasRequiredClipper||(hasRequiredClipper=1,(function(t){var e={},n=!1;t.exports?(t.exports=e,n=!0):typeof document<"u"?window.ClipperLib=e:self.ClipperLib=e;var s;if(n){var u="chrome";s="Netscape"}else{var u=navigator.userAgent.toString().toLowerCase();s=navigator.appName}var l={};u.indexOf("chrome")!=-1&&u.indexOf("chromium")==-1?l.chrome=1:l.chrome=0,u.indexOf("chromium")!=-1?l.chromium=1:l.chromium=0,u.indexOf("safari")!=-1&&u.indexOf("chrome")==-1&&u.indexOf("chromium")==-1?l.safari=1:l.safari=0,u.indexOf("firefox")!=-1?l.firefox=1:l.firefox=0,u.indexOf("firefox/17")!=-1?l.firefox17=1:l.firefox17=0,u.indexOf("firefox/15")!=-1?l.firefox15=1:l.firefox15=0,u.indexOf("firefox/3")!=-1?l.firefox3=1:l.firefox3=0,u.indexOf("opera")!=-1?l.opera=1:l.opera=0,u.indexOf("msie 10")!=-1?l.msie10=1:l.msie10=0,u.indexOf("msie 9")!=-1?l.msie9=1:l.msie9=0,u.indexOf("msie 8")!=-1?l.msie8=1:l.msie8=0,u.indexOf("msie 7")!=-1?l.msie7=1:l.msie7=0,u.indexOf("msie ")!=-1?l.msie=1:l.msie=0,e.biginteger_used=null;var o;function i(a,Y,A){e.biginteger_used=1,a!=null&&(typeof a=="number"&&typeof Y>"u"?this.fromInt(a):typeof a=="number"?this.fromNumber(a,Y,A):Y==null&&typeof a!="string"?this.fromString(a,256):this.fromString(a,Y))}function g(){return new i(null)}function d(a,Y,A,pe,xe,ae){for(;--ae>=0;){var $e=Y*this[a++]+A[pe]+xe;xe=Math.floor($e/67108864),A[pe++]=$e&67108863}return xe}function r(a,Y,A,pe,xe,ae){for(var $e=Y&32767,qe=Y>>15;--ae>=0;){var jt=this[a]&32767,vn=this[a++]>>15,En=qe*jt+vn*$e;jt=$e*jt+((En&32767)<<15)+A[pe]+(xe&1073741823),xe=(jt>>>30)+(En>>>15)+qe*vn+(xe>>>30),A[pe++]=jt&1073741823}return xe}function f(a,Y,A,pe,xe,ae){for(var $e=Y&16383,qe=Y>>14;--ae>=0;){var jt=this[a]&16383,vn=this[a++]>>14,En=qe*jt+vn*$e;jt=$e*jt+((En&16383)<<14)+A[pe]+xe,xe=(jt>>28)+(En>>14)+qe*vn,A[pe++]=jt&268435455}return xe}s=="Microsoft Internet Explorer"?(i.prototype.am=r,o=30):s!="Netscape"?(i.prototype.am=d,o=26):(i.prototype.am=f,o=28),i.prototype.DB=o,i.prototype.DM=(1<<o)-1,i.prototype.DV=1<<o;var L=52;i.prototype.FV=Math.pow(2,L),i.prototype.F1=L-o,i.prototype.F2=2*o-L;var T="0123456789abcdefghijklmnopqrstuvwxyz",x=new Array,c,m;for(c=48,m=0;m<=9;++m)x[c++]=m;for(c=97,m=10;m<36;++m)x[c++]=m;for(c=65,m=10;m<36;++m)x[c++]=m;function y(a){return T.charAt(a)}function O(a,Y){var A=x[a.charCodeAt(Y)];return A??-1}function b(a){for(var Y=this.t-1;Y>=0;--Y)a[Y]=this[Y];a.t=this.t,a.s=this.s}function j(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0}function F(a){var Y=g();return Y.fromInt(a),Y}function k(a,Y){var A;if(Y==16)A=4;else if(Y==8)A=3;else if(Y==256)A=8;else if(Y==2)A=1;else if(Y==32)A=5;else if(Y==4)A=2;else{this.fromRadix(a,Y);return}this.t=0,this.s=0;for(var pe=a.length,xe=!1,ae=0;--pe>=0;){var $e=A==8?a[pe]&255:O(a,pe);if($e<0){a.charAt(pe)=="-"&&(xe=!0);continue}xe=!1,ae==0?this[this.t++]=$e:ae+A>this.DB?(this[this.t-1]|=($e&(1<<this.DB-ae)-1)<<ae,this[this.t++]=$e>>this.DB-ae):this[this.t-1]|=$e<<ae,ae+=A,ae>=this.DB&&(ae-=this.DB)}A==8&&(a[0]&128)!=0&&(this.s=-1,ae>0&&(this[this.t-1]|=(1<<this.DB-ae)-1<<ae)),this.clamp(),xe&&i.ZERO.subTo(this,this)}function _(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t}function ue(a){if(this.s<0)return"-"+this.negate().toString(a);var Y;if(a==16)Y=4;else if(a==8)Y=3;else if(a==2)Y=1;else if(a==32)Y=5;else if(a==4)Y=2;else return this.toRadix(a);var A=(1<<Y)-1,pe,xe=!1,ae="",$e=this.t,qe=this.DB-$e*this.DB%Y;if($e-- >0)for(qe<this.DB&&(pe=this[$e]>>qe)>0&&(xe=!0,ae=y(pe));$e>=0;)qe<Y?(pe=(this[$e]&(1<<qe)-1)<<Y-qe,pe|=this[--$e]>>(qe+=this.DB-Y)):(pe=this[$e]>>(qe-=Y)&A,qe<=0&&(qe+=this.DB,--$e)),pe>0&&(xe=!0),xe&&(ae+=y(pe));return xe?ae:"0"}function re(){var a=g();return i.ZERO.subTo(this,a),a}function de(){return this.s<0?this.negate():this}function he(a){var Y=this.s-a.s;if(Y!=0)return Y;var A=this.t;if(Y=A-a.t,Y!=0)return this.s<0?-Y:Y;for(;--A>=0;)if((Y=this[A]-a[A])!=0)return Y;return 0}function w(a){var Y=1,A;return(A=a>>>16)!=0&&(a=A,Y+=16),(A=a>>8)!=0&&(a=A,Y+=8),(A=a>>4)!=0&&(a=A,Y+=4),(A=a>>2)!=0&&(a=A,Y+=2),(A=a>>1)!=0&&(a=A,Y+=1),Y}function le(){return this.t<=0?0:this.DB*(this.t-1)+w(this[this.t-1]^this.s&this.DM)}function V(a,Y){var A;for(A=this.t-1;A>=0;--A)Y[A+a]=this[A];for(A=a-1;A>=0;--A)Y[A]=0;Y.t=this.t+a,Y.s=this.s}function Ce(a,Y){for(var A=a;A<this.t;++A)Y[A-a]=this[A];Y.t=Math.max(this.t-a,0),Y.s=this.s}function _e(a,Y){var A=a%this.DB,pe=this.DB-A,xe=(1<<pe)-1,ae=Math.floor(a/this.DB),$e=this.s<<A&this.DM,qe;for(qe=this.t-1;qe>=0;--qe)Y[qe+ae+1]=this[qe]>>pe|$e,$e=(this[qe]&xe)<<A;for(qe=ae-1;qe>=0;--qe)Y[qe]=0;Y[ae]=$e,Y.t=this.t+ae+1,Y.s=this.s,Y.clamp()}function D(a,Y){Y.s=this.s;var A=Math.floor(a/this.DB);if(A>=this.t){Y.t=0;return}var pe=a%this.DB,xe=this.DB-pe,ae=(1<<pe)-1;Y[0]=this[A]>>pe;for(var $e=A+1;$e<this.t;++$e)Y[$e-A-1]|=(this[$e]&ae)<<xe,Y[$e-A]=this[$e]>>pe;pe>0&&(Y[this.t-A-1]|=(this.s&ae)<<xe),Y.t=this.t-A,Y.clamp()}function Ie(a,Y){for(var A=0,pe=0,xe=Math.min(a.t,this.t);A<xe;)pe+=this[A]-a[A],Y[A++]=pe&this.DM,pe>>=this.DB;if(a.t<this.t){for(pe-=a.s;A<this.t;)pe+=this[A],Y[A++]=pe&this.DM,pe>>=this.DB;pe+=this.s}else{for(pe+=this.s;A<a.t;)pe-=a[A],Y[A++]=pe&this.DM,pe>>=this.DB;pe-=a.s}Y.s=pe<0?-1:0,pe<-1?Y[A++]=this.DV+pe:pe>0&&(Y[A++]=pe),Y.t=A,Y.clamp()}function Lt(a,Y){var A=this.abs(),pe=a.abs(),xe=A.t;for(Y.t=xe+pe.t;--xe>=0;)Y[xe]=0;for(xe=0;xe<pe.t;++xe)Y[xe+A.t]=A.am(0,pe[xe],Y,xe,0,A.t);Y.s=0,Y.clamp(),this.s!=a.s&&i.ZERO.subTo(Y,Y)}function At(a){for(var Y=this.abs(),A=a.t=2*Y.t;--A>=0;)a[A]=0;for(A=0;A<Y.t-1;++A){var pe=Y.am(A,Y[A],a,2*A,0,1);(a[A+Y.t]+=Y.am(A+1,2*Y[A],a,2*A+1,pe,Y.t-A-1))>=Y.DV&&(a[A+Y.t]-=Y.DV,a[A+Y.t+1]=1)}a.t>0&&(a[a.t-1]+=Y.am(A,Y[A],a,2*A,0,1)),a.s=0,a.clamp()}function ie(a,Y,A){var pe=a.abs();if(!(pe.t<=0)){var xe=this.abs();if(xe.t<pe.t){Y?.fromInt(0),A!=null&&this.copyTo(A);return}A==null&&(A=g());var ae=g(),$e=this.s,qe=a.s,jt=this.DB-w(pe[pe.t-1]);jt>0?(pe.lShiftTo(jt,ae),xe.lShiftTo(jt,A)):(pe.copyTo(ae),xe.copyTo(A));var vn=ae.t,En=ae[vn-1];if(En!=0){var kn=En*(1<<this.F1)+(vn>1?ae[vn-2]>>this.F2:0),Nn=this.FV/kn,Mn=(1<<this.F1)/kn,Hn=1<<this.F2,Vn=A.t,Un=Vn-vn,Jn=Y??g();for(ae.dlShiftTo(Un,Jn),A.compareTo(Jn)>=0&&(A[A.t++]=1,A.subTo(Jn,A)),i.ONE.dlShiftTo(vn,Jn),Jn.subTo(ae,ae);ae.t<vn;)ae[ae.t++]=0;for(;--Un>=0;){var tl=A[--Vn]==En?this.DM:Math.floor(A[Vn]*Nn+(A[Vn-1]+Hn)*Mn);if((A[Vn]+=ae.am(0,tl,A,Un,0,vn))<tl)for(ae.dlShiftTo(Un,Jn),A.subTo(Jn,A);A[Vn]<--tl;)A.subTo(Jn,A)}Y!=null&&(A.drShiftTo(vn,Y),$e!=qe&&i.ZERO.subTo(Y,Y)),A.t=vn,A.clamp(),jt>0&&A.rShiftTo(jt,A),$e<0&&i.ZERO.subTo(A,A)}}}function Ve(a){var Y=g();return this.abs().divRemTo(a,null,Y),this.s<0&&Y.compareTo(i.ZERO)>0&&a.subTo(Y,Y),Y}function ze(a){this.m=a}function z(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a}function Dt(a){return a}function v(a){a.divRemTo(this.m,null,a)}function S(a,Y,A){a.multiplyTo(Y,A),this.reduce(A)}function Ue(a,Y){a.squareTo(Y),this.reduce(Y)}ze.prototype.convert=z,ze.prototype.revert=Dt,ze.prototype.reduce=v,ze.prototype.mulTo=S,ze.prototype.sqrTo=Ue;function M(){if(this.t<1)return 0;var a=this[0];if((a&1)==0)return 0;var Y=a&3;return Y=Y*(2-(a&15)*Y)&15,Y=Y*(2-(a&255)*Y)&255,Y=Y*(2-((a&65535)*Y&65535))&65535,Y=Y*(2-a*Y%this.DV)%this.DV,Y>0?this.DV-Y:-Y}function Pt(a){this.m=a,this.mp=a.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function hn(a){var Y=g();return a.abs().dlShiftTo(this.m.t,Y),Y.divRemTo(this.m,null,Y),a.s<0&&Y.compareTo(i.ZERO)>0&&this.m.subTo(Y,Y),Y}function Oe(a){var Y=g();return a.copyTo(Y),this.reduce(Y),Y}function Fe(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var Y=0;Y<this.m.t;++Y){var A=a[Y]&32767,pe=A*this.mpl+((A*this.mph+(a[Y]>>15)*this.mpl&this.um)<<15)&a.DM;for(A=Y+this.m.t,a[A]+=this.m.am(0,pe,a,Y,0,this.m.t);a[A]>=a.DV;)a[A]-=a.DV,a[++A]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)}function Et(a,Y){a.squareTo(Y),this.reduce(Y)}function oe(a,Y,A){a.multiplyTo(Y,A),this.reduce(A)}Pt.prototype.convert=hn,Pt.prototype.revert=Oe,Pt.prototype.reduce=Fe,Pt.prototype.mulTo=oe,Pt.prototype.sqrTo=Et;function kt(){return(this.t>0?this[0]&1:this.s)==0}function Ne(a,Y){if(a>4294967295||a<1)return i.ONE;var A=g(),pe=g(),xe=Y.convert(this),ae=w(a)-1;for(xe.copyTo(A);--ae>=0;)if(Y.sqrTo(A,pe),(a&1<<ae)>0)Y.mulTo(pe,xe,A);else{var $e=A;A=pe,pe=$e}return Y.revert(A)}function _n(a,Y){var A;return a<256||Y.isEven()?A=new ze(Y):A=new Pt(Y),this.exp(a,A)}i.prototype.copyTo=b,i.prototype.fromInt=j,i.prototype.fromString=k,i.prototype.clamp=_,i.prototype.dlShiftTo=V,i.prototype.drShiftTo=Ce,i.prototype.lShiftTo=_e,i.prototype.rShiftTo=D,i.prototype.subTo=Ie,i.prototype.multiplyTo=Lt,i.prototype.squareTo=At,i.prototype.divRemTo=ie,i.prototype.invDigit=M,i.prototype.isEven=kt,i.prototype.exp=Ne,i.prototype.toString=ue,i.prototype.negate=re,i.prototype.abs=de,i.prototype.compareTo=he,i.prototype.bitLength=le,i.prototype.mod=Ve,i.prototype.modPowInt=_n,i.ZERO=F(0),i.ONE=F(1);function wn(){var a=g();return this.copyTo(a),a}function bn(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function xn(){return this.t==0?this.s:this[0]<<24>>24}function Bn(){return this.t==0?this.s:this[0]<<16>>16}function Sn(a){return Math.floor(Math.LN2*this.DB/Math.log(a))}function Tn(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Pn(a){if(a==null&&(a=10),this.signum()==0||a<2||a>36)return"0";var Y=this.chunkSize(a),A=Math.pow(a,Y),pe=F(A),xe=g(),ae=g(),$e="";for(this.divRemTo(pe,xe,ae);xe.signum()>0;)$e=(A+ae.intValue()).toString(a).substr(1)+$e,xe.divRemTo(pe,xe,ae);return ae.intValue().toString(a)+$e}function Rn(a,Y){this.fromInt(0),Y==null&&(Y=10);for(var A=this.chunkSize(Y),pe=Math.pow(Y,A),xe=!1,ae=0,$e=0,qe=0;qe<a.length;++qe){var jt=O(a,qe);if(jt<0){a.charAt(qe)=="-"&&this.signum()==0&&(xe=!0);continue}$e=Y*$e+jt,++ae>=A&&(this.dMultiply(pe),this.dAddOffset($e,0),ae=0,$e=0)}ae>0&&(this.dMultiply(Math.pow(Y,ae)),this.dAddOffset($e,0)),xe&&i.ZERO.subTo(this,this)}function In(a,Y,A){if(typeof Y=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,A),this.testBit(a-1)||this.bitwiseTo(i.ONE.shiftLeft(a-1),qn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(Y);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(i.ONE.shiftLeft(a-1),this);else{var pe=new Array,xe=a&7;pe.length=(a>>3)+1,Y.nextBytes(pe),xe>0?pe[0]&=(1<<xe)-1:pe[0]=0,this.fromString(pe,256)}}function On(){var a=this.t,Y=new Array;Y[0]=this.s;var A=this.DB-a*this.DB%8,pe,xe=0;if(a-- >0)for(A<this.DB&&(pe=this[a]>>A)!=(this.s&this.DM)>>A&&(Y[xe++]=pe|this.s<<this.DB-A);a>=0;)A<8?(pe=(this[a]&(1<<A)-1)<<8-A,pe|=this[--a]>>(A+=this.DB-8)):(pe=this[a]>>(A-=8)&255,A<=0&&(A+=this.DB,--a)),(pe&128)!=0&&(pe|=-256),xe==0&&(this.s&128)!=(pe&128)&&++xe,(xe>0||pe!=this.s)&&(Y[xe++]=pe);return Y}function Xn(a){return this.compareTo(a)==0}function Wn(a){return this.compareTo(a)<0?this:a}function zn(a){return this.compareTo(a)>0?this:a}function Cn(a,Y,A){var pe,xe,ae=Math.min(a.t,this.t);for(pe=0;pe<ae;++pe)A[pe]=Y(this[pe],a[pe]);if(a.t<this.t){for(xe=a.s&this.DM,pe=ae;pe<this.t;++pe)A[pe]=Y(this[pe],xe);A.t=this.t}else{for(xe=this.s&this.DM,pe=ae;pe<a.t;++pe)A[pe]=Y(xe,a[pe]);A.t=a.t}A.s=Y(this.s,a.s),A.clamp()}function Dn(a,Y){return a&Y}function Gn(a){var Y=g();return this.bitwiseTo(a,Dn,Y),Y}function qn(a,Y){return a|Y}function Zn(a){var Y=g();return this.bitwiseTo(a,qn,Y),Y}function el(a,Y){return a^Y}function sl(a){var Y=g();return this.bitwiseTo(a,el,Y),Y}function fl(a,Y){return a&~Y}function Tl(a){var Y=g();return this.bitwiseTo(a,fl,Y),Y}function vl(){for(var a=g(),Y=0;Y<this.t;++Y)a[Y]=this.DM&~this[Y];return a.t=this.t,a.s=~this.s,a}function hl(a){var Y=g();return a<0?this.rShiftTo(-a,Y):this.lShiftTo(a,Y),Y}function ml(a){var Y=g();return a<0?this.lShiftTo(-a,Y):this.rShiftTo(a,Y),Y}function Ll(a){if(a==0)return-1;var Y=0;return(a&65535)==0&&(a>>=16,Y+=16),(a&255)==0&&(a>>=8,Y+=8),(a&15)==0&&(a>>=4,Y+=4),(a&3)==0&&(a>>=2,Y+=2),(a&1)==0&&++Y,Y}function bl(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+Ll(this[a]);return this.s<0?this.t*this.DB:-1}function _l(a){for(var Y=0;a!=0;)a&=a-1,++Y;return Y}function xl(){for(var a=0,Y=this.s&this.DM,A=0;A<this.t;++A)a+=_l(this[A]^Y);return a}function yl(a){var Y=Math.floor(a/this.DB);return Y>=this.t?this.s!=0:(this[Y]&1<<a%this.DB)!=0}function ul(a,Y){var A=i.ONE.shiftLeft(a);return this.bitwiseTo(A,Y,A),A}function wl(a){return this.changeBit(a,qn)}function Cl(a){return this.changeBit(a,fl)}function al(a){return this.changeBit(a,el)}function cl(a,Y){for(var A=0,pe=0,xe=Math.min(a.t,this.t);A<xe;)pe+=this[A]+a[A],Y[A++]=pe&this.DM,pe>>=this.DB;if(a.t<this.t){for(pe+=a.s;A<this.t;)pe+=this[A],Y[A++]=pe&this.DM,pe>>=this.DB;pe+=this.s}else{for(pe+=this.s;A<a.t;)pe+=a[A],Y[A++]=pe&this.DM,pe>>=this.DB;pe+=a.s}Y.s=pe<0?-1:0,pe>0?Y[A++]=pe:pe<-1&&(Y[A++]=this.DV+pe),Y.t=A,Y.clamp()}function Sl(a){var Y=g();return this.addTo(a,Y),Y}function El(a){var Y=g();return this.subTo(a,Y),Y}function Bl(a){var Y=g();return this.multiplyTo(a,Y),Y}function Pl(){var a=g();return this.squareTo(a),a}function ol(a){var Y=g();return this.divRemTo(a,Y,null),Y}function Ln(a){var Y=g();return this.divRemTo(a,null,Y),Y}function $n(a){var Y=g(),A=g();return this.divRemTo(a,Y,A),new Array(Y,A)}function Fn(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()}function Kn(a,Y){if(a!=0){for(;this.t<=Y;)this[this.t++]=0;for(this[Y]+=a;this[Y]>=this.DV;)this[Y]-=this.DV,++Y>=this.t&&(this[this.t++]=0),++this[Y]}}function jn(){}function nl(a){return a}function An(a,Y,A){a.multiplyTo(Y,A)}function il(a,Y){a.squareTo(Y)}jn.prototype.convert=nl,jn.prototype.revert=nl,jn.prototype.mulTo=An,jn.prototype.sqrTo=il;function ll(a){return this.exp(a,new jn)}function Rl(a,Y,A){var pe=Math.min(this.t+a.t,Y);for(A.s=0,A.t=pe;pe>0;)A[--pe]=0;var xe;for(xe=A.t-this.t;pe<xe;++pe)A[pe+this.t]=this.am(0,a[pe],A,pe,0,this.t);for(xe=Math.min(a.t,Y);pe<xe;++pe)this.am(0,a[pe],A,pe,0,Y-pe);A.clamp()}function Ol(a,Y,A){--Y;var pe=A.t=this.t+a.t-Y;for(A.s=0;--pe>=0;)A[pe]=0;for(pe=Math.max(Y-this.t,0);pe<a.t;++pe)A[this.t+pe-Y]=this.am(Y-pe,a[pe],A,0,0,this.t+pe-Y);A.clamp(),A.drShiftTo(1,A)}function gl(a){this.r2=g(),this.q3=g(),i.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}function Nl(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var Y=g();return a.copyTo(Y),this.reduce(Y),Y}function Hl(a){return a}function Ml(a){for(a.drShiftTo(this.m.t-1,this.r2),a.t>this.m.t+1&&(a.t=this.m.t+1,a.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);a.compareTo(this.r2)<0;)a.dAddOffset(1,this.m.t+1);for(a.subTo(this.r2,a);a.compareTo(this.m)>=0;)a.subTo(this.m,a)}function Dl(a,Y){a.squareTo(Y),this.reduce(Y)}function Fl(a,Y,A){a.multiplyTo(Y,A),this.reduce(A)}gl.prototype.convert=Nl,gl.prototype.revert=Hl,gl.prototype.reduce=Ml,gl.prototype.mulTo=Fl,gl.prototype.sqrTo=Dl;function Wl(a,Y){var A=a.bitLength(),pe,xe=F(1),ae;if(A<=0)return xe;A<18?pe=1:A<48?pe=3:A<144?pe=4:A<768?pe=5:pe=6,A<8?ae=new ze(Y):Y.isEven()?ae=new gl(Y):ae=new Pt(Y);var $e=new Array,qe=3,jt=pe-1,vn=(1<<pe)-1;if($e[1]=ae.convert(this),pe>1){var En=g();for(ae.sqrTo($e[1],En);qe<=vn;)$e[qe]=g(),ae.mulTo(En,$e[qe-2],$e[qe]),qe+=2}var kn=a.t-1,Nn,Mn=!0,Hn=g(),Vn;for(A=w(a[kn])-1;kn>=0;){for(A>=jt?Nn=a[kn]>>A-jt&vn:(Nn=(a[kn]&(1<<A+1)-1)<<jt-A,kn>0&&(Nn|=a[kn-1]>>this.DB+A-jt)),qe=pe;(Nn&1)==0;)Nn>>=1,--qe;if((A-=qe)<0&&(A+=this.DB,--kn),Mn)$e[Nn].copyTo(xe),Mn=!1;else{for(;qe>1;)ae.sqrTo(xe,Hn),ae.sqrTo(Hn,xe),qe-=2;qe>0?ae.sqrTo(xe,Hn):(Vn=xe,xe=Hn,Hn=Vn),ae.mulTo(Hn,$e[Nn],xe)}for(;kn>=0&&(a[kn]&1<<A)==0;)ae.sqrTo(xe,Hn),Vn=xe,xe=Hn,Hn=Vn,--A<0&&(A=this.DB-1,--kn)}return ae.revert(xe)}function Xl(a){var Y=this.s<0?this.negate():this.clone(),A=a.s<0?a.negate():a.clone();if(Y.compareTo(A)<0){var pe=Y;Y=A,A=pe}var xe=Y.getLowestSetBit(),ae=A.getLowestSetBit();if(ae<0)return Y;for(xe<ae&&(ae=xe),ae>0&&(Y.rShiftTo(ae,Y),A.rShiftTo(ae,A));Y.signum()>0;)(xe=Y.getLowestSetBit())>0&&Y.rShiftTo(xe,Y),(xe=A.getLowestSetBit())>0&&A.rShiftTo(xe,A),Y.compareTo(A)>=0?(Y.subTo(A,Y),Y.rShiftTo(1,Y)):(A.subTo(Y,A),A.rShiftTo(1,A));return ae>0&&A.lShiftTo(ae,A),A}function Yl(a){if(a<=0)return 0;var Y=this.DV%a,A=this.s<0?a-1:0;if(this.t>0)if(Y==0)A=this[0]%a;else for(var pe=this.t-1;pe>=0;--pe)A=(Y*A+this[pe])%a;return A}function Vl(a){var Y=a.isEven();if(this.isEven()&&Y||a.signum()==0)return i.ZERO;for(var A=a.clone(),pe=this.clone(),xe=F(1),ae=F(0),$e=F(0),qe=F(1);A.signum()!=0;){for(;A.isEven();)A.rShiftTo(1,A),Y?((!xe.isEven()||!ae.isEven())&&(xe.addTo(this,xe),ae.subTo(a,ae)),xe.rShiftTo(1,xe)):ae.isEven()||ae.subTo(a,ae),ae.rShiftTo(1,ae);for(;pe.isEven();)pe.rShiftTo(1,pe),Y?((!$e.isEven()||!qe.isEven())&&($e.addTo(this,$e),qe.subTo(a,qe)),$e.rShiftTo(1,$e)):qe.isEven()||qe.subTo(a,qe),qe.rShiftTo(1,qe);A.compareTo(pe)>=0?(A.subTo(pe,A),Y&&xe.subTo($e,xe),ae.subTo(qe,ae)):(pe.subTo(A,pe),Y&&$e.subTo(xe,$e),qe.subTo(ae,qe))}if(pe.compareTo(i.ONE)!=0)return i.ZERO;if(qe.compareTo(a)>=0)return qe.subtract(a);if(qe.signum()<0)qe.addTo(a,qe);else return qe;return qe.signum()<0?qe.add(a):qe}var Qn=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],zl=(1<<26)/Qn[Qn.length-1];function Kl(a){var Y,A=this.abs();if(A.t==1&&A[0]<=Qn[Qn.length-1]){for(Y=0;Y<Qn.length;++Y)if(A[0]==Qn[Y])return!0;return!1}if(A.isEven())return!1;for(Y=1;Y<Qn.length;){for(var pe=Qn[Y],xe=Y+1;xe<Qn.length&&pe<zl;)pe*=Qn[xe++];for(pe=A.modInt(pe);Y<xe;)if(pe%Qn[Y++]==0)return!1}return A.millerRabin(a)}function jl(a){var Y=this.subtract(i.ONE),A=Y.getLowestSetBit();if(A<=0)return!1;var pe=Y.shiftRight(A);a=a+1>>1,a>Qn.length&&(a=Qn.length);for(var xe=g(),ae=0;ae<a;++ae){xe.fromInt(Qn[Math.floor(Math.random()*Qn.length)]);var $e=xe.modPow(pe,this);if($e.compareTo(i.ONE)!=0&&$e.compareTo(Y)!=0){for(var qe=1;qe++<A&&$e.compareTo(Y)!=0;)if($e=$e.modPowInt(2,this),$e.compareTo(i.ONE)==0)return!1;if($e.compareTo(Y)!=0)return!1}}return!0}i.prototype.chunkSize=Sn,i.prototype.toRadix=Pn,i.prototype.fromRadix=Rn,i.prototype.fromNumber=In,i.prototype.bitwiseTo=Cn,i.prototype.changeBit=ul,i.prototype.addTo=cl,i.prototype.dMultiply=Fn,i.prototype.dAddOffset=Kn,i.prototype.multiplyLowerTo=Rl,i.prototype.multiplyUpperTo=Ol,i.prototype.modInt=Yl,i.prototype.millerRabin=jl,i.prototype.clone=wn,i.prototype.intValue=bn,i.prototype.byteValue=xn,i.prototype.shortValue=Bn,i.prototype.signum=Tn,i.prototype.toByteArray=On,i.prototype.equals=Xn,i.prototype.min=Wn,i.prototype.max=zn,i.prototype.and=Gn,i.prototype.or=Zn,i.prototype.xor=sl,i.prototype.andNot=Tl,i.prototype.not=vl,i.prototype.shiftLeft=hl,i.prototype.shiftRight=ml,i.prototype.getLowestSetBit=bl,i.prototype.bitCount=xl,i.prototype.testBit=yl,i.prototype.setBit=wl,i.prototype.clearBit=Cl,i.prototype.flipBit=al,i.prototype.add=Sl,i.prototype.subtract=El,i.prototype.multiply=Bl,i.prototype.divide=ol,i.prototype.remainder=Ln,i.prototype.divideAndRemainder=$n,i.prototype.modPow=Wl,i.prototype.modInverse=Vl,i.prototype.pow=ll,i.prototype.gcd=Xl,i.prototype.isProbablePrime=Kl,i.prototype.square=Pl;var Yn=i;if(Yn.prototype.IsNegative=function(){return this.compareTo(Yn.ZERO)==-1},Yn.op_Equality=function(a,Y){return a.compareTo(Y)==0},Yn.op_Inequality=function(a,Y){return a.compareTo(Y)!=0},Yn.op_GreaterThan=function(a,Y){return a.compareTo(Y)>0},Yn.op_LessThan=function(a,Y){return a.compareTo(Y)<0},Yn.op_Addition=function(a,Y){return new Yn(a).add(new Yn(Y))},Yn.op_Subtraction=function(a,Y){return new Yn(a).subtract(new Yn(Y))},Yn.Int128Mul=function(a,Y){return new Yn(a).multiply(new Yn(Y))},Yn.op_Division=function(a,Y){return a.divide(Y)},Yn.prototype.ToDouble=function(){return parseFloat(this.toString())},typeof kl>"u")var kl=function(a,Y){var A;if(typeof Object.getOwnPropertyNames>"u"){for(A in Y.prototype)(typeof a.prototype[A]>"u"||a.prototype[A]==Object.prototype[A])&&(a.prototype[A]=Y.prototype[A]);for(A in Y)typeof a[A]>"u"&&(a[A]=Y[A]);a.$baseCtor=Y}else{for(var pe=Object.getOwnPropertyNames(Y.prototype),xe=0;xe<pe.length;xe++)typeof Object.getOwnPropertyDescriptor(a.prototype,pe[xe])>"u"&&Object.defineProperty(a.prototype,pe[xe],Object.getOwnPropertyDescriptor(Y.prototype,pe[xe]));for(A in Y)typeof a[A]>"u"&&(a[A]=Y[A]);a.$baseCtor=Y}};e.Path=function(){return[]},e.Paths=function(){return[]},e.DoublePoint=function(){var a=arguments;this.X=0,this.Y=0,a.length==1?(this.X=a[0].X,this.Y=a[0].Y):a.length==2&&(this.X=a[0],this.Y=a[1])},e.DoublePoint0=function(){this.X=0,this.Y=0},e.DoublePoint1=function(a){this.X=a.X,this.Y=a.Y},e.DoublePoint2=function(a,Y){this.X=a,this.Y=Y},e.PolyNode=function(){this.m_Parent=null,this.m_polygon=new e.Path,this.m_Index=0,this.m_jointype=0,this.m_endtype=0,this.m_Childs=[],this.IsOpen=!1},e.PolyNode.prototype.IsHoleNode=function(){for(var a=!0,Y=this.m_Parent;Y!==null;)a=!a,Y=Y.m_Parent;return a},e.PolyNode.prototype.ChildCount=function(){return this.m_Childs.length},e.PolyNode.prototype.Contour=function(){return this.m_polygon},e.PolyNode.prototype.AddChild=function(a){var Y=this.m_Childs.length;this.m_Childs.push(a),a.m_Parent=this,a.m_Index=Y},e.PolyNode.prototype.GetNext=function(){return this.m_Childs.length>0?this.m_Childs[0]:this.GetNextSiblingUp()},e.PolyNode.prototype.GetNextSiblingUp=function(){return this.m_Parent===null?null:this.m_Index==this.m_Parent.m_Childs.length-1?this.m_Parent.GetNextSiblingUp():this.m_Parent.m_Childs[this.m_Index+1]},e.PolyNode.prototype.Childs=function(){return this.m_Childs},e.PolyNode.prototype.Parent=function(){return this.m_Parent},e.PolyNode.prototype.IsHole=function(){return this.IsHoleNode()},e.PolyTree=function(){this.m_AllPolys=[],e.PolyNode.call(this)},e.PolyTree.prototype.Clear=function(){for(var a=0,Y=this.m_AllPolys.length;a<Y;a++)this.m_AllPolys[a]=null;this.m_AllPolys.length=0,this.m_Childs.length=0},e.PolyTree.prototype.GetFirst=function(){return this.m_Childs.length>0?this.m_Childs[0]:null},e.PolyTree.prototype.Total=function(){return this.m_AllPolys.length},kl(e.PolyTree,e.PolyNode),e.Math_Abs_Int64=e.Math_Abs_Int32=e.Math_Abs_Double=function(a){return Math.abs(a)},e.Math_Max_Int32_Int32=function(a,Y){return Math.max(a,Y)},l.msie||l.opera||l.safari?e.Cast_Int32=function(a){return a|0}:e.Cast_Int32=function(a){return~~a},l.chrome?e.Cast_Int64=function(a){return a<-2147483648||a>2147483647?a<0?Math.ceil(a):Math.floor(a):~~a}:l.firefox&&typeof Number.toInteger=="function"?e.Cast_Int64=function(a){return Number.toInteger(a)}:l.msie7||l.msie8?e.Cast_Int64=function(a){return parseInt(a,10)}:l.msie?e.Cast_Int64=function(a){return a<-2147483648||a>2147483647?a<0?Math.ceil(a):Math.floor(a):a|0}:e.Cast_Int64=function(a){return a<0?Math.ceil(a):Math.floor(a)},e.Clear=function(a){a.length=0},e.PI=3.141592653589793,e.PI2=2*3.141592653589793,e.IntPoint=function(){var a=arguments,Y=a.length;this.X=0,this.Y=0;var A,pe;if(Y==2)this.X=a[0],this.Y=a[1];else if(Y==1)if(a[0]instanceof e.DoublePoint){var A=a[0];this.X=e.Clipper.Round(A.X),this.Y=e.Clipper.Round(A.Y)}else{var pe=a[0];this.X=pe.X,this.Y=pe.Y}else this.X=0,this.Y=0},e.IntPoint.op_Equality=function(a,Y){return a.X==Y.X&&a.Y==Y.Y},e.IntPoint.op_Inequality=function(a,Y){return a.X!=Y.X||a.Y!=Y.Y},e.IntPoint0=function(){this.X=0,this.Y=0},e.IntPoint1=function(a){this.X=a.X,this.Y=a.Y},e.IntPoint1dp=function(a){this.X=e.Clipper.Round(a.X),this.Y=e.Clipper.Round(a.Y)},e.IntPoint2=function(a,Y){this.X=a,this.Y=Y},e.IntRect=function(){var a=arguments,Y=a.length;Y==4?(this.left=a[0],this.top=a[1],this.right=a[2],this.bottom=a[3]):Y==1?(this.left=ir.left,this.top=ir.top,this.right=ir.right,this.bottom=ir.bottom):(this.left=0,this.top=0,this.right=0,this.bottom=0)},e.IntRect0=function(){this.left=0,this.top=0,this.right=0,this.bottom=0},e.IntRect1=function(a){this.left=a.left,this.top=a.top,this.right=a.right,this.bottom=a.bottom},e.IntRect4=function(a,Y,A,pe){this.left=a,this.top=Y,this.right=A,this.bottom=pe},e.ClipType={ctIntersection:0,ctUnion:1,ctDifference:2,ctXor:3},e.PolyType={ptSubject:0,ptClip:1},e.PolyFillType={pftEvenOdd:0,pftNonZero:1,pftPositive:2,pftNegative:3},e.JoinType={jtSquare:0,jtRound:1,jtMiter:2},e.EndType={etOpenSquare:0,etOpenRound:1,etOpenButt:2,etClosedLine:3,etClosedPolygon:4},e.EdgeSide={esLeft:0,esRight:1},e.Direction={dRightToLeft:0,dLeftToRight:1},e.TEdge=function(){this.Bot=new e.IntPoint,this.Curr=new e.IntPoint,this.Top=new e.IntPoint,this.Delta=new e.IntPoint,this.Dx=0,this.PolyTyp=e.PolyType.ptSubject,this.Side=e.EdgeSide.esLeft,this.WindDelta=0,this.WindCnt=0,this.WindCnt2=0,this.OutIdx=0,this.Next=null,this.Prev=null,this.NextInLML=null,this.NextInAEL=null,this.PrevInAEL=null,this.NextInSEL=null,this.PrevInSEL=null},e.IntersectNode=function(){this.Edge1=null,this.Edge2=null,this.Pt=new e.IntPoint},e.MyIntersectNodeSort=function(){},e.MyIntersectNodeSort.Compare=function(a,Y){return Y.Pt.Y-a.Pt.Y},e.LocalMinima=function(){this.Y=0,this.LeftBound=null,this.RightBound=null,this.Next=null},e.Scanbeam=function(){this.Y=0,this.Next=null},e.OutRec=function(){this.Idx=0,this.IsHole=!1,this.IsOpen=!1,this.FirstLeft=null,this.Pts=null,this.BottomPt=null,this.PolyNode=null},e.OutPt=function(){this.Idx=0,this.Pt=new e.IntPoint,this.Next=null,this.Prev=null},e.Join=function(){this.OutPt1=null,this.OutPt2=null,this.OffPt=new e.IntPoint},e.ClipperBase=function(){this.m_MinimaList=null,this.m_CurrentLM=null,this.m_edges=new Array,this.m_UseFullRange=!1,this.m_HasOpenPaths=!1,this.PreserveCollinear=!1,this.m_MinimaList=null,this.m_CurrentLM=null,this.m_UseFullRange=!1,this.m_HasOpenPaths=!1},e.ClipperBase.horizontal=-9007199254740992,e.ClipperBase.Skip=-2,e.ClipperBase.Unassigned=-1,e.ClipperBase.tolerance=1e-20,e.ClipperBase.loRange=47453132,e.ClipperBase.hiRange=0xfffffffffffff,e.ClipperBase.near_zero=function(a){return a>-e.ClipperBase.tolerance&&a<e.ClipperBase.tolerance},e.ClipperBase.IsHorizontal=function(a){return a.Delta.Y===0},e.ClipperBase.prototype.PointIsVertex=function(a,Y){var A=Y;do{if(e.IntPoint.op_Equality(A.Pt,a))return!0;A=A.Next}while(A!=Y);return!1},e.ClipperBase.prototype.PointOnLineSegment=function(a,Y,A,pe){return pe?a.X==Y.X&&a.Y==Y.Y||a.X==A.X&&a.Y==A.Y||a.X>Y.X==a.X<A.X&&a.Y>Y.Y==a.Y<A.Y&&Yn.op_Equality(Yn.Int128Mul(a.X-Y.X,A.Y-Y.Y),Yn.Int128Mul(A.X-Y.X,a.Y-Y.Y)):a.X==Y.X&&a.Y==Y.Y||a.X==A.X&&a.Y==A.Y||a.X>Y.X==a.X<A.X&&a.Y>Y.Y==a.Y<A.Y&&(a.X-Y.X)*(A.Y-Y.Y)==(A.X-Y.X)*(a.Y-Y.Y)},e.ClipperBase.prototype.PointOnPolygon=function(a,Y,A){for(var pe=Y;;){if(this.PointOnLineSegment(a,pe.Pt,pe.Next.Pt,A))return!0;if(pe=pe.Next,pe==Y)break}return!1},e.ClipperBase.prototype.SlopesEqual=e.ClipperBase.SlopesEqual=function(){var a=arguments,Y=a.length,A,pe,xe,ae,$e,qe,jt;return Y==3?(A=a[0],pe=a[1],jt=a[2],jt?Yn.op_Equality(Yn.Int128Mul(A.Delta.Y,pe.Delta.X),Yn.Int128Mul(A.Delta.X,pe.Delta.Y)):e.Cast_Int64(A.Delta.Y*pe.Delta.X)==e.Cast_Int64(A.Delta.X*pe.Delta.Y)):Y==4?(xe=a[0],ae=a[1],$e=a[2],jt=a[3],jt?Yn.op_Equality(Yn.Int128Mul(xe.Y-ae.Y,ae.X-$e.X),Yn.Int128Mul(xe.X-ae.X,ae.Y-$e.Y)):e.Cast_Int64((xe.Y-ae.Y)*(ae.X-$e.X))-e.Cast_Int64((xe.X-ae.X)*(ae.Y-$e.Y))===0):(xe=a[0],ae=a[1],$e=a[2],qe=a[3],jt=a[4],jt?Yn.op_Equality(Yn.Int128Mul(xe.Y-ae.Y,$e.X-qe.X),Yn.Int128Mul(xe.X-ae.X,$e.Y-qe.Y)):e.Cast_Int64((xe.Y-ae.Y)*($e.X-qe.X))-e.Cast_Int64((xe.X-ae.X)*($e.Y-qe.Y))===0)},e.ClipperBase.SlopesEqual3=function(a,Y,A){return A?Yn.op_Equality(Yn.Int128Mul(a.Delta.Y,Y.Delta.X),Yn.Int128Mul(a.Delta.X,Y.Delta.Y)):e.Cast_Int64(a.Delta.Y*Y.Delta.X)==e.Cast_Int64(a.Delta.X*Y.Delta.Y)},e.ClipperBase.SlopesEqual4=function(a,Y,A,pe){return pe?Yn.op_Equality(Yn.Int128Mul(a.Y-Y.Y,Y.X-A.X),Yn.Int128Mul(a.X-Y.X,Y.Y-A.Y)):e.Cast_Int64((a.Y-Y.Y)*(Y.X-A.X))-e.Cast_Int64((a.X-Y.X)*(Y.Y-A.Y))===0},e.ClipperBase.SlopesEqual5=function(a,Y,A,pe,xe){return xe?Yn.op_Equality(Yn.Int128Mul(a.Y-Y.Y,A.X-pe.X),Yn.Int128Mul(a.X-Y.X,A.Y-pe.Y)):e.Cast_Int64((a.Y-Y.Y)*(A.X-pe.X))-e.Cast_Int64((a.X-Y.X)*(A.Y-pe.Y))===0},e.ClipperBase.prototype.Clear=function(){this.DisposeLocalMinimaList();for(var a=0,Y=this.m_edges.length;a<Y;++a){for(var A=0,pe=this.m_edges[a].length;A<pe;++A)this.m_edges[a][A]=null;e.Clear(this.m_edges[a])}e.Clear(this.m_edges),this.m_UseFullRange=!1,this.m_HasOpenPaths=!1},e.ClipperBase.prototype.DisposeLocalMinimaList=function(){for(;this.m_MinimaList!==null;){var a=this.m_MinimaList.Next;this.m_MinimaList=null,this.m_MinimaList=a}this.m_CurrentLM=null},e.ClipperBase.prototype.RangeTest=function(a,Y){Y.Value?(a.X>e.ClipperBase.hiRange||a.Y>e.ClipperBase.hiRange||-a.X>e.ClipperBase.hiRange||-a.Y>e.ClipperBase.hiRange)&&e.Error("Coordinate outside allowed range in RangeTest()."):(a.X>e.ClipperBase.loRange||a.Y>e.ClipperBase.loRange||-a.X>e.ClipperBase.loRange||-a.Y>e.ClipperBase.loRange)&&(Y.Value=!0,this.RangeTest(a,Y))},e.ClipperBase.prototype.InitEdge=function(a,Y,A,pe){a.Next=Y,a.Prev=A,a.Curr.X=pe.X,a.Curr.Y=pe.Y,a.OutIdx=-1},e.ClipperBase.prototype.InitEdge2=function(a,Y){a.Curr.Y>=a.Next.Curr.Y?(a.Bot.X=a.Curr.X,a.Bot.Y=a.Curr.Y,a.Top.X=a.Next.Curr.X,a.Top.Y=a.Next.Curr.Y):(a.Top.X=a.Curr.X,a.Top.Y=a.Curr.Y,a.Bot.X=a.Next.Curr.X,a.Bot.Y=a.Next.Curr.Y),this.SetDx(a),a.PolyTyp=Y},e.ClipperBase.prototype.FindNextLocMin=function(a){for(var Y;;){for(;e.IntPoint.op_Inequality(a.Bot,a.Prev.Bot)||e.IntPoint.op_Equality(a.Curr,a.Top);)a=a.Next;if(a.Dx!=e.ClipperBase.horizontal&&a.Prev.Dx!=e.ClipperBase.horizontal)break;for(;a.Prev.Dx==e.ClipperBase.horizontal;)a=a.Prev;for(Y=a;a.Dx==e.ClipperBase.horizontal;)a=a.Next;if(a.Top.Y!=a.Prev.Bot.Y){Y.Prev.Bot.X<a.Bot.X&&(a=Y);break}}return a},e.ClipperBase.prototype.ProcessBound=function(a,Y){var A=a,pe=a,xe,ae;if(a.Dx==e.ClipperBase.horizontal&&(Y?ae=a.Prev.Bot.X:ae=a.Next.Bot.X,a.Bot.X!=ae&&this.ReverseHorizontal(a)),pe.OutIdx!=e.ClipperBase.Skip)if(Y){for(;pe.Top.Y==pe.Next.Bot.Y&&pe.Next.OutIdx!=e.ClipperBase.Skip;)pe=pe.Next;if(pe.Dx==e.ClipperBase.horizontal&&pe.Next.OutIdx!=e.ClipperBase.Skip){for(xe=pe;xe.Prev.Dx==e.ClipperBase.horizontal;)xe=xe.Prev;xe.Prev.Top.X==pe.Next.Top.X?Y||(pe=xe.Prev):xe.Prev.Top.X>pe.Next.Top.X&&(pe=xe.Prev)}for(;a!=pe;)a.NextInLML=a.Next,a.Dx==e.ClipperBase.horizontal&&a!=A&&a.Bot.X!=a.Prev.Top.X&&this.ReverseHorizontal(a),a=a.Next;a.Dx==e.ClipperBase.horizontal&&a!=A&&a.Bot.X!=a.Prev.Top.X&&this.ReverseHorizontal(a),pe=pe.Next}else{for(;pe.Top.Y==pe.Prev.Bot.Y&&pe.Prev.OutIdx!=e.ClipperBase.Skip;)pe=pe.Prev;if(pe.Dx==e.ClipperBase.horizontal&&pe.Prev.OutIdx!=e.ClipperBase.Skip){for(xe=pe;xe.Next.Dx==e.ClipperBase.horizontal;)xe=xe.Next;xe.Next.Top.X==pe.Prev.Top.X?Y||(pe=xe.Next):xe.Next.Top.X>pe.Prev.Top.X&&(pe=xe.Next)}for(;a!=pe;)a.NextInLML=a.Prev,a.Dx==e.ClipperBase.horizontal&&a!=A&&a.Bot.X!=a.Next.Top.X&&this.ReverseHorizontal(a),a=a.Prev;a.Dx==e.ClipperBase.horizontal&&a!=A&&a.Bot.X!=a.Next.Top.X&&this.ReverseHorizontal(a),pe=pe.Prev}if(pe.OutIdx==e.ClipperBase.Skip){if(a=pe,Y){for(;a.Top.Y==a.Next.Bot.Y;)a=a.Next;for(;a!=pe&&a.Dx==e.ClipperBase.horizontal;)a=a.Prev}else{for(;a.Top.Y==a.Prev.Bot.Y;)a=a.Prev;for(;a!=pe&&a.Dx==e.ClipperBase.horizontal;)a=a.Next}if(a==pe)Y?pe=a.Next:pe=a.Prev;else{Y?a=pe.Next:a=pe.Prev;var $e=new e.LocalMinima;$e.Next=null,$e.Y=a.Bot.Y,$e.LeftBound=null,$e.RightBound=a,$e.RightBound.WindDelta=0,pe=this.ProcessBound($e.RightBound,Y),this.InsertLocalMinima($e)}}return pe},e.ClipperBase.prototype.AddPath=function(a,Y,A){!A&&Y==e.PolyType.ptClip&&e.Error("AddPath: Open paths must be subject.");var pe=a.length-1;if(A)for(;pe>0&&e.IntPoint.op_Equality(a[pe],a[0]);)--pe;for(;pe>0&&e.IntPoint.op_Equality(a[pe],a[pe-1]);)--pe;if(A&&pe<2||!A&&pe<1)return!1;for(var xe=new Array,ae=0;ae<=pe;ae++)xe.push(new e.TEdge);var $e=!0;xe[1].Curr.X=a[1].X,xe[1].Curr.Y=a[1].Y;var qe={Value:this.m_UseFullRange};this.RangeTest(a[0],qe),this.m_UseFullRange=qe.Value,qe.Value=this.m_UseFullRange,this.RangeTest(a[pe],qe),this.m_UseFullRange=qe.Value,this.InitEdge(xe[0],xe[1],xe[pe],a[0]),this.InitEdge(xe[pe],xe[0],xe[pe-1],a[pe]);for(var ae=pe-1;ae>=1;--ae)qe.Value=this.m_UseFullRange,this.RangeTest(a[ae],qe),this.m_UseFullRange=qe.Value,this.InitEdge(xe[ae],xe[ae+1],xe[ae-1],a[ae]);for(var jt=xe[0],vn=jt,En=jt;;){if(e.IntPoint.op_Equality(vn.Curr,vn.Next.Curr)){if(vn==vn.Next)break;vn==jt&&(jt=vn.Next),vn=this.RemoveEdge(vn),En=vn;continue}if(vn.Prev==vn.Next)break;if(A&&e.ClipperBase.SlopesEqual(vn.Prev.Curr,vn.Curr,vn.Next.Curr,this.m_UseFullRange)&&(!this.PreserveCollinear||!this.Pt2IsBetweenPt1AndPt3(vn.Prev.Curr,vn.Curr,vn.Next.Curr))){vn==jt&&(jt=vn.Next),vn=this.RemoveEdge(vn),vn=vn.Prev,En=vn;continue}if(vn=vn.Next,vn==En)break}if(!A&&vn==vn.Next||A&&vn.Prev==vn.Next)return!1;A||(this.m_HasOpenPaths=!0,jt.Prev.OutIdx=e.ClipperBase.Skip),vn=jt;do this.InitEdge2(vn,Y),vn=vn.Next,$e&&vn.Curr.Y!=jt.Curr.Y&&($e=!1);while(vn!=jt);if($e){if(A)return!1;vn.Prev.OutIdx=e.ClipperBase.Skip,vn.Prev.Bot.X<vn.Prev.Top.X&&this.ReverseHorizontal(vn.Prev);var kn=new e.LocalMinima;for(kn.Next=null,kn.Y=vn.Bot.Y,kn.LeftBound=null,kn.RightBound=vn,kn.RightBound.Side=e.EdgeSide.esRight,kn.RightBound.WindDelta=0;vn.Next.OutIdx!=e.ClipperBase.Skip;)vn.NextInLML=vn.Next,vn.Bot.X!=vn.Prev.Top.X&&this.ReverseHorizontal(vn),vn=vn.Next;return this.InsertLocalMinima(kn),this.m_edges.push(xe),!0}this.m_edges.push(xe);for(var Nn,Mn=null;vn=this.FindNextLocMin(vn),vn!=Mn;){Mn==null&&(Mn=vn);var kn=new e.LocalMinima;kn.Next=null,kn.Y=vn.Bot.Y,vn.Dx<vn.Prev.Dx?(kn.LeftBound=vn.Prev,kn.RightBound=vn,Nn=!1):(kn.LeftBound=vn,kn.RightBound=vn.Prev,Nn=!0),kn.LeftBound.Side=e.EdgeSide.esLeft,kn.RightBound.Side=e.EdgeSide.esRight,A?kn.LeftBound.Next==kn.RightBound?kn.LeftBound.WindDelta=-1:kn.LeftBound.WindDelta=1:kn.LeftBound.WindDelta=0,kn.RightBound.WindDelta=-kn.LeftBound.WindDelta,vn=this.ProcessBound(kn.LeftBound,Nn);var Hn=this.ProcessBound(kn.RightBound,!Nn);kn.LeftBound.OutIdx==e.ClipperBase.Skip?kn.LeftBound=null:kn.RightBound.OutIdx==e.ClipperBase.Skip&&(kn.RightBound=null),this.InsertLocalMinima(kn),Nn||(vn=Hn)}return!0},e.ClipperBase.prototype.AddPaths=function(a,Y,A){for(var pe=!1,xe=0,ae=a.length;xe<ae;++xe)this.AddPath(a[xe],Y,A)&&(pe=!0);return pe},e.ClipperBase.prototype.Pt2IsBetweenPt1AndPt3=function(a,Y,A){return e.IntPoint.op_Equality(a,A)||e.IntPoint.op_Equality(a,Y)||e.IntPoint.op_Equality(A,Y)?!1:a.X!=A.X?Y.X>a.X==Y.X<A.X:Y.Y>a.Y==Y.Y<A.Y},e.ClipperBase.prototype.RemoveEdge=function(a){a.Prev.Next=a.Next,a.Next.Prev=a.Prev;var Y=a.Next;return a.Prev=null,Y},e.ClipperBase.prototype.SetDx=function(a){a.Delta.X=a.Top.X-a.Bot.X,a.Delta.Y=a.Top.Y-a.Bot.Y,a.Delta.Y===0?a.Dx=e.ClipperBase.horizontal:a.Dx=a.Delta.X/a.Delta.Y},e.ClipperBase.prototype.InsertLocalMinima=function(a){if(this.m_MinimaList===null)this.m_MinimaList=a;else if(a.Y>=this.m_MinimaList.Y)a.Next=this.m_MinimaList,this.m_MinimaList=a;else{for(var Y=this.m_MinimaList;Y.Next!==null&&a.Y<Y.Next.Y;)Y=Y.Next;a.Next=Y.Next,Y.Next=a}},e.ClipperBase.prototype.PopLocalMinima=function(){this.m_CurrentLM!==null&&(this.m_CurrentLM=this.m_CurrentLM.Next)},e.ClipperBase.prototype.ReverseHorizontal=function(a){var Y=a.Top.X;a.Top.X=a.Bot.X,a.Bot.X=Y},e.ClipperBase.prototype.Reset=function(){if(this.m_CurrentLM=this.m_MinimaList,this.m_CurrentLM!=null)for(var a=this.m_MinimaList;a!=null;){var Y=a.LeftBound;Y!=null&&(Y.Curr.X=Y.Bot.X,Y.Curr.Y=Y.Bot.Y,Y.Side=e.EdgeSide.esLeft,Y.OutIdx=e.ClipperBase.Unassigned),Y=a.RightBound,Y!=null&&(Y.Curr.X=Y.Bot.X,Y.Curr.Y=Y.Bot.Y,Y.Side=e.EdgeSide.esRight,Y.OutIdx=e.ClipperBase.Unassigned),a=a.Next}},e.Clipper=function(a){typeof a>"u"&&(a=0),this.m_PolyOuts=null,this.m_ClipType=e.ClipType.ctIntersection,this.m_Scanbeam=null,this.m_ActiveEdges=null,this.m_SortedEdges=null,this.m_IntersectList=null,this.m_IntersectNodeComparer=null,this.m_ExecuteLocked=!1,this.m_ClipFillType=e.PolyFillType.pftEvenOdd,this.m_SubjFillType=e.PolyFillType.pftEvenOdd,this.m_Joins=null,this.m_GhostJoins=null,this.m_UsingPolyTree=!1,this.ReverseSolution=!1,this.StrictlySimple=!1,e.ClipperBase.call(this),this.m_Scanbeam=null,this.m_ActiveEdges=null,this.m_SortedEdges=null,this.m_IntersectList=new Array,this.m_IntersectNodeComparer=e.MyIntersectNodeSort.Compare,this.m_ExecuteLocked=!1,this.m_UsingPolyTree=!1,this.m_PolyOuts=new Array,this.m_Joins=new Array,this.m_GhostJoins=new Array,this.ReverseSolution=(1&a)!==0,this.StrictlySimple=(2&a)!==0,this.PreserveCollinear=(4&a)!==0},e.Clipper.ioReverseSolution=1,e.Clipper.ioStrictlySimple=2,e.Clipper.ioPreserveCollinear=4,e.Clipper.prototype.Clear=function(){this.m_edges.length!==0&&(this.DisposeAllPolyPts(),e.ClipperBase.prototype.Clear.call(this))},e.Clipper.prototype.DisposeScanbeamList=function(){for(;this.m_Scanbeam!==null;){var a=this.m_Scanbeam.Next;this.m_Scanbeam=null,this.m_Scanbeam=a}},e.Clipper.prototype.Reset=function(){e.ClipperBase.prototype.Reset.call(this),this.m_Scanbeam=null,this.m_ActiveEdges=null,this.m_SortedEdges=null;for(var a=this.m_MinimaList;a!==null;)this.InsertScanbeam(a.Y),a=a.Next},e.Clipper.prototype.InsertScanbeam=function(a){if(this.m_Scanbeam===null)this.m_Scanbeam=new e.Scanbeam,this.m_Scanbeam.Next=null,this.m_Scanbeam.Y=a;else if(a>this.m_Scanbeam.Y){var Y=new e.Scanbeam;Y.Y=a,Y.Next=this.m_Scanbeam,this.m_Scanbeam=Y}else{for(var A=this.m_Scanbeam;A.Next!==null&&a<=A.Next.Y;)A=A.Next;if(a==A.Y)return;var Y=new e.Scanbeam;Y.Y=a,Y.Next=A.Next,A.Next=Y}},e.Clipper.prototype.Execute=function(){var a=arguments,Y=a.length,A=a[1]instanceof e.PolyTree;if(Y==4&&!A){var pe=a[0],xe=a[1],ae=a[2],$e=a[3];if(this.m_ExecuteLocked)return!1;this.m_HasOpenPaths&&e.Error("Error: PolyTree struct is need for open path clipping."),this.m_ExecuteLocked=!0,e.Clear(xe),this.m_SubjFillType=ae,this.m_ClipFillType=$e,this.m_ClipType=pe,this.m_UsingPolyTree=!1;try{var qe=this.ExecuteInternal();qe&&this.BuildResult(xe)}finally{this.DisposeAllPolyPts(),this.m_ExecuteLocked=!1}return qe}else if(Y==4&&A){var pe=a[0],jt=a[1],ae=a[2],$e=a[3];if(this.m_ExecuteLocked)return!1;this.m_ExecuteLocked=!0,this.m_SubjFillType=ae,this.m_ClipFillType=$e,this.m_ClipType=pe,this.m_UsingPolyTree=!0;try{var qe=this.ExecuteInternal();qe&&this.BuildResult2(jt)}finally{this.DisposeAllPolyPts(),this.m_ExecuteLocked=!1}return qe}else if(Y==2&&!A){var pe=a[0],xe=a[1];return this.Execute(pe,xe,e.PolyFillType.pftEvenOdd,e.PolyFillType.pftEvenOdd)}else if(Y==2&&A){var pe=a[0],jt=a[1];return this.Execute(pe,jt,e.PolyFillType.pftEvenOdd,e.PolyFillType.pftEvenOdd)}},e.Clipper.prototype.FixHoleLinkage=function(a){if(!(a.FirstLeft===null||a.IsHole!=a.FirstLeft.IsHole&&a.FirstLeft.Pts!==null)){for(var Y=a.FirstLeft;Y!==null&&(Y.IsHole==a.IsHole||Y.Pts===null);)Y=Y.FirstLeft;a.FirstLeft=Y}},e.Clipper.prototype.ExecuteInternal=function(){try{if(this.Reset(),this.m_CurrentLM===null)return!1;var a=this.PopScanbeam();do{if(this.InsertLocalMinimaIntoAEL(a),e.Clear(this.m_GhostJoins),this.ProcessHorizontals(!1),this.m_Scanbeam===null)break;var Y=this.PopScanbeam();if(!this.ProcessIntersections(a,Y))return!1;this.ProcessEdgesAtTopOfScanbeam(Y),a=Y}while(this.m_Scanbeam!==null||this.m_CurrentLM!==null);for(var A=0,pe=this.m_PolyOuts.length;A<pe;A++){var xe=this.m_PolyOuts[A];xe.Pts===null||xe.IsOpen||(xe.IsHole^this.ReverseSolution)==this.Area(xe)>0&&this.ReversePolyPtLinks(xe.Pts)}this.JoinCommonEdges();for(var A=0,pe=this.m_PolyOuts.length;A<pe;A++){var xe=this.m_PolyOuts[A];xe.Pts!==null&&!xe.IsOpen&&this.FixupOutPolygon(xe)}return this.StrictlySimple&&this.DoSimplePolygons(),!0}finally{e.Clear(this.m_Joins),e.Clear(this.m_GhostJoins)}},e.Clipper.prototype.PopScanbeam=function(){var a=this.m_Scanbeam.Y;return this.m_Scanbeam,this.m_Scanbeam=this.m_Scanbeam.Next,a},e.Clipper.prototype.DisposeAllPolyPts=function(){for(var a=0,Y=this.m_PolyOuts.length;a<Y;++a)this.DisposeOutRec(a);e.Clear(this.m_PolyOuts)},e.Clipper.prototype.DisposeOutRec=function(a){var Y=this.m_PolyOuts[a];Y.Pts!==null&&this.DisposeOutPts(Y.Pts),Y=null,this.m_PolyOuts[a]=null},e.Clipper.prototype.DisposeOutPts=function(a){if(a!==null)for(a.Prev.Next=null;a!==null;)a=a.Next},e.Clipper.prototype.AddJoin=function(a,Y,A){var pe=new e.Join;pe.OutPt1=a,pe.OutPt2=Y,pe.OffPt.X=A.X,pe.OffPt.Y=A.Y,this.m_Joins.push(pe)},e.Clipper.prototype.AddGhostJoin=function(a,Y){var A=new e.Join;A.OutPt1=a,A.OffPt.X=Y.X,A.OffPt.Y=Y.Y,this.m_GhostJoins.push(A)},e.Clipper.prototype.InsertLocalMinimaIntoAEL=function(a){for(;this.m_CurrentLM!==null&&this.m_CurrentLM.Y==a;){var Y=this.m_CurrentLM.LeftBound,A=this.m_CurrentLM.RightBound;this.PopLocalMinima();var pe=null;if(Y===null?(this.InsertEdgeIntoAEL(A,null),this.SetWindingCount(A),this.IsContributing(A)&&(pe=this.AddOutPt(A,A.Bot))):A==null?(this.InsertEdgeIntoAEL(Y,null),this.SetWindingCount(Y),this.IsContributing(Y)&&(pe=this.AddOutPt(Y,Y.Bot)),this.InsertScanbeam(Y.Top.Y)):(this.InsertEdgeIntoAEL(Y,null),this.InsertEdgeIntoAEL(A,Y),this.SetWindingCount(Y),A.WindCnt=Y.WindCnt,A.WindCnt2=Y.WindCnt2,this.IsContributing(Y)&&(pe=this.AddLocalMinPoly(Y,A,Y.Bot)),this.InsertScanbeam(Y.Top.Y)),A!=null&&(e.ClipperBase.IsHorizontal(A)?this.AddEdgeToSEL(A):this.InsertScanbeam(A.Top.Y)),!(Y==null||A==null)){if(pe!==null&&e.ClipperBase.IsHorizontal(A)&&this.m_GhostJoins.length>0&&A.WindDelta!==0)for(var xe=0,ae=this.m_GhostJoins.length;xe<ae;xe++){var $e=this.m_GhostJoins[xe];this.HorzSegmentsOverlap($e.OutPt1.Pt,$e.OffPt,A.Bot,A.Top)&&this.AddJoin($e.OutPt1,pe,$e.OffPt)}if(Y.OutIdx>=0&&Y.PrevInAEL!==null&&Y.PrevInAEL.Curr.X==Y.Bot.X&&Y.PrevInAEL.OutIdx>=0&&e.ClipperBase.SlopesEqual(Y.PrevInAEL,Y,this.m_UseFullRange)&&Y.WindDelta!==0&&Y.PrevInAEL.WindDelta!==0){var qe=this.AddOutPt(Y.PrevInAEL,Y.Bot);this.AddJoin(pe,qe,Y.Top)}if(Y.NextInAEL!=A){if(A.OutIdx>=0&&A.PrevInAEL.OutIdx>=0&&e.ClipperBase.SlopesEqual(A.PrevInAEL,A,this.m_UseFullRange)&&A.WindDelta!==0&&A.PrevInAEL.WindDelta!==0){var qe=this.AddOutPt(A.PrevInAEL,A.Bot);this.AddJoin(pe,qe,A.Top)}var jt=Y.NextInAEL;if(jt!==null)for(;jt!=A;)this.IntersectEdges(A,jt,Y.Curr,!1),jt=jt.NextInAEL}}}},e.Clipper.prototype.InsertEdgeIntoAEL=function(a,Y){if(this.m_ActiveEdges===null)a.PrevInAEL=null,a.NextInAEL=null,this.m_ActiveEdges=a;else if(Y===null&&this.E2InsertsBeforeE1(this.m_ActiveEdges,a))a.PrevInAEL=null,a.NextInAEL=this.m_ActiveEdges,this.m_ActiveEdges.PrevInAEL=a,this.m_ActiveEdges=a;else{for(Y===null&&(Y=this.m_ActiveEdges);Y.NextInAEL!==null&&!this.E2InsertsBeforeE1(Y.NextInAEL,a);)Y=Y.NextInAEL;a.NextInAEL=Y.NextInAEL,Y.NextInAEL!==null&&(Y.NextInAEL.PrevInAEL=a),a.PrevInAEL=Y,Y.NextInAEL=a}},e.Clipper.prototype.E2InsertsBeforeE1=function(a,Y){return Y.Curr.X==a.Curr.X?Y.Top.Y>a.Top.Y?Y.Top.X<e.Clipper.TopX(a,Y.Top.Y):a.Top.X>e.Clipper.TopX(Y,a.Top.Y):Y.Curr.X<a.Curr.X},e.Clipper.prototype.IsEvenOddFillType=function(a){return a.PolyTyp==e.PolyType.ptSubject?this.m_SubjFillType==e.PolyFillType.pftEvenOdd:this.m_ClipFillType==e.PolyFillType.pftEvenOdd},e.Clipper.prototype.IsEvenOddAltFillType=function(a){return a.PolyTyp==e.PolyType.ptSubject?this.m_ClipFillType==e.PolyFillType.pftEvenOdd:this.m_SubjFillType==e.PolyFillType.pftEvenOdd},e.Clipper.prototype.IsContributing=function(a){var Y,A;switch(a.PolyTyp==e.PolyType.ptSubject?(Y=this.m_SubjFillType,A=this.m_ClipFillType):(Y=this.m_ClipFillType,A=this.m_SubjFillType),Y){case e.PolyFillType.pftEvenOdd:if(a.WindDelta===0&&a.WindCnt!=1)return!1;break;case e.PolyFillType.pftNonZero:if(Math.abs(a.WindCnt)!=1)return!1;break;case e.PolyFillType.pftPositive:if(a.WindCnt!=1)return!1;break;default:if(a.WindCnt!=-1)return!1;break}switch(this.m_ClipType){case e.ClipType.ctIntersection:switch(A){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return a.WindCnt2!==0;case e.PolyFillType.pftPositive:return a.WindCnt2>0;default:return a.WindCnt2<0}case e.ClipType.ctUnion:switch(A){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return a.WindCnt2===0;case e.PolyFillType.pftPositive:return a.WindCnt2<=0;default:return a.WindCnt2>=0}case e.ClipType.ctDifference:if(a.PolyTyp==e.PolyType.ptSubject)switch(A){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return a.WindCnt2===0;case e.PolyFillType.pftPositive:return a.WindCnt2<=0;default:return a.WindCnt2>=0}else switch(A){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return a.WindCnt2!==0;case e.PolyFillType.pftPositive:return a.WindCnt2>0;default:return a.WindCnt2<0}case e.ClipType.ctXor:if(a.WindDelta===0)switch(A){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return a.WindCnt2===0;case e.PolyFillType.pftPositive:return a.WindCnt2<=0;default:return a.WindCnt2>=0}else return!0}return!0},e.Clipper.prototype.SetWindingCount=function(a){for(var Y=a.PrevInAEL;Y!==null&&(Y.PolyTyp!=a.PolyTyp||Y.WindDelta===0);)Y=Y.PrevInAEL;if(Y===null)a.WindCnt=a.WindDelta===0?1:a.WindDelta,a.WindCnt2=0,Y=this.m_ActiveEdges;else if(a.WindDelta===0&&this.m_ClipType!=e.ClipType.ctUnion)a.WindCnt=1,a.WindCnt2=Y.WindCnt2,Y=Y.NextInAEL;else if(this.IsEvenOddFillType(a)){if(a.WindDelta===0){for(var A=!0,pe=Y.PrevInAEL;pe!==null;)pe.PolyTyp==Y.PolyTyp&&pe.WindDelta!==0&&(A=!A),pe=pe.PrevInAEL;a.WindCnt=A?0:1}else a.WindCnt=a.WindDelta;a.WindCnt2=Y.WindCnt2,Y=Y.NextInAEL}else Y.WindCnt*Y.WindDelta<0?Math.abs(Y.WindCnt)>1?Y.WindDelta*a.WindDelta<0?a.WindCnt=Y.WindCnt:a.WindCnt=Y.WindCnt+a.WindDelta:a.WindCnt=a.WindDelta===0?1:a.WindDelta:a.WindDelta===0?a.WindCnt=Y.WindCnt<0?Y.WindCnt-1:Y.WindCnt+1:Y.WindDelta*a.WindDelta<0?a.WindCnt=Y.WindCnt:a.WindCnt=Y.WindCnt+a.WindDelta,a.WindCnt2=Y.WindCnt2,Y=Y.NextInAEL;if(this.IsEvenOddAltFillType(a))for(;Y!=a;)Y.WindDelta!==0&&(a.WindCnt2=a.WindCnt2===0?1:0),Y=Y.NextInAEL;else for(;Y!=a;)a.WindCnt2+=Y.WindDelta,Y=Y.NextInAEL},e.Clipper.prototype.AddEdgeToSEL=function(a){this.m_SortedEdges===null?(this.m_SortedEdges=a,a.PrevInSEL=null,a.NextInSEL=null):(a.NextInSEL=this.m_SortedEdges,a.PrevInSEL=null,this.m_SortedEdges.PrevInSEL=a,this.m_SortedEdges=a)},e.Clipper.prototype.CopyAELToSEL=function(){var a=this.m_ActiveEdges;for(this.m_SortedEdges=a;a!==null;)a.PrevInSEL=a.PrevInAEL,a.NextInSEL=a.NextInAEL,a=a.NextInAEL},e.Clipper.prototype.SwapPositionsInAEL=function(a,Y){if(!(a.NextInAEL==a.PrevInAEL||Y.NextInAEL==Y.PrevInAEL)){if(a.NextInAEL==Y){var A=Y.NextInAEL;A!==null&&(A.PrevInAEL=a);var pe=a.PrevInAEL;pe!==null&&(pe.NextInAEL=Y),Y.PrevInAEL=pe,Y.NextInAEL=a,a.PrevInAEL=Y,a.NextInAEL=A}else if(Y.NextInAEL==a){var A=a.NextInAEL;A!==null&&(A.PrevInAEL=Y);var pe=Y.PrevInAEL;pe!==null&&(pe.NextInAEL=a),a.PrevInAEL=pe,a.NextInAEL=Y,Y.PrevInAEL=a,Y.NextInAEL=A}else{var A=a.NextInAEL,pe=a.PrevInAEL;a.NextInAEL=Y.NextInAEL,a.NextInAEL!==null&&(a.NextInAEL.PrevInAEL=a),a.PrevInAEL=Y.PrevInAEL,a.PrevInAEL!==null&&(a.PrevInAEL.NextInAEL=a),Y.NextInAEL=A,Y.NextInAEL!==null&&(Y.NextInAEL.PrevInAEL=Y),Y.PrevInAEL=pe,Y.PrevInAEL!==null&&(Y.PrevInAEL.NextInAEL=Y)}a.PrevInAEL===null?this.m_ActiveEdges=a:Y.PrevInAEL===null&&(this.m_ActiveEdges=Y)}},e.Clipper.prototype.SwapPositionsInSEL=function(a,Y){if(!(a.NextInSEL===null&&a.PrevInSEL===null)&&!(Y.NextInSEL===null&&Y.PrevInSEL===null)){if(a.NextInSEL==Y){var A=Y.NextInSEL;A!==null&&(A.PrevInSEL=a);var pe=a.PrevInSEL;pe!==null&&(pe.NextInSEL=Y),Y.PrevInSEL=pe,Y.NextInSEL=a,a.PrevInSEL=Y,a.NextInSEL=A}else if(Y.NextInSEL==a){var A=a.NextInSEL;A!==null&&(A.PrevInSEL=Y);var pe=Y.PrevInSEL;pe!==null&&(pe.NextInSEL=a),a.PrevInSEL=pe,a.NextInSEL=Y,Y.PrevInSEL=a,Y.NextInSEL=A}else{var A=a.NextInSEL,pe=a.PrevInSEL;a.NextInSEL=Y.NextInSEL,a.NextInSEL!==null&&(a.NextInSEL.PrevInSEL=a),a.PrevInSEL=Y.PrevInSEL,a.PrevInSEL!==null&&(a.PrevInSEL.NextInSEL=a),Y.NextInSEL=A,Y.NextInSEL!==null&&(Y.NextInSEL.PrevInSEL=Y),Y.PrevInSEL=pe,Y.PrevInSEL!==null&&(Y.PrevInSEL.NextInSEL=Y)}a.PrevInSEL===null?this.m_SortedEdges=a:Y.PrevInSEL===null&&(this.m_SortedEdges=Y)}},e.Clipper.prototype.AddLocalMaxPoly=function(a,Y,A){this.AddOutPt(a,A),Y.WindDelta==0&&this.AddOutPt(Y,A),a.OutIdx==Y.OutIdx?(a.OutIdx=-1,Y.OutIdx=-1):a.OutIdx<Y.OutIdx?this.AppendPolygon(a,Y):this.AppendPolygon(Y,a)},e.Clipper.prototype.AddLocalMinPoly=function(a,Y,A){var pe,xe,ae;if(e.ClipperBase.IsHorizontal(Y)||a.Dx>Y.Dx?(pe=this.AddOutPt(a,A),Y.OutIdx=a.OutIdx,a.Side=e.EdgeSide.esLeft,Y.Side=e.EdgeSide.esRight,xe=a,xe.PrevInAEL==Y?ae=Y.PrevInAEL:ae=xe.PrevInAEL):(pe=this.AddOutPt(Y,A),a.OutIdx=Y.OutIdx,a.Side=e.EdgeSide.esRight,Y.Side=e.EdgeSide.esLeft,xe=Y,xe.PrevInAEL==a?ae=a.PrevInAEL:ae=xe.PrevInAEL),ae!==null&&ae.OutIdx>=0&&e.Clipper.TopX(ae,A.Y)==e.Clipper.TopX(xe,A.Y)&&e.ClipperBase.SlopesEqual(xe,ae,this.m_UseFullRange)&&xe.WindDelta!==0&&ae.WindDelta!==0){var $e=this.AddOutPt(ae,A);this.AddJoin(pe,$e,xe.Top)}return pe},e.Clipper.prototype.CreateOutRec=function(){var a=new e.OutRec;return a.Idx=-1,a.IsHole=!1,a.IsOpen=!1,a.FirstLeft=null,a.Pts=null,a.BottomPt=null,a.PolyNode=null,this.m_PolyOuts.push(a),a.Idx=this.m_PolyOuts.length-1,a},e.Clipper.prototype.AddOutPt=function(a,Y){var A=a.Side==e.EdgeSide.esLeft;if(a.OutIdx<0){var pe=this.CreateOutRec();pe.IsOpen=a.WindDelta===0;var xe=new e.OutPt;return pe.Pts=xe,xe.Idx=pe.Idx,xe.Pt.X=Y.X,xe.Pt.Y=Y.Y,xe.Next=xe,xe.Prev=xe,pe.IsOpen||this.SetHoleState(a,pe),a.OutIdx=pe.Idx,xe}else{var pe=this.m_PolyOuts[a.OutIdx],ae=pe.Pts;if(A&&e.IntPoint.op_Equality(Y,ae.Pt))return ae;if(!A&&e.IntPoint.op_Equality(Y,ae.Prev.Pt))return ae.Prev;var xe=new e.OutPt;return xe.Idx=pe.Idx,xe.Pt.X=Y.X,xe.Pt.Y=Y.Y,xe.Next=ae,xe.Prev=ae.Prev,xe.Prev.Next=xe,ae.Prev=xe,A&&(pe.Pts=xe),xe}},e.Clipper.prototype.SwapPoints=function(a,Y){var A=new e.IntPoint(a.Value);a.Value.X=Y.Value.X,a.Value.Y=Y.Value.Y,Y.Value.X=A.X,Y.Value.Y=A.Y},e.Clipper.prototype.HorzSegmentsOverlap=function(a,Y,A,pe){return a.X>A.X==a.X<pe.X||Y.X>A.X==Y.X<pe.X||A.X>a.X==A.X<Y.X||pe.X>a.X==pe.X<Y.X||a.X==A.X&&Y.X==pe.X?!0:a.X==pe.X&&Y.X==A.X},e.Clipper.prototype.InsertPolyPtBetween=function(a,Y,A){var pe=new e.OutPt;return pe.Pt.X=A.X,pe.Pt.Y=A.Y,Y==a.Next?(a.Next=pe,Y.Prev=pe,pe.Next=Y,pe.Prev=a):(Y.Next=pe,a.Prev=pe,pe.Next=a,pe.Prev=Y),pe},e.Clipper.prototype.SetHoleState=function(a,Y){for(var A=!1,pe=a.PrevInAEL;pe!==null;)pe.OutIdx>=0&&pe.WindDelta!=0&&(A=!A,Y.FirstLeft===null&&(Y.FirstLeft=this.m_PolyOuts[pe.OutIdx])),pe=pe.PrevInAEL;A&&(Y.IsHole=!0)},e.Clipper.prototype.GetDx=function(a,Y){return a.Y==Y.Y?e.ClipperBase.horizontal:(Y.X-a.X)/(Y.Y-a.Y)},e.Clipper.prototype.FirstIsBottomPt=function(a,Y){for(var A=a.Prev;e.IntPoint.op_Equality(A.Pt,a.Pt)&&A!=a;)A=A.Prev;var pe=Math.abs(this.GetDx(a.Pt,A.Pt));for(A=a.Next;e.IntPoint.op_Equality(A.Pt,a.Pt)&&A!=a;)A=A.Next;var xe=Math.abs(this.GetDx(a.Pt,A.Pt));for(A=Y.Prev;e.IntPoint.op_Equality(A.Pt,Y.Pt)&&A!=Y;)A=A.Prev;var ae=Math.abs(this.GetDx(Y.Pt,A.Pt));for(A=Y.Next;e.IntPoint.op_Equality(A.Pt,Y.Pt)&&A!=Y;)A=A.Next;var $e=Math.abs(this.GetDx(Y.Pt,A.Pt));return pe>=ae&&pe>=$e||xe>=ae&&xe>=$e},e.Clipper.prototype.GetBottomPt=function(a){for(var Y=null,A=a.Next;A!=a;)A.Pt.Y>a.Pt.Y?(a=A,Y=null):A.Pt.Y==a.Pt.Y&&A.Pt.X<=a.Pt.X&&(A.Pt.X<a.Pt.X?(Y=null,a=A):A.Next!=a&&A.Prev!=a&&(Y=A)),A=A.Next;if(Y!==null)for(;Y!=A;)for(this.FirstIsBottomPt(A,Y)||(a=Y),Y=Y.Next;e.IntPoint.op_Inequality(Y.Pt,a.Pt);)Y=Y.Next;return a},e.Clipper.prototype.GetLowermostRec=function(a,Y){a.BottomPt===null&&(a.BottomPt=this.GetBottomPt(a.Pts)),Y.BottomPt===null&&(Y.BottomPt=this.GetBottomPt(Y.Pts));var A=a.BottomPt,pe=Y.BottomPt;return A.Pt.Y>pe.Pt.Y?a:A.Pt.Y<pe.Pt.Y?Y:A.Pt.X<pe.Pt.X?a:A.Pt.X>pe.Pt.X||A.Next==A?Y:pe.Next==pe||this.FirstIsBottomPt(A,pe)?a:Y},e.Clipper.prototype.Param1RightOfParam2=function(a,Y){do if(a=a.FirstLeft,a==Y)return!0;while(a!==null);return!1},e.Clipper.prototype.GetOutRec=function(a){for(var Y=this.m_PolyOuts[a];Y!=this.m_PolyOuts[Y.Idx];)Y=this.m_PolyOuts[Y.Idx];return Y},e.Clipper.prototype.AppendPolygon=function(a,Y){var A=this.m_PolyOuts[a.OutIdx],pe=this.m_PolyOuts[Y.OutIdx],xe;this.Param1RightOfParam2(A,pe)?xe=pe:this.Param1RightOfParam2(pe,A)?xe=A:xe=this.GetLowermostRec(A,pe);var ae=A.Pts,$e=ae.Prev,qe=pe.Pts,jt=qe.Prev,vn;a.Side==e.EdgeSide.esLeft?(Y.Side==e.EdgeSide.esLeft?(this.ReversePolyPtLinks(qe),qe.Next=ae,ae.Prev=qe,$e.Next=jt,jt.Prev=$e,A.Pts=jt):(jt.Next=ae,ae.Prev=jt,qe.Prev=$e,$e.Next=qe,A.Pts=qe),vn=e.EdgeSide.esLeft):(Y.Side==e.EdgeSide.esRight?(this.ReversePolyPtLinks(qe),$e.Next=jt,jt.Prev=$e,qe.Next=ae,ae.Prev=qe):($e.Next=qe,qe.Prev=$e,ae.Prev=jt,jt.Next=ae),vn=e.EdgeSide.esRight),A.BottomPt=null,xe==pe&&(pe.FirstLeft!=A&&(A.FirstLeft=pe.FirstLeft),A.IsHole=pe.IsHole),pe.Pts=null,pe.BottomPt=null,pe.FirstLeft=A;var En=a.OutIdx,kn=Y.OutIdx;a.OutIdx=-1,Y.OutIdx=-1;for(var Nn=this.m_ActiveEdges;Nn!==null;){if(Nn.OutIdx==kn){Nn.OutIdx=En,Nn.Side=vn;break}Nn=Nn.NextInAEL}pe.Idx=A.Idx},e.Clipper.prototype.ReversePolyPtLinks=function(a){if(a!==null){var Y,A;Y=a;do A=Y.Next,Y.Next=Y.Prev,Y.Prev=A,Y=A;while(Y!=a)}},e.Clipper.SwapSides=function(a,Y){var A=a.Side;a.Side=Y.Side,Y.Side=A},e.Clipper.SwapPolyIndexes=function(a,Y){var A=a.OutIdx;a.OutIdx=Y.OutIdx,Y.OutIdx=A},e.Clipper.prototype.IntersectEdges=function(a,Y,A,pe){var xe=!pe&&a.NextInLML===null&&a.Top.X==A.X&&a.Top.Y==A.Y,ae=!pe&&Y.NextInLML===null&&Y.Top.X==A.X&&Y.Top.Y==A.Y,$e=a.OutIdx>=0,qe=Y.OutIdx>=0;if(a.WindDelta===0||Y.WindDelta===0){a.WindDelta===0&&Y.WindDelta===0?(xe||ae)&&$e&&qe&&this.AddLocalMaxPoly(a,Y,A):a.PolyTyp==Y.PolyTyp&&a.WindDelta!=Y.WindDelta&&this.m_ClipType==e.ClipType.ctUnion?a.WindDelta===0?qe&&(this.AddOutPt(a,A),$e&&(a.OutIdx=-1)):$e&&(this.AddOutPt(Y,A),qe&&(Y.OutIdx=-1)):a.PolyTyp!=Y.PolyTyp&&(a.WindDelta===0&&Math.abs(Y.WindCnt)==1&&(this.m_ClipType!=e.ClipType.ctUnion||Y.WindCnt2===0)?(this.AddOutPt(a,A),$e&&(a.OutIdx=-1)):Y.WindDelta===0&&Math.abs(a.WindCnt)==1&&(this.m_ClipType!=e.ClipType.ctUnion||a.WindCnt2===0)&&(this.AddOutPt(Y,A),qe&&(Y.OutIdx=-1))),xe&&(a.OutIdx<0?this.DeleteFromAEL(a):e.Error("Error intersecting polylines")),ae&&(Y.OutIdx<0?this.DeleteFromAEL(Y):e.Error("Error intersecting polylines"));return}if(a.PolyTyp==Y.PolyTyp)if(this.IsEvenOddFillType(a)){var jt=a.WindCnt;a.WindCnt=Y.WindCnt,Y.WindCnt=jt}else a.WindCnt+Y.WindDelta===0?a.WindCnt=-a.WindCnt:a.WindCnt+=Y.WindDelta,Y.WindCnt-a.WindDelta===0?Y.WindCnt=-Y.WindCnt:Y.WindCnt-=a.WindDelta;else this.IsEvenOddFillType(Y)?a.WindCnt2=a.WindCnt2===0?1:0:a.WindCnt2+=Y.WindDelta,this.IsEvenOddFillType(a)?Y.WindCnt2=Y.WindCnt2===0?1:0:Y.WindCnt2-=a.WindDelta;var vn,En,kn,Nn;a.PolyTyp==e.PolyType.ptSubject?(vn=this.m_SubjFillType,kn=this.m_ClipFillType):(vn=this.m_ClipFillType,kn=this.m_SubjFillType),Y.PolyTyp==e.PolyType.ptSubject?(En=this.m_SubjFillType,Nn=this.m_ClipFillType):(En=this.m_ClipFillType,Nn=this.m_SubjFillType);var Mn,Hn;switch(vn){case e.PolyFillType.pftPositive:Mn=a.WindCnt;break;case e.PolyFillType.pftNegative:Mn=-a.WindCnt;break;default:Mn=Math.abs(a.WindCnt);break}switch(En){case e.PolyFillType.pftPositive:Hn=Y.WindCnt;break;case e.PolyFillType.pftNegative:Hn=-Y.WindCnt;break;default:Hn=Math.abs(Y.WindCnt);break}if($e&&qe)xe||ae||Mn!==0&&Mn!=1||Hn!==0&&Hn!=1||a.PolyTyp!=Y.PolyTyp&&this.m_ClipType!=e.ClipType.ctXor?this.AddLocalMaxPoly(a,Y,A):(this.AddOutPt(a,A),this.AddOutPt(Y,A),e.Clipper.SwapSides(a,Y),e.Clipper.SwapPolyIndexes(a,Y));else if($e)(Hn===0||Hn==1)&&(this.AddOutPt(a,A),e.Clipper.SwapSides(a,Y),e.Clipper.SwapPolyIndexes(a,Y));else if(qe)(Mn===0||Mn==1)&&(this.AddOutPt(Y,A),e.Clipper.SwapSides(a,Y),e.Clipper.SwapPolyIndexes(a,Y));else if((Mn===0||Mn==1)&&(Hn===0||Hn==1)&&!xe&&!ae){var Vn,Un;switch(kn){case e.PolyFillType.pftPositive:Vn=a.WindCnt2;break;case e.PolyFillType.pftNegative:Vn=-a.WindCnt2;break;default:Vn=Math.abs(a.WindCnt2);break}switch(Nn){case e.PolyFillType.pftPositive:Un=Y.WindCnt2;break;case e.PolyFillType.pftNegative:Un=-Y.WindCnt2;break;default:Un=Math.abs(Y.WindCnt2);break}if(a.PolyTyp!=Y.PolyTyp)this.AddLocalMinPoly(a,Y,A);else if(Mn==1&&Hn==1)switch(this.m_ClipType){case e.ClipType.ctIntersection:Vn>0&&Un>0&&this.AddLocalMinPoly(a,Y,A);break;case e.ClipType.ctUnion:Vn<=0&&Un<=0&&this.AddLocalMinPoly(a,Y,A);break;case e.ClipType.ctDifference:(a.PolyTyp==e.PolyType.ptClip&&Vn>0&&Un>0||a.PolyTyp==e.PolyType.ptSubject&&Vn<=0&&Un<=0)&&this.AddLocalMinPoly(a,Y,A);break;case e.ClipType.ctXor:this.AddLocalMinPoly(a,Y,A);break}else e.Clipper.SwapSides(a,Y)}xe!=ae&&(xe&&a.OutIdx>=0||ae&&Y.OutIdx>=0)&&(e.Clipper.SwapSides(a,Y),e.Clipper.SwapPolyIndexes(a,Y)),xe&&this.DeleteFromAEL(a),ae&&this.DeleteFromAEL(Y)},e.Clipper.prototype.DeleteFromAEL=function(a){var Y=a.PrevInAEL,A=a.NextInAEL;Y===null&&A===null&&a!=this.m_ActiveEdges||(Y!==null?Y.NextInAEL=A:this.m_ActiveEdges=A,A!==null&&(A.PrevInAEL=Y),a.NextInAEL=null,a.PrevInAEL=null)},e.Clipper.prototype.DeleteFromSEL=function(a){var Y=a.PrevInSEL,A=a.NextInSEL;Y===null&&A===null&&a!=this.m_SortedEdges||(Y!==null?Y.NextInSEL=A:this.m_SortedEdges=A,A!==null&&(A.PrevInSEL=Y),a.NextInSEL=null,a.PrevInSEL=null)},e.Clipper.prototype.UpdateEdgeIntoAEL=function(a){a.NextInLML===null&&e.Error("UpdateEdgeIntoAEL: invalid call");var Y=a.PrevInAEL,A=a.NextInAEL;return a.NextInLML.OutIdx=a.OutIdx,Y!==null?Y.NextInAEL=a.NextInLML:this.m_ActiveEdges=a.NextInLML,A!==null&&(A.PrevInAEL=a.NextInLML),a.NextInLML.Side=a.Side,a.NextInLML.WindDelta=a.WindDelta,a.NextInLML.WindCnt=a.WindCnt,a.NextInLML.WindCnt2=a.WindCnt2,a=a.NextInLML,a.Curr.X=a.Bot.X,a.Curr.Y=a.Bot.Y,a.PrevInAEL=Y,a.NextInAEL=A,e.ClipperBase.IsHorizontal(a)||this.InsertScanbeam(a.Top.Y),a},e.Clipper.prototype.ProcessHorizontals=function(a){for(var Y=this.m_SortedEdges;Y!==null;)this.DeleteFromSEL(Y),this.ProcessHorizontal(Y,a),Y=this.m_SortedEdges},e.Clipper.prototype.GetHorzDirection=function(a,Y){a.Bot.X<a.Top.X?(Y.Left=a.Bot.X,Y.Right=a.Top.X,Y.Dir=e.Direction.dLeftToRight):(Y.Left=a.Top.X,Y.Right=a.Bot.X,Y.Dir=e.Direction.dRightToLeft)},e.Clipper.prototype.PrepareHorzJoins=function(a,Y){var A=this.m_PolyOuts[a.OutIdx].Pts;a.Side!=e.EdgeSide.esLeft&&(A=A.Prev),Y&&(e.IntPoint.op_Equality(A.Pt,a.Top)?this.AddGhostJoin(A,a.Bot):this.AddGhostJoin(A,a.Top))},e.Clipper.prototype.ProcessHorizontal=function(a,Y){var A={Dir:null,Left:null,Right:null};this.GetHorzDirection(a,A);for(var pe=A.Dir,xe=A.Left,ae=A.Right,$e=a,qe=null;$e.NextInLML!==null&&e.ClipperBase.IsHorizontal($e.NextInLML);)$e=$e.NextInLML;for($e.NextInLML===null&&(qe=this.GetMaximaPair($e));;){for(var jt=a==$e,vn=this.GetNextInAEL(a,pe);vn!==null&&!(vn.Curr.X==a.Top.X&&a.NextInLML!==null&&vn.Dx<a.NextInLML.Dx);){var En=this.GetNextInAEL(vn,pe);if(pe==e.Direction.dLeftToRight&&vn.Curr.X<=ae||pe==e.Direction.dRightToLeft&&vn.Curr.X>=xe){if(a.OutIdx>=0&&a.WindDelta!=0&&this.PrepareHorzJoins(a,Y),vn==qe&&jt){pe==e.Direction.dLeftToRight?this.IntersectEdges(a,vn,vn.Top,!1):this.IntersectEdges(vn,a,vn.Top,!1),qe.OutIdx>=0&&e.Error("ProcessHorizontal error");return}else if(pe==e.Direction.dLeftToRight){var kn=new e.IntPoint(vn.Curr.X,a.Curr.Y);this.IntersectEdges(a,vn,kn,!0)}else{var kn=new e.IntPoint(vn.Curr.X,a.Curr.Y);this.IntersectEdges(vn,a,kn,!0)}this.SwapPositionsInAEL(a,vn)}else if(pe==e.Direction.dLeftToRight&&vn.Curr.X>=ae||pe==e.Direction.dRightToLeft&&vn.Curr.X<=xe)break;vn=En}if(a.OutIdx>=0&&a.WindDelta!==0&&this.PrepareHorzJoins(a,Y),a.NextInLML!==null&&e.ClipperBase.IsHorizontal(a.NextInLML)){a=this.UpdateEdgeIntoAEL(a),a.OutIdx>=0&&this.AddOutPt(a,a.Bot);var A={Dir:pe,Left:xe,Right:ae};this.GetHorzDirection(a,A),pe=A.Dir,xe=A.Left,ae=A.Right}else break}if(a.NextInLML!==null)if(a.OutIdx>=0){var Nn=this.AddOutPt(a,a.Top);if(a=this.UpdateEdgeIntoAEL(a),a.WindDelta===0)return;var Mn=a.PrevInAEL,En=a.NextInAEL;if(Mn!==null&&Mn.Curr.X==a.Bot.X&&Mn.Curr.Y==a.Bot.Y&&Mn.WindDelta!==0&&Mn.OutIdx>=0&&Mn.Curr.Y>Mn.Top.Y&&e.ClipperBase.SlopesEqual(a,Mn,this.m_UseFullRange)){var Hn=this.AddOutPt(Mn,a.Bot);this.AddJoin(Nn,Hn,a.Top)}else if(En!==null&&En.Curr.X==a.Bot.X&&En.Curr.Y==a.Bot.Y&&En.WindDelta!==0&&En.OutIdx>=0&&En.Curr.Y>En.Top.Y&&e.ClipperBase.SlopesEqual(a,En,this.m_UseFullRange)){var Hn=this.AddOutPt(En,a.Bot);this.AddJoin(Nn,Hn,a.Top)}}else a=this.UpdateEdgeIntoAEL(a);else qe!==null?qe.OutIdx>=0?(pe==e.Direction.dLeftToRight?this.IntersectEdges(a,qe,a.Top,!1):this.IntersectEdges(qe,a,a.Top,!1),qe.OutIdx>=0&&e.Error("ProcessHorizontal error")):(this.DeleteFromAEL(a),this.DeleteFromAEL(qe)):(a.OutIdx>=0&&this.AddOutPt(a,a.Top),this.DeleteFromAEL(a))},e.Clipper.prototype.GetNextInAEL=function(a,Y){return Y==e.Direction.dLeftToRight?a.NextInAEL:a.PrevInAEL},e.Clipper.prototype.IsMinima=function(a){return a!==null&&a.Prev.NextInLML!=a&&a.Next.NextInLML!=a},e.Clipper.prototype.IsMaxima=function(a,Y){return a!==null&&a.Top.Y==Y&&a.NextInLML===null},e.Clipper.prototype.IsIntermediate=function(a,Y){return a.Top.Y==Y&&a.NextInLML!==null},e.Clipper.prototype.GetMaximaPair=function(a){var Y=null;return e.IntPoint.op_Equality(a.Next.Top,a.Top)&&a.Next.NextInLML===null?Y=a.Next:e.IntPoint.op_Equality(a.Prev.Top,a.Top)&&a.Prev.NextInLML===null&&(Y=a.Prev),Y!==null&&(Y.OutIdx==-2||Y.NextInAEL==Y.PrevInAEL&&!e.ClipperBase.IsHorizontal(Y))?null:Y},e.Clipper.prototype.ProcessIntersections=function(a,Y){if(this.m_ActiveEdges==null)return!0;try{if(this.BuildIntersectList(a,Y),this.m_IntersectList.length==0)return!0;if(this.m_IntersectList.length==1||this.FixupIntersectionOrder())this.ProcessIntersectList();else return!1}catch{this.m_SortedEdges=null,this.m_IntersectList.length=0,e.Error("ProcessIntersections error")}return this.m_SortedEdges=null,!0},e.Clipper.prototype.BuildIntersectList=function(a,Y){if(this.m_ActiveEdges!==null){var A=this.m_ActiveEdges;for(this.m_SortedEdges=A;A!==null;)A.PrevInSEL=A.PrevInAEL,A.NextInSEL=A.NextInAEL,A.Curr.X=e.Clipper.TopX(A,Y),A=A.NextInAEL;for(var pe=!0;pe&&this.m_SortedEdges!==null;){for(pe=!1,A=this.m_SortedEdges;A.NextInSEL!==null;){var xe=A.NextInSEL,ae=new e.IntPoint;if(A.Curr.X>xe.Curr.X){!this.IntersectPoint(A,xe,ae)&&A.Curr.X>xe.Curr.X+1&&e.Error("Intersection error"),ae.Y>a&&(ae.Y=a,Math.abs(A.Dx)>Math.abs(xe.Dx)?ae.X=e.Clipper.TopX(xe,a):ae.X=e.Clipper.TopX(A,a));var $e=new e.IntersectNode;$e.Edge1=A,$e.Edge2=xe,$e.Pt.X=ae.X,$e.Pt.Y=ae.Y,this.m_IntersectList.push($e),this.SwapPositionsInSEL(A,xe),pe=!0}else A=xe}if(A.PrevInSEL!==null)A.PrevInSEL.NextInSEL=null;else break}this.m_SortedEdges=null}},e.Clipper.prototype.EdgesAdjacent=function(a){return a.Edge1.NextInSEL==a.Edge2||a.Edge1.PrevInSEL==a.Edge2},e.Clipper.IntersectNodeSort=function(a,Y){return Y.Pt.Y-a.Pt.Y},e.Clipper.prototype.FixupIntersectionOrder=function(){this.m_IntersectList.sort(this.m_IntersectNodeComparer),this.CopyAELToSEL();for(var a=this.m_IntersectList.length,Y=0;Y<a;Y++){if(!this.EdgesAdjacent(this.m_IntersectList[Y])){for(var A=Y+1;A<a&&!this.EdgesAdjacent(this.m_IntersectList[A]);)A++;if(A==a)return!1;var pe=this.m_IntersectList[Y];this.m_IntersectList[Y]=this.m_IntersectList[A],this.m_IntersectList[A]=pe}this.SwapPositionsInSEL(this.m_IntersectList[Y].Edge1,this.m_IntersectList[Y].Edge2)}return!0},e.Clipper.prototype.ProcessIntersectList=function(){for(var a=0,Y=this.m_IntersectList.length;a<Y;a++){var A=this.m_IntersectList[a];this.IntersectEdges(A.Edge1,A.Edge2,A.Pt,!0),this.SwapPositionsInAEL(A.Edge1,A.Edge2)}this.m_IntersectList.length=0};var Ul=function(a){return a<0?Math.ceil(a-.5):Math.round(a)},ql=function(a){return a<0?Math.ceil(a-.5):Math.floor(a+.5)},Gl=function(a){return a<0?-Math.round(Math.abs(a)):Math.round(a)},Zl=function(a){return a<0?(a-=.5,a<-2147483648?Math.ceil(a):a|0):(a+=.5,a>2147483647?Math.floor(a):a|0)};l.msie?e.Clipper.Round=Ul:l.chromium?e.Clipper.Round=Gl:l.safari?e.Clipper.Round=Zl:e.Clipper.Round=ql,e.Clipper.TopX=function(a,Y){return Y==a.Top.Y?a.Top.X:a.Bot.X+e.Clipper.Round(a.Dx*(Y-a.Bot.Y))},e.Clipper.prototype.IntersectPoint=function(a,Y,A){A.X=0,A.Y=0;var pe,xe;if(e.ClipperBase.SlopesEqual(a,Y,this.m_UseFullRange)||a.Dx==Y.Dx)return Y.Bot.Y>a.Bot.Y?(A.X=Y.Bot.X,A.Y=Y.Bot.Y):(A.X=a.Bot.X,A.Y=a.Bot.Y),!1;if(a.Delta.X===0)A.X=a.Bot.X,e.ClipperBase.IsHorizontal(Y)?A.Y=Y.Bot.Y:(xe=Y.Bot.Y-Y.Bot.X/Y.Dx,A.Y=e.Clipper.Round(A.X/Y.Dx+xe));else if(Y.Delta.X===0)A.X=Y.Bot.X,e.ClipperBase.IsHorizontal(a)?A.Y=a.Bot.Y:(pe=a.Bot.Y-a.Bot.X/a.Dx,A.Y=e.Clipper.Round(A.X/a.Dx+pe));else{pe=a.Bot.X-a.Bot.Y*a.Dx,xe=Y.Bot.X-Y.Bot.Y*Y.Dx;var ae=(xe-pe)/(a.Dx-Y.Dx);A.Y=e.Clipper.Round(ae),Math.abs(a.Dx)<Math.abs(Y.Dx)?A.X=e.Clipper.Round(a.Dx*ae+pe):A.X=e.Clipper.Round(Y.Dx*ae+xe)}if(A.Y<a.Top.Y||A.Y<Y.Top.Y){if(a.Top.Y>Y.Top.Y)return A.Y=a.Top.Y,A.X=e.Clipper.TopX(Y,a.Top.Y),A.X<a.Top.X;A.Y=Y.Top.Y,Math.abs(a.Dx)<Math.abs(Y.Dx)?A.X=e.Clipper.TopX(a,A.Y):A.X=e.Clipper.TopX(Y,A.Y)}return!0},e.Clipper.prototype.ProcessEdgesAtTopOfScanbeam=function(a){for(var Y=this.m_ActiveEdges;Y!==null;){var A=this.IsMaxima(Y,a);if(A){var pe=this.GetMaximaPair(Y);A=pe===null||!e.ClipperBase.IsHorizontal(pe)}if(A){var xe=Y.PrevInAEL;this.DoMaxima(Y),xe===null?Y=this.m_ActiveEdges:Y=xe.NextInAEL}else{if(this.IsIntermediate(Y,a)&&e.ClipperBase.IsHorizontal(Y.NextInLML)?(Y=this.UpdateEdgeIntoAEL(Y),Y.OutIdx>=0&&this.AddOutPt(Y,Y.Bot),this.AddEdgeToSEL(Y)):(Y.Curr.X=e.Clipper.TopX(Y,a),Y.Curr.Y=a),this.StrictlySimple){var xe=Y.PrevInAEL;if(Y.OutIdx>=0&&Y.WindDelta!==0&&xe!==null&&xe.OutIdx>=0&&xe.Curr.X==Y.Curr.X&&xe.WindDelta!==0){var ae=this.AddOutPt(xe,Y.Curr),$e=this.AddOutPt(Y,Y.Curr);this.AddJoin(ae,$e,Y.Curr)}}Y=Y.NextInAEL}}for(this.ProcessHorizontals(!0),Y=this.m_ActiveEdges;Y!==null;){if(this.IsIntermediate(Y,a)){var ae=null;Y.OutIdx>=0&&(ae=this.AddOutPt(Y,Y.Top)),Y=this.UpdateEdgeIntoAEL(Y);var xe=Y.PrevInAEL,qe=Y.NextInAEL;if(xe!==null&&xe.Curr.X==Y.Bot.X&&xe.Curr.Y==Y.Bot.Y&&ae!==null&&xe.OutIdx>=0&&xe.Curr.Y>xe.Top.Y&&e.ClipperBase.SlopesEqual(Y,xe,this.m_UseFullRange)&&Y.WindDelta!==0&&xe.WindDelta!==0){var $e=this.AddOutPt(xe,Y.Bot);this.AddJoin(ae,$e,Y.Top)}else if(qe!==null&&qe.Curr.X==Y.Bot.X&&qe.Curr.Y==Y.Bot.Y&&ae!==null&&qe.OutIdx>=0&&qe.Curr.Y>qe.Top.Y&&e.ClipperBase.SlopesEqual(Y,qe,this.m_UseFullRange)&&Y.WindDelta!==0&&qe.WindDelta!==0){var $e=this.AddOutPt(qe,Y.Bot);this.AddJoin(ae,$e,Y.Top)}}Y=Y.NextInAEL}},e.Clipper.prototype.DoMaxima=function(a){var Y=this.GetMaximaPair(a);if(Y===null){a.OutIdx>=0&&this.AddOutPt(a,a.Top),this.DeleteFromAEL(a);return}for(var A=a.NextInAEL;A!==null&&A!=Y;)this.IntersectEdges(a,A,a.Top,!0),this.SwapPositionsInAEL(a,A),A=a.NextInAEL;a.OutIdx==-1&&Y.OutIdx==-1?(this.DeleteFromAEL(a),this.DeleteFromAEL(Y)):a.OutIdx>=0&&Y.OutIdx>=0?this.IntersectEdges(a,Y,a.Top,!1):a.WindDelta===0?(a.OutIdx>=0&&(this.AddOutPt(a,a.Top),a.OutIdx=-1),this.DeleteFromAEL(a),Y.OutIdx>=0&&(this.AddOutPt(Y,a.Top),Y.OutIdx=-1),this.DeleteFromAEL(Y)):e.Error("DoMaxima error")},e.Clipper.ReversePaths=function(a){for(var Y=0,A=a.length;Y<A;Y++)a[Y].reverse()},e.Clipper.Orientation=function(a){return e.Clipper.Area(a)>=0},e.Clipper.prototype.PointCount=function(a){if(a===null)return 0;var Y=0,A=a;do Y++,A=A.Next;while(A!=a);return Y},e.Clipper.prototype.BuildResult=function(a){e.Clear(a);for(var Y=0,A=this.m_PolyOuts.length;Y<A;Y++){var pe=this.m_PolyOuts[Y];if(pe.Pts!==null){var xe=pe.Pts.Prev,ae=this.PointCount(xe);if(!(ae<2)){for(var $e=new Array(ae),qe=0;qe<ae;qe++)$e[qe]=xe.Pt,xe=xe.Prev;a.push($e)}}}},e.Clipper.prototype.BuildResult2=function(a){a.Clear();for(var Y=0,A=this.m_PolyOuts.length;Y<A;Y++){var pe=this.m_PolyOuts[Y],xe=this.PointCount(pe.Pts);if(!(pe.IsOpen&&xe<2||!pe.IsOpen&&xe<3)){this.FixHoleLinkage(pe);var ae=new e.PolyNode;a.m_AllPolys.push(ae),pe.PolyNode=ae,ae.m_polygon.length=xe;for(var $e=pe.Pts.Prev,qe=0;qe<xe;qe++)ae.m_polygon[qe]=$e.Pt,$e=$e.Prev}}for(var Y=0,A=this.m_PolyOuts.length;Y<A;Y++){var pe=this.m_PolyOuts[Y];pe.PolyNode!==null&&(pe.IsOpen?(pe.PolyNode.IsOpen=!0,a.AddChild(pe.PolyNode)):pe.FirstLeft!==null&&pe.FirstLeft.PolyNode!=null?pe.FirstLeft.PolyNode.AddChild(pe.PolyNode):a.AddChild(pe.PolyNode))}},e.Clipper.prototype.FixupOutPolygon=function(a){var Y=null;a.BottomPt=null;for(var A=a.Pts;;){if(A.Prev==A||A.Prev==A.Next){this.DisposeOutPts(A),a.Pts=null;return}if(e.IntPoint.op_Equality(A.Pt,A.Next.Pt)||e.IntPoint.op_Equality(A.Pt,A.Prev.Pt)||e.ClipperBase.SlopesEqual(A.Prev.Pt,A.Pt,A.Next.Pt,this.m_UseFullRange)&&(!this.PreserveCollinear||!this.Pt2IsBetweenPt1AndPt3(A.Prev.Pt,A.Pt,A.Next.Pt)))Y=null,A.Prev.Next=A.Next,A.Next.Prev=A.Prev,A=A.Prev;else{if(A==Y)break;Y===null&&(Y=A),A=A.Next}}a.Pts=A},e.Clipper.prototype.DupOutPt=function(a,Y){var A=new e.OutPt;return A.Pt.X=a.Pt.X,A.Pt.Y=a.Pt.Y,A.Idx=a.Idx,Y?(A.Next=a.Next,A.Prev=a,a.Next.Prev=A,a.Next=A):(A.Prev=a.Prev,A.Next=a,a.Prev.Next=A,a.Prev=A),A},e.Clipper.prototype.GetOverlap=function(a,Y,A,pe,xe){return a<Y?A<pe?(xe.Left=Math.max(a,A),xe.Right=Math.min(Y,pe)):(xe.Left=Math.max(a,pe),xe.Right=Math.min(Y,A)):A<pe?(xe.Left=Math.max(Y,A),xe.Right=Math.min(a,pe)):(xe.Left=Math.max(Y,pe),xe.Right=Math.min(a,A)),xe.Left<xe.Right},e.Clipper.prototype.JoinHorz=function(a,Y,A,pe,xe,ae){var $e=a.Pt.X>Y.Pt.X?e.Direction.dRightToLeft:e.Direction.dLeftToRight,qe=A.Pt.X>pe.Pt.X?e.Direction.dRightToLeft:e.Direction.dLeftToRight;if($e==qe)return!1;if($e==e.Direction.dLeftToRight){for(;a.Next.Pt.X<=xe.X&&a.Next.Pt.X>=a.Pt.X&&a.Next.Pt.Y==xe.Y;)a=a.Next;ae&&a.Pt.X!=xe.X&&(a=a.Next),Y=this.DupOutPt(a,!ae),e.IntPoint.op_Inequality(Y.Pt,xe)&&(a=Y,a.Pt.X=xe.X,a.Pt.Y=xe.Y,Y=this.DupOutPt(a,!ae))}else{for(;a.Next.Pt.X>=xe.X&&a.Next.Pt.X<=a.Pt.X&&a.Next.Pt.Y==xe.Y;)a=a.Next;!ae&&a.Pt.X!=xe.X&&(a=a.Next),Y=this.DupOutPt(a,ae),e.IntPoint.op_Inequality(Y.Pt,xe)&&(a=Y,a.Pt.X=xe.X,a.Pt.Y=xe.Y,Y=this.DupOutPt(a,ae))}if(qe==e.Direction.dLeftToRight){for(;A.Next.Pt.X<=xe.X&&A.Next.Pt.X>=A.Pt.X&&A.Next.Pt.Y==xe.Y;)A=A.Next;ae&&A.Pt.X!=xe.X&&(A=A.Next),pe=this.DupOutPt(A,!ae),e.IntPoint.op_Inequality(pe.Pt,xe)&&(A=pe,A.Pt.X=xe.X,A.Pt.Y=xe.Y,pe=this.DupOutPt(A,!ae))}else{for(;A.Next.Pt.X>=xe.X&&A.Next.Pt.X<=A.Pt.X&&A.Next.Pt.Y==xe.Y;)A=A.Next;!ae&&A.Pt.X!=xe.X&&(A=A.Next),pe=this.DupOutPt(A,ae),e.IntPoint.op_Inequality(pe.Pt,xe)&&(A=pe,A.Pt.X=xe.X,A.Pt.Y=xe.Y,pe=this.DupOutPt(A,ae))}return $e==e.Direction.dLeftToRight==ae?(a.Prev=A,A.Next=a,Y.Next=pe,pe.Prev=Y):(a.Next=A,A.Prev=a,Y.Prev=pe,pe.Next=Y),!0},e.Clipper.prototype.JoinPoints=function(a,Y,A){var pe=a.OutPt1,xe=new e.OutPt,ae=a.OutPt2,$e=new e.OutPt,qe=a.OutPt1.Pt.Y==a.OffPt.Y;if(qe&&e.IntPoint.op_Equality(a.OffPt,a.OutPt1.Pt)&&e.IntPoint.op_Equality(a.OffPt,a.OutPt2.Pt)){for(xe=a.OutPt1.Next;xe!=pe&&e.IntPoint.op_Equality(xe.Pt,a.OffPt);)xe=xe.Next;var jt=xe.Pt.Y>a.OffPt.Y;for($e=a.OutPt2.Next;$e!=ae&&e.IntPoint.op_Equality($e.Pt,a.OffPt);)$e=$e.Next;var vn=$e.Pt.Y>a.OffPt.Y;return jt==vn?!1:jt?(xe=this.DupOutPt(pe,!1),$e=this.DupOutPt(ae,!0),pe.Prev=ae,ae.Next=pe,xe.Next=$e,$e.Prev=xe,a.OutPt1=pe,a.OutPt2=xe,!0):(xe=this.DupOutPt(pe,!0),$e=this.DupOutPt(ae,!1),pe.Next=ae,ae.Prev=pe,xe.Prev=$e,$e.Next=xe,a.OutPt1=pe,a.OutPt2=xe,!0)}else if(qe){for(xe=pe;pe.Prev.Pt.Y==pe.Pt.Y&&pe.Prev!=xe&&pe.Prev!=ae;)pe=pe.Prev;for(;xe.Next.Pt.Y==xe.Pt.Y&&xe.Next!=pe&&xe.Next!=ae;)xe=xe.Next;if(xe.Next==pe||xe.Next==ae)return!1;for($e=ae;ae.Prev.Pt.Y==ae.Pt.Y&&ae.Prev!=$e&&ae.Prev!=xe;)ae=ae.Prev;for(;$e.Next.Pt.Y==$e.Pt.Y&&$e.Next!=ae&&$e.Next!=pe;)$e=$e.Next;if($e.Next==ae||$e.Next==pe)return!1;var En={Left:null,Right:null};if(!this.GetOverlap(pe.Pt.X,xe.Pt.X,ae.Pt.X,$e.Pt.X,En))return!1;var kn=En.Left,Nn=En.Right,Mn=new e.IntPoint,Hn;return pe.Pt.X>=kn&&pe.Pt.X<=Nn?(Mn.X=pe.Pt.X,Mn.Y=pe.Pt.Y,Hn=pe.Pt.X>xe.Pt.X):ae.Pt.X>=kn&&ae.Pt.X<=Nn?(Mn.X=ae.Pt.X,Mn.Y=ae.Pt.Y,Hn=ae.Pt.X>$e.Pt.X):xe.Pt.X>=kn&&xe.Pt.X<=Nn?(Mn.X=xe.Pt.X,Mn.Y=xe.Pt.Y,Hn=xe.Pt.X>pe.Pt.X):(Mn.X=$e.Pt.X,Mn.Y=$e.Pt.Y,Hn=$e.Pt.X>ae.Pt.X),a.OutPt1=pe,a.OutPt2=ae,this.JoinHorz(pe,xe,ae,$e,Mn,Hn)}else{for(xe=pe.Next;e.IntPoint.op_Equality(xe.Pt,pe.Pt)&&xe!=pe;)xe=xe.Next;var Vn=xe.Pt.Y>pe.Pt.Y||!e.ClipperBase.SlopesEqual(pe.Pt,xe.Pt,a.OffPt,this.m_UseFullRange);if(Vn){for(xe=pe.Prev;e.IntPoint.op_Equality(xe.Pt,pe.Pt)&&xe!=pe;)xe=xe.Prev;if(xe.Pt.Y>pe.Pt.Y||!e.ClipperBase.SlopesEqual(pe.Pt,xe.Pt,a.OffPt,this.m_UseFullRange))return!1}for($e=ae.Next;e.IntPoint.op_Equality($e.Pt,ae.Pt)&&$e!=ae;)$e=$e.Next;var Un=$e.Pt.Y>ae.Pt.Y||!e.ClipperBase.SlopesEqual(ae.Pt,$e.Pt,a.OffPt,this.m_UseFullRange);if(Un){for($e=ae.Prev;e.IntPoint.op_Equality($e.Pt,ae.Pt)&&$e!=ae;)$e=$e.Prev;if($e.Pt.Y>ae.Pt.Y||!e.ClipperBase.SlopesEqual(ae.Pt,$e.Pt,a.OffPt,this.m_UseFullRange))return!1}return xe==pe||$e==ae||xe==$e||Y==A&&Vn==Un?!1:Vn?(xe=this.DupOutPt(pe,!1),$e=this.DupOutPt(ae,!0),pe.Prev=ae,ae.Next=pe,xe.Next=$e,$e.Prev=xe,a.OutPt1=pe,a.OutPt2=xe,!0):(xe=this.DupOutPt(pe,!0),$e=this.DupOutPt(ae,!1),pe.Next=ae,ae.Prev=pe,xe.Prev=$e,$e.Next=xe,a.OutPt1=pe,a.OutPt2=xe,!0)}},e.Clipper.GetBounds=function(a){for(var Y=0,A=a.length;Y<A&&a[Y].length==0;)Y++;if(Y==A)return new e.IntRect(0,0,0,0);var pe=new e.IntRect;for(pe.left=a[Y][0].X,pe.right=pe.left,pe.top=a[Y][0].Y,pe.bottom=pe.top;Y<A;Y++)for(var xe=0,ae=a[Y].length;xe<ae;xe++)a[Y][xe].X<pe.left?pe.left=a[Y][xe].X:a[Y][xe].X>pe.right&&(pe.right=a[Y][xe].X),a[Y][xe].Y<pe.top?pe.top=a[Y][xe].Y:a[Y][xe].Y>pe.bottom&&(pe.bottom=a[Y][xe].Y);return pe},e.Clipper.prototype.GetBounds2=function(a){var Y=a,A=new e.IntRect;for(A.left=a.Pt.X,A.right=a.Pt.X,A.top=a.Pt.Y,A.bottom=a.Pt.Y,a=a.Next;a!=Y;)a.Pt.X<A.left&&(A.left=a.Pt.X),a.Pt.X>A.right&&(A.right=a.Pt.X),a.Pt.Y<A.top&&(A.top=a.Pt.Y),a.Pt.Y>A.bottom&&(A.bottom=a.Pt.Y),a=a.Next;return A},e.Clipper.PointInPolygon=function(a,Y){var A=0,pe=Y.length;if(pe<3)return 0;for(var xe=Y[0],ae=1;ae<=pe;++ae){var $e=ae==pe?Y[0]:Y[ae];if($e.Y==a.Y&&($e.X==a.X||xe.Y==a.Y&&$e.X>a.X==xe.X<a.X))return-1;if(xe.Y<a.Y!=$e.Y<a.Y){if(xe.X>=a.X)if($e.X>a.X)A=1-A;else{var qe=(xe.X-a.X)*($e.Y-a.Y)-($e.X-a.X)*(xe.Y-a.Y);if(qe==0)return-1;qe>0==$e.Y>xe.Y&&(A=1-A)}else if($e.X>a.X){var qe=(xe.X-a.X)*($e.Y-a.Y)-($e.X-a.X)*(xe.Y-a.Y);if(qe==0)return-1;qe>0==$e.Y>xe.Y&&(A=1-A)}}xe=$e}return A},e.Clipper.prototype.PointInPolygon=function(a,Y){for(var A=0,pe=Y;;){var xe=Y.Pt.X,ae=Y.Pt.Y,$e=Y.Next.Pt.X,qe=Y.Next.Pt.Y;if(qe==a.Y&&($e==a.X||ae==a.Y&&$e>a.X==xe<a.X))return-1;if(ae<a.Y!=qe<a.Y){if(xe>=a.X)if($e>a.X)A=1-A;else{var jt=(xe-a.X)*(qe-a.Y)-($e-a.X)*(ae-a.Y);if(jt==0)return-1;jt>0==qe>ae&&(A=1-A)}else if($e>a.X){var jt=(xe-a.X)*(qe-a.Y)-($e-a.X)*(ae-a.Y);if(jt==0)return-1;jt>0==qe>ae&&(A=1-A)}}if(Y=Y.Next,pe==Y)break}return A},e.Clipper.prototype.Poly2ContainsPoly1=function(a,Y){var A=a;do{var pe=this.PointInPolygon(A.Pt,Y);if(pe>=0)return pe!=0;A=A.Next}while(A!=a);return!0},e.Clipper.prototype.FixupFirstLefts1=function(a,Y){for(var A=0,pe=this.m_PolyOuts.length;A<pe;A++){var xe=this.m_PolyOuts[A];xe.Pts!==null&&xe.FirstLeft==a&&this.Poly2ContainsPoly1(xe.Pts,Y.Pts)&&(xe.FirstLeft=Y)}},e.Clipper.prototype.FixupFirstLefts2=function(a,Y){for(var A=0,pe=this.m_PolyOuts,xe=pe.length,ae=pe[A];A<xe;A++,ae=pe[A])ae.FirstLeft==a&&(ae.FirstLeft=Y)},e.Clipper.ParseFirstLeft=function(a){for(;a!=null&&a.Pts==null;)a=a.FirstLeft;return a},e.Clipper.prototype.JoinCommonEdges=function(){for(var a=0,Y=this.m_Joins.length;a<Y;a++){var A=this.m_Joins[a],pe=this.GetOutRec(A.OutPt1.Idx),xe=this.GetOutRec(A.OutPt2.Idx);if(!(pe.Pts==null||xe.Pts==null)){var ae;if(pe==xe?ae=pe:this.Param1RightOfParam2(pe,xe)?ae=xe:this.Param1RightOfParam2(xe,pe)?ae=pe:ae=this.GetLowermostRec(pe,xe),!!this.JoinPoints(A,pe,xe))if(pe==xe){if(pe.Pts=A.OutPt1,pe.BottomPt=null,xe=this.CreateOutRec(),xe.Pts=A.OutPt2,this.UpdateOutPtIdxs(xe),this.m_UsingPolyTree)for(var $e=0,qe=this.m_PolyOuts.length;$e<qe-1;$e++){var jt=this.m_PolyOuts[$e];jt.Pts==null||e.Clipper.ParseFirstLeft(jt.FirstLeft)!=pe||jt.IsHole==pe.IsHole||this.Poly2ContainsPoly1(jt.Pts,A.OutPt2)&&(jt.FirstLeft=xe)}this.Poly2ContainsPoly1(xe.Pts,pe.Pts)?(xe.IsHole=!pe.IsHole,xe.FirstLeft=pe,this.m_UsingPolyTree&&this.FixupFirstLefts2(xe,pe),(xe.IsHole^this.ReverseSolution)==this.Area(xe)>0&&this.ReversePolyPtLinks(xe.Pts)):this.Poly2ContainsPoly1(pe.Pts,xe.Pts)?(xe.IsHole=pe.IsHole,pe.IsHole=!xe.IsHole,xe.FirstLeft=pe.FirstLeft,pe.FirstLeft=xe,this.m_UsingPolyTree&&this.FixupFirstLefts2(pe,xe),(pe.IsHole^this.ReverseSolution)==this.Area(pe)>0&&this.ReversePolyPtLinks(pe.Pts)):(xe.IsHole=pe.IsHole,xe.FirstLeft=pe.FirstLeft,this.m_UsingPolyTree&&this.FixupFirstLefts1(pe,xe))}else xe.Pts=null,xe.BottomPt=null,xe.Idx=pe.Idx,pe.IsHole=ae.IsHole,ae==xe&&(pe.FirstLeft=xe.FirstLeft),xe.FirstLeft=pe,this.m_UsingPolyTree&&this.FixupFirstLefts2(xe,pe)}}},e.Clipper.prototype.UpdateOutPtIdxs=function(a){var Y=a.Pts;do Y.Idx=a.Idx,Y=Y.Prev;while(Y!=a.Pts)},e.Clipper.prototype.DoSimplePolygons=function(){for(var a=0;a<this.m_PolyOuts.length;){var Y=this.m_PolyOuts[a++],A=Y.Pts;if(A!==null)do{for(var pe=A.Next;pe!=Y.Pts;){if(e.IntPoint.op_Equality(A.Pt,pe.Pt)&&pe.Next!=A&&pe.Prev!=A){var xe=A.Prev,ae=pe.Prev;A.Prev=ae,ae.Next=A,pe.Prev=xe,xe.Next=pe,Y.Pts=A;var $e=this.CreateOutRec();$e.Pts=pe,this.UpdateOutPtIdxs($e),this.Poly2ContainsPoly1($e.Pts,Y.Pts)?($e.IsHole=!Y.IsHole,$e.FirstLeft=Y):this.Poly2ContainsPoly1(Y.Pts,$e.Pts)?($e.IsHole=Y.IsHole,Y.IsHole=!$e.IsHole,$e.FirstLeft=Y.FirstLeft,Y.FirstLeft=$e):($e.IsHole=Y.IsHole,$e.FirstLeft=Y.FirstLeft),pe=A}pe=pe.Next}A=A.Next}while(A!=Y.Pts)}},e.Clipper.Area=function(a){var Y=a.length;if(Y<3)return 0;for(var A=0,pe=0,xe=Y-1;pe<Y;++pe)A+=(a[xe].X+a[pe].X)*(a[xe].Y-a[pe].Y),xe=pe;return-A*.5},e.Clipper.prototype.Area=function(a){var Y=a.Pts;if(Y==null)return 0;var A=0;do A=A+(Y.Prev.Pt.X+Y.Pt.X)*(Y.Prev.Pt.Y-Y.Pt.Y),Y=Y.Next;while(Y!=a.Pts);return A*.5},e.Clipper.SimplifyPolygon=function(a,Y){var A=new Array,pe=new e.Clipper(0);return pe.StrictlySimple=!0,pe.AddPath(a,e.PolyType.ptSubject,!0),pe.Execute(e.ClipType.ctUnion,A,Y,Y),A},e.Clipper.SimplifyPolygons=function(a,Y){typeof Y>"u"&&(Y=e.PolyFillType.pftEvenOdd);var A=new Array,pe=new e.Clipper(0);return pe.StrictlySimple=!0,pe.AddPaths(a,e.PolyType.ptSubject,!0),pe.Execute(e.ClipType.ctUnion,A,Y,Y),A},e.Clipper.DistanceSqrd=function(a,Y){var A=a.X-Y.X,pe=a.Y-Y.Y;return A*A+pe*pe},e.Clipper.DistanceFromLineSqrd=function(a,Y,A){var pe=Y.Y-A.Y,xe=A.X-Y.X,ae=pe*Y.X+xe*Y.Y;return ae=pe*a.X+xe*a.Y-ae,ae*ae/(pe*pe+xe*xe)},e.Clipper.SlopesNearCollinear=function(a,Y,A,pe){return e.Clipper.DistanceFromLineSqrd(Y,a,A)<pe},e.Clipper.PointsAreClose=function(a,Y,A){var pe=a.X-Y.X,xe=a.Y-Y.Y;return pe*pe+xe*xe<=A},e.Clipper.ExcludeOp=function(a){var Y=a.Prev;return Y.Next=a.Next,a.Next.Prev=Y,Y.Idx=0,Y},e.Clipper.CleanPolygon=function(a,Y){typeof Y>"u"&&(Y=1.415);var A=a.length;if(A==0)return new Array;for(var pe=new Array(A),xe=0;xe<A;++xe)pe[xe]=new e.OutPt;for(var xe=0;xe<A;++xe)pe[xe].Pt=a[xe],pe[xe].Next=pe[(xe+1)%A],pe[xe].Next.Prev=pe[xe],pe[xe].Idx=0;for(var ae=Y*Y,$e=pe[0];$e.Idx==0&&$e.Next!=$e.Prev;)e.Clipper.PointsAreClose($e.Pt,$e.Prev.Pt,ae)?($e=e.Clipper.ExcludeOp($e),A--):e.Clipper.PointsAreClose($e.Prev.Pt,$e.Next.Pt,ae)?(e.Clipper.ExcludeOp($e.Next),$e=e.Clipper.ExcludeOp($e),A-=2):e.Clipper.SlopesNearCollinear($e.Prev.Pt,$e.Pt,$e.Next.Pt,ae)?($e=e.Clipper.ExcludeOp($e),A--):($e.Idx=1,$e=$e.Next);A<3&&(A=0);for(var qe=new Array(A),xe=0;xe<A;++xe)qe[xe]=new e.IntPoint($e.Pt),$e=$e.Next;return pe=null,qe},e.Clipper.CleanPolygons=function(a,Y){for(var A=new Array(a.length),pe=0,xe=a.length;pe<xe;pe++)A[pe]=e.Clipper.CleanPolygon(a[pe],Y);return A},e.Clipper.Minkowski=function(a,Y,A,pe){var xe=pe?1:0,ae=a.length,$e=Y.length,qe=new Array;if(A)for(var jt=0;jt<$e;jt++){for(var vn=new Array(ae),En=0,kn=a.length,Nn=a[En];En<kn;En++,Nn=a[En])vn[En]=new e.IntPoint(Y[jt].X+Nn.X,Y[jt].Y+Nn.Y);qe.push(vn)}else for(var jt=0;jt<$e;jt++){for(var vn=new Array(ae),En=0,kn=a.length,Nn=a[En];En<kn;En++,Nn=a[En])vn[En]=new e.IntPoint(Y[jt].X-Nn.X,Y[jt].Y-Nn.Y);qe.push(vn)}for(var Mn=new Array,jt=0;jt<$e-1+xe;jt++)for(var En=0;En<ae;En++){var Hn=new Array;Hn.push(qe[jt%$e][En%ae]),Hn.push(qe[(jt+1)%$e][En%ae]),Hn.push(qe[(jt+1)%$e][(En+1)%ae]),Hn.push(qe[jt%$e][(En+1)%ae]),e.Clipper.Orientation(Hn)||Hn.reverse(),Mn.push(Hn)}var Vn=new e.Clipper(0);return Vn.AddPaths(Mn,e.PolyType.ptSubject,!0),Vn.Execute(e.ClipType.ctUnion,qe,e.PolyFillType.pftNonZero,e.PolyFillType.pftNonZero),qe},e.Clipper.MinkowskiSum=function(){var a=arguments,Y=a.length;if(Y==3){var A=a[0],pe=a[1],xe=a[2];return e.Clipper.Minkowski(A,pe,!0,xe)}else if(Y==4){for(var A=a[0],ae=a[1],$e=a[2],xe=a[3],qe=new e.Clipper,jt,vn=0,En=ae.length;vn<En;++vn){var jt=e.Clipper.Minkowski(A,ae[vn],!0,xe);qe.AddPaths(jt,e.PolyType.ptSubject,!0)}xe&&qe.AddPaths(ae,e.PolyType.ptClip,!0);var kn=new e.Paths;return qe.Execute(e.ClipType.ctUnion,kn,$e,$e),kn}},e.Clipper.MinkowskiDiff=function(a,Y,A){return e.Clipper.Minkowski(a,Y,!1,A)},e.Clipper.PolyTreeToPaths=function(a){var Y=new Array;return e.Clipper.AddPolyNodeToPaths(a,e.Clipper.NodeType.ntAny,Y),Y},e.Clipper.AddPolyNodeToPaths=function(a,Y,A){var pe=!0;switch(Y){case e.Clipper.NodeType.ntOpen:return;case e.Clipper.NodeType.ntClosed:pe=!a.IsOpen;break}a.m_polygon.length>0&&pe&&A.push(a.m_polygon);for(var xe=0,ae=a.Childs(),$e=ae.length,qe=ae[xe];xe<$e;xe++,qe=ae[xe])e.Clipper.AddPolyNodeToPaths(qe,Y,A)},e.Clipper.OpenPathsFromPolyTree=function(a){for(var Y=new e.Paths,A=0,pe=a.ChildCount();A<pe;A++)a.Childs()[A].IsOpen&&Y.push(a.Childs()[A].m_polygon);return Y},e.Clipper.ClosedPathsFromPolyTree=function(a){var Y=new e.Paths;return e.Clipper.AddPolyNodeToPaths(a,e.Clipper.NodeType.ntClosed,Y),Y},kl(e.Clipper,e.ClipperBase),e.Clipper.NodeType={ntAny:0,ntOpen:1,ntClosed:2},e.ClipperOffset=function(a,Y){typeof a>"u"&&(a=2),typeof Y>"u"&&(Y=e.ClipperOffset.def_arc_tolerance),this.m_destPolys=new e.Paths,this.m_srcPoly=new e.Path,this.m_destPoly=new e.Path,this.m_normals=new Array,this.m_delta=0,this.m_sinA=0,this.m_sin=0,this.m_cos=0,this.m_miterLim=0,this.m_StepsPerRad=0,this.m_lowest=new e.IntPoint,this.m_polyNodes=new e.PolyNode,this.MiterLimit=a,this.ArcTolerance=Y,this.m_lowest.X=-1},e.ClipperOffset.two_pi=6.28318530717959,e.ClipperOffset.def_arc_tolerance=.25,e.ClipperOffset.prototype.Clear=function(){e.Clear(this.m_polyNodes.Childs()),this.m_lowest.X=-1},e.ClipperOffset.Round=e.Clipper.Round,e.ClipperOffset.prototype.AddPath=function(a,Y,A){var pe=a.length-1;if(!(pe<0)){var xe=new e.PolyNode;if(xe.m_jointype=Y,xe.m_endtype=A,A==e.EndType.etClosedLine||A==e.EndType.etClosedPolygon)for(;pe>0&&e.IntPoint.op_Equality(a[0],a[pe]);)pe--;xe.m_polygon.push(a[0]);for(var ae=0,$e=0,qe=1;qe<=pe;qe++)e.IntPoint.op_Inequality(xe.m_polygon[ae],a[qe])&&(ae++,xe.m_polygon.push(a[qe]),(a[qe].Y>xe.m_polygon[$e].Y||a[qe].Y==xe.m_polygon[$e].Y&&a[qe].X<xe.m_polygon[$e].X)&&($e=ae));if(!(A==e.EndType.etClosedPolygon&&ae<2||A!=e.EndType.etClosedPolygon&&ae<0)&&(this.m_polyNodes.AddChild(xe),A==e.EndType.etClosedPolygon))if(this.m_lowest.X<0)this.m_lowest=new e.IntPoint(0,$e);else{var jt=this.m_polyNodes.Childs()[this.m_lowest.X].m_polygon[this.m_lowest.Y];(xe.m_polygon[$e].Y>jt.Y||xe.m_polygon[$e].Y==jt.Y&&xe.m_polygon[$e].X<jt.X)&&(this.m_lowest=new e.IntPoint(this.m_polyNodes.ChildCount()-1,$e))}}},e.ClipperOffset.prototype.AddPaths=function(a,Y,A){for(var pe=0,xe=a.length;pe<xe;pe++)this.AddPath(a[pe],Y,A)},e.ClipperOffset.prototype.FixOrientations=function(){if(this.m_lowest.X>=0&&!e.Clipper.Orientation(this.m_polyNodes.Childs()[this.m_lowest.X].m_polygon))for(var a=0;a<this.m_polyNodes.ChildCount();a++){var Y=this.m_polyNodes.Childs()[a];(Y.m_endtype==e.EndType.etClosedPolygon||Y.m_endtype==e.EndType.etClosedLine&&e.Clipper.Orientation(Y.m_polygon))&&Y.m_polygon.reverse()}else for(var a=0;a<this.m_polyNodes.ChildCount();a++){var Y=this.m_polyNodes.Childs()[a];Y.m_endtype==e.EndType.etClosedLine&&!e.Clipper.Orientation(Y.m_polygon)&&Y.m_polygon.reverse()}},e.ClipperOffset.GetUnitNormal=function(a,Y){var A=Y.X-a.X,pe=Y.Y-a.Y;if(A==0&&pe==0)return new e.DoublePoint(0,0);var xe=1/Math.sqrt(A*A+pe*pe);return A*=xe,pe*=xe,new e.DoublePoint(pe,-A)},e.ClipperOffset.prototype.DoOffset=function(a){if(this.m_destPolys=new Array,this.m_delta=a,e.ClipperBase.near_zero(a)){for(var Y=0;Y<this.m_polyNodes.ChildCount();Y++){var A=this.m_polyNodes.Childs()[Y];A.m_endtype==e.EndType.etClosedPolygon&&this.m_destPolys.push(A.m_polygon)}return}this.MiterLimit>2?this.m_miterLim=2/(this.MiterLimit*this.MiterLimit):this.m_miterLim=.5;var pe;this.ArcTolerance<=0?pe=e.ClipperOffset.def_arc_tolerance:this.ArcTolerance>Math.abs(a)*e.ClipperOffset.def_arc_tolerance?pe=Math.abs(a)*e.ClipperOffset.def_arc_tolerance:pe=this.ArcTolerance;var xe=3.14159265358979/Math.acos(1-pe/Math.abs(a));this.m_sin=Math.sin(e.ClipperOffset.two_pi/xe),this.m_cos=Math.cos(e.ClipperOffset.two_pi/xe),this.m_StepsPerRad=xe/e.ClipperOffset.two_pi,a<0&&(this.m_sin=-this.m_sin);for(var Y=0;Y<this.m_polyNodes.ChildCount();Y++){var A=this.m_polyNodes.Childs()[Y];this.m_srcPoly=A.m_polygon;var ae=this.m_srcPoly.length;if(!(ae==0||a<=0&&(ae<3||A.m_endtype!=e.EndType.etClosedPolygon))){if(this.m_destPoly=new Array,ae==1){if(A.m_jointype==e.JoinType.jtRound)for(var $e=1,qe=0,jt=1;jt<=xe;jt++){this.m_destPoly.push(new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[0].X+$e*a),e.ClipperOffset.Round(this.m_srcPoly[0].Y+qe*a)));var vn=$e;$e=$e*this.m_cos-this.m_sin*qe,qe=vn*this.m_sin+qe*this.m_cos}else for(var $e=-1,qe=-1,jt=0;jt<4;++jt)this.m_destPoly.push(new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[0].X+$e*a),e.ClipperOffset.Round(this.m_srcPoly[0].Y+qe*a))),$e<0?$e=1:qe<0?qe=1:$e=-1;this.m_destPolys.push(this.m_destPoly);continue}this.m_normals.length=0;for(var jt=0;jt<ae-1;jt++)this.m_normals.push(e.ClipperOffset.GetUnitNormal(this.m_srcPoly[jt],this.m_srcPoly[jt+1]));if(A.m_endtype==e.EndType.etClosedLine||A.m_endtype==e.EndType.etClosedPolygon?this.m_normals.push(e.ClipperOffset.GetUnitNormal(this.m_srcPoly[ae-1],this.m_srcPoly[0])):this.m_normals.push(new e.DoublePoint(this.m_normals[ae-2])),A.m_endtype==e.EndType.etClosedPolygon){for(var En=ae-1,jt=0;jt<ae;jt++)En=this.OffsetPoint(jt,En,A.m_jointype);this.m_destPolys.push(this.m_destPoly)}else if(A.m_endtype==e.EndType.etClosedLine){for(var En=ae-1,jt=0;jt<ae;jt++)En=this.OffsetPoint(jt,En,A.m_jointype);this.m_destPolys.push(this.m_destPoly),this.m_destPoly=new Array;for(var kn=this.m_normals[ae-1],jt=ae-1;jt>0;jt--)this.m_normals[jt]=new e.DoublePoint(-this.m_normals[jt-1].X,-this.m_normals[jt-1].Y);this.m_normals[0]=new e.DoublePoint(-kn.X,-kn.Y),En=0;for(var jt=ae-1;jt>=0;jt--)En=this.OffsetPoint(jt,En,A.m_jointype);this.m_destPolys.push(this.m_destPoly)}else{for(var En=0,jt=1;jt<ae-1;++jt)En=this.OffsetPoint(jt,En,A.m_jointype);var Nn;if(A.m_endtype==e.EndType.etOpenButt){var jt=ae-1;Nn=new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[jt].X+this.m_normals[jt].X*a),e.ClipperOffset.Round(this.m_srcPoly[jt].Y+this.m_normals[jt].Y*a)),this.m_destPoly.push(Nn),Nn=new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[jt].X-this.m_normals[jt].X*a),e.ClipperOffset.Round(this.m_srcPoly[jt].Y-this.m_normals[jt].Y*a)),this.m_destPoly.push(Nn)}else{var jt=ae-1;En=ae-2,this.m_sinA=0,this.m_normals[jt]=new e.DoublePoint(-this.m_normals[jt].X,-this.m_normals[jt].Y),A.m_endtype==e.EndType.etOpenSquare?this.DoSquare(jt,En):this.DoRound(jt,En)}for(var jt=ae-1;jt>0;jt--)this.m_normals[jt]=new e.DoublePoint(-this.m_normals[jt-1].X,-this.m_normals[jt-1].Y);this.m_normals[0]=new e.DoublePoint(-this.m_normals[1].X,-this.m_normals[1].Y),En=ae-1;for(var jt=En-1;jt>0;--jt)En=this.OffsetPoint(jt,En,A.m_jointype);A.m_endtype==e.EndType.etOpenButt?(Nn=new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[0].X-this.m_normals[0].X*a),e.ClipperOffset.Round(this.m_srcPoly[0].Y-this.m_normals[0].Y*a)),this.m_destPoly.push(Nn),Nn=new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[0].X+this.m_normals[0].X*a),e.ClipperOffset.Round(this.m_srcPoly[0].Y+this.m_normals[0].Y*a)),this.m_destPoly.push(Nn)):(En=1,this.m_sinA=0,A.m_endtype==e.EndType.etOpenSquare?this.DoSquare(0,1):this.DoRound(0,1)),this.m_destPolys.push(this.m_destPoly)}}}},e.ClipperOffset.prototype.Execute=function(){var a=arguments,Y=a[0]instanceof e.PolyTree;if(Y){var A=a[0],pe=a[1];A.Clear(),this.FixOrientations(),this.DoOffset(pe);var xe=new e.Clipper(0);if(xe.AddPaths(this.m_destPolys,e.PolyType.ptSubject,!0),pe>0)xe.Execute(e.ClipType.ctUnion,A,e.PolyFillType.pftPositive,e.PolyFillType.pftPositive);else{var ae=e.Clipper.GetBounds(this.m_destPolys),$e=new e.Path;if($e.push(new e.IntPoint(ae.left-10,ae.bottom+10)),$e.push(new e.IntPoint(ae.right+10,ae.bottom+10)),$e.push(new e.IntPoint(ae.right+10,ae.top-10)),$e.push(new e.IntPoint(ae.left-10,ae.top-10)),xe.AddPath($e,e.PolyType.ptSubject,!0),xe.ReverseSolution=!0,xe.Execute(e.ClipType.ctUnion,A,e.PolyFillType.pftNegative,e.PolyFillType.pftNegative),A.ChildCount()==1&&A.Childs()[0].ChildCount()>0){var qe=A.Childs()[0];A.Childs()[0]=qe.Childs()[0];for(var jt=1;jt<qe.ChildCount();jt++)A.AddChild(qe.Childs()[jt])}else A.Clear()}}else{var A=a[0],pe=a[1];e.Clear(A),this.FixOrientations(),this.DoOffset(pe);var xe=new e.Clipper(0);if(xe.AddPaths(this.m_destPolys,e.PolyType.ptSubject,!0),pe>0)xe.Execute(e.ClipType.ctUnion,A,e.PolyFillType.pftPositive,e.PolyFillType.pftPositive);else{var ae=e.Clipper.GetBounds(this.m_destPolys),$e=new e.Path;$e.push(new e.IntPoint(ae.left-10,ae.bottom+10)),$e.push(new e.IntPoint(ae.right+10,ae.bottom+10)),$e.push(new e.IntPoint(ae.right+10,ae.top-10)),$e.push(new e.IntPoint(ae.left-10,ae.top-10)),xe.AddPath($e,e.PolyType.ptSubject,!0),xe.ReverseSolution=!0,xe.Execute(e.ClipType.ctUnion,A,e.PolyFillType.pftNegative,e.PolyFillType.pftNegative),A.length>0&&A.splice(0,1)}}},e.ClipperOffset.prototype.OffsetPoint=function(a,Y,A){if(this.m_sinA=this.m_normals[Y].X*this.m_normals[a].Y-this.m_normals[a].X*this.m_normals[Y].Y,this.m_sinA<5e-5&&this.m_sinA>-5e-5)return Y;if(this.m_sinA>1?this.m_sinA=1:this.m_sinA<-1&&(this.m_sinA=-1),this.m_sinA*this.m_delta<0)this.m_destPoly.push(new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[a].X+this.m_normals[Y].X*this.m_delta),e.ClipperOffset.Round(this.m_srcPoly[a].Y+this.m_normals[Y].Y*this.m_delta))),this.m_destPoly.push(new e.IntPoint(this.m_srcPoly[a])),this.m_destPoly.push(new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[a].X+this.m_normals[a].X*this.m_delta),e.ClipperOffset.Round(this.m_srcPoly[a].Y+this.m_normals[a].Y*this.m_delta)));else switch(A){case e.JoinType.jtMiter:{var pe=1+(this.m_normals[a].X*this.m_normals[Y].X+this.m_normals[a].Y*this.m_normals[Y].Y);pe>=this.m_miterLim?this.DoMiter(a,Y,pe):this.DoSquare(a,Y);break}case e.JoinType.jtSquare:this.DoSquare(a,Y);break;case e.JoinType.jtRound:this.DoRound(a,Y);break}return Y=a,Y},e.ClipperOffset.prototype.DoSquare=function(a,Y){var A=Math.tan(Math.atan2(this.m_sinA,this.m_normals[Y].X*this.m_normals[a].X+this.m_normals[Y].Y*this.m_normals[a].Y)/4);this.m_destPoly.push(new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[a].X+this.m_delta*(this.m_normals[Y].X-this.m_normals[Y].Y*A)),e.ClipperOffset.Round(this.m_srcPoly[a].Y+this.m_delta*(this.m_normals[Y].Y+this.m_normals[Y].X*A)))),this.m_destPoly.push(new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[a].X+this.m_delta*(this.m_normals[a].X+this.m_normals[a].Y*A)),e.ClipperOffset.Round(this.m_srcPoly[a].Y+this.m_delta*(this.m_normals[a].Y-this.m_normals[a].X*A))))},e.ClipperOffset.prototype.DoMiter=function(a,Y,A){var pe=this.m_delta/A;this.m_destPoly.push(new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[a].X+(this.m_normals[Y].X+this.m_normals[a].X)*pe),e.ClipperOffset.Round(this.m_srcPoly[a].Y+(this.m_normals[Y].Y+this.m_normals[a].Y)*pe)))},e.ClipperOffset.prototype.DoRound=function(a,Y){for(var A=Math.atan2(this.m_sinA,this.m_normals[Y].X*this.m_normals[a].X+this.m_normals[Y].Y*this.m_normals[a].Y),pe=e.Cast_Int32(e.ClipperOffset.Round(this.m_StepsPerRad*Math.abs(A))),xe=this.m_normals[Y].X,ae=this.m_normals[Y].Y,$e,qe=0;qe<pe;++qe)this.m_destPoly.push(new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[a].X+xe*this.m_delta),e.ClipperOffset.Round(this.m_srcPoly[a].Y+ae*this.m_delta))),$e=xe,xe=xe*this.m_cos-this.m_sin*ae,ae=$e*this.m_sin+ae*this.m_cos;this.m_destPoly.push(new e.IntPoint(e.ClipperOffset.Round(this.m_srcPoly[a].X+this.m_normals[a].X*this.m_delta),e.ClipperOffset.Round(this.m_srcPoly[a].Y+this.m_normals[a].Y*this.m_delta)))},e.Error=function(a){try{throw new Error(a)}catch(Y){alert(Y.message)}},e.JS={},e.JS.AreaOfPolygon=function(a,Y){return Y||(Y=1),e.Clipper.Area(a)/(Y*Y)},e.JS.AreaOfPolygons=function(a,Y){Y||(Y=1);for(var A=0,pe=0;pe<a.length;pe++)A+=e.Clipper.Area(a[pe]);return A/(Y*Y)},e.JS.BoundsOfPath=function(a,Y){return e.JS.BoundsOfPaths([a],Y)},e.JS.BoundsOfPaths=function(a,Y){Y||(Y=1);var A=e.Clipper.GetBounds(a);return A.left/=Y,A.bottom/=Y,A.right/=Y,A.top/=Y,A},e.JS.Clean=function(pe,Y){if(!(pe instanceof Array))return[];var A=pe[0]instanceof Array,pe=e.JS.Clone(pe);if(typeof Y!="number"||Y===null)return e.Error("Delta is not a number in Clean()."),pe;if(pe.length===0||pe.length==1&&pe[0].length===0||Y<0)return pe;A||(pe=[pe]);for(var xe=pe.length,ae,$e,qe,jt,vn,En,kn,Nn=[],Mn=0;Mn<xe;Mn++)if($e=pe[Mn],ae=$e.length,ae!==0){if(ae<3){qe=$e,Nn.push(qe);continue}for(qe=$e,jt=Y*Y,vn=$e[0],En=1,kn=1;kn<ae;kn++)($e[kn].X-vn.X)*($e[kn].X-vn.X)+($e[kn].Y-vn.Y)*($e[kn].Y-vn.Y)<=jt||(qe[En]=$e[kn],vn=$e[kn],En++);vn=$e[En-1],($e[0].X-vn.X)*($e[0].X-vn.X)+($e[0].Y-vn.Y)*($e[0].Y-vn.Y)<=jt&&En--,En<ae&&qe.splice(En,ae-En),qe.length&&Nn.push(qe)}return!A&&Nn.length?Nn=Nn[0]:!A&&Nn.length===0?Nn=[]:A&&Nn.length===0&&(Nn=[[]]),Nn},e.JS.Clone=function(a){if(!(a instanceof Array))return[];if(a.length===0)return[];if(a.length==1&&a[0].length===0)return[[]];var Y=a[0]instanceof Array;Y||(a=[a]);var A=a.length,pe,xe,ae,$e,qe=new Array(A);for(xe=0;xe<A;xe++){for(pe=a[xe].length,$e=new Array(pe),ae=0;ae<pe;ae++)$e[ae]={X:a[xe][ae].X,Y:a[xe][ae].Y};qe[xe]=$e}return Y||(qe=qe[0]),qe},e.JS.Lighten=function(a,Y){if(!(a instanceof Array))return[];if(typeof Y!="number"||Y===null)return e.Error("Tolerance is not a number in Lighten()."),e.JS.Clone(a);if(a.length===0||a.length==1&&a[0].length===0||Y<0)return e.JS.Clone(a);a[0]instanceof Array||(a=[a]);var A,pe,xe,ae,$e,qe,jt,vn,En,kn,Nn,Mn,Hn,Vn,Un,Jn,tl,Ql=a.length,Jl=Y*Y,rl=[];for(A=0;A<Ql;A++)if(xe=a[A],qe=xe.length,qe!=0){for(ae=0;ae<1e6;ae++){for($e=[],qe=xe.length,xe[qe-1].X!=xe[0].X||xe[qe-1].Y!=xe[0].Y?(Mn=1,xe.push({X:xe[0].X,Y:xe[0].Y}),qe=xe.length):Mn=0,Nn=[],pe=0;pe<qe-2;pe++)jt=xe[pe],En=xe[pe+1],vn=xe[pe+2],Jn=jt.X,tl=jt.Y,Hn=vn.X-Jn,Vn=vn.Y-tl,(Hn!==0||Vn!==0)&&(Un=((En.X-Jn)*Hn+(En.Y-tl)*Vn)/(Hn*Hn+Vn*Vn),Un>1?(Jn=vn.X,tl=vn.Y):Un>0&&(Jn+=Hn*Un,tl+=Vn*Un)),Hn=En.X-Jn,Vn=En.Y-tl,kn=Hn*Hn+Vn*Vn,kn<=Jl&&(Nn[pe+1]=1,pe++);for($e.push({X:xe[0].X,Y:xe[0].Y}),pe=1;pe<qe-1;pe++)Nn[pe]||$e.push({X:xe[pe].X,Y:xe[pe].Y});if($e.push({X:xe[qe-1].X,Y:xe[qe-1].Y}),Mn&&xe.pop(),Nn.length)xe=$e;else break}qe=$e.length,$e[qe-1].X==$e[0].X&&$e[qe-1].Y==$e[0].Y&&$e.pop(),$e.length>2&&rl.push($e)}return!a[0]instanceof Array&&(rl=rl[0]),typeof rl>"u"&&(rl=[[]]),rl},e.JS.PerimeterOfPath=function(a,Y,A){if(typeof a>"u")return 0;var pe=Math.sqrt,xe=0,ae,$e,qe=0,jt=0,vn=0,En=0,kn=a.length;if(kn<2)return 0;for(Y&&(a[kn]=a[0],kn++);--kn;)ae=a[kn],qe=ae.X,jt=ae.Y,$e=a[kn-1],vn=$e.X,En=$e.Y,xe+=pe((qe-vn)*(qe-vn)+(jt-En)*(jt-En));return Y&&a.pop(),xe/A},e.JS.PerimeterOfPaths=function(a,Y,A){A||(A=1);for(var pe=0,xe=0;xe<a.length;xe++)pe+=e.JS.PerimeterOfPath(a[xe],Y,A);return pe},e.JS.ScaleDownPath=function(a,Y){var A,pe;for(Y||(Y=1),A=a.length;A--;)pe=a[A],pe.X=pe.X/Y,pe.Y=pe.Y/Y},e.JS.ScaleDownPaths=function(a,Y){var A,pe,xe;for(Y||(Y=1),A=a.length;A--;)for(pe=a[A].length;pe--;)xe=a[A][pe],xe.X=xe.X/Y,xe.Y=xe.Y/Y},e.JS.ScaleUpPath=function(a,Y){var A,pe,xe=Math.round;for(Y||(Y=1),A=a.length;A--;)pe=a[A],pe.X=xe(pe.X*Y),pe.Y=xe(pe.Y*Y)},e.JS.ScaleUpPaths=function(a,Y){var A,pe,xe,ae=Math.round;for(Y||(Y=1),A=a.length;A--;)for(pe=a[A].length;pe--;)xe=a[A][pe],xe.X=ae(xe.X*Y),xe.Y=ae(xe.Y*Y)},e.ExPolygons=function(){return[]},e.ExPolygon=function(){this.outer=null,this.holes=null},e.JS.AddOuterPolyNodeToExPolygons=function(a,Y){var A=new e.ExPolygon;A.outer=a.Contour();var pe=a.Childs(),xe=pe.length;A.holes=new Array(xe);var ae,$e,qe,jt,vn,En;for(qe=0;qe<xe;qe++)for(ae=pe[qe],A.holes[qe]=ae.Contour(),jt=0,vn=ae.Childs(),En=vn.length;jt<En;jt++)$e=vn[jt],e.JS.AddOuterPolyNodeToExPolygons($e,Y);Y.push(A)},e.JS.ExPolygonsToPaths=function(a){var Y,A,pe,xe,ae=new e.Paths;for(Y=0,pe=a.length;Y<pe;Y++)for(ae.push(a[Y].outer),A=0,xe=a[Y].holes.length;A<xe;A++)ae.push(a[Y].holes[A]);return ae},e.JS.PolyTreeToExPolygons=function(a){var Y=new e.ExPolygons,A,pe,xe,ae;for(pe=0,xe=a.Childs(),ae=xe.length;pe<ae;pe++)A=xe[pe],e.JS.AddOuterPolyNodeToExPolygons(A,Y);return Y},t.exports=e})(clipper)),clipper.exports}var clipperExports=requireClipper();const ClipperLib=getDefaultExportFromCjs(clipperExports);var BleedGenerator=class pl{constructor(){this.cache=new Map,this.mmBleedSpace=2}static getInstance(){return pl.instance||(pl.instance=new pl),pl.instance}generate(e,n=72/25.4*this.mmBleedSpace){if(!e||typeof e!="string"||e.length<3)throw new Error("无效的SVG路径");const s=`${e}_${n}`;if(this.cache.has(s))return this.cache.get(s);try{const u=distExports.importer.fromSVGPathData(e),l=distExports.measure.modelExtents(u),o=distExports.model.outline(u,n,1),i=distExports.measure.modelExtents(o),g=i.low[0]-l.low[0],d=i.low[1]-l.low[1];distExports.model.moveRelative(o,[-g,-d]);const r=distExports.exporter.toSVGPathData(o);if(r===e)throw new Error("生成失败：出血线与割线相同，请检查路径是否封闭");return this.cache.set(s,r),r}catch(u){throw u instanceof Error?new Error(`出血线生成失败: ${u.message}`):new Error("出血线生成失败: 未知错误")}}clearCache(){this.cache.clear()}},BleedGeneratorV2=class dl{constructor(){this.cache=new Map,this.mmBleedSpace=2}static getInstance(){return dl.instance||(dl.instance=new dl),dl.instance}generate(e,n=72/25.4*this.mmBleedSpace){if(!e||typeof e!="string"||e.length<3)throw new Error("无效的SVG路径");const s=`${e}_${n}`;if(this.cache.has(s))return this.cache.get(s);try{const l=this.parseSVGPath(e).map(d=>({X:Math.round(d.x*1e3),Y:Math.round(d.y*1e3)})),o=new ClipperLib.ClipperOffset(2,2),i=new ClipperLib.Paths;o.AddPath(l,ClipperLib.JoinType.jtMiter,ClipperLib.EndType.etClosedPolygon),o.Execute(i,Math.round(n*1e3));const g=this.clipperPathToSVGPath(i[0]);return this.cache.set(s,g),g}catch(u){throw u instanceof Error?new Error(`出血线生成失败: ${u.message}`):new Error("出血线生成失败: 未知错误")}}clearCache(){this.cache.clear()}parseSVGPath(e){const n=[],s=/([MmLlHhVvAaQqZz])([^MmLlHhVvAaQqZz]*)/g;let u,l=0,o=0,i=0,g=0;for(;(u=s.exec(e))!==null;){const d=u[1],r=this.parseNumbers(u[2]);switch(d){case"M":l=r[0],o=r[1],i=l,g=o,n.push({x:l,y:o});break;case"m":l+=r[0],o+=r[1],i=l,g=o,n.push({x:l,y:o});break;case"L":l=r[0],o=r[1],n.push({x:l,y:o});break;case"l":l+=r[0],o+=r[1],n.push({x:l,y:o});break;case"H":l=r[0],n.push({x:l,y:o});break;case"h":l+=r[0],n.push({x:l,y:o});break;case"V":o=r[0],n.push({x:l,y:o});break;case"v":o+=r[0],n.push({x:l,y:o});break;case"A":case"a":{const f=r[0],L=r[1],T=r[2]*Math.PI/180,x=r[3]===1,c=r[4]===1,m=d==="A"?r[5]:l+r[5],y=d==="A"?r[6]:o+r[6],O=this.sampleArc({x:l,y:o},{x:m,y},f,L,T,x,c,20);n.push(...O),l=m,o=y;break}case"Q":case"q":{const f=d==="Q"?r[0]:l+r[0],L=d==="Q"?r[1]:o+r[1],T=d==="Q"?r[2]:l+r[2],x=d==="Q"?r[3]:o+r[3],c=this.sampleQuadraticBezier({x:l,y:o},{x:f,y:L},{x:T,y:x},20);n.push(...c),l=T,o=x;break}case"Z":case"z":l=i,o=g;break}}return n}sampleArc(e,n,s,u,l,o,i,g){const d=[];if(s===0||u===0)return[n];const r=Math.cos(l),f=Math.sin(l),L=(e.x-n.x)/2,T=(e.y-n.y)/2,x=r*L+f*T,c=-f*L+r*T;let m=Math.abs(s),y=Math.abs(u);const O=x*x/(m*m)+c*c/(y*y);if(O>1){const de=Math.sqrt(O);m*=de,y*=de}const b=o===i?-1:1,j=Math.max((m*m*y*y-m*m*c*c-y*y*x*x)/(m*m*c*c+y*y*x*x),0),F=Math.sqrt(j),k=b*F*m*c/y,_=-b*F*y*x/m,ue=this.angle(1,0,(x-k)/m,(c-_)/y);let re=this.angle((x-k)/m,(c-_)/y,(-x-k)/m,(-c-_)/y);!i&&re>0?re-=2*Math.PI:i&&re<0&&(re+=2*Math.PI);for(let de=0;de<=g;de++){const he=de/g,w=ue+he*re,le=m*Math.cos(w)+k,V=y*Math.sin(w)+_,Ce=r*le-f*V+(e.x+n.x)/2,_e=f*le+r*V+(e.y+n.y)/2;de>0&&d.push({x:Ce,y:_e})}return d}sampleQuadraticBezier(e,n,s,u){const l=[];for(let o=1;o<=u;o++){const i=o/u,g=(1-i)*(1-i)*e.x+2*(1-i)*i*n.x+i*i*s.x,d=(1-i)*(1-i)*e.y+2*(1-i)*i*n.y+i*i*s.y;l.push({x:g,y:d})}return l}angle(e,n,s,u){const l=e*s+n*u,o=Math.sqrt(e*e+n*n)*Math.sqrt(s*s+u*u),i=Math.min(Math.max(l/o,-1),1);return(e*u-n*s<0?-1:1)*Math.acos(i)}parseNumbers(e){const n=/[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?/g,s=[];let u;for(;(u=n.exec(e))!==null;)s.push(parseFloat(u[0]));return s}clipperPathToSVGPath(e){if(e.length===0)return"";let n=`M ${e[0].X/1e3} ${e[0].Y/1e3}`;for(let s=1;s<e.length;s++)n+=` L ${e[s].X/1e3} ${e[s].Y/1e3}`;return n+=" Z",n}},getSegmentArea=t=>{if(typeof document>"u")return Number.NaN;const e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"svg"),s=document.createElementNS(e,"path");n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",s.setAttribute("d",`M${t}`),n.appendChild(s);try{document.body.appendChild(n);const u=s.getBBox();return u.width*u.height}catch{return Number.NaN}finally{n.remove()}},generateBleedOutlinePath=t=>{const e=BleedGenerator.getInstance().generate(t.build()),n=e.split("M").filter(o=>o.trim()!=="");if(n.length<=1)return e;const s=n.map((o,i)=>({index:i,area:getSegmentArea(o),length:o.length})),l=(s.some(o=>Number.isFinite(o.area))?s.sort((o,i)=>i.area-o.area):s.sort((o,i)=>i.length-o.length))[0];return`M${n[l.index]}`};const startingPointCover$1=(t,e,n)=>{const{ofReverseCornerR:s,ofReverseCornerRX:u,ofReverseCornerRY:l,ofReverseCornerTangentX:o,ofReverseCornerTangentY:i,smallCornerR1TangentX:g,smallCornerR1TangentY:d,slotN:r,slotThicknessNY:f,slotThicknessNX:L,smallCornerR1:T,mainLineOffsetFBToF:x}=new Aircraft(n),c=n.boxHeight;t.arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y-l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-f),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(c-L-T)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(r+x-T),y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,0,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1]))},leftLateralSurface$1=(t,e,n)=>{const{smallCornerR1:s,smallCornerMTTangentX:u,smallCornerMTTangentY:l,smallCornerR1TangentX:o,smallCornerR1TangentY:i,smallCornerMR:g,smallCornerMRTangentX:d,smallCornerMRTangentY:r,subSideVerticalLength:f,highPointTRHRadius:L,highPointTRHTangentX:T,highPointTRHTangentY:x,smallCornerMTTangentXUp:c,smallCornerMTTangentYUp:m}=new Aircraft(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y-l}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-f}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y-m}),e[e.length-1])).arcTo(L,L,0,0,0,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1]))},leftHighest$1=(t,e,n)=>{const{highPointTRHHorizontalLength:s,smallCornerTRR:u,smallCornerTRRTangentX:l,smallCornerTRRTangentY:o,highPointTRH:i,highPointTRHRTangentX:g,highPointTRHRTangentY:d,boxTopCollect:r}=new Aircraft(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y}),e[e.length-1])).arcTo(u,u,0,0,1,()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-o}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-r}),e[e.length-1]))},rightHighest$1=(t,e,n)=>{const{highPointTRHHorizontalLength:s,smallCornerTRR:u,smallCornerTRRTangentX:l,smallCornerTRRTangentY:o,highPointTRH:i,highPointTRHRTangentX:g,highPointTRHRTangentY:d,boxTopCollect:r}=new Aircraft(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+r}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+d}),e[e.length-1])).arcTo(u,u,0,0,1,()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y}),e[e.length-1]))},rightLateralSurface$1=(t,e,n)=>{const{smallCornerR1:s,smallCornerMTTangentX:u,smallCornerMTTangentY:l,smallCornerR1TangentX:o,smallCornerR1TangentY:i,smallCornerMR:g,smallCornerMRTangentX:d,smallCornerMRTangentY:r,subSideVerticalLength:f,highPointTRHRadius:L,highPointTRHTangentX:T,highPointTRHTangentY:x,smallCornerMTTangentXUp:c,smallCornerMTTangentYUp:m}=new Aircraft(n);t.arcTo(L,L,0,0,0,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y+m}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+f}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y+l}),e[e.length-1]))},rightStartingPointCover$1=(t,e,n)=>{const{ofReverseCornerR:s,ofReverseCornerRX:u,ofReverseCornerRY:l,ofReverseCornerTangentX:o,ofReverseCornerTangentY:i,smallCornerR1TangentX:g,smallCornerR1TangentY:d,slotN:r,slotThicknessNY:f,slotThicknessNX:L,smallCornerR1:T,mainLineOffsetFBToF:x}=new Aircraft(n),c=n.boxHeight;t.arcTo(T,T,0,0,0,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(r+x-T),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(c-L-T)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-f),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y+l}),e[e.length-1]))},rightSlot$1=(t,e,n)=>{const{mainLineOffset:s,ofReverseCornerR:u,slotCollectX:l,slotCollectY:o,slotD2:i,slotCount:g,slotLengthSW:d,slotMTangentX:r,slotMTangentY:f,mainLineOffsetHB:L}=new Aircraft(n),T=n.boxHeight,x=n.boxWidth;if(t.lineTo(()=>(e.push({x:e[e.length-1].x+(T+s-u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-l),y:e[e.length-1].y}),e[e.length-1])),g===1)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(x-2*o-d)/2}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y+f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(d-2*f)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y+f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(x-2*o-d)/2}),e[e.length-1]));else{for(let c=0;c<g;c++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(x-2*o-g*d)/(g+1)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y+f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(d-2*f)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y+f}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(x-2*o-g*d)/(g+1)}),e[e.length-1]))}t.lineTo(()=>(e.push({x:e[e.length-1].x-(i-l),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(T+L-u),y:e[e.length-1].y}),e[e.length-1]))},rightBottomLid$1=(t,e,n)=>{const{ofReverseCornerR:s,ofReverseCornerRX:u,ofReverseCornerRY:l,ofReverseCornerTangentX:o,ofReverseCornerTangentY:i,slotN:g,slotThicknessNX:d}=new Aircraft(n),r=n.boxHeight,f=n.thickness;t.arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(g-(s-u)-o),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(r-f-d)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y}),e[e.length-1]))},leftBottomLid$1=(t,e,n)=>{const{ofReverseCornerR:s,ofReverseCornerRX:u,ofReverseCornerRY:l,ofReverseCornerTangentX:o,ofReverseCornerTangentY:i,slotN:g,slotThicknessNX:d}=new Aircraft(n),r=n.boxHeight,f=n.thickness;t.lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(r-f-d)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(g-(s-u)-o),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-i}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y-l}),e[e.length-1]))},leftSlot$1=(t,e,n)=>{const{mainLineOffset:s,ofReverseCornerR:u,slotCollectX:l,slotCollectY:o,slotD2:i,slotCount:g,slotLengthSW:d,slotMTangentX:r,slotMTangentY:f,mainLineOffsetHB:L}=new Aircraft(n),T=n.boxHeight,x=n.boxWidth;if(t.lineTo(()=>(e.push({x:e[e.length-1].x-(T+L-u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-o}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-(i-l),y:e[e.length-1].y}),e[e.length-1])),g===1)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(x-2*o-d)/2}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(d-2*f)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(x-2*o-d)/2}),e[e.length-1]));else{for(let c=0;c<g;c++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(x-2*o-g*d)/(g+1)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(d-2*f)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-f}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(x-2*o-g*d)/(g+1)}),e[e.length-1]))}t.lineTo(()=>(e.push({x:e[e.length-1].x+(i-l),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(T+s-u),y:e[e.length-1].y}),e[e.length-1]))},drawJack$1=(t,e,n)=>{const{slotCount:s,slotLengthSW:u,slotNTangentX:l,slotNTangentY:o,ofReverseCornerR:i,mainLineOffset:g,slotFoldLineOffsetX:d,slotFoldLineOffsetY:r,slotCollectY:f}=new Aircraft(n),L=n.boxWidth,T=n.boxLength,x=(L-2*f-s*(u-2*r))/(s+1);if(s===1)t.moveTo(()=>(e.push({x:e[0].x+(i-g),y:e[0].y+(L-(u-2*r))/2}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-r}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(u-2*o-2*r)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l-d,y:e[e.length-1].y+o+r}),e[e.length-1])).moveTo(()=>(e.push({x:e[0].x+(i-g)+T,y:e[0].y+(L-(u-2*r))/2}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).moveTo(()=>(e.push({x:e[0].x+(i-g)+T,y:e[0].y+(L-(u-2*r))/2}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(u-2*o-2*r)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l+d,y:e[e.length-1].y+o+r}),e[e.length-1]));else{t.moveTo(()=>(e.push({x:e[0].x+(i-g),y:e[0].y}),e[e.length-1])),t.moveTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+x+f}),e[e.length-1]));for(let c=0;c<s;c++)t.lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-r}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(u-2*o-2*r)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l-d,y:e[e.length-1].y+o+r}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+x}),e[e.length-1]));t.moveTo(()=>(e.push({x:e[0].x+(i-g)+T,y:e[0].y}),e[e.length-1])),t.moveTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+x+f}),e[e.length-1]));for(let c=0;c<s;c++)t.lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(u-2*o-2*r)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l+d,y:e[e.length-1].y+o+r}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-r}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+x}),e[e.length-1]))}},cuttingLinePath$z=function(t){const e=t.boxLength;t.boxWidth;const n=t.boxHeight;t.thickness;const s=new Aircraft(t),{innerWallTotalHeightDC:u,upperWidthW1:l,mainLineOffset:o,boxTopHorizontalLength:i,ofReverseCornerR:g,mainLineOffsetHB:d}=s;function r(){const f=[],L=new SvgPathBuilder().moveTo(()=>(f.push({x:u+n+o-g,y:n+l+n}),f[f.length-1]));return startingPointCover$1(L,f,t),leftLateralSurface$1(L,f,t),leftHighest$1(L,f,t),L.lineTo(()=>(f.push({x:f[f.length-1].x+i,y:f[f.length-1].y}),f[f.length-1])),rightHighest$1(L,f,t),rightLateralSurface$1(L,f,t),rightStartingPointCover$1(L,f,t),rightSlot$1(L,f,t),rightBottomLid$1(L,f,t),L.lineTo(()=>(f.push({x:f[f.length-1].x-(e-2*d),y:f[f.length-1].y}),f[f.length-1])),leftBottomLid$1(L,f,t),leftSlot$1(L,f,t),drawJack$1(L,f,t),{path:L.build(),actionArray:f}}return{returnPath:r().path,actionArray:r().actionArray}},foldLineoordinates$z=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$z(t).actionArray,o=new Aircraft(t),{boxTopCollect:i,highPointTRH:g,innerWallTotalHeightDC:d,mainLineOffset:r,mainLineOffsetFBToF:f,mainLineOffsetFTToFT:L,ofReverseCornerR:T,smallCornerR1:x,upperWidthW1:c,highPointTRHRadius:m,mainLineOffsetHB:y,slotCount:O,slotLengthSW:b,slotCollectY:j,slotFoldLineOffsetY:F}=o,k=(n-2*j-O*(b-2*F))/(O+1),ue={.3:{xOffset:.15,yOffset:.5069},.4:{xOffset:.2,yOffset:.5766},.5:{xOffset:.25,yOffset:.6348},.6:{xOffset:.3,yOffset:.6845}}[u]??{xOffset:0,yOffset:0},re={line1:{x1:l[5].x+x-L,y1:i,x2:l[5].x+x-L,y2:s-Math.sqrt(m**2-(m-L)**2)},line2:{x1:l[5].x+x-L+(e-2*L),y1:i,x2:l[5].x+x-L+(e-2*L),y2:s-Math.sqrt(m**2-(m-L)**2)},line3:{x1:l[5].x+x,y1:s,x2:l[5].x+x-L+(e-2*L)-L,y2:s},line4:{x1:l[5].x+x,y1:l[0].y-s,x2:l[5].x+x,y2:l[0].y-s-c},line5:{x1:l[5].x+x+(e-6*u),y1:l[0].y-s-c,x2:l[5].x+x+(e-6*u),y2:l[0].y-s},line6:{x1:l[5].x+x,y1:l[0].y-s,x2:l[5].x+x+(e-6*u),y2:l[0].y-s},line7:{x1:l[0].x+T,y1:l[0].y-(s-Math.sqrt(x**2-(x-f)**2)),x2:l[0].x+T,y2:l[0].y-T},line8:{x1:l[0].x+T+(e-2*u),y1:l[0].y-(s-Math.sqrt(x**2-(x-f)**2)),x2:l[0].x+T+(e-2*u),y2:l[0].y-T},line9:{x1:l[0].x+T-r,y1:l[0].y,x2:l[0].x+T-r+e,y2:l[0].y},line10:{x1:d,y1:l[0].y,x2:d,y2:l[0].y+n},line11:{x1:d+s+e+s,y1:l[0].y,x2:d+s+e+s,y2:l[0].y+n},line12:{x1:d+s+(y-T),y1:l[0].y+n,x2:d+s+e+s-s-(y-T),y2:l[0].y+n},line13:{x1:l[0].x+(T-r)+y-ue.xOffset,y1:l[0].y+n+T+ue.yOffset,x2:l[0].x+(T-r)+y-ue.xOffset,y2:l[0].y+n+s-u},line14:{x1:l[0].x+(T-r)+y+(e-6*u)+ue.xOffset,y1:l[0].y+n+T+ue.yOffset,x2:l[0].x+(T-r)+y+(e-6*u)+ue.xOffset,y2:l[0].y+n+s-u},line15:{x1:0,y1:0,x2:0,y2:0},line16:{x1:0,y1:0,x2:0,y2:0},line17:{x1:0,y1:0,x2:0,y2:0},line18:{x1:0,y1:0,x2:0,y2:0},line19:{x1:0,y1:0,x2:0,y2:0},line20:{x1:0,y1:0,x2:0,y2:0},line21:{x1:0,y1:0,x2:0,y2:0},line22:{x1:0,y1:0,x2:0,y2:0}};if(n<120)re.line15={x1:l[0].x+(T-r),y1:l[0].y,x2:l[0].x+(T-r),y2:l[0].y+(n-b)/2},re.line16={x1:l[0].x+(T-r),y1:l[0].y+(n-b)/2+b,x2:l[0].x+(T-r),y2:l[0].y+n},re.line17={x1:l[0].x+(T-r)+e,y1:l[0].y,x2:l[0].x+(T-r)+e,y2:l[0].y+(n-b)/2},re.line18={x1:l[0].x+(T-r)+e,y1:l[0].y+(n-b)/2+b,x2:l[0].x+(T-r)+e,y2:l[0].y+n};else if(n<350){const de=k,he=b-2*F,w=de+he;re.line15={x1:l[0].x+(T-r),y1:l[0].y,x2:l[0].x+(T-r),y2:l[0].y+de+j},re.line16={x1:l[0].x+(T-r),y1:l[0].y+de+j+he,x2:l[0].x+(T-r),y2:l[0].y+de+j+w},re.line17={x1:l[0].x+(T-r),y1:l[0].y+de+j+w+he,x2:l[0].x+(T-r),y2:l[0].y+de+j+w+w+j},re.line18={x1:l[0].x+(T-r)+e,y1:l[0].y,x2:l[0].x+(T-r)+e,y2:l[0].y+de+j},re.line19={x1:l[0].x+(T-r)+e,y1:l[0].y+de+j+he,x2:l[0].x+(T-r)+e,y2:l[0].y+de+j+w},re.line20={x1:l[0].x+(T-r)+e,y1:l[0].y+de+j+w+he,x2:l[0].x+(T-r)+e,y2:l[0].y+de+j+w+w+j}}else{const de=k,he=b-2*F,w=de+he;re.line15={x1:l[0].x+(T-r),y1:l[0].y,x2:l[0].x+(T-r),y2:l[0].y+de+j},re.line16={x1:l[0].x+(T-r),y1:l[0].y+de+j+he,x2:l[0].x+(T-r),y2:l[0].y+de+j+w},re.line17={x1:l[0].x+(T-r),y1:l[0].y+de+j+w+he,x2:l[0].x+(T-r),y2:l[0].y+de+j+w+w},re.line18={x1:l[0].x+(T-r),y1:l[0].y+de+j+w+w+he,x2:l[0].x+(T-r),y2:l[0].y+de+j+w+w+w+j},re.line19={x1:l[0].x+(T-r+e),y1:l[0].y,x2:l[0].x+(T-r+e),y2:l[0].y+de+j},re.line20={x1:l[0].x+(T-r+e),y1:l[0].y+de+j+he,x2:l[0].x+(T-r+e),y2:l[0].y+de+j+w},re.line21={x1:l[0].x+(T-r+e),y1:l[0].y+de+j+w+he,x2:l[0].x+(T-r+e),y2:l[0].y+de+j+w+w},re.line22={x1:l[0].x+(T-r+e),y1:l[0].y+de+j+w+w+he,x2:l[0].x+(T-r+e),y2:l[0].y+de+j+w+w+w+j}}return{foldLineObj:re}},bleedingLinePath$z=t=>{function e(){const n=[];return{path:BleedGeneratorV2.getInstance().generate(cuttingLinePath$z(t).returnPath),actionArray:n}}return{returnPath:e().path,actionArray:e().actionArray}},previewBleedingLinePath$z=t=>{function e(){return BleedGeneratorV2.getInstance().generate(cuttingLinePath$z(t).returnPath)}return{returnPath:e()}},useAircraftBoxPath={mmToPt,cuttingLinePath:cuttingLinePath$z,foldLineoordinates:foldLineoordinates$z,bleedingLinePath:bleedingLinePath$z,previewBleedingLinePath:previewBleedingLinePath$z};function AircraftBoxRules$1(t,e,n){let s=!0;return(expandWidth$a(n)>1500||expandHeight$a(n)>1200)&&(s=!1),t==="boxLength"&&n.boxHeight+e<60||t==="boxHeight"&&n.boxLength+e<60?{validVal:!1,msg:"尺寸检查未通过,长度与高度之和要求不小于60mm!",syncType:""}:t==="boxHeight"&&e<20?{validVal:!1,msg:"尺寸检查未通过,高度不能小于20mm!",syncType:""}:t==="boxLength"&&e<40?{validVal:!1,msg:"尺寸检查未通过,长度不能小于40mm!",syncType:""}:t==="boxWidth"&&e<30?{validVal:!1,msg:"尺寸检查未通过,宽度不能小于30mm!",syncType:""}:t==="boxHeight"&&e>n.boxLength?{validVal:!1,msg:"尺寸检查未通过,高度不能大于长度!",syncType:""}:t==="boxLength"&&e<n.boxHeight?{validVal:!1,msg:"尺寸检查未通过,长度不能小于高度!",syncType:"boxHeight"}:s?{validVal:!0,msg:"success",syncType:""}:{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1500*1200mm!",syncType:""}}const expandWidth$a=t=>{const e=useAircraftBoxPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.x)),s=Math.min(...e.map(u=>u.x));return n-s},expandHeight$a=t=>{const e=useAircraftBoxPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.y)),s=Math.min(...e.map(u=>u.y));return n-s};registerBox({type:"AircraftBox",name:"飞机盒",group:"card",categoryId:"special",component:()=>__vitePreload(()=>import("./index-BEQAg5Ae.js"),__vite__mapDeps([0,1,2])),pathApi:useAircraftBoxPath,rules:AircraftBoxRules$1,display:{label:"飞机盒",index:13,imgSrc:"./defaultDlate/飞机盒.svg",disabled:!1}});class ButtonBottom{constructor(e){this._radiusGT=15,this._radiusTongueRr=1,this._radiusMT=72,this.initNegativeBuckleWidthM(e.boxLength,e.boxWidth),this.initReceptionLocation(e.thickness),this.initHollowLineLength(e.boxWidth),this.initHeightDiff(e.thickness),this.initRadiusTongueRrX(),this.initErrorLength(e.thickness),this.initLockSLength(e.boxLength),this.initMotherLockLength(),this.initTongueHeight(e.boxLength),this.initTongueBottomLength(e.boxLength,e.thickness),this.initRadiusTongueCr(e.boxLength),this.initSlotBottomWidth(e.boxWidth,e.thickness),this.initSlotBottomLength(),this.initSlotWidth(e.thickness),this.initLockYLength(e.boxWidth),this.initRadiusTongueAr(e.boxWidth),this.initRadiusTongueArX(),this.initRadiusTongueArY(),this.initSideWingLength(e.boxLength,e.boxWidth),this.initYLength13(),this.initXLength13(),this.initTongueTopLength(e.boxWidth,e.thickness),this.initK2Length(e.boxLength,e.boxWidth),this.initM2Length(e.boxWidth,e.thickness),this.initRadiusTongueK1r(e.boxWidth),this.initReceptionLocationBR(e.thickness),this.initK1Height(e.boxWidth),this.initK3Height(e.boxLength,e.boxWidth),this.initdownMoveRY(e.thickness),this.initK1Length(),this.initdownMoveRYK1(e.boxLength,e.boxWidth),this.initReceptionLocationBRX(),this.initNegativeBuckleNumber(e.boxLength),this.initRadiusTongueK1rX(),this.initRadiusTongueK1rY(),this.initOffsetX(),this.initOvercutYLength(),this.initTongueLinkWidth(e.boxWidth),this.initHollowLineY()}initReceptionLocation(e){this._receptionLocation=e+.1}initHollowLineLength(e){e>=15&&e<20?this._hollowLineLength=e-4:this._hollowLineLength=15}initHeightDiff(e){e<.3?this._heightDiff=0:e>=.3&&e<=1.5?this._heightDiff=e:e>1.5&&e<=2.2?this._heightDiff=1:e>2.2&&e<3?this._heightDiff=1.5:e>=3&&(this._heightDiff=2)}initRadiusTongueRrX(){this._radiusTongueRrX=Math.sqrt(this._radiusTongueRr*this._radiusTongueRr-this._heightDiff*this._heightDiff)+this._radiusTongueRr}initErrorLength(e){this._errorLength=e+.2}initLockSLength(e){e<65?this._lockSLength=6:e<150?this._lockSLength=6.5:this._lockSLength=9}initMotherLockLength(){this._motherLockLength=this._lockSLength+1.2}initTongueHeight(e){e<=40?this._tongueHeight=12:e>40&&e<=150?this._tongueHeight=15:e>150&&e<=200?this._tongueHeight=17:e>200&&(this._tongueHeight=20)}initTongueBottomLength(e,n){this._tongueBottomLength=e-2*n}initRadiusTongueCr(e){e<60?this._radiusTongueCr=6:e<100?this._radiusTongueCr=7:e<130?this._radiusTongueCr=8:e<180?this._radiusTongueCr=10:e>=180&&(this._radiusTongueCr=13)}initSlotBottomWidth(e,n){const s=Math.trunc(n*10)/10,u=Number(n.toString().split(".")?.[1]?.[1])||0;e<30?u<3?this._slotBottomWidth=2+s:u>=3&&u<8?this._slotBottomWidth=2+s+.05:u>=8&&(this._slotBottomWidth=2+s+.1):u<3?this._slotBottomWidth=3+s:u>=3&&u<8?this._slotBottomWidth=3+s+.05:u>=8&&(this._slotBottomWidth=3+s+.1)}initSlotBottomLength(){this._slotBottomLength=this._heightDiff*this.slotBottomWidth/(this._radiusTongueRrX-this._radiusTongueRr)}initSlotWidth(e){e<=1.5?this._slotWidth=this._slotBottomWidth+1:this._slotWidth=this._slotBottomWidth+2}initLockYLength(e){e<=30?this._lockYLength=2:this._lockYLength=3}initRadiusTongueAr(e){e<40?this._radiusTongueAr=1:e<50?this._radiusTongueAr=6:e<60?this._radiusTongueAr=8:this._radiusTongueAr=9+Math.floor((e-60)/10)}initSideWingLength(e,n){const s=n/2+e/30*2;s>e/2?this._sideWingLength=Math.trunc(e/2)-6<10?10:Math.trunc(e/2)-6:this._sideWingLength=Math.trunc(s)-6<10?10:Math.trunc(s)-6}initYLength13(){this._yLength13=this._sideWingLength-.775*this._radiusTongueAr-this._lockYLength-this._lockSLength}initXLength13(){this._xLength13=this._yLength13*Math.tan(13*(Math.PI/180))}initTongueTopLength(e,n){this._tongueTopLength=e-n-this._slotWidth-.974*this._radiusTongueAr-this._xLength13-this._lockYLength}initK2Length(e,n){n/2<=e/3?this._K2Length=n/2:this._K2Length=(e-this._negativeBuckleWidthM)/2}initM2Length(e,n){n<1.5?this._M2Length=e/2+1:this._M2Length=e/2+2}initRadiusTongueK1r(e){e<=22?this._radiusTongueK1r=1:e<=30?this._radiusTongueK1r=2:e<=40?this._radiusTongueK1r=3:e<=60?this._radiusTongueK1r=4:e<90?this._radiusTongueK1r=5:this._radiusTongueK1r=6}initK3Height(e,n){n/2<=e/3?this._K3Height=this.K1Height:this._K3Height=(e/2-this._K2Length-this._receptionLocationBR)*.95}initReceptionLocationBR(e){e<1.5?this._receptionLocationBR=.5:e<=2.2?this._receptionLocationBR=1:e<3?this._receptionLocationBR=1.5:this._receptionLocationBR=2}initdownMoveRY(e){e<1.5?this._downMoveRY=.3:e<=2.2?this._downMoveRY=.7:e<3?this._downMoveRY=1:this._downMoveRY=1.3}initNegativeBuckleWidthM(e,n){e-n<e/3?this._negativeBuckleWidthM=e/3:this._negativeBuckleWidthM=e-n}initK1Length(){this._K1Length=this._negativeBuckleWidthM-2}initK1Height(e){e<=31?this._K1Height=.5*Math.round((e-10)/2)+2.5:e<=34?this._K1Height=10:e<=90?this._K1Height=4+Math.floor(e/5):this._K1Height=22}initdownMoveRYK1(e,n){this._downMoveRYK1=n/2}initReceptionLocationBRX(){this._receptionLocationBRX=Math.sqrt(this._receptionLocationBR*this._receptionLocationBR-this._downMoveRY*this._downMoveRY)}initNegativeBuckleNumber(e){this._negativeBuckleWidthM/e<=.55?this._negativeBuckleNumber=1:this._negativeBuckleWidthM/e<=.73?this._negativeBuckleNumber=2:this._negativeBuckleWidthM/e<=.83?this._negativeBuckleNumber=3:this._negativeBuckleNumber=4}initRadiusTongueK1rX(){this._radiusTongueK1rX=this._radiusTongueK1r*Math.sin(Math.PI*this._radiusMT/180)}initRadiusTongueK1rY(){this._radiusTongueK1rY=this._radiusTongueK1r+this._radiusTongueK1r*Math.sin(Math.PI*(90-this._radiusMT)/180)}initOffsetX(){this._offsetX=(this._radiusTongueK1r+this._radiusTongueK1r*Math.tan(Math.PI*this._radiusMT/180))/Math.tan(Math.PI*this._radiusMT/180)-this._K3Height/Math.tan(Math.PI*this._radiusMT/180),this._offsetX<0&&(this._offsetX=-this._offsetX)}initOvercutYLength(){this._overcutYLength=.5}initRadiusTongueArX(){this._radiusTongueArX=this._radiusTongueAr*.974}initRadiusTongueArY(){this._radiusTongueArY=this._radiusTongueAr*.775}initHollowLineY(){this._hollowLineY=this._hollowLineLength*Math.tan(this._radiusGT*(Math.PI/180))}initTongueLinkWidth(e){this._tongueLinkWidth=e-.2}get receptionLocation(){return this._receptionLocation}get hollowLineLength(){return this._hollowLineLength}get radiusGT(){return this._radiusGT}get heightDiff(){return this._heightDiff}get radiusTongueRr(){return this._radiusTongueRr}get radiusTongueRrX(){return this._radiusTongueRrX}get errorLength(){return this._errorLength}get lockSLength(){return this._lockSLength}get motherLockLength(){return this._motherLockLength}get tongueHeight(){return this._tongueHeight}get tongueBottomLength(){return this._tongueBottomLength}get radiusTongueCr(){return this._radiusTongueCr}get slotBottomWidth(){return this._slotBottomWidth}get slotBottomLength(){return this._slotBottomLength}get slotWidth(){return this._slotWidth}get lockYLength(){return this._lockYLength}get radiusTongueAr(){return this._radiusTongueAr}get sideWingLength(){return this._sideWingLength}get yLength13(){return this._yLength13}get xLength13(){return this._xLength13}get tongueTopLength(){return this._tongueTopLength}get K2Length(){return this._K2Length}get M2Length(){return this._M2Length}get radiusTongueK1r(){return this._radiusTongueK1r}get K3Height(){return this._K3Height}get receptionLocationBR(){return this._receptionLocationBR}get downMoveRY(){return this._downMoveRY}get negativeBuckleWidthM(){return this._negativeBuckleWidthM}get K1Length(){return this._K1Length}get K1Height(){return this._K1Height}get downMoveRYK1(){return this._downMoveRYK1}get receptionLocationBRX(){return this._receptionLocationBRX}get negativeBuckleNumber(){return this._negativeBuckleNumber}get radiusTongueK1rX(){return this._radiusTongueK1rX}get radiusTongueK1rY(){return this._radiusTongueK1rY}get offsetX(){return this._offsetX}get radiusMT(){return this._radiusMT}get overcutYLength(){return this._overcutYLength}get tongueLinkWidth(){return this._tongueLinkWidth}get radiusTongueArX(){return this._radiusTongueArX}get radiusTongueArY(){return this._radiusTongueArY}get hollowLineY(){return this._hollowLineY}set receptionLocationBR(e){this._receptionLocationBR=e}set downMoveRY(e){this._downMoveRY=e}set heightDiff(e){this._heightDiff=e}}class Buckle{constructor(e,n){this._buckleAngle=65,this._buckleLowPointHeightDiff=.75,this._buckleRadius=5,this._buckleTongueRadius=5,this._buckleTongueLength=20,this._buckleTongueHeight=15,this._buckleTongueHeightInDiff=1,n&&this.initBuckleTongueLength(e.boxLength,n.sideWingLength,n.radiusTongueArY),this.initBuckleHeightDiff(e.thickness),this.initBuckleUpPointWidthDiff(),this.initBuckleDownPointWidthDiff(),this.initBuckleTongueWidth(e.thickness),this.initBuckleTopLength(),this.initBuckleTongueRadius(e.boxLength),this.initBuckleRadius(e.boxLength),this.initBuckleTongueHeight(e.boxLength,e.boxWidth,n.xLength13,n.lockYLength,n.radiusTongueArY),this.initBuckleTongueHeightIn()}initBuckleHeightDiff(e){this._buckleHeightDiff=2*e}initBuckleUpPointWidthDiff(){this._buckleHeightDiffX=this._buckleHeightDiff/Math.tan(Math.PI*this._buckleAngle/180)}initBuckleDownPointWidthDiff(){this._buckleLowPointHeightDiffX=this._buckleLowPointHeightDiff/Math.tan(Math.PI*this._buckleAngle/180)}initBuckleTongueHeightIn(){this._buckleTongueHeightIn=this._buckleTongueHeight+2}initBuckleTongueWidth(e){this._buckleTongueWidth=this._buckleTongueLength-.25}initBuckleTongueLength(e,n,s){const u=(e-2*n)*.95,l=e*.2,o=Math.min(u,l);if(this._buckleTongueLength=o,e>=100){const i=2*s;this._buckleTongueLength=Math.max(o,i)}}initBuckleTongueHeight(e,n,s,u,l){e<=50?this._buckleTongueHeight=12:this._buckleTongueHeight=15,this._buckleTongueHeight>=n&&(this._buckleTongueHeight=n*.8),this._buckleTongueLength==2*l&&(this._buckleTongueHeight=s+u)}initBuckleRadius(e){e>=60?this._buckleRadius=5:this._buckleRadius=3}initBuckleTongueRadius(e){e>=60?this._buckleTongueRadius=5:this._buckleTongueRadius=3}initBuckleTopLength(){this._buckleTopLength=this._buckleTongueWidth-2*this._buckleHeightDiffX}get buckleHeightDiffX(){return this._buckleHeightDiffX}get buckleLowPointHeightDiffX(){return this._buckleLowPointHeightDiffX}get buckleHeightDiff(){return this._buckleHeightDiff}get buckleAngle(){return this._buckleAngle}get buckleLowPointHeightDiff(){return this._buckleLowPointHeightDiff}get buckleRadius(){return this._buckleRadius}get buckleTongueRadius(){return this._buckleTongueRadius}get buckleTongueLength(){return this._buckleTongueLength}get buckleTongueHeight(){return this._buckleTongueHeight}get buckleTongueHeightIn(){return this._buckleTongueHeightIn}get buckleTongueHeightInDiff(){return this._buckleTongueHeightInDiff}get buckleTongueWidth(){return this._buckleTongueWidth}get buckleTopLength(){return this._buckleTopLength}}const topLeftBigTongue$f=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:u,y:l-i}),e[1])).lineTo(()=>(e.push({x:u+s,y:e[1].y}),e[2])).lineTo(()=>(e.push({x:e[2].x,y:g}),e[3])).arcTo(g,g,0,0,1,()=>(e.push({x:e[3].x+g,y:e[3].y-g}),e[4])).lineTo(()=>(e.push({x:e[4].x+o-2*g,y:e[4].y}),e[5])).arcTo(g,g,0,0,1,()=>(e.push({x:e[5].x+g,y:e[5].y+g}),e[6])).lineTo(()=>(e.push({x:e[6].x,y:e[6].y+l-i-g}),e[7])).lineTo(()=>(e.push({x:e[7].x+s,y:e[7].y}),e[8])).lineTo(()=>(e.push({x:e[8].x,y:e[8].y+d}),e[9])),t},topLeftEar$g=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,sideWingLength:g,tongueTopLength:d,radiusTongueAr:r,xLength13:f,yLength13:L,lockYLength:T,lockSLength:x}=new ButtonBottom(n);return t.arcTo(s,s,0,0,0,()=>(e.push({x:e[9].x+u,y:e[9].y+l}),e[10])).lineTo(()=>(e.push({x:e[9].x+o,y:e[10].y-o}),e[11])).lineTo(()=>(e.push({x:e[9].x+i,y:e[10].y-g}),e[12])).lineTo(()=>(e.push({x:e[12].x+d,y:e[12].y}),e[13])).arcTo(r,r,0,0,1,()=>(e.push({x:e[13].x+.974*r,y:e[13].y+.775*r}),e[14])).lineTo(()=>(e.push({x:e[14].x+f,y:e[14].y+L}),e[15])).lineTo(()=>(e.push({x:e[15].x+T,y:e[15].y+T}),e[16])).lineTo(()=>(e.push({x:e[16].x,y:e[16].y+x}),e[17])),t},topRightEar$g=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth;n.boxHeight,n.thickness;const{hollowLineLength:l,errorLength:o,slotBottomWidth:i,slotWidth:g,radiusTongueAr:d,xLength13:r,yLength13:f,lockYLength:L,lockSLength:T}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-f}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*d,y:e[e.length-1].y-.775*d}),e[e.length-1])).lineTo(()=>(e.push({x:l+s+u+s+u-o-g,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g-i,y:e[e.length-6].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-7].y}),e[e.length-1])),t},buttonBuckleRender$3=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth;n.boxHeight,n.thickness;const{hollowLineLength:l,errorLength:o,receptionLocationBR:i,receptionLocationBRX:g,downMoveRY:d,K2Length:r,K3Height:f,M2Length:L,radiusTongueK1r:T,offsetX:x,radiusTongueK1rX:c,radiusTongueK1rY:m,K1Height:y,downMoveRYK1:O,negativeBuckleWidthM:b,negativeBuckleNumber:j,receptionLocation:F,overcutYLength:k,motherLockLength:_}=new ButtonBottom(n);let ue=e.length-1;t.arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(i-g),y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+r+f-d}),e[e.length-1])),u<=50?t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-o-(L-i)-T-(i-g)),y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(f-T)}),e[e.length-1])):t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-o-(L-i)-(i-g))+x,y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-x,y:e[e.length-2].y-f}),ue=e.length-1,e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-(L-i-g),y:e[e.length-1].y-r}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(i+g),y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y+O-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-b)/2-T-i)+i/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1]));function re(he){const w=2*he-1;for(let le=1;le<he;le++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(b/w+i),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(y-T)}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(b/w-2*T-i),y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-b/w-i,y:e[e.length-1].y}),e[e.length-1]))}j===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(b+i),y:e[e.length-1].y}),e[e.length-1])):re(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-b)/2-T-i)+i/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+y+O-d)}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(i+g),y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(L-i-g),y:e[e.length-1].y+r}),e[e.length-1])),u<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+f-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-i-T-(L-i)),y:e[e.length-1].y}),e[e.length-1]))):(t.lineTo(()=>(e.push({x:e[e.length-1].x+(e[ue].x-e[ue-1].x),y:e[e.length-1].y+(e[ue-1].y-e[ue].y)}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-c,y:e[e.length-1].y+m}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[9].x+i,y:e[e.length-1].y}),e[e.length-1]))),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+f+r-d)}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(i+g),y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(b-i)-2*g)/2,y:e[e.length-1].y+O}),e[e.length-1]));function de(he){const w=2*he-1;for(let le=1;le<he;le++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((b-i)/w-2*T),y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(b-i)/w,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((b-i)/w-2*T),y:e[e.length-1].y}),e[e.length-1]))}return j===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(b-i)+2*T,y:e[e.length-1].y}),e[e.length-1])):de(2),t.arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(b-i)-2*g)/2,y:e[e.length-1].y-O}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-(i-d)}),e[e.length-1])),t},motherLockRender$8=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new ButtonBottom(n);return t.moveTo(()=>(e.push({x:e[2].x,y:e[1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},topPlugHole$a=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue$a=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},cuttingLinePath$y=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,errorLength:r,K2Length:f,motherLockLength:L,M2Length:T,K3Height:x,radiusTongueK1r:c,receptionLocationBR:m,downMoveRY:y,receptionLocationBRX:O,K1Height:b,downMoveRYK1:j,negativeBuckleWidthM:F,negativeBuckleNumber:k,radiusTongueK1rX:_,radiusTongueK1rY:ue,offsetX:re,overcutYLength:de,tongueLinkWidth:he}=l,w=new Buckle(t,l),{buckleTongueLength:le,buckleTongueWidth:V}=w;function Ce(){const _e=[],D=new SvgPathBuilder().moveTo(()=>(_e.push({x:o,y:i+he-g+d}),_e[0]));return topLeftBigTongue$f(D,_e,t),topLeftEar$g(D,_e,t).lineTo(()=>(_e.push({x:_e[_e.length-1].x+u+(e/2-le/2),y:_e[_e.length-1].y}),_e[_e.length-1])).moveTo(()=>(_e.push({x:_e[_e.length-1].x+le,y:_e[_e.length-1].y}),_e[_e.length-1])).lineTo(()=>(_e.push({x:_e[_e.length-1].x+u+(e/2-le/2),y:_e[_e.length-1].y}),_e[_e.length-1])),topRightEar$g(D,_e,t).lineTo(()=>(_e.push({x:_e[_e.length-1].x,y:_e[_e.length-1].y+s-d}),_e[_e.length-1])),buttonBuckleRender$3(D,_e,t).lineTo(()=>(_e.push({x:0,y:_e[_e.length-1].y-o*Math.tan(15*(Math.PI/180))}),_e[_e.length-1])).lineTo(()=>(_e.push({x:_e[_e.length-1].x,y:_e[0].y+o*Math.tan(15*(Math.PI/180))}),_e[_e.length-1])).lineTo(()=>(_e.push({x:_e[_e.length-3].x,y:_e[_e.length-1].y-o*Math.tan(15*(Math.PI/180))}),_e[_e.length-1])),motherLockRender$8(D,_e,t).moveTo(()=>(_e.push({x:_e[1].x+(e/2-V/2),y:_e[1].y+g}),_e[_e.length-1])),topPlugHole$a(D,_e,t,w).moveTo(()=>(_e.push({x:_e[0].x+e+n+(e/2-le/2),y:_e[0].y}),_e[_e.length-1])),topPlugTongue$a(D,_e,t,w),{path:D.build(),actionArray:_e,pathLine:D}}return{returnPath:Ce().path,actionArray:Ce().actionArray,pathLine:Ce().pathLine}},foldLineoordinates$y=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$y(t).actionArray,o=new ButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c}=o,m=new Buckle(t,o),{buckleTongueLength:y,buckleTongueWidth:O,buckleTongueHeightIn:b,buckleTongueHeightInDiff:j}=m;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-(L-T)},line2_1:{x1:l[0].x+f,y1:l[0].y-g-(c-i),x2:l[1].x+(e/2-O/2),y2:l[0].y-g-(c-i)},line2_2:{x1:l[1].x+(e/2-O/2)+O,y1:l[0].y-g-(c-i),x2:l[0].x+e-f,y2:l[0].y-g-(c-i)},line3:{x1:l[0].x,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g},line4:{x1:l[0].x+e+d,y1:l[0].y,x2:l[0].x+e+n-u,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g+s-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+u,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+x,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g},line13_1:{x1:l[0].x+e+n+(e/2-y/2),y1:l[0].y,x2:l[0].x+e+n+(e/2-y/2+y),y2:l[0].y},line13_2:{x1:l[0].x+e+n+(e/2-y/2),y1:l[0].y+(b-j),x2:l[0].x+e+n+(e/2-y/2+y),y2:l[0].y+(b-j)}}}},bleedingLinePath$y=t=>{function e(){const n=cuttingLinePath$y(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$y=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new Buckle(t,l),{buckleTongueLength:L,buckleTongueWidth:T}=f;function x(){const c=[],m=new SvgPathBuilder().moveTo(()=>(c.push({x:o,y:i+r-g+d}),c[0]));topLeftBigTongue$f(m,c,t),topLeftEar$g(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x+u+(e/2-L/2),y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x+L,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+u+(e/2-L/2),y:c[c.length-1].y}),c[c.length-1])),topRightEar$g(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[c.length-1].y+s-d}),c[c.length-1])),buttonBuckleRender$3(m,c,t).lineTo(()=>(c.push({x:c[0].x,y:c[0].y}),c[c.length-1])),motherLockRender$8(m,c,t).moveTo(()=>(c.push({x:c[1].x+(e/2-T/2),y:c[1].y+g}),c[c.length-1])),topPlugHole$a(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-L/2),y:c[0].y}),c[c.length-1])),topPlugTongue$a(m,c,t,f);let y=BleedGenerator.getInstance().generate(m.build());const O=y.split("M").filter(j=>j.trim()!=="");if(O.length>1){const j=ue=>{if(typeof document>"u")return Number.NaN;const re="http://www.w3.org/2000/svg",de=document.createElementNS(re,"svg"),he=document.createElementNS(re,"path");de.style.position="absolute",de.style.width="0",de.style.height="0",de.style.overflow="hidden",he.setAttribute("d",`M${ue}`),de.appendChild(he);try{document.body.appendChild(de);const w=he.getBBox();return w.width*w.height}catch{return Number.NaN}finally{de.remove()}},F=O.map((ue,re)=>({index:re,area:j(ue),length:ue.length})),_=(F.some(ue=>Number.isFinite(ue.area))?F.sort((ue,re)=>re.area-ue.area):F.sort((ue,re)=>re.length-ue.length))[0];y=`M${O[_.index]}`}return y}return{returnPath:x()}},useBuckleButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$y,foldLineoordinates:foldLineoordinates$y,bleedingLinePath:bleedingLinePath$y,previewBleedingLinePath:previewBleedingLinePath$y};function ButtonBottomBoxRules$1(t,e,n){let s=!0;if((expandWidth$9(n)>1e3||expandHeight$9(n)>700)&&(s=!1),t==="boxWidth"&&e<20)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于20mm!",syncType:""};if(t==="boxLength"&&e<40)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于40mm!",syncType:""};if(t==="boxWidth"&&e>n.boxLength)return{validVal:!1,msg:"尺寸检查未通过,宽度不能大于长度!",syncType:""};if(t==="boxLength"&&e<n.boxWidth)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于宽度!",syncType:"boxWidth"};if(s){if(t==="boxHeight"&&e<15)return{validVal:!1,msg:"尺寸检查未通过,高度不能小于15mm!",syncType:"boxHeight",syncSize:15}}else return{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1000*700mm!",syncType:""};return{validVal:!0,msg:"success",syncType:""}}const expandWidth$9=t=>{const e=useBuckleButtonBottomPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.x)),s=Math.min(...e.map(u=>u.x));return n-s},expandHeight$9=t=>{const e=useBuckleButtonBottomPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.y)),s=Math.min(...e.map(u=>u.y));return n-s};registerBox({type:"BuckleButtonBottomBox",name:"普通扣底盒(异侧) + 插扣",group:"card",categoryId:"button-bottom",component:()=>__vitePreload(()=>import("./index-DK7s0GbT.js"),__vite__mapDeps([3,1,2])),pathApi:useBuckleButtonBottomPath,rules:ButtonBottomBoxRules$1,display:{label:"普通扣底盒(异侧) + 插扣",index:20,imgSrc:"./defaultDlate/普通扣底盒(异侧) + 插扣.svg",disabled:!1}});class EarHangingPluginLock extends ButtonBottom{constructor(e){super(e),this._hookHeightP=30,this._extendPF=15,this._extendAnglePFT=15,this._hookHeightPSD=5,this._radiusPSRr=4,this._hookLengthPSW=30,this._positionPSP=12,this._hookGap=1.5,this._hookRadius=.75,e.advancedParams.hookSideHeight&&(this._hookHeightP=e.advancedParams.hookSideHeight.value),this.initExtendPF(),this.initExtendAnglePFTx(),this.initHookLengthPSW(e.boxLength),this.initPositionPSP(),this.initHookRadius(e.thickness),this.initTongueLinkWidthHookSideHeight(e.boxWidth,e.thickness)}initExtendPF(){this._extendPF=this._hookHeightP/2}initHookLengthPSW(e){e<50&&(this._hookLengthPSW=e-10>15?e-10:15)}initPositionPSP(){this._positionPSP=10+this._radiusPSRr+this._hookHeightPSD/2}initExtendAnglePFTx(){this._extendAnglePFTx=this._extendPF*Math.tan(this._extendAnglePFT*(Math.PI/180))}initHookRadius(e){this._hookRadius=3*e-.1}initTongueLinkWidthHookSideHeight(e,n){this._tongueLinkWidthHookSideHeight=e-2*n-.1}get hookRadius(){return this._hookRadius}get hookHeightP(){return this._hookHeightP}set hookHeightP(e){this._hookHeightP=e}get hookGap(){return this._hookGap}get extendPF(){return this._extendPF}get extendAnglePFT(){return this._extendAnglePFT}get hookHeightPSD(){return this._hookHeightPSD}get radiusPSRr(){return this._radiusPSRr}get hookLengthPSW(){return this._hookLengthPSW}get positionPSP(){return this._positionPSP}set positionPSP(e){this._positionPSP=e}get extendAnglePFTx(){return this._extendAnglePFTx}get tongueLinkWidthHookSideHeight(){return this._tongueLinkWidthHookSideHeight}}const bottomPlugHole$1=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y-i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y-(d+i)}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y+d}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},bottomPlugTongue$1=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y-u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o)}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o+u)}),e[e.length-1])),t},cuttingLinePath$x=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new EarHangingPluginLock(t),{hollowLineLength:o,tongueHeight:i,tongueBottomLength:g,receptionLocation:d,heightDiff:r,radiusTongueCr:f,radiusTongueRr:L,radiusTongueRrX:T,slotWidth:x,slotBottomWidth:c,lockSLength:m,xLength13:y,yLength13:O,radiusTongueAr:b,sideWingLength:j,tongueTopLength:F,errorLength:k,motherLockLength:_,lockYLength:ue,extendPF:re,hookHeightPSD:de,radiusPSRr:he,hookLengthPSW:w,extendAnglePFTx:le,overcutYLength:V,tongueLinkWidth:Ce,hookHeightP:_e,positionPSP:D,hookRadius:Ie,tongueLinkWidthHookSideHeight:Lt}=l,At=new Buckle(t,l),{buckleTongueLength:ie,buckleTongueWidth:Ve}=At;function ze(){const z=[],Dt=i+Ce-d>2*_e+re-r?i+Ce-d:2*_e+re-r,v=new SvgPathBuilder().moveTo(()=>(z.push({x:n-k,y:Dt}),z[z.length-1])).lineTo(()=>(z.push({x:n-k,y:z[z.length-1].y-Lt}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+u,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-(i-d-f)}),z[z.length-1])).arcTo(f,f,0,0,1,()=>(z.push({x:z[z.length-1].x+f,y:z[z.length-1].y-f}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+g-2*f,y:z[z.length-1].y}),z[z.length-1])).arcTo(f,f,0,0,1,()=>(z.push({x:z[z.length-1].x+f,y:z[z.length-1].y+f}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+i-d-f}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+u,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+Lt}),z[z.length-1])).arcTo(L,L,0,0,0,()=>(z.push({x:z[z.length-1].x+T,y:z[z.length-1].y+r}),z[z.length-1])).lineTo(()=>(z.push({x:z[9].x+c,y:z[z.length-1].y-c}),z[z.length-1])).lineTo(()=>(z.push({x:z[9].x+x,y:z[10].y-j}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+F-(Ie-u),y:z[z.length-1].y}),z[z.length-1])).arcTo(b,b,0,0,1,()=>(z.push({x:z[z.length-1].x+.974*b,y:z[z.length-1].y+.775*b}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+y,y:z[z.length-1].y+O}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+ue,y:z[z.length-1].y+ue}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+m}),z[z.length-1])).arcTo(Ie,Ie,0,0,0,()=>(z.push({x:z[z.length-1].x+2*Ie,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-2*_e}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+le,y:z[z.length-1].y-re}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+(e-Ie-u-2*le),y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+le,y:z[z.length-1].y+re}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+2*_e}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+u,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+o,y:z[z.length-1].y+o*Math.tan(15*(Math.PI/180))}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+(s-2*(o*Math.tan(15*(Math.PI/180))))-2*r}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-o,y:z[z.length-1].y+o*Math.tan(15*(Math.PI/180))}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(e/2-ie/2),y:z[z.length-1].y}),z[z.length-1])).moveTo(()=>(z.push({x:z[z.length-1].x-ie,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(e/2-ie/2+u),y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+m}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-ue,y:z[z.length-1].y+ue}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-y,y:z[z.length-1].y+O}),z[z.length-1])).arcTo(b,b,0,0,1,()=>(z.push({x:z[z.length-1].x-.974*b,y:z[z.length-1].y+.775*b}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-F,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(x-c)+(Ie-u),y:z[z.length-1].y-(j-c)}),z[z.length-1])).lineTo(()=>(z.push({x:n-k+e+T,y:z[z.length-1].y-c}),z[z.length-1])).arcTo(L,L,0,0,0,()=>(z.push({x:z[z.length-1].x-T,y:z[z.length-1].y+r}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+Ce}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-u,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+i-f-d}),z[z.length-1])).arcTo(f,f,0,0,1,()=>(z.push({x:z[z.length-1].x-f,y:z[z.length-1].y+f}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(g-2*f),y:z[z.length-1].y}),z[z.length-1])).arcTo(f,f,0,0,1,()=>(z.push({x:z[z.length-1].x-f,y:z[z.length-1].y-f}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-(i-f-d)}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-u,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-Ce}),z[z.length-1])).arcTo(L,L,0,0,0,()=>(z.push({x:z[z.length-1].x-T,y:z[z.length-1].y-r}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-3].x-c,y:z[z.length-1].y+c}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(x-c),y:z[z.length-2].y+j}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(F+u-k),y:z[z.length-1].y}),z[z.length-1])).arcTo(b,b,0,0,1,()=>(z.push({x:z[z.length-1].x-.974*b,y:z[z.length-1].y-.775*b}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-y,y:z[z.length-1].y-O}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-ue,y:z[z.length-1].y-ue}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[16].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+ue,y:z[z.length-1].y-ue}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+y,y:z[z.length-1].y-O}),z[z.length-1])).arcTo(b,b,0,0,1,()=>(z.push({x:z[z.length-1].x+.974*b,y:z[z.length-1].y-.775*b}),z[z.length-1])).lineTo(()=>(z.push({x:z[0].x-x,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+(x-c),y:z[z.length-1].y+(j-c)}),z[z.length-1])).lineTo(()=>(z.push({x:z[0].x-T,y:z[0].y+r}),z[z.length-1])).arcTo(L,L,0,0,0,()=>(z.push({x:z[0].x,y:z[0].y}),z[z.length-1])).moveTo(()=>(z.push({x:z[2].x,y:z[2].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+(_-u),y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+u}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+d-u+V}),z[z.length-1])).moveTo(()=>(z.push({x:z[7].x,y:z[7].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(_-u),y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+u}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+d-u+V}),z[z.length-1])).moveTo(()=>(z.push({x:z[40].x,y:z[40].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(_-u),y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-u}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-d+u-V}),z[z.length-1])).moveTo(()=>(z.push({x:z[45].x,y:z[45].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+(_-u),y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-u}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-d+u-V}),z[z.length-1])).moveTo(()=>(z.push({x:z[18].x+(e-2*u-w)/2+de/2,y:z[18].y-_e+D+de/2}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+w-de,y:z[z.length-1].y}),z[z.length-1])).arcTo(de/2,de/2,0,0,0,()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-de}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(w-de-2*he)/2,y:z[z.length-1].y}),z[z.length-1])).arcTo(he,he,0,0,0,()=>(z.push({x:z[z.length-1].x-2*he,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(w-de-2*he)/2,y:z[z.length-1].y}),z[z.length-1])).arcTo(de/2,de/2,0,0,0,()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+de}),z[z.length-1])).moveTo(()=>(z.push({x:z[18].x+(e-2*u-w)/2+de/2,y:z[18].y-_e-(D+de/2)}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x+w-de,y:z[z.length-1].y}),z[z.length-1])).arcTo(de/2,de/2,0,0,1,()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+de}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(w-de-2*he)/2,y:z[z.length-1].y}),z[z.length-1])).arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-2*he,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(w-de-2*he)/2,y:z[z.length-1].y}),z[z.length-1])).arcTo(de/2,de/2,0,0,1,()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-de}),z[z.length-1])).moveTo(()=>(z.push({x:z[0].x+(e/2-Ve/2),y:z[0].y+s+Ce-d}),z[z.length-1]));return bottomPlugHole$1(v,z,t,At).moveTo(()=>(z.push({x:z[0].x+e+n+(e/2-ie/2),y:z[0].y+s-r}),z[z.length-1])),bottomPlugTongue$1(v,z,t,At),{path:v.build(),actionArray:z,pathLine:v}}return{returnPath:ze().path,actionArray:ze().actionArray,pathLine:ze().pathLine}},foldLineoordinates$x=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$x(t).actionArray,o=new EarHangingPluginLock(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,hookHeightP:f,hookRadius:L}=o,T=new Buckle(t,o),{buckleTongueWidth:x,buckleTongueLength:c,buckleTongueHeightIn:m,buckleTongueHeightInDiff:y}=T;return{foldLineObj:{line1:{x1:0,y1:l[0].y+g,x2:l[0].x-d,y2:l[0].y+g},line2:{x1:0,y1:l[0].y+s-g,x2:l[0].x-d,y2:l[0].y+s-g},line3:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s},line4:{x1:l[0].x+r,y1:l[2].y+i,x2:l[0].x+e-r,y2:l[2].y+i},line5:{x1:l[0].x,y1:l[0].y,x2:l[0].x+e,y2:l[0].y},line6:{x1:l[0].x,y1:l[0].y+s,x2:l[0].x+e,y2:l[0].y+s},line7_1:{x1:l[46].x+r,y1:l[46].y-i,x2:l[0].x+(e/2-x/2),y2:l[46].y-i},line7_2:{x1:l[0].x+(e/2-x/2)+x,y1:l[46].y-i,x2:l[46].x+e-r,y2:l[46].y-i},line8:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+s},line9:{x1:l[10].x,y1:l[0].y+g,x2:l[17].x,y2:l[0].y+g},line10:{x1:l[10].x,y1:l[0].y+s-g,x2:l[17].x+L-u,y2:l[0].y+s-g},line11:{x1:l[17].x+L,y1:l[0].y+g+L,x2:l[17].x+L,y2:l[0].y+s-g},line12:{x1:l[18].x,y1:l[0].y+g-2*f,x2:l[18].x+(e-L-u),y2:l[0].y+g-2*f},line13:{x1:l[18].x,y1:l[0].y+g-f,x2:l[18].x+(e-L-u),y2:l[0].y+g-f},line14:{x1:l[18].x,y1:l[0].y+g,x2:l[18].x+(e-L-u),y2:l[0].y+g},line15:{x1:l[17].x+e+L,y1:l[0].y+g,x2:l[17].x+e+L,y2:l[0].y+s-g},line14_1:{x1:l[0].x+e+n+(e/2-c/2),y1:l[0].y+s-g,x2:l[0].x+e+n+(e/2-c/2)+c,y2:l[0].y+s-g},line14_2:{x1:l[0].x+e+n+(e/2-c/2),y1:l[0].y+s-g-(m-y),x2:l[0].x+e+n+(e/2-c/2)+c,y2:l[0].y+s-g-(m-y)}}}},bleedingLinePath$x=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new EarHangingPluginLock(t),{hollowLineLength:o,tongueHeight:i,tongueBottomLength:g,receptionLocation:d,heightDiff:r,radiusTongueCr:f,radiusTongueRr:L,radiusTongueRrX:T,slotWidth:x,slotBottomWidth:c,lockSLength:m,xLength13:y,yLength13:O,radiusTongueAr:b,sideWingLength:j,tongueTopLength:F,errorLength:k,motherLockLength:_,lockYLength:ue,extendPF:re,hookHeightPSD:de,radiusPSRr:he,hookLengthPSW:w,extendAnglePFTx:le,overcutYLength:V,tongueLinkWidth:Ce,hookHeightP:_e,positionPSP:D,hookRadius:Ie,tongueLinkWidthHookSideHeight:Lt}=l,At=new Buckle(t,l),{buckleTongueLength:ie,buckleTongueWidth:Ve,buckleTongueHeightIn:ze,buckleTongueHeight:z,buckleTongueRadius:Dt}=At;function v(){const S=[],Ue=i+Ce-d>2*_e+re-r?i+Ce-d:2*_e+re-r,M=new SvgPathBuilder().moveTo(()=>(S.push({x:n-k,y:Ue}),S[S.length-1])).lineTo(()=>(S.push({x:n-k,y:S[S.length-1].y-Lt}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+u,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(i-d-f)}),S[S.length-1])).arcTo(f,f,0,0,1,()=>(S.push({x:S[S.length-1].x+f,y:S[S.length-1].y-f}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+g-2*f,y:S[S.length-1].y}),S[S.length-1])).arcTo(f,f,0,0,1,()=>(S.push({x:S[S.length-1].x+f,y:S[S.length-1].y+f}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+i-d-f}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+u,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+Lt}),S[S.length-1])).arcTo(L,L,0,0,0,()=>(S.push({x:S[S.length-1].x+T,y:S[S.length-1].y+r}),S[S.length-1])).lineTo(()=>(S.push({x:S[9].x+c,y:S[S.length-1].y-c}),S[S.length-1])).lineTo(()=>(S.push({x:S[9].x+x,y:S[10].y-j}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+F-(Ie-u),y:S[S.length-1].y}),S[S.length-1])).arcTo(b,b,0,0,1,()=>(S.push({x:S[S.length-1].x+.974*b,y:S[S.length-1].y+.775*b}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+y,y:S[S.length-1].y+O}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+ue,y:S[S.length-1].y+ue}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+m}),S[S.length-1])).arcTo(Ie,Ie,0,0,0,()=>(S.push({x:S[S.length-1].x+2*Ie,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-2*_e}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+le,y:S[S.length-1].y-re}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+(e-Ie-u-2*le),y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+le,y:S[S.length-1].y+re}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+2*_e}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+u,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+o,y:S[S.length-1].y+o*Math.tan(15*(Math.PI/180))}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+(s-2*(o*Math.tan(15*(Math.PI/180))))-2*r}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-o,y:S[S.length-1].y+o*Math.tan(15*(Math.PI/180))}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(e/2-ie/2),y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+(z-Dt)}),S[S.length-1])).arcTo(Dt,Dt,0,0,1,()=>(S.push({x:S[S.length-1].x-Dt,y:S[S.length-1].y+Dt}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(ie-2*Dt),y:S[S.length-1].y}),S[S.length-1])).arcTo(Dt,Dt,0,0,1,()=>(S.push({x:S[S.length-1].x-Dt,y:S[S.length-1].y-Dt}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(z-Dt)}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(e/2-ie/2+u),y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+m}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-ue,y:S[S.length-1].y+ue}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-y,y:S[S.length-1].y+O}),S[S.length-1])).arcTo(b,b,0,0,1,()=>(S.push({x:S[S.length-1].x-.974*b,y:S[S.length-1].y+.775*b}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-F,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(x-c)+(Ie-u),y:S[S.length-1].y-(j-c)}),S[S.length-1])).lineTo(()=>(S.push({x:n-k+e+T,y:S[S.length-1].y-c}),S[S.length-1])).arcTo(L,L,0,0,0,()=>(S.push({x:S[S.length-1].x-T,y:S[S.length-1].y+r}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+Ce}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-u,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+i-f-d}),S[S.length-1])).arcTo(f,f,0,0,1,()=>(S.push({x:S[S.length-1].x-f,y:S[S.length-1].y+f}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(g-2*f),y:S[S.length-1].y}),S[S.length-1])).arcTo(f,f,0,0,1,()=>(S.push({x:S[S.length-1].x-f,y:S[S.length-1].y-f}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(i-f-d)}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-u,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-Ce}),S[S.length-1])).arcTo(L,L,0,0,0,()=>(S.push({x:S[S.length-1].x-T,y:S[S.length-1].y-r}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-3].x-c,y:S[S.length-1].y+c}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(x-c),y:S[S.length-2].y+j}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(F+u-k),y:S[S.length-1].y}),S[S.length-1])).arcTo(b,b,0,0,1,()=>(S.push({x:S[S.length-1].x-.974*b,y:S[S.length-1].y-.775*b}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-y,y:S[S.length-1].y-O}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-ue,y:S[S.length-1].y-ue}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[16].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+ue,y:S[S.length-1].y-ue}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+y,y:S[S.length-1].y-O}),S[S.length-1])).arcTo(b,b,0,0,1,()=>(S.push({x:S[S.length-1].x+.974*b,y:S[S.length-1].y-.775*b}),S[S.length-1])).lineTo(()=>(S.push({x:S[0].x-x,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+(x-c),y:S[S.length-1].y+(j-c)}),S[S.length-1])).lineTo(()=>(S.push({x:S[0].x-T,y:S[0].y+r}),S[S.length-1])).arcTo(L,L,0,0,0,()=>(S.push({x:S[0].x,y:S[0].y}),S[S.length-1]));return BleedGeneratorV2.getInstance().generate(M.build())}return{returnPath:v()}},previewBleedingLinePath$x=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new EarHangingPluginLock(t),{hollowLineLength:o,tongueHeight:i,tongueBottomLength:g,receptionLocation:d,heightDiff:r,radiusTongueCr:f,radiusTongueRr:L,radiusTongueRrX:T,slotWidth:x,slotBottomWidth:c,lockSLength:m,xLength13:y,yLength13:O,radiusTongueAr:b,sideWingLength:j,tongueTopLength:F,errorLength:k,motherLockLength:_,lockYLength:ue,extendPF:re,hookHeightPSD:de,radiusPSRr:he,hookLengthPSW:w,extendAnglePFTx:le,overcutYLength:V,tongueLinkWidth:Ce,hookHeightP:_e,positionPSP:D,hookRadius:Ie,tongueLinkWidthHookSideHeight:Lt}=l,At=new Buckle(t,l),{buckleTongueLength:ie,buckleTongueWidth:Ve,buckleTongueHeightIn:ze,buckleTongueHeight:z,buckleTongueRadius:Dt}=At;function v(){const S=[],Ue=i+Ce-d>2*_e+re-r?i+Ce-d:2*_e+re-r,M=new SvgPathBuilder().moveTo(()=>(S.push({x:n-k,y:Ue}),S[S.length-1])).lineTo(()=>(S.push({x:n-k,y:S[S.length-1].y-Lt}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+u,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(i-d-f)}),S[S.length-1])).arcTo(f,f,0,0,1,()=>(S.push({x:S[S.length-1].x+f,y:S[S.length-1].y-f}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+g-2*f,y:S[S.length-1].y}),S[S.length-1])).arcTo(f,f,0,0,1,()=>(S.push({x:S[S.length-1].x+f,y:S[S.length-1].y+f}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+i-d-f}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+u,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+Lt}),S[S.length-1])).arcTo(L,L,0,0,0,()=>(S.push({x:S[S.length-1].x+T,y:S[S.length-1].y+r}),S[S.length-1])).lineTo(()=>(S.push({x:S[9].x+c,y:S[S.length-1].y-c}),S[S.length-1])).lineTo(()=>(S.push({x:S[9].x+x,y:S[10].y-j}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+F-(Ie-u),y:S[S.length-1].y}),S[S.length-1])).arcTo(b,b,0,0,1,()=>(S.push({x:S[S.length-1].x+.974*b,y:S[S.length-1].y+.775*b}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+y,y:S[S.length-1].y+O}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+ue,y:S[S.length-1].y+ue}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+m}),S[S.length-1])).arcTo(Ie,Ie,0,0,0,()=>(S.push({x:S[S.length-1].x+2*Ie,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-2*_e}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+le,y:S[S.length-1].y-re}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+(e-Ie-u-2*le),y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+le,y:S[S.length-1].y+re}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+2*_e}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+u,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+s-2*r}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(e/2-ie/2),y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+(z-Dt)}),S[S.length-1])).arcTo(Dt,Dt,0,0,1,()=>(S.push({x:S[S.length-1].x-Dt,y:S[S.length-1].y+Dt}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(ie-2*Dt),y:S[S.length-1].y}),S[S.length-1])).arcTo(Dt,Dt,0,0,1,()=>(S.push({x:S[S.length-1].x-Dt,y:S[S.length-1].y-Dt}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(z-Dt)}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(e/2-ie/2+u),y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+m}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-ue,y:S[S.length-1].y+ue}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-y,y:S[S.length-1].y+O}),S[S.length-1])).arcTo(b,b,0,0,1,()=>(S.push({x:S[S.length-1].x-.974*b,y:S[S.length-1].y+.775*b}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-F,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(x-c)+(Ie-u),y:S[S.length-1].y-(j-c)}),S[S.length-1])).lineTo(()=>(S.push({x:n-k+e+T,y:S[S.length-1].y-c}),S[S.length-1])).arcTo(L,L,0,0,0,()=>(S.push({x:S[S.length-1].x-T,y:S[S.length-1].y+r}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+Ce}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-u,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+i-f-d}),S[S.length-1])).arcTo(f,f,0,0,1,()=>(S.push({x:S[S.length-1].x-f,y:S[S.length-1].y+f}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(g-2*f),y:S[S.length-1].y}),S[S.length-1])).arcTo(f,f,0,0,1,()=>(S.push({x:S[S.length-1].x-f,y:S[S.length-1].y-f}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(i-f-d)}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-u,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-Ce}),S[S.length-1])).arcTo(L,L,0,0,0,()=>(S.push({x:S[S.length-1].x-T,y:S[S.length-1].y-r}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-3].x-c,y:S[S.length-1].y+c}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(x-c),y:S[S.length-2].y+j}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(F+u-k),y:S[S.length-1].y}),S[S.length-1])).arcTo(b,b,0,0,1,()=>(S.push({x:S[S.length-1].x-.974*b,y:S[S.length-1].y-.775*b}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-y,y:S[S.length-1].y-O}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-ue,y:S[S.length-1].y-ue}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[16].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+ue,y:S[S.length-1].y-ue}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+y,y:S[S.length-1].y-O}),S[S.length-1])).arcTo(b,b,0,0,1,()=>(S.push({x:S[S.length-1].x+.974*b,y:S[S.length-1].y-.775*b}),S[S.length-1])).lineTo(()=>(S.push({x:S[0].x-x,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+(x-c),y:S[S.length-1].y+(j-c)}),S[S.length-1])).lineTo(()=>(S.push({x:S[0].x-T,y:S[0].y+r}),S[S.length-1])).arcTo(L,L,0,0,0,()=>(S.push({x:S[0].x,y:S[0].y}),S[S.length-1]));return BleedGeneratorV2.getInstance().generate(M.build())}return{returnPath:v()}},advancedParamsArrow$3=t=>{const e=t.boxLength,n=t.boxWidth;t.boxHeight,t.thickness;const s=cuttingLinePath$x(t).actionArray,u=new EarHangingPluginLock(t),{receptionLocation:l,heightDiff:o,radiusTongueRrX:i,motherLockLength:g,receptionLocationBR:d,downMoveRY:r,receptionLocationBRX:f,errorLength:L,hookHeightP:T,hookRadius:x}=u,c=.7,m={hookSideHeightMark:{path:"",text:{x:0,y:0,label:"0"}}};{const y=[],O=new SvgPathBuilder().moveTo(()=>(y.push({x:s[0].x+e+n+e-10,y:s[0].y+o}),y[y.length-1])).lineTo(()=>(y.push({x:y[y.length-1].x+c,y:y[y.length-1].y-c}),y[y.length-1])).moveTo(()=>(y.push({x:y[0].x,y:y[0].y}),y[y.length-1])).lineTo(()=>(y.push({x:y[0].x-c,y:y[0].y-c}),y[y.length-1])).moveTo(()=>(y.push({x:y[0].x,y:y[0].y}),y[y.length-1])).lineTo(()=>(y.push({x:y[0].x,y:y[0].y-T}),y[y.length-1])).lineTo(()=>(y.push({x:y[y.length-1].x-c,y:y[y.length-1].y+c}),y[y.length-1])).moveTo(()=>(y.push({x:y[y.length-2].x,y:y[y.length-2].y}),y[y.length-1])).lineTo(()=>(y.push({x:y[y.length-1].x+c,y:y[y.length-1].y+c}),y[y.length-1]));m.hookSideHeightMark.path=O.build(),m.hookSideHeightMark.text.x=mmToPt(y[0].x+2),m.hookSideHeightMark.text.y=mmToPt(y[0].y-T/2),m.hookSideHeightMark.text.label=T.toString()}return{markLineObj:m}},useBuckleEarHangingPluginLockPath={mmToPt,cuttingLinePath:cuttingLinePath$x,foldLineoordinates:foldLineoordinates$x,bleedingLinePath:bleedingLinePath$x,previewBleedingLinePath:previewBleedingLinePath$x,advancedParamsArrow:advancedParamsArrow$3},cuttingLinePath$w=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new EarHangingPluginLock(t),{hollowLineLength:o,tongueHeight:i,tongueBottomLength:g,receptionLocation:d,heightDiff:r,radiusTongueCr:f,radiusTongueRr:L,radiusTongueRrX:T,slotWidth:x,slotBottomWidth:c,lockSLength:m,xLength13:y,yLength13:O,radiusTongueAr:b,sideWingLength:j,tongueTopLength:F,errorLength:k,motherLockLength:_,lockYLength:ue,extendPF:re,hookHeightPSD:de,radiusPSRr:he,hookLengthPSW:w,extendAnglePFTx:le,overcutYLength:V,tongueLinkWidth:Ce,hookHeightP:_e,positionPSP:D,hookRadius:Ie,tongueLinkWidthHookSideHeight:Lt}=l;function At(){const ie=[],Ve=i+Ce-d>2*_e+re-r?i+Ce-d:2*_e+re-r;return{path:new SvgPathBuilder().moveTo(()=>(ie.push({x:n-k,y:Ve}),ie[ie.length-1])).lineTo(()=>(ie.push({x:n-k,y:ie[ie.length-1].y-Lt}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+u,y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y-(i-d-f)}),ie[ie.length-1])).arcTo(f,f,0,0,1,()=>(ie.push({x:ie[ie.length-1].x+f,y:ie[ie.length-1].y-f}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+g-2*f,y:ie[ie.length-1].y}),ie[ie.length-1])).arcTo(f,f,0,0,1,()=>(ie.push({x:ie[ie.length-1].x+f,y:ie[ie.length-1].y+f}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+i-d-f}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+u,y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+Lt}),ie[ie.length-1])).arcTo(L,L,0,0,0,()=>(ie.push({x:ie[ie.length-1].x+T,y:ie[ie.length-1].y+r}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[9].x+c,y:ie[ie.length-1].y-c}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[9].x+x,y:ie[10].y-j}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+F-(Ie-u),y:ie[ie.length-1].y}),ie[ie.length-1])).arcTo(b,b,0,0,1,()=>(ie.push({x:ie[ie.length-1].x+.974*b,y:ie[ie.length-1].y+.775*b}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+y,y:ie[ie.length-1].y+O}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+ue,y:ie[ie.length-1].y+ue}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+m}),ie[ie.length-1])).arcTo(Ie,Ie,0,0,0,()=>(ie.push({x:ie[ie.length-1].x+2*Ie,y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y-2*_e}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+le,y:ie[ie.length-1].y-re}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+(e-Ie-u-2*le),y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+le,y:ie[ie.length-1].y+re}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+2*_e}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+u,y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+o,y:ie[ie.length-1].y+o*Math.tan(15*(Math.PI/180))}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+(s-2*(o*Math.tan(15*(Math.PI/180))))-2*r}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-o,y:ie[ie.length-1].y+o*Math.tan(15*(Math.PI/180))}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(e+u),y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+m}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-ue,y:ie[ie.length-1].y+ue}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-y,y:ie[ie.length-1].y+O}),ie[ie.length-1])).arcTo(b,b,0,0,1,()=>(ie.push({x:ie[ie.length-1].x-.974*b,y:ie[ie.length-1].y+.775*b}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-F,y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(x-c)+(Ie-u),y:ie[ie.length-1].y-(j-c)}),ie[ie.length-1])).lineTo(()=>(ie.push({x:n-k+e+T,y:ie[ie.length-1].y-c}),ie[ie.length-1])).arcTo(L,L,0,0,0,()=>(ie.push({x:ie[ie.length-1].x-T,y:ie[ie.length-1].y+r}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+Ce}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-u,y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+i-f-d}),ie[ie.length-1])).arcTo(f,f,0,0,1,()=>(ie.push({x:ie[ie.length-1].x-f,y:ie[ie.length-1].y+f}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(g-2*f),y:ie[ie.length-1].y}),ie[ie.length-1])).arcTo(f,f,0,0,1,()=>(ie.push({x:ie[ie.length-1].x-f,y:ie[ie.length-1].y-f}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y-(i-f-d)}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-u,y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y-Ce}),ie[ie.length-1])).arcTo(L,L,0,0,0,()=>(ie.push({x:ie[ie.length-1].x-T,y:ie[ie.length-1].y-r}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-3].x-c,y:ie[ie.length-1].y+c}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(x-c),y:ie[ie.length-2].y+j}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(F+u-k),y:ie[ie.length-1].y}),ie[ie.length-1])).arcTo(b,b,0,0,1,()=>(ie.push({x:ie[ie.length-1].x-.974*b,y:ie[ie.length-1].y-.775*b}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-y,y:ie[ie.length-1].y-O}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-ue,y:ie[ie.length-1].y-ue}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[16].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+ue,y:ie[ie.length-1].y-ue}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+y,y:ie[ie.length-1].y-O}),ie[ie.length-1])).arcTo(b,b,0,0,1,()=>(ie.push({x:ie[ie.length-1].x+.974*b,y:ie[ie.length-1].y-.775*b}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[0].x-x,y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+(x-c),y:ie[ie.length-1].y+(j-c)}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[0].x-T,y:ie[0].y+r}),ie[ie.length-1])).arcTo(L,L,0,0,0,()=>(ie.push({x:ie[0].x,y:ie[0].y}),ie[ie.length-1])).moveTo(()=>(ie.push({x:ie[2].x,y:ie[2].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+(_-u),y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+u}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+d-u+V}),ie[ie.length-1])).moveTo(()=>(ie.push({x:ie[7].x,y:ie[7].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(_-u),y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+u}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+d-u+V}),ie[ie.length-1])).moveTo(()=>(ie.push({x:ie[38].x,y:ie[38].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(_-u),y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y-u}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y-d+u-V}),ie[ie.length-1])).moveTo(()=>(ie.push({x:ie[43].x,y:ie[43].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+(_-u),y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y-u}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y-d+u-V}),ie[ie.length-1])).moveTo(()=>(ie.push({x:ie[18].x+(e-2*u-w)/2+de/2,y:ie[18].y-_e+D+de/2}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+w-de,y:ie[ie.length-1].y}),ie[ie.length-1])).arcTo(de/2,de/2,0,0,0,()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y-de}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(w-de-2*he)/2,y:ie[ie.length-1].y}),ie[ie.length-1])).arcTo(he,he,0,0,0,()=>(ie.push({x:ie[ie.length-1].x-2*he,y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(w-de-2*he)/2,y:ie[ie.length-1].y}),ie[ie.length-1])).arcTo(de/2,de/2,0,0,0,()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+de}),ie[ie.length-1])).moveTo(()=>(ie.push({x:ie[18].x+(e-2*u-w)/2+de/2,y:ie[18].y-_e-(D+de/2)}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x+w-de,y:ie[ie.length-1].y}),ie[ie.length-1])).arcTo(de/2,de/2,0,0,1,()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y+de}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(w-de-2*he)/2,y:ie[ie.length-1].y}),ie[ie.length-1])).arcTo(he,he,0,0,1,()=>(ie.push({x:ie[ie.length-1].x-2*he,y:ie[ie.length-1].y}),ie[ie.length-1])).lineTo(()=>(ie.push({x:ie[ie.length-1].x-(w-de-2*he)/2,y:ie[ie.length-1].y}),ie[ie.length-1])).arcTo(de/2,de/2,0,0,1,()=>(ie.push({x:ie[ie.length-1].x,y:ie[ie.length-1].y-de}),ie[ie.length-1])).build(),actionArray:ie}}return{returnPath:At().path,actionArray:At().actionArray}},foldLineoordinates$w=t=>{const e=t.boxLength,n=t.boxHeight,s=t.thickness,u=cuttingLinePath$w(t).actionArray,{receptionLocation:l,heightDiff:o,radiusTongueRrX:i,motherLockLength:g,hookHeightP:d,hookRadius:r}=new EarHangingPluginLock(t);return{foldLineObj:{line1:{x1:0,y1:u[0].y+o,x2:u[0].x-i,y2:u[0].y+o},line2:{x1:0,y1:u[0].y+n-o,x2:u[0].x-i,y2:u[0].y+n-o},line3:{x1:u[0].x,y1:u[0].y,x2:u[0].x,y2:u[0].y+n},line4:{x1:u[0].x+g,y1:u[2].y+l,x2:u[0].x+e-g,y2:u[2].y+l},line5:{x1:u[0].x,y1:u[0].y,x2:u[0].x+e,y2:u[0].y},line6:{x1:u[0].x,y1:u[0].y+n,x2:u[0].x+e,y2:u[0].y+n},line7:{x1:u[44].x+g,y1:u[44].y-l,x2:u[44].x+e-g,y2:u[44].y-l},line8:{x1:u[0].x+e,y1:u[0].y,x2:u[0].x+e,y2:u[0].y+n},line9:{x1:u[10].x,y1:u[0].y+o,x2:u[17].x,y2:u[0].y+o},line10:{x1:u[10].x,y1:u[0].y+n-o,x2:u[17].x+r-s,y2:u[0].y+n-o},line11:{x1:u[17].x+r,y1:u[0].y+o+r,x2:u[17].x+r,y2:u[0].y+n-o},line12:{x1:u[18].x,y1:u[0].y+o-2*d,x2:u[18].x+(e-r-s),y2:u[0].y+o-2*d},line13:{x1:u[18].x,y1:u[0].y+o-d,x2:u[18].x+(e-r-s),y2:u[0].y+o-d},line14:{x1:u[18].x,y1:u[0].y+o,x2:u[18].x+(e-r-s),y2:u[0].y+o},line15:{x1:u[17].x+e+r,y1:u[0].y+o,x2:u[17].x+e+r,y2:u[0].y+n-o}}}},bleedingLinePath$w=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new EarHangingPluginLock(t),{hollowLineLength:o,tongueHeight:i,tongueBottomLength:g,receptionLocation:d,heightDiff:r,radiusTongueCr:f,radiusTongueRr:L,radiusTongueRrX:T,slotWidth:x,slotBottomWidth:c,lockSLength:m,xLength13:y,yLength13:O,radiusTongueAr:b,sideWingLength:j,tongueTopLength:F,errorLength:k,motherLockLength:_,lockYLength:ue,extendPF:re,extendAnglePFTx:de,overcutYLength:he,tongueLinkWidth:w,hookHeightP:le,hookRadius:V,tongueLinkWidthHookSideHeight:Ce}=l;function _e(){const D=[],Ie=i+w-d>2*le+re-r?i+w-d:2*le+re-r,Lt=new SvgPathBuilder().moveTo(()=>(D.push({x:n-k,y:Ie}),D[D.length-1])).lineTo(()=>(D.push({x:n-k,y:D[D.length-1].y-Ce}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+u,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-(i-d-f)}),D[D.length-1])).arcTo(f,f,0,0,1,()=>(D.push({x:D[D.length-1].x+f,y:D[D.length-1].y-f}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+g-2*f,y:D[D.length-1].y}),D[D.length-1])).arcTo(f,f,0,0,1,()=>(D.push({x:D[D.length-1].x+f,y:D[D.length-1].y+f}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+i-d-f}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+u,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+Ce}),D[D.length-1])).arcTo(L,L,0,0,0,()=>(D.push({x:D[D.length-1].x+T,y:D[D.length-1].y+r}),D[D.length-1])).lineTo(()=>(D.push({x:D[9].x+c,y:D[D.length-1].y-c}),D[D.length-1])).lineTo(()=>(D.push({x:D[9].x+x,y:D[10].y-j}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+F-(V-u),y:D[D.length-1].y}),D[D.length-1])).arcTo(b,b,0,0,1,()=>(D.push({x:D[D.length-1].x+.974*b,y:D[D.length-1].y+.775*b}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+y,y:D[D.length-1].y+O}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+ue,y:D[D.length-1].y+ue}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+m}),D[D.length-1])).arcTo(V,V,0,0,0,()=>(D.push({x:D[D.length-1].x+2*V,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-2*le}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+de,y:D[D.length-1].y-re}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+(e-V-u-2*de),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+de,y:D[D.length-1].y+re}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+2*le}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+u,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+o,y:D[D.length-1].y+o*Math.tan(15*(Math.PI/180))}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+(s-2*(o*Math.tan(15*(Math.PI/180))))-2*r}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-o,y:D[D.length-1].y+o*Math.tan(15*(Math.PI/180))}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(e+u),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+m}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-ue,y:D[D.length-1].y+ue}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-y,y:D[D.length-1].y+O}),D[D.length-1])).arcTo(b,b,0,0,1,()=>(D.push({x:D[D.length-1].x-.974*b,y:D[D.length-1].y+.775*b}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-F,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(x-c)+(V-u),y:D[D.length-1].y-(j-c)}),D[D.length-1])).lineTo(()=>(D.push({x:n-k+e+T,y:D[D.length-1].y-c}),D[D.length-1])).arcTo(L,L,0,0,0,()=>(D.push({x:D[D.length-1].x-T,y:D[D.length-1].y+r}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+w}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-u,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+i-f-d}),D[D.length-1])).arcTo(f,f,0,0,1,()=>(D.push({x:D[D.length-1].x-f,y:D[D.length-1].y+f}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(g-2*f),y:D[D.length-1].y}),D[D.length-1])).arcTo(f,f,0,0,1,()=>(D.push({x:D[D.length-1].x-f,y:D[D.length-1].y-f}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-(i-f-d)}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-u,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-w}),D[D.length-1])).arcTo(L,L,0,0,0,()=>(D.push({x:D[D.length-1].x-T,y:D[D.length-1].y-r}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-3].x-c,y:D[D.length-1].y+c}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(x-c),y:D[D.length-2].y+j}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(F+u-k),y:D[D.length-1].y}),D[D.length-1])).arcTo(b,b,0,0,1,()=>(D.push({x:D[D.length-1].x-.974*b,y:D[D.length-1].y-.775*b}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-y,y:D[D.length-1].y-O}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-ue,y:D[D.length-1].y-ue}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[16].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+ue,y:D[D.length-1].y-ue}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+y,y:D[D.length-1].y-O}),D[D.length-1])).arcTo(b,b,0,0,1,()=>(D.push({x:D[D.length-1].x+.974*b,y:D[D.length-1].y-.775*b}),D[D.length-1])).lineTo(()=>(D.push({x:D[0].x-x,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+(x-c),y:D[D.length-1].y+(j-c)}),D[D.length-1])).lineTo(()=>(D.push({x:D[0].x-T,y:D[0].y+r}),D[D.length-1])).arcTo(L,L,0,0,0,()=>(D.push({x:D[0].x,y:D[0].y}),D[D.length-1])).moveTo(()=>(D.push({x:D[2].x,y:D[2].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+(_-u),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+u}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+d-u+he}),D[D.length-1])).moveTo(()=>(D.push({x:D[7].x,y:D[7].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(_-u),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+u}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+d-u+he}),D[D.length-1])).moveTo(()=>(D.push({x:D[38].x,y:D[38].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(_-u),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-u}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-d+u-he}),D[D.length-1])).moveTo(()=>(D.push({x:D[43].x,y:D[43].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+(_-u),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-u}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-d+u-he}),D[D.length-1]));return{path:BleedGeneratorV2.getInstance().generate(Lt.build()),actionArray:D}}return{returnPath:_e().path,actionArray:_e().actionArray,pathLine:_e()}},previewBleedingLinePath$w=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new EarHangingPluginLock(t),{hollowLineLength:o,tongueHeight:i,tongueBottomLength:g,receptionLocation:d,heightDiff:r,radiusTongueCr:f,radiusTongueRr:L,radiusTongueRrX:T,slotWidth:x,slotBottomWidth:c,lockSLength:m,xLength13:y,yLength13:O,radiusTongueAr:b,sideWingLength:j,tongueTopLength:F,errorLength:k,motherLockLength:_,lockYLength:ue,extendPF:re,extendAnglePFTx:de,overcutYLength:he,tongueLinkWidth:w,hookHeightP:le,hookRadius:V,tongueLinkWidthHookSideHeight:Ce}=l;function _e(){const D=[],Ie=i+w-d>2*le+re-r?i+w-d:2*le+re-r,Lt=new SvgPathBuilder().moveTo(()=>(D.push({x:n-k,y:Ie}),D[D.length-1])).lineTo(()=>(D.push({x:n-k,y:D[D.length-1].y-Ce}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+u,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-(i-d-f)}),D[D.length-1])).arcTo(f,f,0,0,1,()=>(D.push({x:D[D.length-1].x+f,y:D[D.length-1].y-f}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+g-2*f,y:D[D.length-1].y}),D[D.length-1])).arcTo(f,f,0,0,1,()=>(D.push({x:D[D.length-1].x+f,y:D[D.length-1].y+f}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+i-d-f}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+u,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+Ce}),D[D.length-1])).arcTo(L,L,0,0,0,()=>(D.push({x:D[D.length-1].x+T,y:D[D.length-1].y+r}),D[D.length-1])).lineTo(()=>(D.push({x:D[9].x+c,y:D[D.length-1].y-c}),D[D.length-1])).lineTo(()=>(D.push({x:D[9].x+x,y:D[10].y-j}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+F-(V-u),y:D[D.length-1].y}),D[D.length-1])).arcTo(b,b,0,0,1,()=>(D.push({x:D[D.length-1].x+.974*b,y:D[D.length-1].y+.775*b}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+y,y:D[D.length-1].y+O}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+ue,y:D[D.length-1].y+ue}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+m}),D[D.length-1])).arcTo(V,V,0,0,0,()=>(D.push({x:D[D.length-1].x+2*V,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-2*le}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+de,y:D[D.length-1].y-re}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+(e-V-u-2*de),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+de,y:D[D.length-1].y+re}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+2*le}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+u,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+s-2*r}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(e+u),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+m}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-ue,y:D[D.length-1].y+ue}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-y,y:D[D.length-1].y+O}),D[D.length-1])).arcTo(b,b,0,0,1,()=>(D.push({x:D[D.length-1].x-.974*b,y:D[D.length-1].y+.775*b}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-F,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(x-c)+(V-u),y:D[D.length-1].y-(j-c)}),D[D.length-1])).lineTo(()=>(D.push({x:n-k+e+T,y:D[D.length-1].y-c}),D[D.length-1])).arcTo(L,L,0,0,0,()=>(D.push({x:D[D.length-1].x-T,y:D[D.length-1].y+r}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+w}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-u,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+i-f-d}),D[D.length-1])).arcTo(f,f,0,0,1,()=>(D.push({x:D[D.length-1].x-f,y:D[D.length-1].y+f}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(g-2*f),y:D[D.length-1].y}),D[D.length-1])).arcTo(f,f,0,0,1,()=>(D.push({x:D[D.length-1].x-f,y:D[D.length-1].y-f}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-(i-f-d)}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-u,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-w}),D[D.length-1])).arcTo(L,L,0,0,0,()=>(D.push({x:D[D.length-1].x-T,y:D[D.length-1].y-r}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-3].x-c,y:D[D.length-1].y+c}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(x-c),y:D[D.length-2].y+j}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(F+u-k),y:D[D.length-1].y}),D[D.length-1])).arcTo(b,b,0,0,1,()=>(D.push({x:D[D.length-1].x-.974*b,y:D[D.length-1].y-.775*b}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-y,y:D[D.length-1].y-O}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-ue,y:D[D.length-1].y-ue}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[16].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+ue,y:D[D.length-1].y-ue}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+y,y:D[D.length-1].y-O}),D[D.length-1])).arcTo(b,b,0,0,1,()=>(D.push({x:D[D.length-1].x+.974*b,y:D[D.length-1].y-.775*b}),D[D.length-1])).lineTo(()=>(D.push({x:D[0].x-x,y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+(x-c),y:D[D.length-1].y+(j-c)}),D[D.length-1])).lineTo(()=>(D.push({x:D[0].x-T,y:D[0].y+r}),D[D.length-1])).arcTo(L,L,0,0,0,()=>(D.push({x:D[0].x,y:D[0].y}),D[D.length-1])).moveTo(()=>(D.push({x:D[2].x,y:D[2].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+(_-u),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+u}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+d-u+he}),D[D.length-1])).moveTo(()=>(D.push({x:D[7].x,y:D[7].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(_-u),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+u}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y+d-u+he}),D[D.length-1])).moveTo(()=>(D.push({x:D[38].x,y:D[38].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x-(_-u),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-u}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-d+u-he}),D[D.length-1])).moveTo(()=>(D.push({x:D[43].x,y:D[43].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x+(_-u),y:D[D.length-1].y}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-u}),D[D.length-1])).lineTo(()=>(D.push({x:D[D.length-1].x,y:D[D.length-1].y-d+u-he}),D[D.length-1]));return BleedGeneratorV2.getInstance().generate(Lt.build())}return{returnPath:_e()}},advancedParamsArrow$2=t=>{const e=t.boxLength,n=t.boxWidth;t.boxHeight,t.thickness;const s=cuttingLinePath$w(t).actionArray,u=new EarHangingPluginLock(t),{receptionLocation:l,heightDiff:o,radiusTongueRrX:i,motherLockLength:g,receptionLocationBR:d,downMoveRY:r,receptionLocationBRX:f,errorLength:L,hookHeightP:T,hookRadius:x}=u,c=.7,m={hookSideHeightMark:{path:"",text:{x:0,y:0,label:"0"}}};{const y=[],O=new SvgPathBuilder().moveTo(()=>(y.push({x:s[0].x+e+n+e-10,y:s[0].y+o}),y[y.length-1])).lineTo(()=>(y.push({x:y[y.length-1].x+c,y:y[y.length-1].y-c}),y[y.length-1])).moveTo(()=>(y.push({x:y[0].x,y:y[0].y}),y[y.length-1])).lineTo(()=>(y.push({x:y[0].x-c,y:y[0].y-c}),y[y.length-1])).moveTo(()=>(y.push({x:y[0].x,y:y[0].y}),y[y.length-1])).lineTo(()=>(y.push({x:y[0].x,y:y[0].y-T}),y[y.length-1])).lineTo(()=>(y.push({x:y[y.length-1].x-c,y:y[y.length-1].y+c}),y[y.length-1])).moveTo(()=>(y.push({x:y[y.length-2].x,y:y[y.length-2].y}),y[y.length-1])).lineTo(()=>(y.push({x:y[y.length-1].x+c,y:y[y.length-1].y+c}),y[y.length-1]));m.hookSideHeightMark.path=O.build(),m.hookSideHeightMark.text.x=mmToPt(y[0].x+2),m.hookSideHeightMark.text.y=mmToPt(y[0].y-T/2),m.hookSideHeightMark.text.label=T.toString()}return{markLineObj:m}},useEarHangingPluginLockPath={mmToPt,cuttingLinePath:cuttingLinePath$w,foldLineoordinates:foldLineoordinates$w,bleedingLinePath:bleedingLinePath$w,previewBleedingLinePath:previewBleedingLinePath$w,advancedParamsArrow:advancedParamsArrow$2};function EarHangingPluginLockRules(t,e,n){let s=!0;if((expandWidth$8(n)>1e3||expandHeight$8(n)>700)&&(s=!1),t==="boxLength"&&e<40)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于40mm!",syncType:""};if(t==="boxWidth"&&e<30)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于30mm!",syncType:""};if(t==="boxWidth"&&e>n.boxLength)return{validVal:!1,msg:"尺寸检查未通过,宽度不能大于长度!",syncType:""};if(t==="boxLength"&&e<n.boxWidth)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于宽度!",syncType:"boxWidth"};if(t==="boxHeight"&&e<15)return{validVal:!1,msg:"尺寸检查未通过,高度不能小于15mm!",syncType:"boxHeight",syncSize:15};if(!s)return{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1000*700mm!",syncType:""};if(t==="hookHeight"&&e<15)return{validVal:!1,msg:"尺寸检查未通过,挂钩高不能小于15mm!",syncType:"hookHeight",syncSize:15};if(t==="hookSideHeight"&&e>50)return{validVal:!1,msg:"尺寸检查未通过,挂耳尺寸范围30-50mm!",syncType:"hookSideHeight",syncSize:50};if(t==="hookSideHeight"&&e<30)return{validVal:!1,msg:"尺寸检查未通过,挂耳尺寸范围30-50mm!",syncType:"hookSideHeight",syncSize:30};const u=hookHeightRangeMax$1(n);return t==="hookHeight"&&e>u?{validVal:!1,msg:`尺寸检查未通过,该尺寸挂钩高不能大于${u}mm!`,syncType:"hookHeight",syncSize:u}:{validVal:!0,msg:"success",syncType:""}}const hookHeightRangeMax$1=t=>{const{hookHeightP:e,hookHeightPSD:n,radiusPSRr:s}=new EarHangingPluginLock(t);return e-(n+s)-2},expandWidth$8=t=>{const e=useEarHangingPluginLockPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.x)),s=Math.min(...e.map(u=>u.x));return n-s},expandHeight$8=t=>{const e=useEarHangingPluginLockPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.y)),s=Math.min(...e.map(u=>u.y));return n-s};registerBox({type:"BuckleEarHangingPluginLockBox",name:"挂耳双插盒 + 插扣",group:"card",categoryId:"ear-hanging",component:()=>__vitePreload(()=>import("./index-CJniafuC.js"),__vite__mapDeps([4,1,2,5])),pathApi:useBuckleEarHangingPluginLockPath,rules:EarHangingPluginLockRules,display:{label:"挂耳双插盒 + 插扣",index:24,imgSrc:"./defaultDlate/挂耳双插盒 + 插扣.svg",disabled:!1}});class LargeWidthButtonBottom extends ButtonBottom{constructor(e){const n={...e,boxLength:e.boxWidth,boxWidth:e.boxLength};super(n),this._hollowLineLengthRX=.5,this.initTongueBottomLength(e.boxLength,e.thickness),this.initTongueTopLength(e.boxWidth,e.thickness),this.initRadiusTongueCr(e.boxLength),this.initTongueLinkWidth(e.boxWidth),this.initHollowLineLengthR(),this.initHollowLineLengthRY()}initSideWingLength(e,n){this._sideWingLength=(n-5)/2}initHollowLineLengthR(){this._hollowLineLengthR=this._hollowLineLengthRX/(1-Math.sin(this.radiusGT*Math.PI/180))}initHollowLineLengthRY(){this._hollowLineLengthRY=this._hollowLineLengthR*Math.cos(this.radiusGT*Math.PI/180)}get hollowLineLengthRX(){return this._hollowLineLengthRX}get hollowLineLengthRY(){return this._hollowLineLengthRY}get hollowLineLengthR(){return this._hollowLineLengthR}}const topLeftBigTongue$e=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:u,y:l-i}),e[1])).lineTo(()=>(e.push({x:u+s,y:e[1].y}),e[2])).lineTo(()=>(e.push({x:e[2].x,y:g}),e[3])).arcTo(g,g,0,0,1,()=>(e.push({x:e[3].x+g,y:e[3].y-g}),e[4])).lineTo(()=>(e.push({x:e[4].x+o-2*g,y:e[4].y}),e[5])).arcTo(g,g,0,0,1,()=>(e.push({x:e[5].x+g,y:e[5].y+g}),e[6])).lineTo(()=>(e.push({x:e[6].x,y:e[6].y+l-i-g}),e[7])).lineTo(()=>(e.push({x:e[7].x+s,y:e[7].y}),e[8])).lineTo(()=>(e.push({x:e[8].x,y:e[8].y+d}),e[9])),t},topLeftEar$f=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,sideWingLength:g,tongueTopLength:d,radiusTongueAr:r,xLength13:f,yLength13:L,lockYLength:T,lockSLength:x}=new LargeWidthButtonBottom(n);return t.arcTo(s,s,0,0,0,()=>(e.push({x:e[9].x+u,y:e[9].y+l}),e[10])).lineTo(()=>(e.push({x:e[9].x+o,y:e[10].y-o}),e[11])).lineTo(()=>(e.push({x:e[9].x+i,y:e[10].y-g}),e[12])).lineTo(()=>(e.push({x:e[12].x+d,y:e[12].y}),e[13])).arcTo(r,r,0,0,1,()=>(e.push({x:e[13].x+.974*r,y:e[13].y+.775*r}),e[14])).lineTo(()=>(e.push({x:e[14].x+f,y:e[14].y+L}),e[15])).lineTo(()=>(e.push({x:e[15].x+T,y:e[15].y+T}),e[16])).lineTo(()=>(e.push({x:e[16].x,y:e[16].y+x}),e[17])),t},topRightEar$f=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth;n.boxHeight,n.thickness;const{hollowLineLength:l,errorLength:o,slotBottomWidth:i,slotWidth:g,radiusTongueAr:d,xLength13:r,yLength13:f,lockYLength:L,lockSLength:T}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-f}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*d,y:e[e.length-1].y-.775*d}),e[e.length-1])).lineTo(()=>(e.push({x:l+s+u+s+u-o-g,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g-i,y:e[e.length-6].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-7].y}),e[e.length-1])),t},motherLockRender$7=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new LargeWidthButtonBottom(n);return t.moveTo(()=>(e.push({x:e[2].x,y:e[1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},lefrEar$7=(t,e,n)=>{const s=n.boxLength;n.boxWidth;const u=n.boxHeight;n.thickness;const{receptionLocationBR:l,receptionLocationBRX:o,K2Length:i,K3Height:g,M2Length:d,radiusTongueK1r:r,offsetX:f,radiusTongueK1rX:L,radiusTongueK1rY:T,hollowLineLengthR:x,hollowLineLengthRX:c,hollowLineLengthRY:m,heightDiff:y}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(d-l-o),y:e[e.length-1].y+i}),e[e.length-1])),s<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-r}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y+r}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+c,y:e[e.length-1].y}),e[e.length-1]))):t.lineTo(()=>(e.push({x:e[e.length-1].x-f+L,y:e[e.length-1].y+g-T}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x+c,y:e[e.length-1].y}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[0].y+(u-y)}),e[e.length-1])).arcTo(x,x,0,0,0,()=>(e.push({x:e[e.length-1].x-c,y:e[e.length-1].y-m}),e[e.length-1])),t},rightEar$7=(t,e,n)=>{const s=n.boxLength;n.boxWidth,n.boxHeight,n.thickness;const{errorLength:u,receptionLocationBR:l,receptionLocationBRX:o,downMoveRY:i,K2Length:g,K3Height:d,M2Length:r,radiusTongueK1r:f,offsetX:L,radiusTongueK1rX:T,radiusTongueK1rY:x}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d-i}),e[e.length-1])),s<=50?t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-l)-f-l),y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x-f,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(d-f)}),e[e.length-1])):t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-l)-l)+L,y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-L,y:e[e.length-2].y-d}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-(r-l-o),y:e[e.length-1].y-g}),e[e.length-1])).arcTo(l,l,0,0,0,()=>(e.push({x:e[e.length-1].x-(l+o),y:e[e.length-1].y+i}),e[e.length-1])),t},plugintRender$7=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-L-(r-u)-2*l)/2-l,y:e[e.length-1].y+d}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)/c,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)+2*i,y:e[e.length-1].y}),e[e.length-1])):T(2),t.arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-L-(r-u)-2*l)/2,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y+o}),e[e.length-1])),t},negativeBuckleRender$7=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));function L(T){const x=2*T-1;for(let c=1;c<T;c++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(r/x+u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(g-i)}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r/x-2*i-u),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-r/x-u,y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(r+u),y:e[e.length-1].y}),e[e.length-1])):L(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+g+d-o)}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])),t};class LargeWidthBuckle extends Buckle{constructor(e,n){super(e,n)}initBuckleTongueLength(e,n,s){const u=(e-2*n)*.95,l=e*.2,o=Math.max(u,l);if(this._buckleTongueLength=o,e>=100){const i=2*s;this._buckleTongueLength=Math.max(o,i)}}}const topPlugHole$9=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue$9=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},bleedPlugTongue$1=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[g].y}),e[e.length-1])),t},cuttingLinePath$v=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new LargeWidthButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new LargeWidthBuckle(t,l),{buckleTongueLength:L,buckleTongueWidth:T}=f;function x(){const c=[],m=new SvgPathBuilder().moveTo(()=>(c.push({x:o,y:i+r-g+d}),c[0]));return topLeftBigTongue$e(m,c,t),topLeftEar$f(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2)+u,y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x+L,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2)+u,y:c[c.length-1].y}),c[c.length-1])),topRightEar$f(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[c.length-1].y+s-d}),c[c.length-1])),plugintRender$7(m,c,t),rightEar$7(m,c,t),negativeBuckleRender$7(m,c,t),lefrEar$7(m,c,t).lineTo(()=>(c.push({x:0,y:c[c.length-1].y-o*Math.tan(15*(Math.PI/180))}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[0].y+o*Math.tan(15*(Math.PI/180))}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-3].x,y:c[c.length-1].y-o*Math.tan(15*(Math.PI/180))}),c[c.length-1])),motherLockRender$7(m,c,t).moveTo(()=>(c.push({x:c[1].x+(e/2-T/2),y:c[1].y+g}),c[c.length-1])),topPlugHole$9(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-L/2),y:c[0].y}),c[c.length-1])),topPlugTongue$9(m,c,t,f),{path:m.build(),actionArray:c,pathLine:m}}return{returnPath:x().path,actionArray:x().actionArray,pathLine:x().pathLine}},foldLineoordinates$v=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$v(t).actionArray,o=new LargeWidthButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c,hollowLineLengthR:m,hollowLineLengthRX:y,hollowLineLengthRY:O}=o,b=new LargeWidthBuckle(t,o),{buckleTongueLength:j,buckleTongueWidth:F,buckleTongueHeightIn:k,buckleTongueHeightInDiff:_}=b;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-O},line2_1:{x1:l[0].x+f,y1:l[0].y-g-(c-i),x2:l[1].x+(e/2-F/2),y2:l[0].y-g-(c-i)},line2_2:{x1:l[1].x+(e/2-F/2)+F,y1:l[0].y-g-(c-i),x2:l[0].x+e-f,y2:l[0].y-g-(c-i)},line3:{x1:l[0].x,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g},line4:{x1:l[0].x+e+d,y1:l[0].y,x2:l[0].x+e+n-u,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g+s-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+u,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+y,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g},line13_1:{x1:l[0].x+e+n+(e/2-j/2),y1:l[0].y,x2:l[0].x+e+n+(e/2-j/2+j),y2:l[0].y},line13_2:{x1:l[0].x+e+n+(e/2-j/2),y1:l[0].y+(k-_),x2:l[0].x+e+n+(e/2-j/2+j),y2:l[0].y+(k-_)}}}},bleedingLinePath$v=t=>{const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u,r=new LargeWidthBuckle(t,u),{buckleTongueLength:f,buckleTongueWidth:L}=r;function T(){const x=[],c=new SvgPathBuilder().moveTo(()=>(x.push({x:l,y:o+d-i+g}),x[0]));return topLeftBigTongue$e(c,x,t),topLeftEar$f(c,x,t).lineTo(()=>(x.push({x:x[x.length-1].x+(e/2-f/2)+s,y:x[x.length-1].y}),x[x.length-1])),bleedPlugTongue$1(c,x,t,r).lineTo(()=>(x.push({x:x[x.length-1].x+(e/2-f/2)+s,y:x[x.length-1].y}),x[x.length-1])),topRightEar$f(c,x,t).lineTo(()=>(x.push({x:x[x.length-1].x,y:x[x.length-1].y+n-g}),x[x.length-1])),plugintRender$7(c,x,t),rightEar$7(c,x,t),negativeBuckleRender$7(c,x,t),lefrEar$7(c,x,t).lineTo(()=>(x.push({x:0,y:x[x.length-1].y-l*Math.tan(15*(Math.PI/180))}),x[x.length-1])).lineTo(()=>(x.push({x:x[x.length-1].x,y:x[0].y+l*Math.tan(15*(Math.PI/180))}),x[x.length-1])).lineTo(()=>(x.push({x:x[x.length-3].x,y:x[x.length-1].y-l*Math.tan(15*(Math.PI/180))}),x[x.length-1])),BleedGeneratorV2.getInstance().generate(c.build())}return{returnPath:T()}},previewBleedingLinePath$v=t=>{const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u,r=new LargeWidthBuckle(t,u),{buckleTongueLength:f,buckleTongueWidth:L,buckleTongueHeightIn:T,buckleTongueHeightInDiff:x}=r;function c(){const m=[],y=new SvgPathBuilder().moveTo(()=>(m.push({x:l,y:o+d-i+g}),m[0]));return topLeftBigTongue$e(y,m,t),topLeftEar$f(y,m,t).lineTo(()=>(m.push({x:m[m.length-1].x+(e/2-f/2)+s,y:m[m.length-1].y}),m[m.length-1])),bleedPlugTongue$1(y,m,t,r).lineTo(()=>(m.push({x:m[m.length-1].x+(e/2-f/2)+s,y:m[m.length-1].y}),m[m.length-1])),topRightEar$f(y,m,t).lineTo(()=>(m.push({x:m[m.length-1].x,y:m[m.length-1].y+n-g}),m[m.length-1])),plugintRender$7(y,m,t),rightEar$7(y,m,t),negativeBuckleRender$7(y,m,t),lefrEar$7(y,m,t).lineTo(()=>(m.push({x:m[0].x,y:m[0].y}),m[m.length-1])),BleedGeneratorV2.getInstance().generate(y.build())}return{returnPath:c()}},useBuckleLargeWidthButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$v,foldLineoordinates:foldLineoordinates$v,bleedingLinePath:bleedingLinePath$v,previewBleedingLinePath:previewBleedingLinePath$v},topLeftBigTongue$d=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:u,y:l-i}),e[1])).lineTo(()=>(e.push({x:u+s,y:e[1].y}),e[2])).lineTo(()=>(e.push({x:e[2].x,y:g}),e[3])).arcTo(g,g,0,0,1,()=>(e.push({x:e[3].x+g,y:e[3].y-g}),e[4])).lineTo(()=>(e.push({x:e[4].x+o-2*g,y:e[4].y}),e[5])).arcTo(g,g,0,0,1,()=>(e.push({x:e[5].x+g,y:e[5].y+g}),e[6])).lineTo(()=>(e.push({x:e[6].x,y:e[6].y+l-i-g}),e[7])).lineTo(()=>(e.push({x:e[7].x+s,y:e[7].y}),e[8])).lineTo(()=>(e.push({x:e[8].x,y:e[8].y+d}),e[9])),t},topLeftEar$e=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,sideWingLength:g,tongueTopLength:d,radiusTongueAr:r,xLength13:f,yLength13:L,lockYLength:T,lockSLength:x}=new LargeWidthButtonBottom(n);return t.arcTo(s,s,0,0,0,()=>(e.push({x:e[9].x+u,y:e[9].y+l}),e[10])).lineTo(()=>(e.push({x:e[9].x+o,y:e[10].y-o}),e[11])).lineTo(()=>(e.push({x:e[9].x+i,y:e[10].y-g}),e[12])).lineTo(()=>(e.push({x:e[12].x+d,y:e[12].y}),e[13])).arcTo(r,r,0,0,1,()=>(e.push({x:e[13].x+.974*r,y:e[13].y+.775*r}),e[14])).lineTo(()=>(e.push({x:e[14].x+f,y:e[14].y+L}),e[15])).lineTo(()=>(e.push({x:e[15].x+T,y:e[15].y+T}),e[16])).lineTo(()=>(e.push({x:e[16].x,y:e[16].y+x}),e[17])),t},topRightEar$e=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth;n.boxHeight,n.thickness;const{hollowLineLength:l,errorLength:o,slotBottomWidth:i,slotWidth:g,radiusTongueAr:d,xLength13:r,yLength13:f,lockYLength:L,lockSLength:T}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-f}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*d,y:e[e.length-1].y-.775*d}),e[e.length-1])).lineTo(()=>(e.push({x:l+s+u+s+u-o-g,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g-i,y:e[e.length-6].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-7].y}),e[e.length-1])),t},motherLockRender$6=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new LargeWidthButtonBottom(n);return t.moveTo(()=>(e.push({x:e[2].x,y:e[1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},lefrEar$6=(t,e,n)=>{const s=n.boxLength;n.boxWidth;const u=n.boxHeight;n.thickness;const{receptionLocationBR:l,receptionLocationBRX:o,K2Length:i,K3Height:g,M2Length:d,radiusTongueK1r:r,offsetX:f,radiusTongueK1rX:L,radiusTongueK1rY:T,hollowLineLengthR:x,hollowLineLengthRX:c,hollowLineLengthRY:m,heightDiff:y}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(d-l-o),y:e[e.length-1].y+i}),e[e.length-1])),s<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-r}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y+r}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+c,y:e[e.length-1].y}),e[e.length-1]))):t.lineTo(()=>(e.push({x:e[e.length-1].x-f+L,y:e[e.length-1].y+g-T}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x+c,y:e[e.length-1].y}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[0].y+(u-y)}),e[e.length-1])).arcTo(x,x,0,0,0,()=>(e.push({x:e[e.length-1].x-c,y:e[e.length-1].y-m}),e[e.length-1])),t},rightEar$6=(t,e,n)=>{const s=n.boxLength;n.boxWidth,n.boxHeight,n.thickness;const{errorLength:u,receptionLocationBR:l,receptionLocationBRX:o,downMoveRY:i,K2Length:g,K3Height:d,M2Length:r,radiusTongueK1r:f,offsetX:L,radiusTongueK1rX:T,radiusTongueK1rY:x}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d-i}),e[e.length-1])),s<=50?t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-l)-f-l),y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x-f,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(d-f)}),e[e.length-1])):t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-l)-l)+L,y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-L,y:e[e.length-2].y-d}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-(r-l-o),y:e[e.length-1].y-g}),e[e.length-1])).arcTo(l,l,0,0,0,()=>(e.push({x:e[e.length-1].x-(l+o),y:e[e.length-1].y+i}),e[e.length-1])),t},plugintRender$6=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-L-(r-u)-2*l)/2-l,y:e[e.length-1].y+d}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)/c,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)+2*i,y:e[e.length-1].y}),e[e.length-1])):T(2),t.arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-L-(r-u)-2*l)/2,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y+o}),e[e.length-1])),t},negativeBuckleRender$6=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));function L(T){const x=2*T-1;for(let c=1;c<T;c++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(r/x+u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(g-i)}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r/x-2*i-u),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-r/x-u,y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(r+u),y:e[e.length-1].y}),e[e.length-1])):L(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+g+d-o)}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])),t},cuttingLinePath$u=function(t){const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u;function r(){const f=[],L=new SvgPathBuilder().moveTo(()=>(f.push({x:l,y:o+d-i+g}),f[0]));return topLeftBigTongue$d(L,f,t),topLeftEar$e(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x+2*s+e,y:f[f.length-1].y}),f[f.length-1])),topRightEar$e(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[f.length-1].y+n-g}),f[f.length-1])),plugintRender$6(L,f,t),rightEar$6(L,f,t),negativeBuckleRender$6(L,f,t),lefrEar$6(L,f,t).lineTo(()=>(f.push({x:0,y:f[f.length-1].y-l*Math.tan(15*(Math.PI/180))}),f[f.length-1])).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[0].y+l*Math.tan(15*(Math.PI/180))}),f[f.length-1])).lineTo(()=>(f.push({x:f[f.length-3].x,y:f[f.length-1].y-l*Math.tan(15*(Math.PI/180))}),f[f.length-1])),motherLockRender$6(L,f,t),{path:L.build(),actionArray:f,pathLine:L}}return{returnPath:r().path,actionArray:r().actionArray,pathLine:r().pathLine}},foldLineoordinates$u=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$u(t).actionArray,o=new LargeWidthButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c,hollowLineLengthR:m,hollowLineLengthRX:y,hollowLineLengthRY:O}=o;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-O},line2:{x1:l[0].x+f,y1:l[0].y-g-(c-i),x2:l[0].x+e-f,y2:l[0].y-g-(c-i)},line3:{x1:l[0].x,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g},line4:{x1:l[0].x+e+d,y1:l[0].y,x2:l[0].x+e+n-u,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g+s-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+u,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+y,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g}}}},bleedingLinePath$u=t=>{function e(){const n=cuttingLinePath$u(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$u=t=>{const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u;function r(){const f=[],L=new SvgPathBuilder().moveTo(()=>(f.push({x:l,y:o+d-i+g}),f[0]));return topLeftBigTongue$d(L,f,t),topLeftEar$e(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x+2*s+e,y:f[f.length-1].y}),f[f.length-1])),topRightEar$e(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[f.length-1].y+n-g}),f[f.length-1])),plugintRender$6(L,f,t),rightEar$6(L,f,t),negativeBuckleRender$6(L,f,t),lefrEar$6(L,f,t).lineTo(()=>(f.push({x:f[0].x,y:f[0].y}),f[f.length-1])),motherLockRender$6(L,f,t),BleedGenerator.getInstance().generate(L.build())}return{returnPath:r()}},useLargeWidthButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$u,foldLineoordinates:foldLineoordinates$u,bleedingLinePath:bleedingLinePath$u,previewBleedingLinePath:previewBleedingLinePath$u};function LargeWidthButtonBottomBoxRules$1(t,e,n){let s=!0;if((expandWidth$7(n)>1500||expandHeight$7(n)>1200)&&(s=!1),t==="boxWidth"&&e<40)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于40mm!",syncType:""};if(t==="boxLength"&&e<40)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于40mm!",syncType:""};if(t==="boxLength"&&e>=n.boxWidth)return{validVal:!1,msg:"尺寸检查未通过,长度不能大于等于宽度!",syncType:""};if(t==="boxWidth"&&e<=n.boxLength)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于等于长度!",syncType:"boxLength"};if(s){if(t==="boxHeight"&&e<20)return{validVal:!1,msg:"尺寸检查未通过,高度不能小于20mm!",syncType:"boxHeight",syncSize:20}}else return{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1000*700mm!",syncType:""};return{validVal:!0,msg:"success",syncType:""}}const expandWidth$7=t=>{const e=useLargeWidthButtonBottomPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.x)),s=Math.min(...e.map(u=>u.x));return n-s},expandHeight$7=t=>{const e=useLargeWidthButtonBottomPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.y)),s=Math.min(...e.map(u=>u.y));return n-s};registerBox({type:"BuckleLargeWidthButtonBottomBox",name:"普通扣底盒(宽大于长、异侧) + 插扣",group:"card",categoryId:"large-width-button-bottom",component:()=>__vitePreload(()=>import("./index-DrA0FrRq.js"),__vite__mapDeps([6,1,2])),pathApi:useBuckleLargeWidthButtonBottomPath,rules:LargeWidthButtonBottomBoxRules$1,display:{label:"普通扣底盒(宽大于长、异侧) + 插扣",index:32,imgSrc:"./defaultDlate/普通扣底盒(宽大于长、异侧) + 插扣.svg",disabled:!1}});const bleedPlugTongue=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[g].y}),e[e.length-1])),t},topLeftBigTongue$c=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:u,y:l-i}),e[1])).lineTo(()=>(e.push({x:u+s,y:e[1].y}),e[2])).lineTo(()=>(e.push({x:e[2].x,y:g}),e[3])).arcTo(g,g,0,0,1,()=>(e.push({x:e[3].x+g,y:e[3].y-g}),e[4])).lineTo(()=>(e.push({x:e[4].x+o-2*g,y:e[4].y}),e[5])).arcTo(g,g,0,0,1,()=>(e.push({x:e[5].x+g,y:e[5].y+g}),e[6])).lineTo(()=>(e.push({x:e[6].x,y:e[6].y+l-i-g}),e[7])).lineTo(()=>(e.push({x:e[7].x+s,y:e[7].y}),e[8])).lineTo(()=>(e.push({x:e[8].x,y:e[8].y+d}),e[9])),t},topLeftEar$d=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,sideWingLength:g,tongueTopLength:d,radiusTongueAr:r,xLength13:f,yLength13:L,lockYLength:T,lockSLength:x}=new LargeWidthButtonBottom(n);return t.arcTo(s,s,0,0,0,()=>(e.push({x:e[9].x+u,y:e[9].y+l}),e[10])).lineTo(()=>(e.push({x:e[9].x+o,y:e[10].y-o}),e[11])).lineTo(()=>(e.push({x:e[9].x+i,y:e[10].y-g}),e[12])).lineTo(()=>(e.push({x:e[12].x+d,y:e[12].y}),e[13])).arcTo(r,r,0,0,1,()=>(e.push({x:e[13].x+.974*r,y:e[13].y+.775*r}),e[14])).lineTo(()=>(e.push({x:e[14].x+f,y:e[14].y+L}),e[15])).lineTo(()=>(e.push({x:e[15].x+T,y:e[15].y+T}),e[16])).lineTo(()=>(e.push({x:e[16].x,y:e[16].y+x}),e[17])),t},topRightEar$d=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth;n.boxHeight,n.thickness;const{hollowLineLength:l,errorLength:o,slotBottomWidth:i,slotWidth:g,radiusTongueAr:d,xLength13:r,yLength13:f,lockYLength:L,lockSLength:T}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-f}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*d,y:e[e.length-1].y-.775*d}),e[e.length-1])).lineTo(()=>(e.push({x:l+s+u+s+u-o-g,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g-i,y:e[e.length-6].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-7].y}),e[e.length-1])),t},motherLockRender$5=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new LargeWidthButtonBottom(n);return t.moveTo(()=>(e.push({x:e[2].x,y:e[1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},rightEar$5=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth,l=n.boxHeight;n.thickness;const{hollowLineLength:o,errorLength:i,receptionLocationBR:g,receptionLocationBRX:d,downMoveRY:r,K2Length:f,K3Height:L,M2Length:T,radiusTongueK1r:x,offsetX:c,radiusTongueK1rX:m,radiusTongueK1rY:y,K1Height:O,downMoveRYK1:b,negativeBuckleWidthM:j,negativeBuckleNumber:F,receptionLocation:k,overcutYLength:_,motherLockLength:ue,heightDiff:re}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(T-g-d),y:e[e.length-1].y+f}),e[e.length-1])),s<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+L-x}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+x}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+s+u+g,y:e[e.length-1].y}),e[e.length-1]))):t.lineTo(()=>(e.push({x:e[e.length-1].x-c+m,y:e[e.length-1].y+L-y}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-m,y:e[e.length-1].y+y}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x+s+u+g,y:e[e.length-1].y}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[0].y+(l-re)+r}),e[e.length-1])),t},lefrEar$5=(t,e,n)=>{const s=n.boxLength;n.boxWidth;const u=n.boxHeight;n.thickness;const{errorLength:l,receptionLocationBR:o,receptionLocationBRX:i,downMoveRY:g,K2Length:d,K3Height:r,M2Length:f,radiusTongueK1r:L,offsetX:T,radiusTongueK1rX:x,radiusTongueK1rY:c,heightDiff:m}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d+r-g}),e[e.length-1])),s<=50?t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(f-o)-L-o),y:e[e.length-1].y}),e[e.length-1])).arcTo(L,L,0,0,1,()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(r-L)}),e[e.length-1])):t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(f-o)-o)+T,y:e[e.length-1].y}),e[e.length-1])).arcTo(L,L,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y-c}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-T,y:e[e.length-2].y-r}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+i,y:e[0].y+(u-m)}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-(o-g)}),e[e.length-1])),t},plugintRender$5=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-u)-2*l)/2,y:e[e.length-1].y+d}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)/c,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)+2*i,y:e[e.length-1].y}),e[e.length-1])):T(2),t.arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-u)-2*l)/2,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y+o}),e[e.length-1])),t},negativeBuckleRender$5=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-L-r)/2-i-u+u)+u/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(r/c+u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(g-i)}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r/c-2*i-u),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-r/c-u,y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(r+u),y:e[e.length-1].y}),e[e.length-1])):T(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-L-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g+d-o)}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])),t},topPlugHole$8=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue$8=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},cuttingLinePath$t=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new LargeWidthButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new LargeWidthBuckle(t,l),{buckleTongueLength:L,buckleTongueWidth:T}=f;function x(){const c=[],m=new SvgPathBuilder().moveTo(()=>(c.push({x:o,y:i+r-g+d}),c[0]));return topLeftBigTongue$c(m,c,t),topLeftEar$d(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2)+u,y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x+L,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2)+u,y:c[c.length-1].y}),c[c.length-1])),topRightEar$d(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[c.length-1].y+s-d}),c[c.length-1])),negativeBuckleRender$5(m,c,t),rightEar$5(m,c,t),plugintRender$5(m,c,t),lefrEar$5(m,c,t).lineTo(()=>(c.push({x:0,y:c[c.length-1].y-o*Math.tan(15*(Math.PI/180))}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[0].y+o*Math.tan(15*(Math.PI/180))}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-3].x,y:c[c.length-1].y-o*Math.tan(15*(Math.PI/180))}),c[c.length-1])),motherLockRender$5(m,c,t).moveTo(()=>(c.push({x:c[1].x+(e/2-T/2),y:c[1].y+g}),c[c.length-1])),topPlugHole$8(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-L/2),y:c[0].y}),c[c.length-1])),topPlugTongue$8(m,c,t,f),{path:m.build(),actionArray:c,pathLine:m}}return{returnPath:x().path,actionArray:x().actionArray,pathLine:x().pathLine}},foldLineoordinates$t=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$t(t).actionArray,o=new LargeWidthButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c}=o,m=new LargeWidthBuckle(t,o),{buckleTongueLength:y,buckleTongueWidth:O,buckleTongueHeightIn:b,buckleTongueHeightInDiff:j}=m;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-(L-T)},line2_1:{x1:l[0].x+f,y1:l[0].y-g-(c-i),x2:l[1].x+(e/2-O/2),y2:l[0].y-g-(c-i)},line2_2:{x1:l[1].x+(e/2-O/2)+O,y1:l[0].y-g-(c-i),x2:l[0].x+e-f,y2:l[0].y-g-(c-i)},line3:{x1:l[0].x,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g},line4:{x1:l[0].x+e+d,y1:l[0].y,x2:l[0].x+e+n-u,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g+s-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+u,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+x,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g},line13_1:{x1:l[0].x+e+n+(e/2-y/2),y1:l[0].y,x2:l[0].x+e+n+(e/2-y/2+y),y2:l[0].y},line13_2:{x1:l[0].x+e+n+(e/2-y/2),y1:l[0].y+(b-j),x2:l[0].x+e+n+(e/2-y/2+y),y2:l[0].y+(b-j)}}}},bleedingLinePath$t=t=>{const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u,r=new LargeWidthBuckle(t,u),{buckleTongueLength:f,buckleTongueWidth:L}=r;function T(){const x=[],c=new SvgPathBuilder().moveTo(()=>(x.push({x:l,y:o+d-i+g}),x[0]));return topLeftBigTongue$c(c,x,t),topLeftEar$d(c,x,t).lineTo(()=>(x.push({x:x[x.length-1].x+(e/2-f/2)+s,y:x[x.length-1].y}),x[x.length-1])),bleedPlugTongue(c,x,t,r).lineTo(()=>(x.push({x:x[x.length-1].x+(e/2-f/2)+s,y:x[x.length-1].y}),x[x.length-1])),topRightEar$d(c,x,t).lineTo(()=>(x.push({x:x[x.length-1].x,y:x[x.length-1].y+n-g}),x[x.length-1])),negativeBuckleRender$5(c,x,t),rightEar$5(c,x,t),plugintRender$5(c,x,t),lefrEar$5(c,x,t).lineTo(()=>(x.push({x:0,y:x[x.length-1].y-l*Math.tan(15*(Math.PI/180))}),x[x.length-1])).lineTo(()=>(x.push({x:x[x.length-1].x,y:x[0].y+l*Math.tan(15*(Math.PI/180))}),x[x.length-1])).lineTo(()=>(x.push({x:x[x.length-3].x,y:x[x.length-1].y-l*Math.tan(15*(Math.PI/180))}),x[x.length-1])),BleedGeneratorV2.getInstance().generate(c.build())}return{returnPath:T()}},previewBleedingLinePath$t=t=>{const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u,r=new LargeWidthBuckle(t,u),{buckleTongueLength:f,buckleTongueWidth:L}=r;function T(){const x=[],c=new SvgPathBuilder().moveTo(()=>(x.push({x:l,y:o+d-i+g}),x[0]));return topLeftBigTongue$c(c,x,t),topLeftEar$d(c,x,t).lineTo(()=>(x.push({x:x[x.length-1].x+(e/2-f/2)+s,y:x[x.length-1].y}),x[x.length-1])),bleedPlugTongue(c,x,t,r).lineTo(()=>(x.push({x:x[x.length-1].x+(e/2-f/2)+s,y:x[x.length-1].y}),x[x.length-1])),topRightEar$d(c,x,t).lineTo(()=>(x.push({x:x[x.length-1].x,y:x[x.length-1].y+n-g}),x[x.length-1])),negativeBuckleRender$5(c,x,t),rightEar$5(c,x,t),plugintRender$5(c,x,t),lefrEar$5(c,x,t).lineTo(()=>(x.push({x:x[0].x,y:x[0].y}),x[x.length-1])),BleedGeneratorV2.getInstance().generate(c.build())}return{returnPath:T()}},useBuckleLargeWidthReverseButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$t,foldLineoordinates:foldLineoordinates$t,bleedingLinePath:bleedingLinePath$t,previewBleedingLinePath:previewBleedingLinePath$t};registerBox({type:"BuckleLargeWidthReverseButtonBottomBox",name:"反向扣底盒(宽大于长、异侧) + 插扣",group:"card",categoryId:"large-width-button-bottom",component:()=>__vitePreload(()=>import("./index-BLxOuiyh.js"),__vite__mapDeps([7,1,2])),pathApi:useBuckleLargeWidthReverseButtonBottomPath,rules:LargeWidthButtonBottomBoxRules$1,display:{label:"反向扣底盒(宽大于长、异侧) + 插扣",index:34,imgSrc:"./defaultDlate/反向扣底盒(宽大于长、异侧) + 插扣.svg",disabled:!1}});const topLeftBigTongue$b=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:l-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:g}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-2*g,y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-i-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d}),e[e.length-1])),t},topLeftEar$c=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRrX:s,errorLength:u,slotBottomWidth:l,slotWidth:o,radiusTongueAr:i,xLength13:g,yLength13:d,lockYLength:r,tongueTopLength:f,lockSLength:L,sideWingLength:T,radiusTongueRr:x,heightDiff:c}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*i,y:e[e.length-1].y-.775*i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-l,y:e[e.length-1].y+(T-l)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-s),y:e[e.length-1].y+l}),e[e.length-1])).arcTo(x,x,0,0,0,()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y-c}),e[e.length-1])),t},topRightEar$c=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{radiusTongueRr:u,radiusTongueRrX:l,heightDiff:o,slotBottomWidth:i,slotWidth:g,sideWingLength:d,tongueTopLength:r,radiusTongueAr:f,xLength13:L,yLength13:T,lockYLength:x,lockSLength:c,errorLength:m}=new LargeWidthButtonBottom(n);return t.arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x+i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-3].x+g,y:e[e.length-2].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(r-m+s),y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*f,y:e[e.length-1].y+.775*f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+x,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+c}),e[e.length-1])),t},motherLockRender$4=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new LargeWidthButtonBottom(n);return t.moveTo(()=>(e.push({x:e[13].x,y:e[13].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[18].x,y:e[18].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},rightEar$4=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth,l=n.boxHeight;n.thickness;const{hollowLineLength:o,errorLength:i,receptionLocationBR:g,receptionLocationBRX:d,downMoveRY:r,K2Length:f,K3Height:L,M2Length:T,radiusTongueK1r:x,offsetX:c,radiusTongueK1rX:m,radiusTongueK1rY:y,K1Height:O,downMoveRYK1:b,negativeBuckleWidthM:j,negativeBuckleNumber:F,receptionLocation:k,overcutYLength:_,motherLockLength:ue,heightDiff:re}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(T-g-d),y:e[e.length-1].y+f}),e[e.length-1])),s<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+L-x}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+x}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+s+u+g,y:e[e.length-1].y}),e[e.length-1]))):t.lineTo(()=>(e.push({x:e[e.length-1].x-c+m,y:e[e.length-1].y+L-y}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-m,y:e[e.length-1].y+y}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x+s+u+g,y:e[e.length-1].y}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[0].y+(l-re)+r}),e[e.length-1])),t},lefrEar$4=(t,e,n)=>{const s=n.boxLength;n.boxWidth;const u=n.boxHeight;n.thickness;const{errorLength:l,receptionLocationBR:o,receptionLocationBRX:i,downMoveRY:g,K2Length:d,K3Height:r,M2Length:f,radiusTongueK1r:L,offsetX:T,radiusTongueK1rX:x,radiusTongueK1rY:c,heightDiff:m}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d+r-g}),e[e.length-1])),s<=50?t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(f-o)-L-o),y:e[e.length-1].y}),e[e.length-1])).arcTo(L,L,0,0,1,()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(r-L)}),e[e.length-1])):t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(f-o)-o)+T,y:e[e.length-1].y}),e[e.length-1])).arcTo(L,L,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y-c}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-T,y:e[e.length-2].y-r}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+i,y:e[0].y+(u-m)}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-(o-g)}),e[e.length-1])),t},plugintRender$4=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-u)-2*l)/2,y:e[e.length-1].y+d}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)/c,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)+2*i,y:e[e.length-1].y}),e[e.length-1])):T(2),t.arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-u)-2*l)/2,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y+o}),e[e.length-1])),t},negativeBuckleRender$4=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-L-r)/2-i-u+u)+u/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(r/c+u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(g-i)}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r/c-2*i-u),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-r/c-u,y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(r+u),y:e[e.length-1].y}),e[e.length-1])):T(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-L-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g+d-o)}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])),t},topPlugHole$7=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue$7=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},cuttingLinePath$s=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new LargeWidthButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new LargeWidthBuckle(t,l),{buckleTongueLength:L,buckleTongueWidth:T}=f;function x(){const c=[],m=new SvgPathBuilder().moveTo(()=>(c.push({x:o,y:i+r-g+d}),c[0])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2),y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x+L,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2)+u,y:c[c.length-1].y}),c[c.length-1]));return topLeftEar$c(m,c,t),topLeftBigTongue$b(m,c,t),topRightEar$c(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[c.length-1].y+s-d}),c[c.length-1])),negativeBuckleRender$4(m,c,t),rightEar$4(m,c,t),plugintRender$4(m,c,t),lefrEar$4(m,c,t).lineTo(()=>(c.push({x:0,y:c[c.length-1].y-o*Math.tan(15*(Math.PI/180))}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[0].y+o*Math.tan(15*(Math.PI/180))}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-3].x,y:c[c.length-1].y-o*Math.tan(15*(Math.PI/180))}),c[c.length-1])),motherLockRender$4(m,c,t).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-T/2),y:c[0].y-d-r+g}),c[c.length-1])),topPlugHole$7(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+(e/2-L/2),y:c[0].y}),c[c.length-1])),topPlugTongue$7(m,c,t,f),{path:m.build(),actionArray:c,pathLine:m}}return{returnPath:x().path,actionArray:x().actionArray,pathLine:x().pathLine}},foldLineoordinates$s=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$s(t).actionArray,o=new LargeWidthButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c,hollowLineLengthR:m,hollowLineLengthRX:y,hollowLineLengthRY:O}=o,b=new LargeWidthBuckle(t,o),{buckleTongueLength:j,buckleTongueWidth:F,buckleTongueHeightIn:k,buckleTongueHeightInDiff:_}=b;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-(L-T)},lin2_1:{x1:l[12].x+f,y1:l[12].y+i,x2:l[0].x+e+n+(e/2-F/2),y2:l[12].y+i},line2_2:{x1:l[0].x+e+n+(e/2-F/2)+F,y1:l[12].y+i,x2:l[12].x+e-f,y2:l[12].y+i},line3:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n+e,y2:l[0].y-g},line4:{x1:l[0].x+e+u,y1:l[0].y,x2:l[0].x+e+n-d,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+s-g-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y-g,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+d,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+y,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g},line13_1:{x1:l[1].x,y1:l[1].y,x2:l[1].x+j,y2:l[1].y},line13_2:{x1:l[1].x,y1:l[1].y+(k-_),x2:l[1].x+j,y2:l[1].y+(k-_)}}}},bleedingLinePath$s=t=>{function e(){const n=cuttingLinePath$s(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$s=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new LargeWidthButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new LargeWidthBuckle(t,l),{buckleTongueLength:L,buckleTongueWidth:T,buckleTongueHeightIn:x,buckleTongueHeightInDiff:c}=f;function m(){const y=[],O=new SvgPathBuilder().moveTo(()=>(y.push({x:o,y:i+r-g+d}),y[0])).lineTo(()=>(y.push({x:y[y.length-1].x+(e/2-L/2),y:y[y.length-1].y}),y[y.length-1])).moveTo(()=>(y.push({x:y[y.length-1].x+L,y:y[y.length-1].y}),y[y.length-1])).lineTo(()=>(y.push({x:y[y.length-1].x+(e/2-L/2)+u,y:y[y.length-1].y}),y[y.length-1]));return topLeftEar$c(O,y,t),topLeftBigTongue$b(O,y,t),topRightEar$c(O,y,t).lineTo(()=>(y.push({x:y[y.length-1].x,y:y[y.length-1].y+s-d}),y[y.length-1])),negativeBuckleRender$4(O,y,t),rightEar$4(O,y,t),plugintRender$4(O,y,t),lefrEar$4(O,y,t).lineTo(()=>(y.push({x:y[0].x,y:y[0].y}),y[y.length-1])),motherLockRender$4(O,y,t).moveTo(()=>(y.push({x:y[0].x+e+n+(e/2-T/2),y:y[0].y-d-r+g}),y[y.length-1])),topPlugHole$7(O,y,t,f).moveTo(()=>(y.push({x:y[0].x+(e/2-L/2),y:y[0].y}),y[y.length-1])),topPlugTongue$7(O,y,t,f),generateBleedOutlinePath(O)}return{returnPath:m()}},useBuckleLargeWidthReverseSameButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$s,foldLineoordinates:foldLineoordinates$s,bleedingLinePath:bleedingLinePath$s,previewBleedingLinePath:previewBleedingLinePath$s};registerBox({type:"BuckleLargeWidthReverseSameButtonBottomBox",name:"反向扣底盒(宽大于长、同侧) + 插扣",group:"card",categoryId:"large-width-button-bottom",component:()=>__vitePreload(()=>import("./index-BqDq595y.js"),__vite__mapDeps([8,1,2])),pathApi:useBuckleLargeWidthReverseSameButtonBottomPath,rules:LargeWidthButtonBottomBoxRules$1,display:{label:"反向扣底盒(宽大于长、同侧) + 插扣",index:35,imgSrc:"./defaultDlate/反向扣底盒(宽大于长、同侧) + 插扣.svg",disabled:!1}});const topLeftBigTongue$a=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:l-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:g}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-2*g,y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-i-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d}),e[e.length-1])),t},topLeftEar$b=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRrX:s,errorLength:u,slotBottomWidth:l,slotWidth:o,radiusTongueAr:i,xLength13:g,yLength13:d,lockYLength:r,tongueTopLength:f,lockSLength:L,sideWingLength:T,radiusTongueRr:x,heightDiff:c}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*i,y:e[e.length-1].y-.775*i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-l,y:e[e.length-1].y+(T-l)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-s),y:e[e.length-1].y+l}),e[e.length-1])).arcTo(x,x,0,0,0,()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y-c}),e[e.length-1])),t},topRightEar$b=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{radiusTongueRr:u,radiusTongueRrX:l,heightDiff:o,slotBottomWidth:i,slotWidth:g,sideWingLength:d,tongueTopLength:r,radiusTongueAr:f,xLength13:L,yLength13:T,lockYLength:x,lockSLength:c,errorLength:m}=new LargeWidthButtonBottom(n);return t.arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x+i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-3].x+g,y:e[e.length-2].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(r-m+s),y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*f,y:e[e.length-1].y+.775*f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+x,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+c}),e[e.length-1])),t},motherLockRender$3=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new LargeWidthButtonBottom(n);return t.moveTo(()=>(e.push({x:e[13].x,y:e[13].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[18].x,y:e[18].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},lefrEar$3=(t,e,n)=>{const s=n.boxLength;n.boxWidth;const u=n.boxHeight;n.thickness;const{receptionLocationBR:l,receptionLocationBRX:o,K2Length:i,K3Height:g,M2Length:d,radiusTongueK1r:r,offsetX:f,radiusTongueK1rX:L,radiusTongueK1rY:T,hollowLineLengthR:x,hollowLineLengthRX:c,hollowLineLengthRY:m,heightDiff:y}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(d-l-o),y:e[e.length-1].y+i}),e[e.length-1])),s<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-r}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y+r}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+c,y:e[e.length-1].y}),e[e.length-1]))):t.lineTo(()=>(e.push({x:e[e.length-1].x-f+L,y:e[e.length-1].y+g-T}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x+c,y:e[e.length-1].y}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[0].y+(u-y)}),e[e.length-1])).arcTo(x,x,0,0,0,()=>(e.push({x:e[e.length-1].x-c,y:e[e.length-1].y-m}),e[e.length-1])),t},rightEar$3=(t,e,n)=>{const s=n.boxLength;n.boxWidth,n.boxHeight,n.thickness;const{errorLength:u,receptionLocationBR:l,receptionLocationBRX:o,downMoveRY:i,K2Length:g,K3Height:d,M2Length:r,radiusTongueK1r:f,offsetX:L,radiusTongueK1rX:T,radiusTongueK1rY:x}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d-i}),e[e.length-1])),s<=50?t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-l)-f-l),y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x-f,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(d-f)}),e[e.length-1])):t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-l)-l)+L,y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-L,y:e[e.length-2].y-d}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-(r-l-o),y:e[e.length-1].y-g}),e[e.length-1])).arcTo(l,l,0,0,0,()=>(e.push({x:e[e.length-1].x-(l+o),y:e[e.length-1].y+i}),e[e.length-1])),t},plugintRender$3=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-L-(r-u)-2*l)/2-l,y:e[e.length-1].y+d}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)/c,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)+2*i,y:e[e.length-1].y}),e[e.length-1])):T(2),t.arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-L-(r-u)-2*l)/2,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y+o}),e[e.length-1])),t},negativeBuckleRender$3=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));function L(T){const x=2*T-1;for(let c=1;c<T;c++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(r/x+u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(g-i)}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r/x-2*i-u),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-r/x-u,y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(r+u),y:e[e.length-1].y}),e[e.length-1])):L(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+g+d-o)}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])),t},topPlugHole$6=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue$6=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},cuttingLinePath$r=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new LargeWidthButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new LargeWidthBuckle(t,l),{buckleTongueLength:L,buckleTongueWidth:T}=f;function x(){const c=[],m=new SvgPathBuilder().moveTo(()=>(c.push({x:o,y:i+r-g+d}),c[0])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2),y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x+L,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2)+u,y:c[c.length-1].y}),c[c.length-1]));return topLeftEar$b(m,c,t),topLeftBigTongue$a(m,c,t),topRightEar$b(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[c.length-1].y+s-d}),c[c.length-1])),plugintRender$3(m,c,t),rightEar$3(m,c,t),negativeBuckleRender$3(m,c,t),lefrEar$3(m,c,t).lineTo(()=>(c.push({x:0,y:c[c.length-1].y-o*Math.tan(15*(Math.PI/180))}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[0].y+o*Math.tan(15*(Math.PI/180))}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-3].x,y:c[c.length-1].y-o*Math.tan(15*(Math.PI/180))}),c[c.length-1])),motherLockRender$3(m,c,t).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-T/2),y:c[0].y-r}),c[c.length-1])),topPlugHole$6(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+(e/2-L/2),y:c[0].y}),c[c.length-1])),topPlugTongue$6(m,c,t,f),{path:m.build(),actionArray:c,pathLine:m}}return{returnPath:x().path,actionArray:x().actionArray,pathLine:x().pathLine}},foldLineoordinates$r=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$r(t).actionArray,o=new LargeWidthButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c,hollowLineLengthR:m,hollowLineLengthRX:y,hollowLineLengthRY:O}=o,b=new LargeWidthBuckle(t,o),{buckleTongueLength:j,buckleTongueWidth:F,buckleTongueHeightIn:k,buckleTongueHeightInDiff:_}=b;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-O},line2_1:{x1:l[12].x+f,y1:l[12].y+i,x2:l[0].x+e+n+(e/2-F/2),y2:l[12].y+i},line2_2:{x1:l[0].x+e+n+(e/2-F/2)+F,y1:l[12].y+i,x2:l[12].x+e-f,y2:l[12].y+i},line3:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n+e,y2:l[0].y-g},line4:{x1:l[0].x+e+u,y1:l[0].y,x2:l[0].x+e+n-d,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+s-g-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y-g,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+d,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+y,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g},line13_1:{x1:l[1].x,y1:l[1].y,x2:l[1].x+j,y2:l[1].y},line13_2:{x1:l[1].x,y1:l[1].y+(k-_),x2:l[1].x+j,y2:l[1].y+(k-_)}}}},bleedingLinePath$r=t=>{function e(){const n=cuttingLinePath$r(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$r=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new LargeWidthButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new LargeWidthBuckle(t,l),{buckleTongueLength:L,buckleTongueWidth:T}=f;function x(){const c=[],m=new SvgPathBuilder().moveTo(()=>(c.push({x:o,y:i+r-g+d}),c[0])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2),y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x+L,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2)+u,y:c[c.length-1].y}),c[c.length-1]));topLeftEar$b(m,c,t),topLeftBigTongue$a(m,c,t),topRightEar$b(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[c.length-1].y+s-d}),c[c.length-1])),plugintRender$3(m,c,t),rightEar$3(m,c,t),negativeBuckleRender$3(m,c,t),lefrEar$3(m,c,t).lineTo(()=>(c.push({x:c[0].x,y:c[0].y}),c[0])),motherLockRender$3(m,c,t).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-T/2),y:c[0].y-r}),c[c.length-1])),topPlugHole$6(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+(e/2-L/2),y:c[0].y}),c[c.length-1])),topPlugTongue$6(m,c,t,f);let y=BleedGenerator.getInstance().generate(m.build());const O=y.split("M").filter(j=>j.trim()!=="");if(O.length>1){const j=ue=>{if(typeof document>"u")return Number.NaN;const re="http://www.w3.org/2000/svg",de=document.createElementNS(re,"svg"),he=document.createElementNS(re,"path");de.style.position="absolute",de.style.width="0",de.style.height="0",de.style.overflow="hidden",he.setAttribute("d",`M${ue}`),de.appendChild(he);try{document.body.appendChild(de);const w=he.getBBox();return w.width*w.height}catch{return Number.NaN}finally{de.remove()}},F=O.map((ue,re)=>({index:re,area:j(ue),length:ue.length})),_=(F.some(ue=>Number.isFinite(ue.area))?F.sort((ue,re)=>re.area-ue.area):F.sort((ue,re)=>re.length-ue.length))[0];y=`M${O[_.index]}`}return y}return{returnPath:x()}},useBuckleLargeWidthSameButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$r,foldLineoordinates:foldLineoordinates$r,bleedingLinePath:bleedingLinePath$r,previewBleedingLinePath:previewBleedingLinePath$r};registerBox({type:"BuckleLargeWidthSameButtonBottomBox",name:"普通扣底盒(宽大于长、同侧) + 插扣",group:"card",categoryId:"large-width-button-bottom",component:()=>__vitePreload(()=>import("./index-BCK1_by_.js"),__vite__mapDeps([9,1,2])),pathApi:useBuckleLargeWidthSameButtonBottomPath,rules:LargeWidthButtonBottomBoxRules$1,display:{label:"普通扣底盒(宽大于长、同侧) + 插扣",index:33,imgSrc:"./defaultDlate/普通扣底盒(宽大于长、同侧) + 插扣.svg",disabled:!1}});const topLeftBigTongue$9=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:u,y:l-i}),e[1])).lineTo(()=>(e.push({x:u+s,y:e[1].y}),e[2])).lineTo(()=>(e.push({x:e[2].x,y:g}),e[3])).arcTo(g,g,0,0,1,()=>(e.push({x:e[3].x+g,y:e[3].y-g}),e[4])).lineTo(()=>(e.push({x:e[4].x+o-2*g,y:e[4].y}),e[5])).arcTo(g,g,0,0,1,()=>(e.push({x:e[5].x+g,y:e[5].y+g}),e[6])).lineTo(()=>(e.push({x:e[6].x,y:e[6].y+l-i-g}),e[7])).lineTo(()=>(e.push({x:e[7].x+s,y:e[7].y}),e[8])).lineTo(()=>(e.push({x:e[8].x,y:e[8].y+d}),e[9])),t},topLeftEar$a=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,sideWingLength:g,tongueTopLength:d,radiusTongueAr:r,xLength13:f,yLength13:L,lockYLength:T,lockSLength:x}=new ButtonBottom(n);return t.arcTo(s,s,0,0,0,()=>(e.push({x:e[9].x+u,y:e[9].y+l}),e[10])).lineTo(()=>(e.push({x:e[9].x+o,y:e[10].y-o}),e[11])).lineTo(()=>(e.push({x:e[9].x+i,y:e[10].y-g}),e[12])).lineTo(()=>(e.push({x:e[12].x+d,y:e[12].y}),e[13])).arcTo(r,r,0,0,1,()=>(e.push({x:e[13].x+.974*r,y:e[13].y+.775*r}),e[14])).lineTo(()=>(e.push({x:e[14].x+f,y:e[14].y+L}),e[15])).lineTo(()=>(e.push({x:e[15].x+T,y:e[15].y+T}),e[16])).lineTo(()=>(e.push({x:e[16].x,y:e[16].y+x}),e[17])),t},topRightEar$a=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth;n.boxHeight,n.thickness;const{hollowLineLength:l,errorLength:o,slotBottomWidth:i,slotWidth:g,radiusTongueAr:d,xLength13:r,yLength13:f,lockYLength:L,lockSLength:T}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-f}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*d,y:e[e.length-1].y-.775*d}),e[e.length-1])).lineTo(()=>(e.push({x:l+s+u+s+u-o-g,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g-i,y:e[e.length-6].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-7].y}),e[e.length-1])),t},buttonBuckleRender$2=(t,e,n,s)=>{const u=n.boxLength,l=n.boxWidth;n.boxHeight,n.thickness;const{hollowLineLength:o,errorLength:i,receptionLocationBR:g,receptionLocationBRX:d,downMoveRY:r,K2Length:f,K3Height:L,M2Length:T,radiusTongueK1r:x,offsetX:c,radiusTongueK1rX:m,radiusTongueK1rY:y,K1Height:O,downMoveRYK1:b,negativeBuckleWidthM:j,negativeBuckleNumber:F,receptionLocation:k,overcutYLength:_,motherLockLength:ue}=new ButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-(T-d),y:e[e.length-1].y+f}),e[e.length-1])),l<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+L-x}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+x}),e[e.length-1])),t.lineTo(()=>(e.push({x:o+u+l+u+g,y:e[e.length-1].y}),e[e.length-1]))):(t.lineTo(()=>(e.push({x:e[e.length-1].x+(m-c),y:e[e.length-1].y+(L-y)}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-m,y:e[e.length-1].y+y}),e[e.length-1])),t.lineTo(()=>(e.push({x:o+u+l+u+g,y:e[e.length-1].y}),e[e.length-1]))),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[s].y+r}),e[e.length-1])),t.arcTo(g,g,0,0,0,()=>(e.push({x:e[e.length-1].x-(g+d),y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-(j-g)-2*d)/2,y:e[e.length-1].y+b}),e[e.length-1]));function re(he){const w=2*he-1;for(let le=1;le<he;le++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+O-x}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((j-g)/w-2*x),y:e[e.length-1].y}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(O-x)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(j-g)/w,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+O-x}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((j-g)/w-2*x),y:e[e.length-1].y}),e[e.length-1]))}F===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+O-x}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(j-g)+2*x,y:e[e.length-1].y}),e[e.length-1])):re(2),t.arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(O-x)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-(j-g)-2*d)/2,y:e[e.length-1].y-b}),e[e.length-1])).arcTo(g,g,0,0,0,()=>(e.push({x:e[e.length-1].x-(g+d),y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+f+L-r}),e[e.length-1])),l<=50?t.lineTo(()=>(e.push({x:o+u+T+x,y:e[e.length-1].y}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(L-x)}),e[e.length-1])):t.lineTo(()=>(e.push({x:o+u+T+c,y:e[e.length-1].y}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-m,y:e[e.length-1].y-y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(m-c),y:e[e.length-1].y-(L-y)}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-T+d,y:e[e.length-1].y-f}),e[e.length-1])).arcTo(g,g,0,0,0,()=>(e.push({x:e[e.length-1].x-(g+d),y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+O+b-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((u-j)/2-x-g)+g/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(O-x)}),e[e.length-1]));function de(he){const w=2*he-1;for(let le=1;le<he;le++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(j/w+g),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(O-x)}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(j/w-2*x-g),y:e[e.length-1].y}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(O-x)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-j/w-g,y:e[e.length-1].y}),e[e.length-1]))}return F===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(j+g),y:e[e.length-1].y}),e[e.length-1])):de(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+O-x}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((u-j)/2-x-g)+g/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+O+b-r)}),e[e.length-1])).arcTo(g,g,0,0,0,()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-g}),e[e.length-1])),t},motherLock$7=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new ButtonBottom(n);return t.moveTo(()=>(e.push({x:e[2].x,y:e[1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},topPlugHole$5=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue$5=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},leftSticky$2=(t,e,n)=>{n.boxHeight;const s=new ButtonBottom(n),{hollowLineLength:u,heightDiff:l,radiusGT:o,receptionLocationBR:i,downMoveRY:g}=s;return t.lineTo(()=>(e.push({x:0,y:e[e.length-1].y-u*Math.tan(15*(Math.PI/180))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[0].y+u*Math.tan(15*(Math.PI/180))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-3].x,y:e[e.length-1].y-u*Math.tan(15*(Math.PI/180))}),e[e.length-1])),t},cuttingLinePath$q=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new Buckle(t,l);let L=1;const{buckleTongueLength:T,buckleTongueWidth:x}=f;function c(){const m=[],y=new SvgPathBuilder().moveTo(()=>(m.push({x:o,y:i+r-g+d}),m[0]));return topLeftBigTongue$9(y,m,t),topLeftEar$a(y,m,t).lineTo(()=>(m.push({x:m[m.length-1].x+u+(e/2-T/2),y:m[m.length-1].y}),m[m.length-1])).moveTo(()=>(m.push({x:m[m.length-1].x+T,y:m[m.length-1].y}),m[m.length-1])).lineTo(()=>(m.push({x:m[m.length-1].x+u+(e/2-T/2),y:m[m.length-1].y}),m[m.length-1])),topRightEar$a(y,m,t).lineTo(()=>(m.push({x:m[m.length-1].x,y:m[m.length-1].y+s-d}),L=m.length-1,m[m.length-1])),buttonBuckleRender$2(y,m,t,L),leftSticky$2(y,m,t),motherLock$7(y,m,t).moveTo(()=>(m.push({x:m[1].x+(e/2-x/2),y:m[1].y+g}),m[m.length-1])),topPlugHole$5(y,m,t,f).moveTo(()=>(m.push({x:m[0].x+e+n+(e/2-T/2),y:m[0].y}),m[m.length-1])),topPlugTongue$5(y,m,t,f),{path:y.build(),actionArray:m,pathLine:y}}return{returnPath:c().path,actionArray:c().actionArray,pathLine:c().pathLine}},foldLineoordinates$q=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$q(t).actionArray,o=new ButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c}=o,m=new Buckle(t,o),{buckleTongueLength:y,buckleTongueWidth:O,buckleTongueHeightIn:b,buckleTongueHeightInDiff:j}=m;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-(L-T)},line2_1:{x1:l[0].x+f,y1:l[0].y-g-(c-i),x2:l[1].x+(e/2-O/2),y2:l[0].y-g-(c-i)},line2_2:{x1:l[1].x+(e/2-O/2)+O,y1:l[0].y-g-(c-i),x2:l[0].x+e-f,y2:l[0].y-g-(c-i)},line3:{x1:l[0].x,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g},line4:{x1:l[0].x+e+d,y1:l[0].y,x2:l[0].x+e+n-u,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g+s-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+u,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+x,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g},line13_1:{x1:l[0].x+e+n+(e/2-y/2),y1:l[0].y,x2:l[0].x+e+n+(e/2-y/2+y),y2:l[0].y},line13_2:{x1:l[0].x+e+n+(e/2-y/2),y1:l[0].y+(b-j),x2:l[0].x+e+n+(e/2-y/2+y),y2:l[0].y+(b-j)}}}},bleedingLinePath$q=t=>{function e(){const n=cuttingLinePath$q(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$q=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new Buckle(t,l);let L=1;const{buckleTongueLength:T,buckleTongueWidth:x}=f;function c(){const m=[],y=new SvgPathBuilder().moveTo(()=>(m.push({x:o,y:i+r-g+d}),m[0]));topLeftBigTongue$9(y,m,t),topLeftEar$a(y,m,t).lineTo(()=>(m.push({x:m[m.length-1].x+u+(e/2-T/2),y:m[m.length-1].y}),m[m.length-1])).moveTo(()=>(m.push({x:m[m.length-1].x+T,y:m[m.length-1].y}),m[m.length-1])).lineTo(()=>(m.push({x:m[m.length-1].x+u+(e/2-T/2),y:m[m.length-1].y}),m[m.length-1])),topRightEar$a(y,m,t).lineTo(()=>(m.push({x:m[m.length-1].x,y:m[m.length-1].y+s-d}),L=m.length-1,m[m.length-1])),buttonBuckleRender$2(y,m,t,L).lineTo(()=>(m.push({x:m[0].x,y:m[0].y}),m[m.length-1])),motherLock$7(y,m,t).moveTo(()=>(m.push({x:m[1].x+(e/2-x/2),y:m[1].y+g}),m[m.length-1])),topPlugHole$5(y,m,t,f).moveTo(()=>(m.push({x:m[0].x+e+n+(e/2-T/2),y:m[0].y}),m[m.length-1])),topPlugTongue$5(y,m,t,f);let O=BleedGenerator.getInstance().generate(y.build());const b=O.split("M").filter(F=>F.trim()!=="");if(b.length>1){const F=re=>{if(typeof document>"u")return Number.NaN;const de="http://www.w3.org/2000/svg",he=document.createElementNS(de,"svg"),w=document.createElementNS(de,"path");he.style.position="absolute",he.style.width="0",he.style.height="0",he.style.overflow="hidden",w.setAttribute("d",`M${re}`),he.appendChild(w);try{document.body.appendChild(he);const le=w.getBBox();return le.width*le.height}catch{return Number.NaN}finally{he.remove()}},k=b.map((re,de)=>({index:de,area:F(re),length:re.length})),ue=(k.some(re=>Number.isFinite(re.area))?k.sort((re,de)=>de.area-re.area):k.sort((re,de)=>de.length-re.length))[0];O=`M${b[ue.index]}`}return O}return{returnPath:c()}},useBuckleReverseButtonBottomBoxPath={mmToPt,cuttingLinePath:cuttingLinePath$q,foldLineoordinates:foldLineoordinates$q,bleedingLinePath:bleedingLinePath$q,previewBleedingLinePath:previewBleedingLinePath$q};registerBox({type:"BuckleReverseButtonBottomBox",name:"反向扣底盒(异侧) + 插扣",group:"card",categoryId:"button-bottom",component:()=>__vitePreload(()=>import("./index-DzjEYWjG.js"),__vite__mapDeps([10,1,2])),pathApi:useBuckleReverseButtonBottomBoxPath,rules:ButtonBottomBoxRules$1,display:{label:"反向扣底盒(异侧) + 插扣",index:22,imgSrc:"./defaultDlate/反向扣底盒(异侧) + 插扣.svg",disabled:!1}});const topLeftBigTongue$8=(t,e,n)=>{const s=n.thickness,u=new ButtonBottom(n),{hollowLineLength:l,tongueHeight:o,tongueBottomLength:i,receptionLocation:g,heightDiff:d,radiusTongueCr:r,radiusTongueRr:f,radiusTongueRrX:L,tongueLinkWidth:T}=u;t.lineTo(()=>(e.push({x:l,y:o-g}),e[e.length-1])).lineTo(()=>(e.push({x:l+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:r}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i-2*r,y:e[e.length-1].y}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+o-g-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+T}),e[e.length-1])).arcTo(f,f,0,0,0,()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y+d}),e[e.length-1]))},topLeftEar$9=(t,e,n)=>{const s=new ButtonBottom(n),{slotWidth:u,slotBottomWidth:l,lockSLength:o,xLength13:i,yLength13:g,radiusTongueAr:d,sideWingLength:r,tongueTopLength:f,lockYLength:L,radiusTongueArX:T,radiusTongueArY:x}=s;t.lineTo(()=>(e.push({x:e[e.length-2].x+l,y:e[e.length-1].y-l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-3].x+u,y:e[e.length-2].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x+T,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y+L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+o}),e[e.length-1]))},topRightEar$9=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth,l=new ButtonBottom(n),{slotWidth:o,slotBottomWidth:i,lockSLength:g,xLength13:d,yLength13:r,radiusTongueAr:f,sideWingLength:L,lockYLength:T,radiusTongueArX:x,radiusTongueArY:c,errorLength:m,hollowLineLength:y}=l;return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x+x,y:e[e.length-1].y-c}),e[e.length-1])).lineTo(()=>(e.push({x:y+s+u+s+u-m-o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-i,y:e[e.length-1].y+(L-i)}),e[e.length-1])).lineTo(()=>(e.push({x:y+s+u+s+u-m,y:e[e.length-1].y+i}),e[e.length-1])),t},bottomRightEar=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth,l=new ButtonBottom(n),{slotWidth:o,slotBottomWidth:i,xLength13:g,yLength13:d,radiusTongueAr:r,sideWingLength:f,lockYLength:L,hollowLineLength:T,radiusTongueRrX:x,radiusTongueRr:c,heightDiff:m}=l;return t.lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y+L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y+d}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-.974*r,y:e[e.length-1].y+.775*r}),e[e.length-1])).lineTo(()=>(e.push({x:T+s+u+s+o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(o-i),y:e[e.length-1].y-(f-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-x),y:e[e.length-1].y-i}),e[e.length-1])).arcTo(c,c,0,0,0,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+m}),e[e.length-1])),t},bottomRightBigTongue$1=(t,e,n)=>{const s=n.thickness,u=new ButtonBottom(n),{tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-i-g}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(o-2*g),y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-i-g)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-d}),e[e.length-1])),t},bottomLeftEar=(t,e,n)=>{n.boxLength;const s=n.boxWidth,u=n.thickness,l=new ButtonBottom(n),{slotWidth:o,slotBottomWidth:i,xLength13:g,yLength13:d,radiusTongueAr:r,sideWingLength:f,lockYLength:L,hollowLineLength:T,radiusTongueRrX:x,radiusTongueRr:c,heightDiff:m,radiusTongueCr:y,radiusTongueArX:O,radiusTongueArY:b,lockSLength:j}=l;return t.arcTo(c,c,0,0,0,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(o-i),y:e[e.length-1].y+(f-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-u-L-g-.974*r-o),y:e[e.length-1].y}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-O,y:e[e.length-1].y-b}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-j}),e[e.length-1])),t},leftSticky$1=(t,e,n)=>{const s=n.boxHeight,u=new ButtonBottom(n),{hollowLineLength:l}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-l*Math.tan(15*(Math.PI/180))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(s-2*(l*Math.tan(15*(Math.PI/180))))}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x,y:e[0].y}),e[e.length-1])),t},motherLock$6=(t,e,n)=>{n.boxHeight;const s=n.thickness,u=new ButtonBottom(n),{motherLockLength:l,receptionLocation:o,overcutYLength:i}=u;return t.moveTo(()=>(e.push({x:e[2].x,y:e[2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+o-s+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(l-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+o-s+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[37].x,y:e[37].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(l-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(o-s)-i}),e[e.length-1])).moveTo(()=>(e.push({x:e[42].x,y:e[42].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(o-s)-i}),e[e.length-1])),t},ReversePluginLock=(t,e,n,s,u)=>{const l=n.boxLength;n.boxWidth;const o=n.boxHeight,i=n.thickness,{hollowLineLength:g,tongueHeight:d,tongueBottomLength:r,receptionLocation:f,heightDiff:L,radiusTongueCr:T,radiusTongueRr:x,radiusTongueRrX:c,slotWidth:m,slotBottomWidth:y,lockSLength:O,xLength13:b,yLength13:j,radiusTongueAr:F,sideWingLength:k,tongueTopLength:_,errorLength:ue,motherLockLength:re,lockYLength:de,overcutYLength:he,tongueLinkWidth:w,radiusTongueArX:le,radiusTongueArY:V}=s,{buckleTongueLength:Ce}=u;topLeftBigTongue$8(t,e,n),topLeftEar$9(t,e,n),t.lineTo(()=>(e.push({x:e[e.length-1].x+l/2+i-Ce/2,y:e[e.length-1].y}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-1].x+Ce,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l/2+i-Ce/2,y:e[e.length-1].y}),e[e.length-1])),topRightEar$9(t,e,n).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+o+O-L}),e[e.length-1])),bottomRightEar(t,e,n),bottomRightBigTongue$1(t,e,n),bottomLeftEar(t,e,n).lineTo(()=>(e.push({x:e[e.length-1].x-(l/2-Ce/2)-i,y:e[e.length-1].y}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-1].x-Ce,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(l/2-Ce/2),y:e[e.length-1].y}),e[e.length-1])),leftSticky$1(t,e,n),motherLock$6(t,e,n)},TopPlugHole=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1]))},TopPlugTongue=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},BottomPlugHole=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y-i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y-(d+i)}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y+d}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1]))},BottomPlugTongue=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y-u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o)}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o+u)}),e[e.length-1])),t},cuttingLinePath$p=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight;t.thickness;const u=new ButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u,r=new Buckle(t,u),{buckleTongueWidth:f,buckleTongueLength:L}=r;function T(){const x=[],c=new SvgPathBuilder().moveTo(()=>(x.push({x:l,y:o+d-i+g}),x[0]));return ReversePluginLock(c,x,t,u,r),c.moveTo(()=>(x.push({x:x[0].x+e/2-f/2,y:o}),x[x.length-1])),TopPlugHole(c,x,t,r),c.moveTo(()=>(x.push({x:x[0].x+e+n+e/2-L/2,y:x[0].y}),x[x.length-1])),TopPlugTongue(c,x,t,r).moveTo(()=>(x.push({x:x[0].x+e+n+e/2-f/2,y:x[0].y-g+s+g+(d-i)}),x[x.length-1])),BottomPlugHole(c,x,t,r),c.moveTo(()=>(x.push({x:x[0].x+e/2-L/2,y:x[0].y-g+s}),x[x.length-1])),BottomPlugTongue(c,x,t,r),{path:c.build(),actionArray:x,pathLine:c}}return{returnPath:T().path,actionArray:T().actionArray,pathLine:T().pathLine}},foldLineoordinates$p=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$p(t).actionArray,o=new ButtonBottom(t),{heightDiff:i,radiusTongueRrX:g,errorLength:d,motherLockLength:r,receptionLocation:f,tongueLinkWidth:L}=o,{buckleTongueWidth:T,buckleTongueLength:x,buckleTongueHeightIn:c,buckleTongueHeightInDiff:m}=new Buckle(t,o);return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-i},line2_1:{x1:l[0].x+r,y1:l[0].y-i-(L-f),x2:l[0].x+e/2-T/2,y2:l[0].y-i-(L-f)},line2_2:{x1:l[0].x+e/2-T/2+T,y1:l[0].y-i-(L-f),x2:l[0].x+e-r,y2:l[0].y-i-(L-f)},line3:{x1:l[0].x,y1:l[0].y-i,x2:l[0].x+e,y2:l[0].y-i},line4:{x1:l[0].x+e,y1:l[0].y-i,x2:l[0].x+e,y2:l[0].y-i+s},line5:{x1:l[0].x+e+g,y1:l[0].y,x2:l[0].x+e+n-u,y2:l[0].y},line6:{x1:l[0].x+e+n-g,y1:l[0].y+s-i,x2:l[0].x+e+u,y2:l[0].y+s-i},line7:{x1:l[0].x+e+n,y1:l[0].y,x2:l[0].x+e+n,y2:l[0].y+s},line8:{x1:l[0].x+e+n,y1:l[0].y+s,x2:l[0].x+2*e+n,y2:l[0].y+s},line9_1:{x1:l[0].x+e+n+r,y1:l[0].y+s+L-f,x2:l[0].x+e+n+e/2-T/2,y2:l[0].y+s+L-f},line9_2:{x1:l[0].x+e+n+e/2-T/2+T,y1:l[0].y+s+L-f,x2:l[0].x+e+n+e-r,y2:l[0].y+s+L-f},line10:{x1:l[0].x+2*e+n,y1:l[0].y,x2:l[0].x+2*e+n,y2:l[0].y+s},line11:{x1:l[0].x+2*e+n+u,y1:l[0].y,x2:l[0].x+2*e+n+n-d,y2:l[0].y},line12:{x1:l[0].x+2*e+n+g,y1:l[0].y+s-i,x2:l[0].x+2*e+n+n-d,y2:l[0].y+s-i},topTongueLine_1:{x1:l[0].x+e+n+e/2-x/2,y1:l[0].y,x2:l[0].x+e+n+e/2-x/2+x,y2:l[0].y},topTongueLine_2:{x1:l[0].x+e+n+e/2-x/2,y1:l[0].y+(c-m),x2:l[0].x+e+n+e/2-x/2+x,y2:l[0].y+(c-m)},bottomTongueLine_1:{x1:l[0].x+e/2-x/2,y1:l[0].y-i+s,x2:l[0].x+e/2-x/2+x,y2:l[0].y-i+s},bottomTongueLine_2:{x1:l[0].x+e/2-x/2,y1:l[0].y-i+s-(c-m),x2:l[0].x+e/2-x/2+x,y2:l[0].y-i+s-(c-m)}}}},bleedingLinePath$p=t=>{function e(){const n=cuttingLinePath$p(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$p=t=>{function e(){const n=cuttingLinePath$p(t).pathLine;n.actionSplice(56,2);let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},useBuckleReversePluginLockPath={mmToPt,cuttingLinePath:cuttingLinePath$p,foldLineoordinates:foldLineoordinates$p,bleedingLinePath:bleedingLinePath$p,previewBleedingLinePath:previewBleedingLinePath$p};function ReversePluginLockBoxRules$1(t,e,n){let s=!0;if((expandWidth$6(n)>1e3||expandHeight$6(n)>700)&&(s=!1),t==="boxLength"&&e<40)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于40mm!",syncType:"boxLength",syncSize:40};if(t==="boxWidth"&&e<20)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于20mm!",syncType:"boxWidth",syncSize:20};if(t==="boxWidth"&&e>n.boxLength)return{validVal:!1,msg:"尺寸检查未通过,宽度不能大于长度!",syncType:""};if(t==="boxLength"&&e<n.boxWidth)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于宽度!",syncType:"boxWidth"};if(s){if(t==="boxHeight"&&e<15)return{validVal:!1,msg:"尺寸检查未通过,高度不能小于15mm!",syncType:"boxHeight",syncSize:15}}else return{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1000*700mm!",syncType:""};return{validVal:!0,msg:"success",syncType:""}}const expandWidth$6=t=>{const e=useBuckleReversePluginLockPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.x)),s=Math.min(...e.map(u=>u.x));return n-s},expandHeight$6=t=>{const e=useBuckleReversePluginLockPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.y)),s=Math.min(...e.map(u=>u.y));return n-s};registerBox({type:"BuckleReversePluginLockBox",name:"普通双插盒(异侧) + 插扣",group:"card",categoryId:"double-interlock",component:()=>__vitePreload(()=>import("./index-cn1hBa39.js"),__vite__mapDeps([11,1,2])),pathApi:useBuckleReversePluginLockPath,rules:ReversePluginLockBoxRules$1,display:{label:"普通双插盒(异侧) + 插扣",index:18,imgSrc:"./defaultDlate/普通双插盒(异侧) + 插扣.svg",disabled:!1}});const topLeftEar$8=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,sideWingLength:g,tongueTopLength:d,radiusTongueAr:r,xLength13:f,yLength13:L,lockYLength:T,lockSLength:x}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y-L}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*r,y:e[e.length-1].y-.775*r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-o),y:e[e.length-1].y+(g-o)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(o-u),y:e[e.length-1].y+o}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y-l}),e[e.length-1])),t},topBigTongue=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-i-g)}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(o-2*g),y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-i-g)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d}),e[e.length-1])),t},topRightEar$8=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{radiusTongueRr:u,radiusTongueRrX:l,errorLength:o,slotBottomWidth:i,slotWidth:g,radiusTongueAr:d,xLength13:r,yLength13:f,lockYLength:L,sideWingLength:T,heightDiff:x,tongueTopLength:c,lockSLength:m}=new ButtonBottom(n);return t.arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x+i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-3].x+g,y:e[e.length-2].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(c-o+s),y:e[e.length-1].y}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*d,y:e[e.length-1].y+.775*d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y+f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y+L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+m}),e[e.length-1])),t},buttonBuckleRender$1=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth;n.boxHeight,n.thickness;const{hollowLineLength:l,errorLength:o,receptionLocationBR:i,receptionLocationBRX:g,downMoveRY:d,K2Length:r,K3Height:f,M2Length:L,radiusTongueK1r:T,offsetX:x,radiusTongueK1rX:c,radiusTongueK1rY:m,K1Height:y,downMoveRYK1:O,negativeBuckleWidthM:b,negativeBuckleNumber:j,receptionLocation:F,overcutYLength:k,motherLockLength:_}=new ButtonBottom(n);let ue=e.length-1;t.arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(i-g),y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+r+f-d}),e[e.length-1])),u<=50?t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-o-(L-i)-T-(i-g)),y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(f-T)}),e[e.length-1])):t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-o-(L-i)-(i-g))+x,y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-x,y:e[e.length-2].y-f}),ue=e.length-1,e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-(L-i-g),y:e[e.length-1].y-r}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(i+g),y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y+O-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-b)/2-T-i)+i/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1]));function re(he){const w=2*he-1;for(let le=1;le<he;le++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(b/w+i),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(y-T)}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(b/w-2*T-i),y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-b/w-i,y:e[e.length-1].y}),e[e.length-1]))}j===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(b+i),y:e[e.length-1].y}),e[e.length-1])):re(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-b)/2-T-i)+i/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+y+O-d)}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(i+g),y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(L-i-g),y:e[e.length-1].y+r}),e[e.length-1])),u<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+f-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-i-T-(L-i)),y:e[e.length-1].y}),e[e.length-1]))):(t.lineTo(()=>(e.push({x:e[e.length-1].x+(e[ue].x-e[ue-1].x),y:e[e.length-1].y+(e[ue-1].y-e[ue].y)}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-c,y:e[e.length-1].y+m}),e[e.length-1])),t.lineTo(()=>(e.push({x:l+s+i,y:e[e.length-1].y}),e[e.length-1]))),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+f+r-d)}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(i+g),y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(b-i)-2*g)/2,y:e[e.length-1].y+O}),e[e.length-1]));function de(he){const w=2*he-1;for(let le=1;le<he;le++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((b-i)/w-2*T),y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(b-i)/w,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((b-i)/w-2*T),y:e[e.length-1].y}),e[e.length-1]))}return j===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(b-i)+2*T,y:e[e.length-1].y}),e[e.length-1])):de(2),t.arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(b-i)-2*g)/2,y:e[e.length-1].y-O}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-(i-d)}),e[e.length-1])),t},leftSticky=(t,e,n)=>{n.boxHeight;const s=new ButtonBottom(n),{hollowLineLength:u,heightDiff:l,radiusGT:o,receptionLocationBR:i,downMoveRY:g}=s;return t.lineTo(()=>(e.push({x:0,y:e[e.length-1].y-u*Math.tan(15*(Math.PI/180))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[0].y+u*Math.tan(15*(Math.PI/180))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-3].x,y:e[e.length-1].y-u*Math.tan(15*(Math.PI/180))}),e[e.length-1])),t},motherLock$5=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new ButtonBottom(n);return t.moveTo(()=>(e.push({x:e[13].x,y:e[13].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[18].x,y:e[18].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},topPlugHole$4=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue$4=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},cuttingLinePath$o=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new Buckle(t,l),{buckleTongueLength:L,buckleTongueWidth:T}=f;function x(){const c=[],m=new SvgPathBuilder().moveTo(()=>(c.push({x:o,y:i+r-g+d}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2),y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x+L,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2)+u,y:c[c.length-1].y}),c[c.length-1]));return topLeftEar$8(m,c,t),topBigTongue(m,c,t),topRightEar$8(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[c.length-1].y+s-d}),c[c.length-1])),buttonBuckleRender$1(m,c,t),leftSticky(m,c,t),motherLock$5(m,c,t).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-T/2),y:c[0].y-d-r+g}),c[c.length-1])),topPlugHole$4(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+(e/2-L/2),y:c[0].y}),c[c.length-1])),topPlugTongue$4(m,c,t,f),{path:m.build(),actionArray:c,pathLine:m}}return{returnPath:x().path,actionArray:x().actionArray,pathLine:x().pathLine}},foldLineoordinates$o=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$o(t).actionArray,o=new ButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,receptionLocationBR:f,downMoveRY:L,receptionLocationBRX:T,errorLength:x}=o,c=new Buckle(t,o),{buckleTongueWidth:m,buckleTongueLength:y,buckleTongueHeightIn:O,buckleTongueHeightInDiff:b}=c;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+(s-g-(f-L))},line2:{x1:l[0].x+T,y1:l[0].y+(s-g),x2:l[0].x+e-T,y2:l[0].y+(s-g)},line3:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+(s-g-(f-L))},line4:{x1:l[3].x,y1:l[0].y,x2:l[3].x+n-u-d,y2:l[0].y},line5:{x1:l[0].x+e+T,y1:l[0].y+(s-g),x2:l[0].x+e+(n-T),y2:l[0].y+(s-g)},line6:{x1:l[3].x+n-u,y1:l[0].y-g,x2:l[3].x+n-u,y2:l[0].y+(s-g-(f-L))},line7_1:{x1:l[12].x+r,y1:l[12].y+i,x2:l[0].x+e+n+(e/2-m/2),y2:l[12].y+i},line7_2:{x1:l[0].x+e+n+(e/2-m/2)+m,y1:l[12].y+i,x2:l[12].x+e-r,y2:l[12].y+i},line8:{x1:l[11].x,y1:l[11].y,x2:l[11].x+e,y2:l[11].y},line9:{x1:l[11].x+T,y1:l[11].y+s,x2:l[11].x+(e-T),y2:l[11].y+s},line10:{x1:l[11].x+e,y1:l[11].y,x2:l[11].x+e,y2:l[11].y+s-(f-L)},line11:{x1:l[11].x+(e+d),y1:l[11].y+g,x2:l[11].x+e+n-x,y2:l[11].y+g},line12:{x1:l[11].x+e+T,y1:l[11].y+s,x2:l[11].x+e+(n-x),y2:l[11].y+s},line13_1:{x1:l[1].x,y1:l[1].y,x2:l[1].x+y,y2:l[1].y},line13_2:{x1:l[1].x,y1:l[1].y+(O-b),x2:l[1].x+y,y2:l[1].y+(O-b)}}}},bleedingLinePath$o=t=>{function e(){const n=cuttingLinePath$o(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$o=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,tongueLinkWidth:r}=l,f=new Buckle(t,l),{buckleTongueLength:L,buckleTongueWidth:T}=f;function x(){const c=[],m=new SvgPathBuilder().moveTo(()=>(c.push({x:o,y:i+r-g+d}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2),y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x+L,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2)+u,y:c[c.length-1].y}),c[c.length-1]));topLeftEar$8(m,c,t),topBigTongue(m,c,t),topRightEar$8(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[c.length-1].y+s-d}),c[c.length-1])),buttonBuckleRender$1(m,c,t).lineTo(()=>(c.push({x:c[0].x,y:c[0].y}),c[c.length-1])),motherLock$5(m,c,t).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-T/2),y:c[0].y-d-r+g}),c[c.length-1])),topPlugHole$4(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+(e/2-L/2),y:c[0].y}),c[c.length-1])),topPlugTongue$4(m,c,t,f);let y=BleedGenerator.getInstance().generate(m.build());const O=y.split("M").filter(j=>j.trim()!=="");if(O.length>1){const j=ue=>{if(typeof document>"u")return Number.NaN;const re="http://www.w3.org/2000/svg",de=document.createElementNS(re,"svg"),he=document.createElementNS(re,"path");de.style.position="absolute",de.style.width="0",de.style.height="0",de.style.overflow="hidden",he.setAttribute("d",`M${ue}`),de.appendChild(he);try{document.body.appendChild(de);const w=he.getBBox();return w.width*w.height}catch{return Number.NaN}finally{de.remove()}},F=O.map((ue,re)=>({index:re,area:j(ue),length:ue.length})),_=(F.some(ue=>Number.isFinite(ue.area))?F.sort((ue,re)=>re.area-ue.area):F.sort((ue,re)=>re.length-ue.length))[0];y=`M${O[_.index]}`}return y}return{returnPath:x()}},useBuckleReverseSameButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$o,foldLineoordinates:foldLineoordinates$o,bleedingLinePath:bleedingLinePath$o,previewBleedingLinePath:previewBleedingLinePath$o};registerBox({type:"BuckleReverseSameButtonBottomBox",name:"反向扣底盒(同侧) + 插扣",group:"card",categoryId:"button-bottom",component:()=>__vitePreload(()=>import("./index-CTiICsh5.js"),__vite__mapDeps([12,1,2])),pathApi:useBuckleReverseSameButtonBottomPath,rules:ButtonBottomBoxRules$1,display:{label:"反向扣底盒(同侧) + 插扣",index:23,imgSrc:"./defaultDlate/反向扣底盒(同侧) + 插扣.svg",disabled:!1}});const topLeftBigTongue$7=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:e[0].x,y:e[0].y-d}),e[1])).lineTo(()=>(e.push({x:e[1].x+s,y:e[1].y}),e[2])).lineTo(()=>(e.push({x:e[2].x,y:g}),e[3])).arcTo(g,g,0,0,1,()=>(e.push({x:e[3].x+g,y:e[3].y-g}),e[4])).lineTo(()=>(e.push({x:e[4].x+o-2*g,y:e[4].y}),e[5])).arcTo(g,g,0,0,1,()=>(e.push({x:e[5].x+g,y:e[5].y+g}),e[6])).lineTo(()=>(e.push({x:e[6].x,y:e[6].y+l-i-g}),e[7])).lineTo(()=>(e.push({x:e[7].x+s,y:e[7].y}),e[8])).lineTo(()=>(e.push({x:e[8].x,y:e[8].y+d}),e[9])),t},topRightEar$7=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{slotBottomWidth:s,slotWidth:u,radiusTongueAr:l,xLength13:o,yLength13:i,lockYLength:g,lockSLength:d,radiusTongueRr:r,radiusTongueRrX:f,heightDiff:L,sideWingLength:T,tongueTopLength:x}=new ButtonBottom(n);return t.arcTo(r,r,0,0,0,()=>(e.push({x:e[9].x+f,y:e[9].y+L}),e[10])).lineTo(()=>(e.push({x:e[9].x+s,y:e[10].y-s}),e[11])).lineTo(()=>(e.push({x:e[9].x+u,y:e[10].y-T}),e[12])).lineTo(()=>(e.push({x:e[12].x+x,y:e[12].y}),e[13])).arcTo(l,l,0,0,1,()=>(e.push({x:e[13].x+.974*l,y:e[13].y+.775*l}),e[14])).lineTo(()=>(e.push({x:e[14].x+o,y:e[14].y+i}),e[15])).lineTo(()=>(e.push({x:e[15].x+g,y:e[15].y+g}),e[16])).lineTo(()=>(e.push({x:e[16].x,y:e[16].y+d}),e[17])),t},rightSticky$4=(t,e,n)=>{const s=n.boxHeight,u=new ButtonBottom(n),{hollowLineLength:l,heightDiff:o,radiusGT:i,receptionLocationBR:g,downMoveRY:d}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+l*Math.tan(i*(Math.PI/180))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s-o-2*l*Math.tan(i*(Math.PI/180))-(g-d))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+l*Math.tan(i*(Math.PI/180))}),e[e.length-1])),t},buttonBuckleRender=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth;n.boxHeight,n.thickness;const{hollowLineLength:l,errorLength:o,receptionLocationBR:i,receptionLocationBRX:g,downMoveRY:d,K2Length:r,K3Height:f,M2Length:L,radiusTongueK1r:T,offsetX:x,radiusTongueK1rX:c,radiusTongueK1rY:m,K1Height:y,downMoveRYK1:O,negativeBuckleWidthM:b,negativeBuckleNumber:j,receptionLocation:F,overcutYLength:k,motherLockLength:_}=new ButtonBottom(n);t.arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y+O-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-b)/2-T-i)+i/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1]));function ue(de){const he=2*de-1;for(let w=1;w<de;w++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(b/he+i),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(y-T)}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(b/he-2*T-i),y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-b/he-i,y:e[e.length-1].y}),e[e.length-1]))}j===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(b+i),y:e[e.length-1].y}),e[e.length-1])):ue(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-b)/2-T-i)+i/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+y+O-d)}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(i+g),y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(L-i-g),y:e[e.length-1].y+r}),e[e.length-1])),u<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+f-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-i-T-(L-i)),y:e[e.length-1].y}),e[e.length-1]))):(t.lineTo(()=>(e.push({x:e[e.length-1].x+(c-x),y:e[e.length-1].y+(f-m)}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-c,y:e[e.length-1].y+m}),e[e.length-1])),t.lineTo(()=>(e.push({x:u-o+s+i,y:e[e.length-1].y}),e[e.length-1]))),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+f+r-d)}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(i+g),y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(b-i)-2*g)/2,y:e[e.length-1].y+O}),e[e.length-1]));function re(de){const he=2*de-1;for(let w=1;w<de;w++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((b-i)/he-2*T),y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(b-i)/he,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((b-i)/he-2*T),y:e[e.length-1].y}),e[e.length-1]))}return j===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y-T}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(b-i)+2*T,y:e[e.length-1].y}),e[e.length-1])):re(2),t.arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(y-T)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(b-i)-2*g)/2,y:e[e.length-1].y-O}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x-(g+i),y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+r+f-d}),e[e.length-1])),u<=50?t.lineTo(()=>(e.push({x:L+T,y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(f-T)}),e[e.length-1])):t.lineTo(()=>(e.push({x:L+x,y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,1,()=>(e.push({x:e[e.length-1].x-c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(T-x),y:e[e.length-1].y-(f-m)}),e[e.length-1])),t.lineTo(()=>(e.push({x:0,y:e[e.length-1].y-r}),e[e.length-1])),t},topLeftEar$7=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,sideWingLength:g,tongueTopLength:d,radiusTongueAr:r,xLength13:f,yLength13:L,lockYLength:T,lockSLength:x}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+T,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y-L}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*r,y:e[e.length-1].y-.775*r}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x-i,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i-o,y:e[0].y+l-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x-u,y:e[e.length-1].y+o}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y-l}),e[e.length-1])),t},motherLock$4=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new ButtonBottom(n);return t.moveTo(()=>(e.push({x:e[2].x,y:e[1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},topPlugHole$3=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue$3=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},cuttingLinePath$n=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,radiusGT:i,tongueHeight:g,receptionLocation:d,heightDiff:r,radiusTongueCr:f,tongueBottomLength:L,radiusTongueRr:T,radiusTongueRrX:x,slotBottomWidth:c,slotWidth:m,sideWingLength:y,tongueTopLength:O,radiusTongueAr:b,xLength13:j,yLength13:F,lockSLength:k,errorLength:_,K2Length:ue,motherLockLength:re,lockYLength:de,M2Length:he,K3Height:w,radiusTongueK1r:le,receptionLocationBR:V,downMoveRY:Ce,receptionLocationBRX:_e,K1Height:D,downMoveRYK1:Ie,negativeBuckleWidthM:Lt,negativeBuckleNumber:At,radiusTongueK1rX:ie,radiusTongueK1rY:Ve,offsetX:ze,tongueLinkWidth:z,overcutYLength:Dt}=l,v=new Buckle(t,l),{buckleTongueLength:S,buckleTongueWidth:Ue}=v;function M(){const Pt=[],hn=new SvgPathBuilder().moveTo(()=>(Pt.push({x:n-_,y:g+z-d}),Pt[0]));return topLeftBigTongue$7(hn,Pt,t),topRightEar$7(hn,Pt,t).lineTo(()=>(Pt.push({x:Pt[Pt.length-1].x+(e/2-S/2)+u,y:Pt[Pt.length-1].y}),Pt[Pt.length-1])).moveTo(()=>(Pt.push({x:Pt[Pt.length-1].x+S,y:Pt[Pt.length-1].y}),Pt[Pt.length-1])).lineTo(()=>(Pt.push({x:Pt[Pt.length-1].x+(e/2-S/2),y:Pt[Pt.length-1].y}),Pt[Pt.length-1])),rightSticky$4(hn,Pt,t),buttonBuckleRender(hn,Pt,t).lineTo(()=>(Pt.push({x:Pt[Pt.length-1].x,y:Pt[Pt.length-1].y-(s-r)}),Pt[Pt.length-1])),topLeftEar$7(hn,Pt,t),motherLock$4(hn,Pt,t).moveTo(()=>(Pt.push({x:Pt[0].x+(e/2-Ue/2),y:Pt[0].y-(z-d)}),Pt[Pt.length-1])),topPlugHole$3(hn,Pt,t,v).moveTo(()=>(Pt.push({x:Pt[0].x+e+n+(e/2-S/2),y:Pt[0].y+r}),Pt[Pt.length-1])),topPlugTongue$3(hn,Pt,t,v),{path:hn.build(),actionArray:Pt,pathLine:hn}}return{returnPath:M().path,actionArray:M().actionArray,pathLine:M().pathLine}},foldLineoordinates$n=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$n(t).actionArray,o=new ButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,receptionLocationBR:f,downMoveRY:L,receptionLocationBRX:T}=o,x=new Buckle(t,o),{buckleTongueWidth:c,buckleTongueLength:m,buckleTongueHeightIn:y,buckleTongueHeightInDiff:O}=x;return{foldLineObj:{line1:{x1:0,y1:l[0].y+g,x2:l[0].x-d,y2:l[0].y+g},line2:{x1:0,y1:l[0].y+s,x2:l[0].x-T,y2:l[0].y+s},line3:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+(s-(f-L))},line4_1:{x1:l[0].x+r,y1:l[2].y+i,x2:l[0].x+(e/2-c/2),y2:l[2].y+i},line4_2:{x1:l[0].x+(e/2-c/2)+c,y1:l[2].y+i,x2:l[0].x+e-r,y2:l[2].y+i},line5:{x1:l[0].x,y1:l[0].y,x2:l[0].x+e,y2:l[0].y},line6:{x1:l[0].x+T,y1:l[0].y+s,x2:l[0].x+e-T,y2:l[0].y+s},line7:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+(s-(f-L))},line8:{x1:l[10].x,y1:l[0].y+g,x2:l[17].x,y2:l[0].y+g},line9:{x1:l[0].x+e+T,y1:l[0].y+s,x2:l[0].x+e+n-T,y2:l[0].y+s},line10:{x1:l[17].x+u,y1:l[0].y+g,x2:l[17].x+u,y2:l[0].y+(s-(f-L))},line11:{x1:l[17].x+u+T,y1:l[0].y+s,x2:l[17].x+u+e-T,y2:l[0].y+s},line12:{x1:l[17].x+u+e,y1:l[0].y+g,x2:l[17].x+u+e,y2:l[0].y+(s-(f-L))},line13_1:{x1:l[0].x+e+n+(e/2-m/2),y1:l[0].y+g,x2:l[0].x+e+n+(e/2-m/2)+m,y2:l[0].y+g},line13_2:{x1:l[0].x+e+n+(e/2-m/2),y1:l[0].y+g+(y-O),x2:l[0].x+e+n+(e/2-m/2)+m,y2:l[0].y+g+(y-O)}}}},bleedingLinePath$n=t=>{function e(){const n=cuttingLinePath$n(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$n=t=>{function e(){const n=cuttingLinePath$n(t).pathLine;n.actionSplice(21,2);let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},useBuckleSameButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$n,foldLineoordinates:foldLineoordinates$n,bleedingLinePath:bleedingLinePath$n,previewBleedingLinePath:previewBleedingLinePath$n};registerBox({type:"BuckleSameButtonBottomBox",name:"普通扣底盒(同侧) + 插扣",group:"card",categoryId:"button-bottom",component:()=>__vitePreload(()=>import("./index-BESb8FtQ.js"),__vite__mapDeps([13,1,2])),pathApi:useBuckleSameButtonBottomPath,rules:ButtonBottomBoxRules$1,display:{label:"普通扣底盒(同侧) + 插扣",index:21,imgSrc:"./defaultDlate/普通扣底盒(同侧) + 插扣.svg",disabled:!1}});const TopLeftBigTongue=(t,e,n)=>{const s=n.boxWidth,u=n.thickness,l=new ButtonBottom(n),{tongueHeight:o,tongueBottomLength:i,receptionLocation:g,errorLength:d,radiusTongueCr:r,tongueLinkWidth:f}=l;return t.lineTo(()=>(e.push({x:s-d,y:o-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:r}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i-2*r,y:e[e.length-1].y}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+o-g-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+f}),e[e.length-1])),t},TopRightEar=(t,e,n)=>{n.boxLength,n.boxWidth;const s=new ButtonBottom(n),{slotWidth:u,slotBottomWidth:l,lockSLength:o,xLength13:i,yLength13:g,radiusTongueAr:d,sideWingLength:r,lockYLength:f,radiusTongueRr:L,radiusTongueRrX:T,heightDiff:x,tongueTopLength:c}=s;return t.arcTo(L,L,0,0,0,()=>(e.push({x:e[e.length-1].x+T,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[9].x+l,y:e[e.length-1].y-l}),e[e.length-1])).lineTo(()=>(e.push({x:e[9].x+u,y:e[10].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*d,y:e[e.length-1].y+.775*d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y+f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+o}),e[e.length-1])),t},RightSticky=(t,e,n)=>{const s=n.boxHeight,u=new ButtonBottom(n),{hollowLineLength:l,heightDiff:o}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+l*Math.tan(15*(Math.PI/180))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s-2*(l*Math.tan(15*(Math.PI/180))))-2*o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+l*Math.tan(15*(Math.PI/180))}),e[e.length-1])),t},BottomRightEar=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth,l=new ButtonBottom(n),{slotWidth:o,slotBottomWidth:i,xLength13:g,yLength13:d,radiusTongueAr:r,sideWingLength:f,lockYLength:L,errorLength:T,radiusTongueRrX:x,radiusTongueRr:c,heightDiff:m,lockSLength:y,tongueTopLength:O}=l;return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y+L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y+d}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-.974*r,y:e[e.length-1].y+.775*r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-O,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(o-i),y:e[e.length-1].y-(f-i)}),e[e.length-1])).lineTo(()=>(e.push({x:u-T+s+x,y:e[e.length-1].y-i}),e[e.length-1])).arcTo(c,c,0,0,0,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+m}),e[e.length-1])),t},bottomRightBigTongue=(t,e,n)=>{const s=n.thickness,u=new ButtonBottom(n),{tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-g-i}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(o-2*g),y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-d}),e[e.length-1])),t},BottomLeftEar=(t,e,n)=>{n.boxLength,n.boxWidth;const s=n.thickness,u=new ButtonBottom(n),{slotWidth:l,slotBottomWidth:o,xLength13:i,yLength13:g,radiusTongueAr:d,sideWingLength:r,lockYLength:f,errorLength:L,radiusTongueRrX:T,radiusTongueRr:x,heightDiff:c,tongueTopLength:m}=u;return t.arcTo(x,x,0,0,0,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-c}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-3].x-o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(l-o),y:e[e.length-2].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(m+s-L),y:e[e.length-1].y}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-.974*d,y:e[e.length-1].y-.775*d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-f,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[16].y}),e[e.length-1])),t},TopLeftEar=(t,e,n)=>{const s=new ButtonBottom(n),{slotWidth:u,slotBottomWidth:l,heightDiff:o,xLength13:i,yLength13:g,radiusTongueAr:d,sideWingLength:r,radiusTongueRrX:f,lockYLength:L,radiusTongueRr:T}=s;return t.lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-1].y-g}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*d,y:e[e.length-1].y-.775*d}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x-u,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-l),y:e[e.length-1].y+(r-l)}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x-f,y:e[0].y+o}),e[e.length-1])).arcTo(T,T,0,0,0,()=>(e.push({x:e[0].x,y:e[0].y}),e[e.length-1])),t},MotherLock=(t,e,n)=>{n.boxHeight;const s=n.thickness,u=new ButtonBottom(n),{motherLockLength:l,receptionLocation:o,overcutYLength:i}=u;return t.moveTo(()=>(e.push({x:e[2].x,y:e[2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+o-s+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(l-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+o-s+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[36].x,y:e[36].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(l-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-o+s-i}),e[e.length-1])).moveTo(()=>(e.push({x:e[41].x,y:e[41].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-o+s-i}),e[e.length-1])),t},topPlugHole$2=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue$2=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},bottomPlugHole=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y-i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y-(d+i)}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y+d}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},bottomPlugTongue=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y-u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o)}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o+u)}),e[e.length-1])),t},cuttingLinePath$m=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{tongueHeight:o,receptionLocation:i,errorLength:g,tongueLinkWidth:d,heightDiff:r}=l,f=new Buckle(t,l),{buckleTongueLength:L,buckleTongueWidth:T}=f;function x(){const c=[],m=new SvgPathBuilder().moveTo(()=>(c.push({x:n-g,y:o+d-i}),c[c.length-1]));return TopLeftBigTongue(m,c,t),TopRightEar(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x+u+(e/2-L/2),y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x+L,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-L/2),y:c[c.length-1].y}),c[c.length-1])),RightSticky(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x-(e/2-L/2),y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x-L,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x-(e/2-L/2)-u,y:c[c.length-1].y}),c[c.length-1])),BottomRightEar(m,c,t),bottomRightBigTongue(m,c,t),BottomLeftEar(m,c,t),TopLeftEar(m,c,t),MotherLock(m,c,t).moveTo(()=>(c.push({x:c[0].x+(e/2-T/2),y:o}),c[c.length-1])),topPlugHole$2(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-L/2),y:c[0].y+r}),c[c.length-1])),topPlugTongue$2(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+(e/2-T/2),y:c[0].y+s+d-i}),c[c.length-1])),bottomPlugHole(m,c,t,f).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-L/2),y:c[0].y+s-r}),c[c.length-1])),bottomPlugTongue(m,c,t,f),{path:m.build(),actionArray:c,pathLine:m}}return{returnPath:x().path,actionArray:x().actionArray,pathLine:x().pathLine}},foldLineoordinates$m=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$m(t).actionArray,o=new ButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,tongueLinkWidth:f}=o,L=new Buckle(t,o),{buckleTongueWidth:T,buckleTongueLength:x,buckleTongueHeightIn:c,buckleTongueHeightInDiff:m}=L;return{foldLineObj:{line1:{x1:0,y1:l[0].y+g,x2:l[0].x-d,y2:l[0].y+g},line2:{x1:0,y1:l[0].y+s-g,x2:l[0].x-d,y2:l[0].y+s-g},line3:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s},line4_1:{x1:l[0].x+r,y1:l[2].y+i,x2:l[0].x+(e/2-T/2),y2:l[2].y+i},line4_2:{x1:l[0].x+(e/2-T/2)+T,y1:l[2].y+i,x2:l[0].x+e-r,y2:l[2].y+i},line5:{x1:l[0].x,y1:l[0].y,x2:l[0].x+e,y2:l[0].y},line6:{x1:l[0].x,y1:l[0].y+s,x2:l[0].x+e,y2:l[0].y+s},line7_1:{x1:l[42].x+r,y1:l[42].y-i,x2:l[0].x+(e/2-T/2),y2:l[42].y-i},line7_2:{x1:l[0].x+(e/2-T/2)+T,y1:l[42].y-i,x2:l[42].x+e-r,y2:l[42].y-i},line8:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+s},line9:{x1:l[10].x,y1:l[0].y+g,x2:l[17].x,y2:l[0].y+g},line10:{x1:l[10].x,y1:l[0].y+s-g,x2:l[17].x,y2:l[0].y+s-g},line11:{x1:l[17].x+u,y1:l[0].y+g,x2:l[17].x+u,y2:l[0].y+s-g},line12:{x1:l[17].x+u+e,y1:l[0].y+g,x2:l[17].x+u+e,y2:l[0].y+s-g},line13_1:{x1:l[0].x+e+n+(e/2-x/2),y1:l[0].y+g,x2:l[0].x+e+n+(e/2-x/2)+x,y2:l[0].y+g},line13_2:{x1:l[0].x+e+n+(e/2-x/2),y1:l[0].y+g+(c-m),x2:l[0].x+e+n+(e/2-x/2)+x,y2:l[0].y+g+(c-m)},line14_1:{x1:l[0].x+e+n+(e/2-x/2),y1:l[0].y+s-g,x2:l[0].x+e+n+(e/2-x/2)+x,y2:l[0].y+s-g},line14_2:{x1:l[0].x+e+n+(e/2-x/2),y1:l[0].y+s-g-(c-m),x2:l[0].x+e+n+(e/2-x/2)+x,y2:l[0].y+s-g-(c-m)}}}},bleedingLinePath$m=t=>{function e(){const n=cuttingLinePath$m(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$m=t=>{function e(){const n=cuttingLinePath$m(t).pathLine;n.actionSplice(21,2);let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},useBuckleSameReversePluginLockPath={mmToPt,cuttingLinePath:cuttingLinePath$m,foldLineoordinates:foldLineoordinates$m,bleedingLinePath:bleedingLinePath$m,previewBleedingLinePath:previewBleedingLinePath$m};registerBox({type:"BuckleSameReversePluginLockBox",name:"普通双插盒(同侧) + 插扣",group:"card",categoryId:"double-interlock",component:()=>__vitePreload(()=>import("./index-B_JOSAKO.js"),__vite__mapDeps([14,1,2])),pathApi:useBuckleSameReversePluginLockPath,rules:ReversePluginLockBoxRules$1,display:{label:"普通双插盒(同侧) + 插扣",index:19,imgSrc:"./defaultDlate/普通双插盒(同侧) + 插扣.svg",disabled:!1}});class SelfLocking extends ButtonBottom{constructor(e){super(e),this._downAngle=45,this._lockAngle=83,this._selfLockLength=15,this._selfLockXX=3,this._selfLockR=1,this._mainLockSlotBX2=6.78,this._mainLockSlotBX1=6.41,this._mainLockSlotBR=.71,this._mainLockSlotAngleLeft=60,this._mainLockSlotAngleRight=45,this._subordinateSlotR=.76,this._subordinateSlotAngleLeft=83,this._subordinateSlotAngleRight=45,this.initSelfLockLength(e.boxWidth),this.initDownYY(),this.initLockYY(e.boxWidth),this.initLockXX(),this.initMainLockLength(e.boxLength),this.initMainLockMidXX(e.boxLength,e.boxWidth),this.initMainLockLeftXX(e.boxWidth),this.initMainLockSlotAngle(),this.initMainLockSlotXXLeft(),this.initMainLockSlotYYLeft(),this.initMainLockSlotXXRight(),this.initMainLockSlotYYRight(),this.initMainLockSlotBX2X(),this.initMainLockSlotBX2Y(),this.initMainLockSlotBX1X(),this.initMainLockSlotBX1Y(),this.initMainSlotLinkLockY(),this.initMainSlotLinkLockX(),this.initMainLockSlotBRX(),this.initMainLockSlotBRY(),this.initSubordinate60Y(e.boxWidth),this.initSubordinate60X(),this.initSubordinateSlotXXLeft(),this.initSubordinateSlotYYLeft(),this.initSubordinateSlotXXRight(),this.initSubordinateSlotYYRight(),this.initSubordinateSlotXXArc(),this.initSubordinateSlotYYArc(),this.initSubordinate45Y(e.boxWidth),this.initSubordinate45X(e.boxWidth),this.initSubordinateSlotXXShort(e.boxWidth),this.initSelfLockXR(),this.initSelfLockYR()}initSubordinate45Y(e){this._subordinate45Y=e/2-this._subordinateSlotYYRight}initSubordinate45X(e){this._subordinate45X=e/2-this._subordinateSlotYYRight}initDownYY(){this._downYY=this.hollowLineLength/Math.tan(this._downAngle*Math.PI/180)}initLockXX(){this._lockXX=this._lockYY/Math.tan(this._lockAngle*Math.PI/180)}initMainLockLength(e){this._mainLockLength=e/2-this._lockXX-(this._selfLockLength-this._selfLockXX)}initMainLockMidXX(e,n){this._mainLockMidXX=e/2-n/2}initMainLockLeftXX(e){this._mainLockLeftXX=e/2-this._selfLockLength-this._lockXX}initMainLockSlotAngle(){this._mainLockSlotAngle=180-this._lockAngle-this._downAngle}initMainLockSlotXXLeft(){this._mainLockSlotXXLeft=this._mainLockSlotBR*Math.sin(this._mainLockSlotAngleLeft*Math.PI/180)}initMainLockSlotYYLeft(){this._mainLockSlotYYLeft=this._mainLockSlotBR-this._mainLockSlotBR*Math.cos(this._mainLockSlotAngleLeft*Math.PI/180)}initMainLockSlotXXRight(){this._mainLockSlotXXRight=this._mainLockSlotBR*Math.sin(this._mainLockSlotAngleRight*Math.PI/180)}initMainLockSlotYYRight(){this._mainLockSlotYYRight=this._mainLockSlotBR-this._mainLockSlotBR*Math.cos(this._mainLockSlotAngleRight*Math.PI/180)}initLockYY(e){this._lockYY=e/2+this._selfLockLength}initMainSlotLinkLockX(){this._mainSlotLinkLockX=this._mainSlotLinkLockY/Math.tan(this._lockAngle*Math.PI/180)}initMainLockSlotBRX(){this._mainLockSlotBRX=this._mainLockSlotXXLeft+this._mainLockSlotXXRight}initMainLockSlotBRY(){this._mainLockSlotBRY=this._mainLockSlotYYLeft-this._mainLockSlotYYRight}initSubordinate60Y(e){this._subordinate60Y=e/2-this._mainLockSlotYYLeft}initSubordinate60X(){this._subordinate60X=this._subordinate60Y/Math.tan(this._mainLockSlotAngleLeft*Math.PI/180)}initSubordinateSlotXXLeft(){this._subordinateSlotXXLeft=this._subordinateSlotR*Math.sin(this._subordinateSlotAngleLeft*Math.PI/180)}initSubordinateSlotYYLeft(){this._subordinateSlotYYLeft=this._subordinateSlotR-this._subordinateSlotR*Math.cos(this._subordinateSlotAngleLeft*Math.PI/180)}initSubordinateSlotXXRight(){this._subordinateSlotXXRight=this._subordinateSlotR*Math.sin(this._subordinateSlotAngleRight*Math.PI/180)}initSubordinateSlotYYRight(){this._subordinateSlotYYRight=this._subordinateSlotR-this._subordinateSlotR*Math.cos(this._subordinateSlotAngleRight*Math.PI/180)}initSubordinateSlotXXArc(){this._subordinateSlotXXArc=this._subordinateSlotXXLeft+this._subordinateSlotXXRight}initSubordinateSlotYYArc(){this._subordinateSlotYYArc=this._subordinateSlotYYLeft-this._subordinateSlotYYRight}initMainSlotLinkLockY(){this._mainSlotLinkLockY=this._lockYY-this._mainLockSlotYYRight-this._mainLockSlotBX2Y-this._mainLockSlotBX1Y}initMainLockSlotBX2X(){this._mainLockSlotBX2X=this._mainLockSlotBX2*Math.cos(this._mainLockSlotAngleRight*Math.PI/180)}initMainLockSlotBX2Y(){this._mainLockSlotBX2Y=this._mainLockSlotBX2*Math.sin(this._mainLockSlotAngleRight*Math.PI/180)}initMainLockSlotBX1X(){this._mainLockSlotBX1X=this._mainLockSlotBX1*Math.sin(this._mainLockSlotAngleRight*Math.PI/180)}initMainLockSlotBX1Y(){this._mainLockSlotBX1Y=this._mainLockSlotBX1*Math.cos(this._mainLockSlotAngleRight*Math.PI/180)}initSubordinateSlotXXShort(e){this._subordinateSlotXXShort=e/2-e/2/Math.tan(this._mainLockSlotAngleLeft*Math.PI/180)}initSelfLockLength(e){this._selfLockLength=e/4>15?15:e/4}initSelfLockXR(){this._selfLockXR=this._selfLockR-this._selfLockR*Math.cos(45*Math.PI/180)}initSelfLockYR(){this._selfLockYR=this._selfLockR*Math.sin(45*Math.PI/180)}get lockAngle(){return this._lockAngle}get downAngle(){return this._downAngle}get downYY(){return this._downYY}get lockXX(){return this._lockXX}get lockYY(){return this._lockYY}get selfLockLength(){return this._selfLockLength}get selfLockXX(){return this._selfLockXX}get mainLockLength(){return this._mainLockLength}get mainLockMidXX(){return this._mainLockMidXX}get mainLockLeftXX(){return this._mainLockLeftXX}get mainLockSlotBX2(){return this._mainLockSlotBX2}get mainLockSlotAngle(){return this._mainLockSlotAngle}get mainLockSlotAngleLeft(){return this._mainLockSlotAngleLeft}get mainLockSlotAngleRight(){return this._mainLockSlotAngleRight}get mainLockSlotXXLeft(){return this._mainLockSlotXXLeft}get mainLockSlotYYLeft(){return this._mainLockSlotYYLeft}get mainLockSlotXXRight(){return this._mainLockSlotXXRight}get mainLockSlotYYRight(){return this._mainLockSlotYYRight}get mainLockSlotBR(){return this._mainLockSlotBR}get mainSlotLinkLockY(){return this._mainSlotLinkLockY}get mainSlotLinkLockX(){return this._mainSlotLinkLockX}get mainLockSlotBRX(){return this._mainLockSlotBRX}get mainLockSlotBRY(){return this._mainLockSlotBRY}get subordinate60Y(){return this._subordinate60Y}get subordinate60X(){return this._subordinate60X}get subordinate45Y(){return this._subordinate45Y}get subordinate45X(){return this._subordinate45X}get subordinateSlotR(){return this._subordinateSlotR}get subordinateSlotAngleLeft(){return this._subordinateSlotAngleLeft}get subordinateSlotAngleRight(){return this._subordinateSlotAngleRight}get subordinateSlotXXLeft(){return this._subordinateSlotXXLeft}get subordinateSlotYYLeft(){return this._subordinateSlotYYLeft}get subordinateSlotXXRight(){return this._subordinateSlotXXRight}get subordinateSlotYYRight(){return this._subordinateSlotYYRight}get subordinateSlotXXArc(){return this._subordinateSlotXXArc}get subordinateSlotYYArc(){return this._subordinateSlotYYArc}get subordinateSlotXXShort(){return this._subordinateSlotXXShort}get mainLockSlotBX1(){return this._mainLockSlotBX1}get mainLockSlotBX1X(){return this._mainLockSlotBX1X}get mainLockSlotBX1Y(){return this._mainLockSlotBX1Y}get mainLockSlotBX2X(){return this._mainLockSlotBX2X}get mainLockSlotBX2Y(){return this._mainLockSlotBX2Y}get selfLockR(){return this._selfLockR}get selfLockXR(){return this._selfLockXR}get selfLockYR(){return this._selfLockYR}}const topLeftBigTongue$6=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new SelfLocking(n);return t.lineTo(()=>(e.push({x:e[0].x,y:e[0].y-d}),e[1])).lineTo(()=>(e.push({x:e[1].x+s,y:e[1].y}),e[2])).lineTo(()=>(e.push({x:e[2].x,y:g}),e[3])).arcTo(g,g,0,0,1,()=>(e.push({x:e[3].x+g,y:e[3].y-g}),e[4])).lineTo(()=>(e.push({x:e[4].x+o-2*g,y:e[4].y}),e[5])).arcTo(g,g,0,0,1,()=>(e.push({x:e[5].x+g,y:e[5].y+g}),e[6])).lineTo(()=>(e.push({x:e[6].x,y:e[6].y+l-i-g}),e[7])).lineTo(()=>(e.push({x:e[7].x+s,y:e[7].y}),e[8])).lineTo(()=>(e.push({x:e[8].x,y:e[8].y+d}),e[9])),t},topRightEar$6=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{slotBottomWidth:s,slotWidth:u,radiusTongueAr:l,xLength13:o,yLength13:i,lockYLength:g,lockSLength:d,radiusTongueRr:r,radiusTongueRrX:f,heightDiff:L,sideWingLength:T,tongueTopLength:x}=new SelfLocking(n);return t.arcTo(r,r,0,0,0,()=>(e.push({x:e[9].x+f,y:e[9].y+L}),e[10])).lineTo(()=>(e.push({x:e[9].x+s,y:e[10].y-s}),e[11])).lineTo(()=>(e.push({x:e[9].x+u,y:e[10].y-T}),e[12])).lineTo(()=>(e.push({x:e[12].x+x,y:e[12].y}),e[13])).arcTo(l,l,0,0,1,()=>(e.push({x:e[13].x+.974*l,y:e[13].y+.775*l}),e[14])).lineTo(()=>(e.push({x:e[14].x+o,y:e[14].y+i}),e[15])).lineTo(()=>(e.push({x:e[15].x+g,y:e[15].y+g}),e[16])).lineTo(()=>(e.push({x:e[16].x,y:e[16].y+d}),e[17])),t},rightSticky$3=(t,e,n)=>{const s=n.boxHeight,u=new SelfLocking(n),{hollowLineLength:l,hollowLineY:o,heightDiff:i,radiusGT:g,receptionLocationBR:d,downMoveRY:r}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s-i-o-l)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+l}),e[e.length-1])),t},mainSlot$3=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{lockXX:u,lockYY:l,mainLockLength:o,selfLockLength:i,selfLockXX:g,mainLockMidXX:d,mainLockLeftXX:r,mainSlotLinkLockY:f,mainSlotLinkLockX:L,mainLockSlotBX2X:T,mainLockSlotBX2Y:x,mainLockSlotBX1X:c,mainLockSlotBX1Y:m,mainLockSlotBRX:y,mainLockSlotBRY:O,mainLockSlotBR:b,selfLockR:j,selfLockXR:F,selfLockYR:k}=s;return t.lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-g-F),y:e[e.length-1].y-(i-g-F)}),e[e.length-1])).arcTo(j,j,0,0,1,()=>(e.push({x:e[e.length-1].x-F,y:e[e.length-1].y-k}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-(k-F))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).arcTo(b,b,0,0,0,()=>(e.push({x:e[e.length-1].x-y,y:e[e.length-1].y+O}),e[e.length-1])),t},topLeftEar$6=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,radiusTongueAr:g,xLength13:d,yLength13:r,lockYLength:f,lockSLength:L}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*g,y:e[e.length-1].y-.775*g}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x-i,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i-o,y:e[0].y+l-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x-u,y:e[e.length-1].y+o}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[0].x,y:e[0].y}),e[e.length-1])),t},motherLock$3=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new ButtonBottom(n);return t.moveTo(()=>(e.push({x:e[2].x,y:e[1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},rightSubordinateSlot$3=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{subordinate60Y:u,subordinate60X:l,subordinateSlotXXShort:o,subordinate45Y:i,subordinate45X:g,subordinateSlotXXArc:d,subordinateSlotYYArc:r,subordinateSlotR:f}=s;return t.lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+u}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-i}),e[e.length-1])).arcTo(f,f,0,0,0,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+r}),e[e.length-1])),t},leftMainSlot$3=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{lockXX:u,lockYY:l,mainLockLength:o,selfLockLength:i,selfLockXX:g,mainLockMidXX:d,mainLockLeftXX:r,mainSlotLinkLockY:f,mainSlotLinkLockX:L,mainLockSlotBX2X:T,mainLockSlotBX2Y:x,mainLockSlotBX1X:c,mainLockSlotBX1Y:m,mainLockSlotBRX:y,mainLockSlotBRY:O,mainLockSlotBR:b,subordinateSlotXXArc:j,subordinateSlotYYLeft:F,subordinateSlotYYRight:k,lockAngle:_,selfLockR:ue,selfLockXR:re,selfLockYR:de}=s,he=F/Math.tan(_*Math.PI/180);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-he),y:e[e.length-1].y+(l-F)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(o-(j-k-he)),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-g-re),y:e[e.length-1].y-(i-g-re)}),e[e.length-1])).arcTo(ue,ue,0,0,1,()=>(e.push({x:e[e.length-1].x-re,y:e[e.length-1].y-de}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-(de-re))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).arcTo(b,b,0,0,0,()=>(e.push({x:e[e.length-1].x-y,y:e[e.length-1].y+O}),e[e.length-1])),t},leftSubordinateSlot$3=(t,e,n)=>{n.boxHeight;const s=n.boxWidth,u=new SelfLocking(n),{subordinate60Y:l,subordinate60X:o,subordinateSlotXXShort:i,subordinate45Y:g,subordinate45X:d,subordinateSlotXXArc:r,subordinateSlotYYArc:f,subordinateSlotR:L,errorLength:T}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-T),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s/2,y:e[e.length-1].y-s/2}),e[e.length-1])),t},topPlugHole$1=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue$1=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},cuttingLinePath$l=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new SelfLocking(t),{tongueHeight:o,receptionLocation:i,heightDiff:g,errorLength:d,tongueLinkWidth:r,hollowLineY:f}=l,L=new Buckle(t,l),{buckleTongueLength:T,buckleTongueWidth:x}=L;function c(){const m=[],y=new SvgPathBuilder().moveTo(()=>(m.push({x:n-d,y:o+r-i}),m[m.length-1]));return topLeftBigTongue$6(y,m,t),topRightEar$6(y,m,t).lineTo(()=>(m.push({x:m[m.length-1].x+(e/2-T/2+u),y:m[m.length-1].y}),m[m.length-1])).moveTo(()=>(m.push({x:m[m.length-1].x+T,y:m[m.length-1].y}),m[m.length-1])).lineTo(()=>(m.push({x:m[m.length-1].x+(e/2-T/2),y:m[m.length-1].y}),m[m.length-1])),rightSticky$3(y,m,t),mainSlot$3(y,m,t),rightSubordinateSlot$3(y,m,t),leftMainSlot$3(y,m,t),leftSubordinateSlot$3(y,m,t).lineTo(()=>(m.push({x:m[m.length-1].x,y:m[m.length-1].y-(s-g)}),m[m.length-1])),topLeftEar$6(y,m,t),motherLock$3(y,m,t).moveTo(()=>(m.push({x:m[1].x+(e/2-x/2),y:m[1].y+i}),m[m.length-1])),topPlugHole$1(y,m,t,L).moveTo(()=>(m.push({x:m[0].x+e+n+(e/2-T/2),y:m[0].y+g}),m[m.length-1])),topPlugTongue$1(y,m,t,L),{path:y.build(),actionArray:m,pathLine:y}}return{returnPath:c().path,actionArray:c().actionArray,pathLine:c().pathLine}},foldLineoordinates$l=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$l(t).actionArray,o=new SelfLocking(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,tongueLinkWidth:f,downMoveRY:L,receptionLocationBRX:T,mainLockSlotAngleLeft:x}=o,c=new Buckle(t,o),{buckleTongueLength:m,buckleTongueWidth:y,buckleTongueHeightIn:O,buckleTongueHeightInDiff:b}=c,j={line1:{x1:0,y1:l[0].y+g,x2:l[0].x-d,y2:l[0].y+g},line2:{x1:0,y1:l[0].y+s,x2:l[0].x,y2:l[0].y+s},line3:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s},line4_1:{x1:l[0].x+r,y1:l[1].y+i,x2:l[0].x+(e/2-y/2),y2:l[1].y+i},line4_2:{x1:l[0].x+(e/2-y/2)+y,y1:l[1].y+i,x2:l[0].x+e-r,y2:l[1].y+i},line5:{x1:l[0].x,y1:l[0].y,x2:l[0].x+e,y2:l[0].y},line6:{x1:l[0].x,y1:l[0].y+s,x2:l[0].x+e,y2:l[0].y+s},line7:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+s},line8:{x1:l[10].x,y1:l[0].y+g,x2:l[17].x,y2:l[0].y+g},line9:{x1:l[0].x+e,y1:l[0].y+s,x2:l[0].x+e+n,y2:l[0].y+s},line10:{x1:l[17].x+u,y1:l[0].y+g,x2:l[17].x+u,y2:l[0].y+s},line11:{x1:l[0].x+e+n,y1:l[0].y+s,x2:l[0].x+e+n+e,y2:l[0].y+s},line12:{x1:l[17].x+u+e,y1:l[0].y+g,x2:l[17].x+u+e,y2:l[0].y+s},line13_1:{x1:l[0].x+e+n+(e/2-m/2),y1:l[0].y+g,x2:l[0].x+e+n+(e/2-m/2)+m,y2:l[0].y+g},line13_2:{x1:l[0].x+e+n+(e/2-m/2),y1:l[0].y+g+(O-b),x2:l[0].x+e+n+(e/2-m/2)+m,y2:l[0].y+g+(O-b)},lineRightMainSlot_1:{x1:l[33].x-.49*Math.cos(45*Math.PI/180),y1:l[33].y+.49*Math.sin(45*Math.PI/180),x2:l[33].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y2:l[33].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180)},lineRightMainSlot_2:{x1:l[29].x-5*Math.cos(45*Math.PI/180),y1:l[29].y-5*Math.cos(45*Math.PI/180),x2:l[29].x,y2:l[29].y},lineLeftMainSlot_1:{x1:l[49].x-.49*Math.cos(45*Math.PI/180),y1:l[49].y+.49*Math.sin(45*Math.PI/180),x2:l[49].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y2:l[49].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180)},lineLeftMainSlot_2:{x1:l[45].x-5*Math.cos(45*Math.PI/180),y1:l[45].y-5*Math.cos(45*Math.PI/180),x2:l[45].x,y2:l[45].y}},F={lineRightMainSlot:{x1:l[33].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y1:l[33].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),x2:l[29].x-5*Math.cos(45*Math.PI/180),y2:l[29].y-5*Math.cos(45*Math.PI/180)},lineLeftMainSlot:{x1:l[49].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y1:l[49].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),x2:l[45].x-5*Math.cos(45*Math.PI/180),y2:l[45].y-5*Math.cos(45*Math.PI/180)}};return{foldLineObj:j,secondFoldLineObj:F}},bleedingLinePath$l=t=>{function e(){const n=cuttingLinePath$l(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$l=t=>{function e(){const n=cuttingLinePath$l(t).pathLine;n.actionSplice(21,2);let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},useBuckleSameSelfLockingPath={mmToPt,cuttingLinePath:cuttingLinePath$l,foldLineoordinates:foldLineoordinates$l,bleedingLinePath:bleedingLinePath$l,previewBleedingLinePath:previewBleedingLinePath$l},topLeftBigTongue$5=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new SelfLocking(n);return t.lineTo(()=>(e.push({x:e[0].x,y:e[0].y-d}),e[1])).lineTo(()=>(e.push({x:e[1].x+s,y:e[1].y}),e[2])).lineTo(()=>(e.push({x:e[2].x,y:g}),e[3])).arcTo(g,g,0,0,1,()=>(e.push({x:e[3].x+g,y:e[3].y-g}),e[4])).lineTo(()=>(e.push({x:e[4].x+o-2*g,y:e[4].y}),e[5])).arcTo(g,g,0,0,1,()=>(e.push({x:e[5].x+g,y:e[5].y+g}),e[6])).lineTo(()=>(e.push({x:e[6].x,y:e[6].y+l-i-g}),e[7])).lineTo(()=>(e.push({x:e[7].x+s,y:e[7].y}),e[8])).lineTo(()=>(e.push({x:e[8].x,y:e[8].y+d}),e[9])),t},topRightEar$5=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{slotBottomWidth:s,slotWidth:u,radiusTongueAr:l,xLength13:o,yLength13:i,lockYLength:g,lockSLength:d,radiusTongueRr:r,radiusTongueRrX:f,heightDiff:L,sideWingLength:T,tongueTopLength:x}=new SelfLocking(n);return t.arcTo(r,r,0,0,0,()=>(e.push({x:e[9].x+f,y:e[9].y+L}),e[10])).lineTo(()=>(e.push({x:e[9].x+s,y:e[10].y-s}),e[11])).lineTo(()=>(e.push({x:e[9].x+u,y:e[10].y-T}),e[12])).lineTo(()=>(e.push({x:e[12].x+x,y:e[12].y}),e[13])).arcTo(l,l,0,0,1,()=>(e.push({x:e[13].x+.974*l,y:e[13].y+.775*l}),e[14])).lineTo(()=>(e.push({x:e[14].x+o,y:e[14].y+i}),e[15])).lineTo(()=>(e.push({x:e[15].x+g,y:e[15].y+g}),e[16])).lineTo(()=>(e.push({x:e[16].x,y:e[16].y+d}),e[17])),t},rightSticky$2=(t,e,n)=>{const s=n.boxHeight,u=new SelfLocking(n),{hollowLineLength:l,hollowLineY:o,heightDiff:i,radiusGT:g,receptionLocationBR:d,downMoveRY:r}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s-i-o-l)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+l}),e[e.length-1])),t},mainSlot$2=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{lockXX:u,lockYY:l,mainLockLength:o,selfLockLength:i,selfLockXX:g,mainLockMidXX:d,mainLockLeftXX:r,mainSlotLinkLockY:f,mainSlotLinkLockX:L,mainLockSlotBX2X:T,mainLockSlotBX2Y:x,mainLockSlotBX1X:c,mainLockSlotBX1Y:m,mainLockSlotBRX:y,mainLockSlotBRY:O,mainLockSlotBR:b,selfLockR:j,selfLockXR:F,selfLockYR:k}=s;return t.lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-g-F),y:e[e.length-1].y-(i-g-F)}),e[e.length-1])).arcTo(j,j,0,0,1,()=>(e.push({x:e[e.length-1].x-F,y:e[e.length-1].y-k}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-(k-F))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).arcTo(b,b,0,0,0,()=>(e.push({x:e[e.length-1].x-y,y:e[e.length-1].y+O}),e[e.length-1])),t},topLeftEar$5=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,radiusTongueAr:g,xLength13:d,yLength13:r,lockYLength:f,lockSLength:L}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*g,y:e[e.length-1].y-.775*g}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x-i,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i-o,y:e[0].y+l-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x-u,y:e[e.length-1].y+o}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[0].x,y:e[0].y}),e[e.length-1])),t},motherLock$2=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new ButtonBottom(n);return t.moveTo(()=>(e.push({x:e[2].x,y:e[1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},rightSubordinateSlot$2=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{subordinate60Y:u,subordinate60X:l,subordinateSlotXXShort:o,subordinate45Y:i,subordinate45X:g,subordinateSlotXXArc:d,subordinateSlotYYArc:r,subordinateSlotR:f}=s;return t.lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+u}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-i}),e[e.length-1])).arcTo(f,f,0,0,0,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+r}),e[e.length-1])),t},leftMainSlot$2=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{lockXX:u,lockYY:l,mainLockLength:o,selfLockLength:i,selfLockXX:g,mainLockMidXX:d,mainLockLeftXX:r,mainSlotLinkLockY:f,mainSlotLinkLockX:L,mainLockSlotBX2X:T,mainLockSlotBX2Y:x,mainLockSlotBX1X:c,mainLockSlotBX1Y:m,mainLockSlotBRX:y,mainLockSlotBRY:O,mainLockSlotBR:b,subordinateSlotXXArc:j,subordinateSlotYYLeft:F,subordinateSlotYYRight:k,lockAngle:_,selfLockR:ue,selfLockXR:re,selfLockYR:de}=s,he=F/Math.tan(_*Math.PI/180);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-he),y:e[e.length-1].y+(l-F)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(o-(j-k-he)),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-g-re),y:e[e.length-1].y-(i-g-re)}),e[e.length-1])).arcTo(ue,ue,0,0,1,()=>(e.push({x:e[e.length-1].x-re,y:e[e.length-1].y-de}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-(de-re))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).arcTo(b,b,0,0,0,()=>(e.push({x:e[e.length-1].x-y,y:e[e.length-1].y+O}),e[e.length-1])),t},leftSubordinateSlot$2=(t,e,n)=>{n.boxHeight;const s=n.boxWidth,u=new SelfLocking(n),{subordinate60Y:l,subordinate60X:o,subordinateSlotXXShort:i,subordinate45Y:g,subordinate45X:d,subordinateSlotXXArc:r,subordinateSlotYYArc:f,subordinateSlotR:L,errorLength:T}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-T),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s/2,y:e[e.length-1].y-s/2}),e[e.length-1])),t},cuttingLinePath$k=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new SelfLocking(t),{tongueHeight:o,receptionLocation:i,heightDiff:g,errorLength:d,tongueLinkWidth:r,hollowLineY:f}=l;function L(){const T=[],x=new SvgPathBuilder().moveTo(()=>(T.push({x:n-d,y:o+r-i}),T[T.length-1]));return topLeftBigTongue$5(x,T,t),topRightEar$5(x,T,t).lineTo(()=>(T.push({x:T[T.length-1].x+(e+u),y:T[T.length-1].y}),T[T.length-1])),rightSticky$2(x,T,t),mainSlot$2(x,T,t),rightSubordinateSlot$2(x,T,t),leftMainSlot$2(x,T,t),leftSubordinateSlot$2(x,T,t).lineTo(()=>(T.push({x:T[T.length-1].x,y:T[T.length-1].y-(s-g)}),T[T.length-1])),topLeftEar$5(x,T,t),motherLock$2(x,T,t),{path:x.build(),actionArray:T,pathLine:x}}return{returnPath:L().path,actionArray:L().actionArray,pathLine:L().pathLine}},foldLineoordinates$k=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$k(t).actionArray,o=new SelfLocking(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,receptionLocationBR:f,downMoveRY:L,receptionLocationBRX:T,mainLockSlotAngleLeft:x}=o,c={line1:{x1:0,y1:l[0].y+g,x2:l[0].x-d,y2:l[0].y+g},line2:{x1:0,y1:l[0].y+s,x2:l[0].x,y2:l[0].y+s},line3:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s},line4:{x1:l[0].x+r,y1:l[2].y+i,x2:l[0].x+e-r,y2:l[2].y+i},line5:{x1:l[0].x,y1:l[0].y,x2:l[0].x+e,y2:l[0].y},line6:{x1:l[0].x,y1:l[0].y+s,x2:l[0].x+e,y2:l[0].y+s},line7:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+s},line8:{x1:l[10].x,y1:l[0].y+g,x2:l[17].x,y2:l[0].y+g},line9:{x1:l[0].x+e,y1:l[0].y+s,x2:l[0].x+e+n,y2:l[0].y+s},line10:{x1:l[17].x+u,y1:l[0].y+g,x2:l[17].x+u,y2:l[0].y+s},line11:{x1:l[0].x+e+n,y1:l[0].y+s,x2:l[0].x+e+n+e,y2:l[0].y+s},line12:{x1:l[17].x+u+e,y1:l[0].y+g,x2:l[17].x+u+e,y2:l[0].y+s},lineRightMainSlot_1:{x1:l[31].x-.49*Math.cos(45*Math.PI/180),y1:l[31].y+.49*Math.sin(45*Math.PI/180),x2:l[31].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y2:l[31].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180)},lineRightMainSlot_2:{x1:l[27].x-5*Math.cos(45*Math.PI/180),y1:l[27].y-5*Math.cos(45*Math.PI/180),x2:l[27].x,y2:l[27].y},lineLeftMainSlot_1:{x1:l[47].x-.49*Math.cos(45*Math.PI/180),y1:l[47].y+.49*Math.sin(45*Math.PI/180),x2:l[47].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y2:l[47].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180)},lineLeftMainSlot_2:{x1:l[43].x-5*Math.cos(45*Math.PI/180),y1:l[43].y-5*Math.cos(45*Math.PI/180),x2:l[43].x,y2:l[43].y}},m={lineRightMainSlot:{x1:l[31].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y1:l[31].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),x2:l[27].x-5*Math.cos(45*Math.PI/180),y2:l[27].y-5*Math.cos(45*Math.PI/180)},lineLeftMainSlot:{x1:l[47].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y1:l[47].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),x2:l[43].x-5*Math.cos(45*Math.PI/180),y2:l[43].y-5*Math.cos(45*Math.PI/180)}};return{foldLineObj:c,secondFoldLineObj:m}},bleedingLinePath$k=t=>{function e(){const n=cuttingLinePath$k(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$k=t=>{function e(){const n=cuttingLinePath$k(t).pathLine;n.actionSplice(19,2);let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},useSameSelfLockingPath={mmToPt,cuttingLinePath:cuttingLinePath$k,foldLineoordinates:foldLineoordinates$k,bleedingLinePath:bleedingLinePath$k,previewBleedingLinePath:previewBleedingLinePath$k};function SelfLockingBoxRules(t,e,n){let s=!0;if((expandWidth$5(n)>1e3||expandHeight$5(n)>700)&&(s=!1),t==="boxLength"&&e<40)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于40mm!",syncType:"boxLength",syncSize:40};if(t==="boxWidth"&&e<30)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于30mm!",syncType:"boxWidth",syncSize:30};if(t==="boxWidth"&&e>n.boxLength)return{validVal:!1,msg:"尺寸检查未通过,宽度不能大于长度!",syncType:""};if(t==="boxLength"&&e<n.boxWidth)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于宽度!",syncType:"boxWidth"};if(t==="boxLength"&&e<n.boxWidth*1.25)return{validVal:!1,msg:"尺寸检查未通过,长度要大于等于宽度的1.25倍!",syncType:"boxLength",syncSize:n.boxWidth*1.25};if(t==="boxWidth"&&e>n.boxLength*.8)return{validVal:!1,msg:"尺寸检查未通过,宽度要小于等于长度的0.8倍!",syncType:"boxWidth",syncSize:n.boxLength*.8};if(s){if(t==="boxHeight"&&e<20)return{validVal:!1,msg:"尺寸检查未通过,高度不能小于20mm!",syncType:"boxHeight",syncSize:20}}else return{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1000*700mm!",syncType:""};return{validVal:!0,msg:"success",syncType:""}}const expandWidth$5=t=>{const e=useSameSelfLockingPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.x)),s=Math.min(...e.map(u=>u.x));return n-s},expandHeight$5=t=>{const e=useSameSelfLockingPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.y)),s=Math.min(...e.map(u=>u.y));return n-s};registerBox({type:"BuckleSameSelfLockingBox",name:"普通自锁底盒(同侧) + 插扣",group:"card",categoryId:"self-locking",component:()=>__vitePreload(()=>import("./index-C6V82w4o.js"),__vite__mapDeps([15,1,2])),pathApi:useBuckleSameSelfLockingPath,rules:SelfLockingBoxRules,display:{label:"普通自锁底盒(同侧) + 插扣",index:27,imgSrc:"./defaultDlate/普通自锁底盒(同侧) + 插扣1.svg",disabled:!1}});const topLeftBigTongue$4=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d,heightDiff:r}=new SelfLocking(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:g}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-2*g,y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-i-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d+r}),e[e.length-1])),t},topRightEar$4=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,radiusTongueAr:g,xLength13:d,yLength13:r,lockYLength:f,lockSLength:L,tongueTopLength:T,sideWingLength:x}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*g,y:e[e.length-1].y-.775*g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+T,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i-o,y:e[e.length-1].y+x-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(o-u),y:e[e.length-1].y+o}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y-l}),e[e.length-1])),t},rightSticky$1=(t,e,n)=>{const s=n.boxHeight,u=new SelfLocking(n),{hollowLineLength:l,hollowLineY:o,heightDiff:i,radiusGT:g,receptionLocationBR:d,downMoveRY:r}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s-i-o-l)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+l}),e[e.length-1])),t},mainSlot$1=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{lockXX:u,lockYY:l,mainLockLength:o,selfLockLength:i,selfLockXX:g,mainLockMidXX:d,mainLockLeftXX:r,mainSlotLinkLockY:f,mainSlotLinkLockX:L,mainLockSlotBX2X:T,mainLockSlotBX2Y:x,mainLockSlotBX1X:c,mainLockSlotBX1Y:m,mainLockSlotBRX:y,mainLockSlotBRY:O,mainLockSlotBR:b,selfLockR:j,selfLockXR:F,selfLockYR:k}=s;return t.lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-g-F),y:e[e.length-1].y-(i-g-F)}),e[e.length-1])).arcTo(j,j,0,0,1,()=>(e.push({x:e[e.length-1].x-F,y:e[e.length-1].y-k}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-(k-F))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).arcTo(b,b,0,0,0,()=>(e.push({x:e[e.length-1].x-y,y:e[e.length-1].y+O}),e[e.length-1])),t},topLeftEar$4=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{slotBottomWidth:u,slotWidth:l,radiusTongueAr:o,xLength13:i,yLength13:g,lockYLength:d,lockSLength:r,radiusTongueRr:f,radiusTongueRrX:L,heightDiff:T,sideWingLength:x,tongueTopLength:c,errorLength:m}=new SelfLocking(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x+(u-L),y:e[e.length-1].y-u}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-u),y:e[e.length-1].y-(x-u)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(c-m+L),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*o,y:e[e.length-1].y+.775*o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])),t},motherLock$1=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new ButtonBottom(n);return t.moveTo(()=>(e.push({x:e[13].x,y:e[13].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[18].x,y:e[18].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},rightSubordinateSlot$1=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{subordinate60Y:u,subordinate60X:l,subordinateSlotXXShort:o,subordinate45Y:i,subordinate45X:g,subordinateSlotXXArc:d,subordinateSlotYYArc:r,subordinateSlotR:f}=s;return t.lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+u}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-i}),e[e.length-1])).arcTo(f,f,0,0,0,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+r}),e[e.length-1])),t},leftMainSlot$1=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{lockXX:u,lockYY:l,mainLockLength:o,selfLockLength:i,selfLockXX:g,mainLockMidXX:d,mainLockLeftXX:r,mainSlotLinkLockY:f,mainSlotLinkLockX:L,mainLockSlotBX2X:T,mainLockSlotBX2Y:x,mainLockSlotBX1X:c,mainLockSlotBX1Y:m,mainLockSlotBRX:y,mainLockSlotBRY:O,mainLockSlotBR:b,subordinateSlotXXArc:j,subordinateSlotYYLeft:F,subordinateSlotYYRight:k,lockAngle:_,selfLockR:ue,selfLockXR:re,selfLockYR:de}=s,he=F/Math.tan(_*Math.PI/180);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-he),y:e[e.length-1].y+(l-F)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(o-(j-k-he)),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-g-re),y:e[e.length-1].y-(i-g-re)}),e[e.length-1])).arcTo(ue,ue,0,0,1,()=>(e.push({x:e[e.length-1].x-re,y:e[e.length-1].y-de}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-(de-re))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).arcTo(b,b,0,0,0,()=>(e.push({x:e[e.length-1].x-y,y:e[e.length-1].y+O}),e[e.length-1])),t},leftSubordinateSlot$1=(t,e,n)=>{n.boxHeight;const s=n.boxWidth,u=new SelfLocking(n),{subordinate60Y:l,subordinate60X:o,subordinateSlotXXShort:i,subordinate45Y:g,subordinate45X:d,subordinateSlotXXArc:r,subordinateSlotYYArc:f,subordinateSlotR:L,errorLength:T}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-T),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s/2,y:e[e.length-1].y-s/2}),e[e.length-1])),t},topPlugHole=(t,e,n,s)=>{const{buckleTongueWidth:u,buckleTopLength:l,buckleLowPointHeightDiffX:o,buckleLowPointHeightDiff:i,buckleHeightDiffX:g,buckleHeightDiff:d,buckleRadius:r}=s;n.boxHeight,n.thickness;const f=e.length-1;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g+o,y:e[e.length-1].y+d+i}),e[e.length-1])).moveTo(()=>(e.push({x:e[f].x+u/2-r,y:e[f].y-d}),e[e.length-1])).arcTo(r,r,0,0,0,()=>(e.push({x:e[e.length-1].x+2*r,y:e[e.length-1].y}),e[e.length-1])),t},topPlugTongue=(t,e,n,s)=>{const{buckleTongueHeightIn:u,buckleTongueHeight:l,buckleTongueRadius:o,buckleTongueLength:i}=s,g=e.length-1;return t.lineTo(()=>(e.push({x:e[g].x,y:e[g].y+u}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-o)}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-2*o),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-o+u)}),e[e.length-1])),t},cuttingLinePath$j=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new SelfLocking(t),o=new Buckle(t,l),{buckleTongueLength:i,buckleTongueWidth:g}=o,{tongueHeight:d,receptionLocation:r,heightDiff:f,errorLength:L,tongueLinkWidth:T}=l;function x(){const c=[],m=new SvgPathBuilder().moveTo(()=>(c.push({x:n-L,y:d+T-r+f}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-i/2),y:c[c.length-1].y}),c[c.length-1])).moveTo(()=>(c.push({x:c[c.length-1].x+i,y:c[c.length-1].y}),c[c.length-1])).lineTo(()=>(c.push({x:c[c.length-1].x+(e/2-i/2)+u,y:c[c.length-1].y}),c[c.length-1]));return topRightEar$4(m,c,t),topLeftBigTongue$4(m,c,t),rightSticky$1(m,c,t),mainSlot$1(m,c,t),rightSubordinateSlot$1(m,c,t),leftMainSlot$1(m,c,t),leftSubordinateSlot$1(m,c,t).lineTo(()=>(c.push({x:c[c.length-1].x,y:c[c.length-1].y-(s-f)}),c[c.length-1])),topLeftEar$4(m,c,t),motherLock$1(m,c,t).moveTo(()=>(c.push({x:c[0].x+e+n+(e/2-g/2),y:c[0].y-f-T+r}),c[c.length-1])),topPlugHole(m,c,t,o).moveTo(()=>(c.push({x:c[0].x+(e/2-i/2),y:c[0].y}),c[c.length-1])),topPlugTongue(m,c,t,o),{path:m.build(),actionArray:c,pathLine:m}}return{returnPath:x().path,actionArray:x().actionArray,pathLine:x().pathLine}},foldLineoordinates$j=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$j(t).actionArray,o=new SelfLocking(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,receptionLocationBR:f,downMoveRY:L,receptionLocationBRX:T,mainLockSlotAngleLeft:x}=o,{buckleTongueWidth:c,buckleTongueLength:m,buckleTongueHeightIn:y,buckleTongueHeightInDiff:O}=new Buckle(t,o),b={line1:{x1:0,y1:l[0].y,x2:l[0].x-u,y2:l[0].y},line2:{x1:0,y1:l[0].y+s-g,x2:l[0].x,y2:l[0].y+s-g},line3:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g},line4_1:{x1:l[12].x+r,y1:l[13].y+i,x2:l[12].x+(e/2-c/2),y2:l[13].y+i},line4_2:{x1:l[12].x+(e/2-c/2)+c,y1:l[13].y+i,x2:l[12].x+e-r,y2:l[13].y+i},line5:{x1:l[0].x+e+u,y1:l[0].y,x2:l[0].x+e+n-d,y2:l[0].y},line6:{x1:l[0].x,y1:l[0].y+s-g,x2:l[0].x+e,y2:l[0].y+s-g},line7:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+s-g},line8:{x1:l[12].x,y1:l[0].y-g,x2:l[19].x,y2:l[0].y-g},line9:{x1:l[0].x+e,y1:l[0].y+s-g,x2:l[0].x+e+n,y2:l[0].y+s-g},line10:{x1:l[19].x,y1:l[0].y,x2:l[19].x,y2:l[0].y+s-g},line11:{x1:l[0].x+e+n,y1:l[0].y+s-g,x2:l[0].x+e+n+e,y2:l[0].y+s-g},line12:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n,y2:l[0].y+s-g},line13_1:{x1:l[0].x+(e/2-m/2),y1:l[0].y,x2:l[0].x+(e/2-m/2)+m,y2:l[0].y},line13_2:{x1:l[0].x+(e/2-m/2),y1:l[0].y+(y-O),x2:l[0].x+(e/2-m/2)+m,y2:l[0].y+(y-O)},lineRightMainSlot_1:{x1:l[33].x-.49*Math.cos(45*Math.PI/180),y1:l[33].y+.49*Math.sin(45*Math.PI/180),x2:l[33].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y2:l[33].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180)},lineRightMainSlot_2:{x1:l[29].x-5*Math.cos(45*Math.PI/180),y1:l[29].y-5*Math.cos(45*Math.PI/180),x2:l[29].x,y2:l[29].y},lineLeftMainSlot_1:{x1:l[49].x-.49*Math.cos(45*Math.PI/180),y1:l[49].y+.49*Math.sin(45*Math.PI/180),x2:l[49].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y2:l[49].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180)},lineLeftMainSlot_2:{x1:l[45].x-5*Math.cos(45*Math.PI/180),y1:l[45].y-5*Math.cos(45*Math.PI/180),x2:l[45].x,y2:l[45].y}},j={lineRightMainSlot:{x1:l[33].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y1:l[33].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),x2:l[29].x-5*Math.cos(45*Math.PI/180),y2:l[29].y-5*Math.cos(45*Math.PI/180)},lineLeftMainSlot:{x1:l[49].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y1:l[49].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),x2:l[45].x-5*Math.cos(45*Math.PI/180),y2:l[45].y-5*Math.cos(45*Math.PI/180)}};return{foldLineObj:b,secondFoldLineObj:j}},bleedingLinePath$j=t=>{function e(){const n=cuttingLinePath$j(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$j=t=>{function e(){const n=cuttingLinePath$j(t).pathLine;n.actionSplice(21,2);let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},useBuckleSelfLockingPath={mmToPt,cuttingLinePath:cuttingLinePath$j,foldLineoordinates:foldLineoordinates$j,bleedingLinePath:bleedingLinePath$j,previewBleedingLinePath:previewBleedingLinePath$j};registerBox({type:"BuckleSelfLockingBox",name:"普通自锁底盒(异侧) + 插扣",group:"card",categoryId:"self-locking",component:()=>__vitePreload(()=>import("./index-3nNtLEuW.js"),__vite__mapDeps([16,1,2])),pathApi:useBuckleSelfLockingPath,rules:SelfLockingBoxRules,display:{label:"普通自锁底盒(异侧) + 插扣",index:26,imgSrc:"./defaultDlate/普通自锁底盒(异侧) + 插扣1.svg",disabled:!1}});const cuttingLinePath$i=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,radiusTongueCr:r,tongueBottomLength:f,radiusTongueRr:L,radiusTongueRrX:T,slotBottomWidth:x,slotWidth:c,sideWingLength:m,tongueTopLength:y,radiusTongueAr:O,xLength13:b,yLength13:j,lockSLength:F,errorLength:k,K2Length:_,motherLockLength:ue,lockYLength:re,M2Length:de,K3Height:he,radiusTongueK1r:w,receptionLocationBR:le,downMoveRY:V,receptionLocationBRX:Ce,K1Height:_e,downMoveRYK1:D,negativeBuckleWidthM:Ie,negativeBuckleNumber:Lt,radiusTongueK1rX:At,radiusTongueK1rY:ie,offsetX:Ve,overcutYLength:ze,tongueLinkWidth:z}=l;function Dt(){const v=[],S=new SvgPathBuilder().moveTo(()=>(v.push({x:o,y:i+z-g+d}),v[0])).lineTo(()=>(v.push({x:o,y:i-g}),v[1])).lineTo(()=>(v.push({x:o+u,y:v[1].y}),v[2])).lineTo(()=>(v.push({x:v[2].x,y:r}),v[3])).arcTo(r,r,0,0,1,()=>(v.push({x:v[3].x+r,y:v[3].y-r}),v[4])).lineTo(()=>(v.push({x:v[4].x+f-2*r,y:v[4].y}),v[5])).arcTo(r,r,0,0,1,()=>(v.push({x:v[5].x+r,y:v[5].y+r}),v[6])).lineTo(()=>(v.push({x:v[6].x,y:v[6].y+i-g-r}),v[7])).lineTo(()=>(v.push({x:v[7].x+u,y:v[7].y}),v[8])).lineTo(()=>(v.push({x:v[8].x,y:v[8].y+z}),v[9])).arcTo(L,L,0,0,0,()=>(v.push({x:v[9].x+T,y:v[9].y+d}),v[10])).lineTo(()=>(v.push({x:v[9].x+x,y:v[10].y-x}),v[11])).lineTo(()=>(v.push({x:v[9].x+c,y:v[10].y-m}),v[12])).lineTo(()=>(v.push({x:v[12].x+y,y:v[12].y}),v[13])).arcTo(O,O,0,0,1,()=>(v.push({x:v[13].x+.974*O,y:v[13].y+.775*O}),v[14])).lineTo(()=>(v.push({x:v[14].x+b,y:v[14].y+j}),v[15])).lineTo(()=>(v.push({x:v[15].x+re,y:v[15].y+re}),v[16])).lineTo(()=>(v.push({x:v[16].x,y:v[16].y+F}),v[17])).lineTo(()=>(v.push({x:v[17].x+e+2*u,y:v[17].y}),v[18])).lineTo(()=>(v.push({x:v[18].x,y:v[18].y-F}),v[19])).lineTo(()=>(v.push({x:v[19].x+re,y:v[19].y-re}),v[20])).lineTo(()=>(v.push({x:v[20].x+b,y:v[20].y-j}),v[21])).arcTo(O,O,0,0,1,()=>(v.push({x:v[21].x+.974*O,y:v[21].y-.775*O}),v[22])).lineTo(()=>(v.push({x:o+e+n+e+n-k-c,y:v[22].y}),v[23])).lineTo(()=>(v.push({x:v[23].x+c-x,y:v[18].y-x}),v[24])).lineTo(()=>(v.push({x:v[24].x+x,y:v[18].y}),v[25])).lineTo(()=>(v.push({x:v[25].x,y:v[25].y+s-d}),v[26])).arcTo(le,le,0,0,0,()=>(v.push({x:v[26].x-(le-Ce),y:v[26].y+V}),v[27])).lineTo(()=>(v.push({x:v[27].x,y:v[27].y+_+he-V}),v[28]));n<=50?S.lineTo(()=>(v.push({x:v[28].x-(n-k-(de-le)-w-(le-Ce)),y:v[28].y}),v[29])).arcTo(w,w,0,0,1,()=>(v.push({x:v[29].x-w,y:v[29].y-w}),v[30])).lineTo(()=>(v.push({x:v[30].x,y:v[30].y-(he-w)}),v[31])):S.lineTo(()=>(v.push({x:v[28].x-(n-k-(de-le)-(le-Ce))+Ve,y:v[28].y}),v[29])).arcTo(w,w,0,0,1,()=>(v.push({x:v[29].x-At,y:v[29].y-ie}),v[30])).lineTo(()=>(v.push({x:v[29].x-Ve,y:v[29].y-he}),v[31])),S.lineTo(()=>(v.push({x:v[31].x-(de-le-Ce),y:v[31].y-_}),v[32])).arcTo(le,le,0,0,0,()=>(v.push({x:v[32].x-(le+Ce),y:v[32].y+V}),v[33])).lineTo(()=>(v.push({x:v[33].x,y:v[33].y+_e+D-V}),v[34])).lineTo(()=>(v.push({x:v[34].x-((e-Ie)/2-w-le)+le/2,y:v[34].y}),v[35])).arcTo(w,w,0,0,1,()=>(v.push({x:v[35].x-w,y:v[35].y-w}),v[36])).lineTo(()=>(v.push({x:v[36].x,y:v[36].y-(_e-w)}),v[37]));function Ue(hn){const Oe=2*hn-1;for(let Fe=1;Fe<hn;Fe++)S.lineTo(()=>(v.push({x:v[v.length-1].x-(Ie/Oe+le),y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+(_e-w)}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie/Oe-2*w-le),y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1]));S.lineTo(()=>(v.push({x:v[v.length-1].x-Ie/Oe-le,y:v[v.length-1].y}),v[v.length-1]))}Lt===1?S.lineTo(()=>(v.push({x:v[37].x-(Ie+le),y:v[37].y}),v[38])):Ue(2),S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((e-Ie)/2-w-le)+le/2,y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(+_e+D-V)}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y-V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(de-le-Ce),y:v[v.length-1].y+_}),v[v.length-1])),n<=50?(S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+he-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])),S.lineTo(()=>(v.push({x:v[v.length-1].x-(n-le-w-(de-le)),y:v[v.length-1].y}),v[v.length-1]))):(S.lineTo(()=>(v.push({x:v[v.length-1].x+(v[31].x-v[30].x),y:v[v.length-1].y+(v[30].y-v[31].y)}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-At,y:v[v.length-1].y+ie}),v[v.length-1])),S.lineTo(()=>(v.push({x:v[9].x+le,y:v[v.length-1].y}),v[v.length-1]))),S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(+he+_-V)}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y-V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(e-(Ie-le)-2*Ce)/2,y:v[v.length-1].y+D}),v[v.length-1]));function M(hn){const Oe=2*hn-1;for(let Fe=1;Fe<hn;Fe++)S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((Ie-le)/Oe-2*w),y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie-le)/Oe,y:v[v.length-1].y}),v[v.length-1]));S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((Ie-le)/Oe-2*w),y:v[v.length-1].y}),v[v.length-1]))}return Lt===1?S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie-le)+2*w,y:v[v.length-1].y}),v[v.length-1])):M(2),S.arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(e-(Ie-le)-2*Ce)/2,y:v[v.length-1].y-D}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-Ce,y:v[v.length-1].y-(le-V)}),v[v.length-1])).lineTo(()=>(v.push({x:0,y:v[v.length-1].y-o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[0].y+o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-3].x,y:v[v.length-1].y-o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).closePath().moveTo(()=>(v.push({x:v[2].x,y:v[1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x+(ue-u),y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+u}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+g-u+ze}),v[v.length-1])).moveTo(()=>(v.push({x:v[7].x,y:v[7].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(ue-u),y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+u}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+g-u+ze}),v[v.length-1])),{path:S.build(),actionArray:v}}return{returnPath:Dt().path,actionArray:Dt().actionArray}},foldLineoordinates$i=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$i(t).actionArray,o=new ButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c}=o;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-(L-T)},line2:{x1:l[0].x+f,y1:l[0].y-g-(c-i),x2:l[0].x+e-f,y2:l[0].y-g-(c-i)},line3:{x1:l[0].x,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g},line4:{x1:l[0].x+e+d,y1:l[0].y,x2:l[0].x+e+n-u,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g+s-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+u,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+x,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g}}}},bleedingLinePath$i=t=>{function e(){const n=[];return{path:BleedGeneratorV2.getInstance().generate(cuttingLinePath$i(t).returnPath),actionArray:n}}return{returnPath:e().path,actionArray:e().actionArray}},previewBleedingLinePath$i=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,radiusTongueCr:r,tongueBottomLength:f,radiusTongueRr:L,radiusTongueRrX:T,slotBottomWidth:x,slotWidth:c,sideWingLength:m,tongueTopLength:y,radiusTongueAr:O,xLength13:b,yLength13:j,lockSLength:F,errorLength:k,K2Length:_,lockYLength:ue,M2Length:re,K3Height:de,radiusTongueK1r:he,receptionLocationBR:w,downMoveRY:le,receptionLocationBRX:V,K1Height:Ce,downMoveRYK1:_e,negativeBuckleWidthM:D,negativeBuckleNumber:Ie,radiusTongueK1rX:Lt,radiusTongueK1rY:At,offsetX:ie,tongueLinkWidth:Ve}=l;function ze(){const z=[],Dt=new SvgPathBuilder().moveTo(()=>(z.push({x:o,y:i+Ve-g+d}),z[0])).lineTo(()=>(z.push({x:o,y:i-g}),z[1])).lineTo(()=>(z.push({x:o+u,y:z[1].y}),z[2])).lineTo(()=>(z.push({x:z[2].x,y:r}),z[3])).arcTo(r,r,0,0,1,()=>(z.push({x:z[3].x+r,y:z[3].y-r}),z[4])).lineTo(()=>(z.push({x:z[4].x+f-2*r,y:z[4].y}),z[5])).arcTo(r,r,0,0,1,()=>(z.push({x:z[5].x+r,y:z[5].y+r}),z[6])).lineTo(()=>(z.push({x:z[6].x,y:z[6].y+i-g-r}),z[7])).lineTo(()=>(z.push({x:z[7].x+u,y:z[7].y}),z[8])).lineTo(()=>(z.push({x:z[8].x,y:z[8].y+Ve}),z[9])).arcTo(L,L,0,0,0,()=>(z.push({x:z[9].x+T,y:z[9].y+d}),z[10])).lineTo(()=>(z.push({x:z[9].x+x,y:z[10].y-x}),z[11])).lineTo(()=>(z.push({x:z[9].x+c,y:z[10].y-m}),z[12])).lineTo(()=>(z.push({x:z[12].x+y,y:z[12].y}),z[13])).arcTo(O,O,0,0,1,()=>(z.push({x:z[13].x+.974*O,y:z[13].y+.775*O}),z[14])).lineTo(()=>(z.push({x:z[14].x+b,y:z[14].y+j}),z[15])).lineTo(()=>(z.push({x:z[15].x+ue,y:z[15].y+ue}),z[16])).lineTo(()=>(z.push({x:z[16].x,y:z[16].y+F}),z[17])).lineTo(()=>(z.push({x:z[17].x+e+2*u,y:z[17].y}),z[18])).lineTo(()=>(z.push({x:z[18].x,y:z[18].y-F}),z[19])).lineTo(()=>(z.push({x:z[19].x+ue,y:z[19].y-ue}),z[20])).lineTo(()=>(z.push({x:z[20].x+b,y:z[20].y-j}),z[21])).arcTo(O,O,0,0,1,()=>(z.push({x:z[21].x+.974*O,y:z[21].y-.775*O}),z[22])).lineTo(()=>(z.push({x:o+e+n+e+n-k-c,y:z[22].y}),z[23])).lineTo(()=>(z.push({x:z[23].x+c-x,y:z[18].y-x}),z[24])).lineTo(()=>(z.push({x:z[24].x+x,y:z[18].y}),z[25])).lineTo(()=>(z.push({x:z[25].x,y:z[25].y+s-d}),z[26])).arcTo(w,w,0,0,0,()=>(z.push({x:z[26].x-(w-V),y:z[26].y+le}),z[27])).lineTo(()=>(z.push({x:z[27].x,y:z[27].y+_+de-le}),z[28]));n<=50?Dt.lineTo(()=>(z.push({x:z[28].x-(n-k-(re-w)-he-(w-V)),y:z[28].y}),z[29])).arcTo(he,he,0,0,1,()=>(z.push({x:z[29].x-he,y:z[29].y-he}),z[30])).lineTo(()=>(z.push({x:z[30].x,y:z[30].y-(de-he)}),z[31])):Dt.lineTo(()=>(z.push({x:z[28].x-(n-k-(re-w)-(w-V))+ie,y:z[28].y}),z[29])).arcTo(he,he,0,0,1,()=>(z.push({x:z[29].x-Lt,y:z[29].y-At}),z[30])).lineTo(()=>(z.push({x:z[29].x-ie,y:z[29].y-de}),z[31])),Dt.lineTo(()=>(z.push({x:z[31].x-(re-w-V),y:z[31].y-_}),z[32])).arcTo(w,w,0,0,0,()=>(z.push({x:z[32].x-(w+V),y:z[32].y+le}),z[33])).lineTo(()=>(z.push({x:z[33].x,y:z[33].y+Ce+_e-le}),z[34])).lineTo(()=>(z.push({x:z[34].x-((e-D)/2-he-w)+w/2,y:z[34].y}),z[35])).arcTo(he,he,0,0,1,()=>(z.push({x:z[35].x-he,y:z[35].y-he}),z[36])).lineTo(()=>(z.push({x:z[36].x,y:z[36].y-(Ce-he)}),z[37]));function v(Pt){const hn=2*Pt-1;for(let Oe=1;Oe<Pt;Oe++)Dt.lineTo(()=>(z.push({x:z[z.length-1].x-(D/hn+w),y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+(Ce-he)}),z[z.length-1])).arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-he,y:z[z.length-1].y+he}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(D/hn-2*he-w),y:z[z.length-1].y}),z[z.length-1])).arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-he,y:z[z.length-1].y-he}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-(Ce-he)}),z[z.length-1]));Dt.lineTo(()=>(z.push({x:z[z.length-1].x-D/hn-w,y:z[z.length-1].y}),z[z.length-1]))}Ie===1?Dt.lineTo(()=>(z.push({x:z[37].x-(D+w),y:z[37].y}),z[38])):v(2),Dt.lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+Ce-he}),z[z.length-1])).arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-he,y:z[z.length-1].y+he}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-((e-D)/2-he-w)+w/2,y:z[z.length-1].y}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-(+Ce+_e-le)}),z[z.length-1])).arcTo(w,w,0,0,0,()=>(z.push({x:z[z.length-1].x-(w+V),y:z[z.length-1].y-le}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(re-w-V),y:z[z.length-1].y+_}),z[z.length-1])),n<=50?(Dt.lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+de-he}),z[z.length-1])).arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-he,y:z[z.length-1].y+he}),z[z.length-1])),Dt.lineTo(()=>(z.push({x:z[z.length-1].x-(n-w-he-(re-w)),y:z[z.length-1].y}),z[z.length-1]))):(Dt.lineTo(()=>(z.push({x:z[z.length-1].x+(z[31].x-z[30].x),y:z[z.length-1].y+(z[30].y-z[31].y)}),z[z.length-1])).arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-Lt,y:z[z.length-1].y+At}),z[z.length-1])),Dt.lineTo(()=>(z.push({x:z[9].x+w,y:z[z.length-1].y}),z[z.length-1]))),Dt.lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-(+de+_-le)}),z[z.length-1])).arcTo(w,w,0,0,0,()=>(z.push({x:z[z.length-1].x-(w+V),y:z[z.length-1].y-le}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(e-(D-w)-2*V)/2,y:z[z.length-1].y+_e}),z[z.length-1]));function S(Pt){const hn=2*Pt-1;for(let Oe=1;Oe<Pt;Oe++)Dt.lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+Ce-he}),z[z.length-1])).arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-he,y:z[z.length-1].y+he}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-((D-w)/hn-2*he),y:z[z.length-1].y}),z[z.length-1])).arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-he,y:z[z.length-1].y-he}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-(Ce-he)}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(D-w)/hn,y:z[z.length-1].y}),z[z.length-1]));Dt.lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+Ce-he}),z[z.length-1])).arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-he,y:z[z.length-1].y+he}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-((D-w)/hn-2*he),y:z[z.length-1].y}),z[z.length-1]))}return Ie===1?Dt.lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y+Ce-he}),z[z.length-1])).arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-he,y:z[z.length-1].y+he}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(D-w)+2*he,y:z[z.length-1].y}),z[z.length-1])):S(2),Dt.arcTo(he,he,0,0,1,()=>(z.push({x:z[z.length-1].x-he,y:z[z.length-1].y-he}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x,y:z[z.length-1].y-(Ce-he)}),z[z.length-1])).lineTo(()=>(z.push({x:z[z.length-1].x-(e-(D-w)-2*V)/2,y:z[z.length-1].y-_e}),z[z.length-1])).arcTo(w,w,0,0,0,()=>(z.push({x:z[z.length-1].x-V,y:z[z.length-1].y-(w-le)}),z[z.length-1])).closePath(),{path:BleedGeneratorV2.getInstance().generate(Dt.build()),actionArray:z}}return{returnPath:ze().path}},useButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$i,foldLineoordinates:foldLineoordinates$i,bleedingLinePath:bleedingLinePath$i,previewBleedingLinePath:previewBleedingLinePath$i};function hollowLineLengthInit(t,e){if(e>=15&&e<=19)return e-4;if(t>=20&&t<=190)return 15;if(t>190)return 18}function tongueHeightInit(t){if(t<=40)return 12;if(t>40&&t<=150)return 15;if(t>150&&t<=200)return 17;if(t>200)return 20}const expandWidth$4=(t,e)=>{const n=e.cuttingLinePath(t).actionArray,s=Math.max(...n.map(l=>l.x)),u=Math.min(...n.map(l=>l.x));return s-u},expandHeight$4=(t,e)=>{const n=e.cuttingLinePath(t).actionArray,s=Math.max(...n.map(l=>l.y)),u=Math.min(...n.map(l=>l.y));return s-u};function ButtonBottomBoxRules(t,e,n){let s=!0;if(t==="boxLength"?(hollowLineLengthInit(e,n.boxWidth)+2*e+2*n.boxWidth>1e3||n.boxHeight+2*(n.boxWidth+tongueHeightInit(e))>700)&&(s=!1):t==="boxWidth"?(hollowLineLengthInit(n.boxLength,e)+2*n.boxLength+2*e>1e3||n.boxHeight+2*(e+tongueHeightInit(n.boxLength))>700)&&(s=!1):t==="boxHeight"&&(hollowLineLengthInit(n.boxLength,n.boxWidth)+2*n.boxLength+2*n.boxWidth>1e3||e+2*(n.boxWidth+tongueHeightInit(n.boxLength))>700)&&(s=!1),t==="boxWidth"&&e<30)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于30mm!",syncType:""};if(t==="boxLength"&&e<30)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于30mm!",syncType:""};if(t==="boxWidth"&&e>n.boxLength)return{validVal:!1,msg:"尺寸检查未通过,宽度不能大于长度!",syncType:""};if(t==="boxLength"&&e<n.boxWidth)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于宽度!",syncType:"boxWidth"};if(s){if(t==="boxHeight"&&e<15)return{validVal:!1,msg:"尺寸检查未通过,高度不能小于15mm!",syncType:"boxHeight",syncSize:15}}else return{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1000*700mm!",syncType:""};return{validVal:!0,msg:"success",syncType:""}}registerBox({type:"ButtonBottomBox",name:"普通扣底盒(异侧)",group:"card",categoryId:"button-bottom",component:()=>__vitePreload(()=>import("./index-4JnMv4lH.js"),__vite__mapDeps([17,1,2])),pathApi:useButtonBottomPath,rules:ButtonBottomBoxRules,display:{label:"普通扣底盒(异侧)",index:3,imgSrc:"./defaultDlate/普通扣底盒(异侧).svg",disabled:!1}});const cuttingLinePath$h=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=new ButtonBottom(t),{hollowLineLength:l,radiusGT:o,errorLength:i,K2Length:g,M2Length:d,K3Height:r,radiusTongueK1r:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,K1Height:c,downMoveRYK1:m,negativeBuckleWidthM:y,negativeBuckleNumber:O,radiusTongueK1rX:b,radiusTongueK1rY:j,offsetX:F}=u;function k(){const _=[],ue=new SvgPathBuilder().moveTo(()=>(_.push({x:n-i,y:0}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+e+n+e,y:_[_.length-1].y}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+l,y:_[_.length-1].y+l*Math.tan(o*(Math.PI/180))}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+(s-2*l*Math.tan(o*(Math.PI/180))-(L-T))}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-l,y:_[_.length-1].y+l*Math.tan(o*(Math.PI/180))}),_[_.length-1])).arcTo(L,L,0,0,0,()=>(_.push({x:_[_.length-1].x-L,y:_[_.length-1].y+L}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+c+m-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-((e-y)/2-f-L)+L/2,y:_[_.length-1].y}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y-f}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(c-f)}),_[_.length-1]));function re(w){const le=2*w-1;for(let V=1;V<w;V++)ue.lineTo(()=>(_.push({x:_[_.length-1].x-(y/le+L),y:_[_.length-1].y}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+(c-f)}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y+f}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(y/le-2*f-L),y:_[_.length-1].y}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y-f}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(c-f)}),_[_.length-1]));ue.lineTo(()=>(_.push({x:_[_.length-1].x-y/le-L,y:_[_.length-1].y}),_[_.length-1]))}O===1?ue.lineTo(()=>(_.push({x:_[_.length-1].x-(y+L),y:_[_.length-1].y}),_[_.length-1])):re(2),ue.lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+c-f}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y+f}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-((e-y)/2-f-L)+L/2,y:_[_.length-1].y}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(+c+m-T)}),_[_.length-1])).arcTo(L,L,0,0,0,()=>(_.push({x:_[_.length-1].x-(L+x),y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(d-L-x),y:_[_.length-1].y+g}),_[_.length-1])),n<=50?(ue.lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+r-f}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y+f}),_[_.length-1])),ue.lineTo(()=>(_.push({x:_[_.length-1].x-(n-L-f-(d-L)),y:_[_.length-1].y}),_[_.length-1]))):(ue.lineTo(()=>(_.push({x:_[_.length-1].x+(b-F),y:_[_.length-1].y+(r-j)}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-b,y:_[_.length-1].y+j}),_[_.length-1])),ue.lineTo(()=>(_.push({x:n-i+e+L,y:_[_.length-1].y}),_[_.length-1]))),ue.lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(+r+g-T)}),_[_.length-1])).arcTo(L,L,0,0,0,()=>(_.push({x:_[_.length-1].x-(L+x),y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(e-(y-L)-2*x)/2,y:_[_.length-1].y+m}),_[_.length-1]));function de(w){const le=2*w-1;for(let V=1;V<w;V++)ue.lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+c-f}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y+f}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-((y-L)/le-2*f),y:_[_.length-1].y}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y-f}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(c-f)}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(y-L)/le,y:_[_.length-1].y}),_[_.length-1]));ue.lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+c-f}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y+f}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-((y-L)/le-2*f),y:_[_.length-1].y}),_[_.length-1]))}return O===1?ue.lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+c-f}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y+f}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(y-L)+2*f,y:_[_.length-1].y}),_[_.length-1])):de(2),ue.arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y-f}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(c-f)}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(e-(y-L)-2*x)/2,y:_[_.length-1].y-m}),_[_.length-1])).arcTo(L,L,0,0,0,()=>(_.push({x:_[_.length-1].x-(x+L),y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+g+r-T}),_[_.length-1])),n<=50?ue.lineTo(()=>(_.push({x:d+f,y:_[_.length-1].y}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-f,y:_[_.length-1].y-f}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(r-f)}),_[_.length-1])):ue.lineTo(()=>(_.push({x:d+F,y:_[_.length-1].y}),_[_.length-1])).arcTo(f,f,0,0,1,()=>(_.push({x:_[_.length-1].x-b,y:_[_.length-1].y-j}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+(f-F),y:_[_.length-1].y-(r-j)}),_[_.length-1])),ue.lineTo(()=>(_.push({x:0,y:_[_.length-1].y-g}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-s}),_[_.length-1])).lineTo(()=>(_.push({x:_[0].x,y:_[0].y}),_[_.length-1])),{path:ue.build(),actionArray:_,pathLine:ue}}return{returnPath:k().path,actionArray:k().actionArray,pathLine:k().pathLine}},foldLineoordinates$h=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=cuttingLinePath$h(t).actionArray,l=new ButtonBottom(t),{receptionLocationBR:o,downMoveRY:i,receptionLocationBRX:g}=l;return{foldLineObj:{line1:{x1:0,y1:u[0].y+s,x2:u[0].x-g,y2:u[0].y+s},line2:{x1:u[0].x,y1:u[0].y,x2:u[0].x,y2:u[0].y+s-(o-i)},line3:{x1:u[0].x+g,y1:u[0].y+s,x2:u[0].x+e-g,y2:u[0].y+s},line4:{x1:u[0].x+e,y1:u[0].y,x2:u[0].x+e,y2:u[0].y+s-(o-i)},line5:{x1:u[0].x+e+g,y1:u[0].y+s,x2:u[0].x+e+n-g,y2:u[0].y+s},line6:{x1:u[0].x+e+n,y1:u[0].y,x2:u[0].x+e+n,y2:u[0].y+s-(o-i)},line7:{x1:u[0].x+e+n+g,y1:u[0].y+s,x2:u[0].x+e+n+e-g,y2:u[0].y+s},line8:{x1:u[0].x+e+n+e,y1:u[0].y,x2:u[0].x+e+n+e,y2:u[0].y+s-(o-i)}}}},bleedingLinePath$h=t=>{function e(){const n=[],s=cuttingLinePath$h(t).pathLine;return{path:BleedGenerator.getInstance().generate(s.build()),actionArray:n,pathLine:s}}return{returnPath:e().path,actionArray:e().actionArray,pathLine:e().pathLine}},previewBleedingLinePath$h=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=new ButtonBottom(t),{errorLength:l,K2Length:o,M2Length:i,K3Height:g,radiusTongueK1r:d,receptionLocationBR:r,downMoveRY:f,receptionLocationBRX:L,K1Height:T,downMoveRYK1:x,negativeBuckleWidthM:c,negativeBuckleNumber:m,radiusTongueK1rX:y,radiusTongueK1rY:O,offsetX:b}=u;function j(){const F=[],k=new SvgPathBuilder().moveTo(()=>(F.push({x:n-l,y:0}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x+e+n+e,y:F[F.length-1].y}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y+(s-(r-f))}),F[F.length-1])).arcTo(r,r,0,0,0,()=>(F.push({x:F[F.length-1].x-r,y:F[F.length-1].y+r}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y+T+x-f}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x-((e-c)/2-d-r)+r/2,y:F[F.length-1].y}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y-d}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y-(T-d)}),F[F.length-1]));function _(he){const w=2*he-1;for(let le=1;le<he;le++)k.lineTo(()=>(F.push({x:F[F.length-1].x-(c/w+r),y:F[F.length-1].y}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y+(T-d)}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y+d}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x-(c/w-2*d-r),y:F[F.length-1].y}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y-d}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y-(T-d)}),F[F.length-1]));k.lineTo(()=>(F.push({x:F[F.length-1].x-c/w-r,y:F[F.length-1].y}),F[F.length-1]))}m===1?k.lineTo(()=>(F.push({x:F[F.length-1].x-(c+r),y:F[F.length-1].y}),F[F.length-1])):_(2),k.lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y+T-d}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y+d}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x-((e-c)/2-d-r)+r/2,y:F[F.length-1].y}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y-(+T+x-f)}),F[F.length-1])).arcTo(r,r,0,0,0,()=>(F.push({x:F[F.length-1].x-(r+L),y:F[F.length-1].y-f}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x-(i-r-L),y:F[F.length-1].y+o}),F[F.length-1])),n<=50?(k.lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y+g-d}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y+d}),F[F.length-1])),k.lineTo(()=>(F.push({x:F[F.length-1].x-(n-r-d-(i-r)),y:F[F.length-1].y}),F[F.length-1]))):(k.lineTo(()=>(F.push({x:F[F.length-1].x+(y-b),y:F[F.length-1].y+(g-O)}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-y,y:F[F.length-1].y+O}),F[F.length-1])),k.lineTo(()=>(F.push({x:n-l+e+r,y:F[F.length-1].y}),F[F.length-1]))),k.lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y-(+g+o-f)}),F[F.length-1])).arcTo(r,r,0,0,0,()=>(F.push({x:F[F.length-1].x-(r+L),y:F[F.length-1].y-f}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x-(e-(c-r)-2*L)/2,y:F[F.length-1].y+x}),F[F.length-1]));function ue(he){const w=2*he-1;for(let le=1;le<he;le++)k.lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y+T-d}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y+d}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x-((c-r)/w-2*d),y:F[F.length-1].y}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y-d}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y-(T-d)}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x-(c-r)/w,y:F[F.length-1].y}),F[F.length-1]));k.lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y+T-d}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y+d}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x-((c-r)/w-2*d),y:F[F.length-1].y}),F[F.length-1]))}return m===1?k.lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y+T-d}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y+d}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x-(c-r)+2*d,y:F[F.length-1].y}),F[F.length-1])):ue(2),k.arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y-d}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y-(T-d)}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x-(e-(c-r)-2*L)/2,y:F[F.length-1].y-x}),F[F.length-1])).arcTo(r,r,0,0,0,()=>(F.push({x:F[F.length-1].x-(L+r),y:F[F.length-1].y+f}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y+o+g-f}),F[F.length-1])),n<=50?k.lineTo(()=>(F.push({x:i+d,y:F[F.length-1].y}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-d,y:F[F.length-1].y-d}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y-(g-d)}),F[F.length-1])):k.lineTo(()=>(F.push({x:i+b,y:F[F.length-1].y}),F[F.length-1])).arcTo(d,d,0,0,1,()=>(F.push({x:F[F.length-1].x-y,y:F[F.length-1].y-O}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x+(d-b),y:F[F.length-1].y-(g-O)}),F[F.length-1])),k.lineTo(()=>(F.push({x:0,y:F[F.length-1].y-o}),F[F.length-1])).lineTo(()=>(F.push({x:F[F.length-1].x,y:F[F.length-1].y-s}),F[F.length-1])).lineTo(()=>(F.push({x:F[0].x,y:F[0].y}),F[F.length-1])),BleedGenerator.getInstance().generate(k.build())}return{returnPath:j()}},useCleaningPath={mmToPt,cuttingLinePath:cuttingLinePath$h,foldLineoordinates:foldLineoordinates$h,bleedingLinePath:bleedingLinePath$h,previewBleedingLinePath:previewBleedingLinePath$h};function ReversePluginLockBoxRules(t,e,n){let s=!0;if(t==="boxLength"?(hollowLineLengthInit(e,n.boxWidth)+2*e+2*n.boxWidth>1e3||n.boxHeight+2*(n.boxWidth+tongueHeightInit(e))>700)&&(s=!1):t==="boxWidth"?(hollowLineLengthInit(n.boxLength,e)+2*n.boxLength+2*e>1e3||n.boxHeight+2*(e+tongueHeightInit(n.boxLength))>700)&&(s=!1):t==="boxHeight"&&(hollowLineLengthInit(n.boxLength,n.boxWidth)+2*n.boxLength+2*n.boxWidth>1e3||e+2*(n.boxWidth+tongueHeightInit(n.boxLength))>700)&&(s=!1),t==="boxLength"&&n.boxWidth+e<50||t==="boxWidth"&&n.boxLength+e<50)return{validVal:!1,msg:"尺寸检查未通过,长度与宽度之和要求不小于50mm!",syncType:""};if(t==="boxLength"&&e<25)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于25mm!",syncType:"boxLength",syncSize:25};if(t==="boxWidth"&&e<20)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于20mm!",syncType:""};if(t==="boxWidth"&&e>n.boxLength)return{validVal:!1,msg:"尺寸检查未通过,宽度不能大于长度!",syncType:""};if(t==="boxLength"&&e<n.boxWidth)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于宽度!",syncType:"boxWidth"};if(s){if(t==="boxHeight"&&e<15)return{validVal:!1,msg:"尺寸检查未通过,高度不能小于15mm!",syncType:"boxHeight",syncSize:15}}else return{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1000*700mm!",syncType:""};return{validVal:!0,msg:"success",syncType:""}}registerBox({type:"CleaningBox",name:"清洁盒",group:"card",categoryId:"special",component:()=>__vitePreload(()=>import("./index-DprxzbBf.js"),__vite__mapDeps([18,1,2])),pathApi:useCleaningPath,rules:ReversePluginLockBoxRules,display:{label:"清洁盒",index:11,imgSrc:"./defaultDlate/清洁盒.svg",disabled:!1}});class DuplexAircraft extends Aircraft{constructor(e){super(e),this._slotRadiusR=.5,this._slotWidth=10,this.initOfReverseCornerR(e.thickness),this.initSmallCornerR1(e.thickness),this.initBottomOffsetHB(e.thickness),this.initSlotWidth(e.thickness)}initOfReverseCornerR(e){e<=1&&(this._ofReverseCornerR=2)}initSmallCornerR1(e){e<=1&&(this._smallCornerR1=2.25)}initDcThicknessA(e){this._dcThicknessA=3*e+.2}initMainLineOffsetFBToF(e){e<=.8?this._mainLineOffsetFBToF=1.9:e<=1&&(this._mainLineOffsetFBToF=2.3)}initHighPointTRHRadius(e){this._highPointTRHRadius=2.21}initSlotD2(e,n){this._slotD2=e-2*n}initSlotCollectX(e){this._slotCollectX=3*e+.2}initSlotCollectY(e){this._slotCollectY=3*e}initSlotMTangentX(e){this._slotMTangentX=e+2.5}initSlotMTangentY(e){this._slotMTangentY=1}initMainLineOffsetHB(e){e<=.8?this._mainLineOffsetHB=1.7:e<=1&&(this._mainLineOffsetHB=2)}initBottomOffsetHB(e){this._bottomOffsetHB=4*e}initInnerWallTotalHeightDC(e,n){this.initDcThicknessA(n),this._innerWallTotalHeightDC=this._slotD2+this._dcThicknessA+this._slotMTangentX}initBoxTopHorizontalLength(e,n){this._boxTopHorizontalLength=e-2*this.mainLineOffset-2*this._mainLineOffsetFBToF+2*this._mainLineOffsetFTToFT}initTopOffsetFB(){this._topOffsetFB=2}initSubSideVerticalLength(e,n){this.initTopOffsetFB(),this._subSideVerticalLength=e+n-2*this.smallCornerMRTangentY-this.smallCornerMTTangentY-this.smallCornerMTTangentYUp-(this.smallCornerR1TangentY-this._topOffsetFB)-(this.highPointTRHTangentY-this._topOffsetFB)}initHighPointTRH(e){this.initTopOffsetFB(),this._highPointTRH=e-this.boxTopCollect-this._topOffsetFB}initMainLineOffsetFTToFT(e){e<=.8?this._mainLineOffsetFTToFT=1.85:e<=1&&(this._mainLineOffsetFTToFT=2.3)}initHighPointTRHHorizontalLength(){this.mainLineOffsetFTToFT>this.highPointTRHRadius?this._highPointTRHHorizontalLength=(this._highPointTRH-this.smallCornerTRR)*Math.sin(this.highPointTRHAngle*Math.PI/180)-(Math.sqrt(this._highPointTRHRadius**2-(this._highPointTRHRadius-this._topOffsetFB)**2)-this._mainLineOffsetFTToFT):this._highPointTRHHorizontalLength=(this._highPointTRH-this.smallCornerTRR)*Math.sin(this.highPointTRHAngle*Math.PI/180)+(this._mainLineOffsetFTToFT-this._highPointTRHRadius)}initSlotWidth(e){this._slotWidth=3*e}get dcThicknessA(){return this._dcThicknessA}get bottomOffsetHB(){return this._bottomOffsetHB}get topOffsetFB(){return this._topOffsetFB}get slotRadiusR(){return this._slotRadiusR}get slotWidth(){return this._slotWidth}}const startingPointCover=(t,e,n)=>{const{ofReverseCornerR:s,ofReverseCornerRX:u,ofReverseCornerRY:l,ofReverseCornerTangentX:o,ofReverseCornerTangentY:i,smallCornerR1TangentX:g,smallCornerR1TangentY:d,slotN:r,slotThicknessNY:f,slotThicknessNX:L,smallCornerR1:T,mainLineOffsetFBToF:x,topOffsetFB:c}=new DuplexAircraft(n),m=n.boxHeight;t.arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-2*s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(m-2*s-c)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(r+x-T),y:e[e.length-1].y}),e[e.length-1])).arcTo(T,T,0,0,0,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1]))},leftLateralSurface=(t,e,n)=>{const{smallCornerR1:s,smallCornerMTTangentX:u,smallCornerMTTangentY:l,smallCornerR1TangentX:o,smallCornerR1TangentY:i,smallCornerMR:g,smallCornerMRTangentX:d,smallCornerMRTangentY:r,subSideVerticalLength:f,highPointTRHRadius:L,highPointTRHTangentX:T,highPointTRHTangentY:x,smallCornerMTTangentXUp:c,smallCornerMTTangentYUp:m}=new DuplexAircraft(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y-l}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-f}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y-m}),e[e.length-1])).arcTo(L,L,0,0,0,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1]))},leftHighest=(t,e,n)=>{const{highPointTRHHorizontalLength:s,smallCornerTRR:u,smallCornerTRRTangentX:l,smallCornerTRRTangentY:o,highPointTRH:i,highPointTRHRTangentX:g,highPointTRHRTangentY:d,boxTopCollect:r}=new DuplexAircraft(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y}),e[e.length-1])).arcTo(u,u,0,0,1,()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-o}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-r}),e[e.length-1]))},rightHighest=(t,e,n)=>{const{highPointTRHHorizontalLength:s,smallCornerTRR:u,smallCornerTRRTangentX:l,smallCornerTRRTangentY:o,highPointTRH:i,highPointTRHRTangentX:g,highPointTRHRTangentY:d,boxTopCollect:r}=new DuplexAircraft(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+r}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+d}),e[e.length-1])).arcTo(u,u,0,0,1,()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y}),e[e.length-1]))},rightLateralSurface=(t,e,n)=>{const{smallCornerR1:s,smallCornerMTTangentX:u,smallCornerMTTangentY:l,smallCornerR1TangentX:o,smallCornerR1TangentY:i,smallCornerMR:g,smallCornerMRTangentX:d,smallCornerMRTangentY:r,subSideVerticalLength:f,highPointTRHRadius:L,highPointTRHTangentX:T,highPointTRHTangentY:x,smallCornerMTTangentXUp:c,smallCornerMTTangentYUp:m}=new DuplexAircraft(n);t.arcTo(L,L,0,0,0,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y+m}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+f}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y+l}),e[e.length-1]))},rightStartingPointCover=(t,e,n)=>{const{ofReverseCornerR:s,ofReverseCornerRX:u,ofReverseCornerRY:l,ofReverseCornerTangentX:o,ofReverseCornerTangentY:i,smallCornerR1TangentX:g,smallCornerR1TangentY:d,slotN:r,slotThicknessNY:f,slotThicknessNX:L,smallCornerR1:T,mainLineOffsetFBToF:x,topOffsetFB:c}=new DuplexAircraft(n),m=n.boxHeight;t.arcTo(T,T,0,0,0,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(r+x-T),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(m-2*s-c)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-s),y:e[e.length-1].y}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+2*s}),e[e.length-1]))},rightSlot=(t,e,n)=>{const{mainLineOffset:s,ofReverseCornerR:u,slotCollectX:l,slotCollectY:o,slotD2:i,slotCount:g,slotLengthSW:d,slotMTangentX:r,slotMTangentY:f,mainLineOffsetHB:L,dcThicknessA:T}=new DuplexAircraft(n),x=n.boxHeight,c=n.boxWidth,m=n.thickness;if(t.lineTo(()=>(e.push({x:e[e.length-1].x+(x+m-u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-1].y}),e[e.length-1])),g===1)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(c-2*o-d)/2}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y+f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(d-2*f)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y+f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(c-2*o-d)/2}),e[e.length-1]));else{for(let y=0;y<g;y++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(c-2*o-g*d)/(g+1)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y+f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(d-2*f)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y+f}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(c-2*o-g*d)/(g+1)}),e[e.length-1]))}t.lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(x+L-u),y:e[e.length-1].y}),e[e.length-1]))},rightBottomLid=(t,e,n)=>{const{ofReverseCornerR:s,ofReverseCornerRX:u,ofReverseCornerRY:l,ofReverseCornerTangentX:o,ofReverseCornerTangentY:i,slotN:g,slotThicknessNX:d,bottomOffsetHB:r}=new DuplexAircraft(n),f=n.boxHeight,L=n.thickness;t.arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+2*s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(g-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(f-L-2*s-r)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(g-s),y:e[e.length-1].y}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(r-s)}),e[e.length-1]))},leftBottomLid=(t,e,n)=>{const{ofReverseCornerR:s,ofReverseCornerRX:u,ofReverseCornerRY:l,ofReverseCornerTangentX:o,ofReverseCornerTangentY:i,slotN:g,slotThicknessNX:d,bottomOffsetHB:r}=new DuplexAircraft(n),f=n.boxHeight,L=n.thickness;t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(r-s)}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y-s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(g-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(f-L-2*s-r)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(g-s),y:e[e.length-1].y}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-2*s}),e[e.length-1]))},leftSlot=(t,e,n)=>{const{mainLineOffset:s,ofReverseCornerR:u,slotCollectX:l,slotCollectY:o,slotD2:i,slotCount:g,slotLengthSW:d,slotMTangentX:r,slotMTangentY:f,mainLineOffsetHB:L}=new DuplexAircraft(n),T=n.boxHeight,x=n.boxWidth,c=n.thickness;if(t.lineTo(()=>(e.push({x:e[e.length-1].x-(T+L-u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-o}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y}),e[e.length-1])),g===1)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(x-2*o-d)/2}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(d-2*f)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(x-2*o-d)/2}),e[e.length-1]));else{for(let m=0;m<g;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(x-2*o-g*d)/(g+1)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(d-2*f)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-f}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(x-2*o-g*d)/(g+1)}),e[e.length-1]))}t.lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(T+c-u),y:e[e.length-1].y}),e[e.length-1]))},drawJackHole=(t,e,n)=>{const{slotCount:s,slotLengthSW:u,slotNTangentX:l,slotNTangentY:o,ofReverseCornerR:i,mainLineOffset:g,slotFoldLineOffsetX:d,slotFoldLineOffsetY:r,slotCollectY:f,slotRadiusR:L,slotWidth:T}=new DuplexAircraft(n);return n.boxWidth,n.boxLength,t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(u-2*L)}),e[e.length-1])).arcTo(L,L,0,0,0,()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y+L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(T-2*L),y:e[e.length-1].y}),e[e.length-1])).arcTo(L,L,0,0,0,()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(u-2*L)}),e[e.length-1])).arcTo(L,L,0,0,0,()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(T-2*L),y:e[e.length-1].y}),e[e.length-1])).arcTo(L,L,0,0,0,()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y+L}),e[e.length-1])),t},drawJack=(t,e,n)=>{const{slotCount:s,slotLengthSW:u,slotNTangentX:l,slotNTangentY:o,ofReverseCornerR:i,mainLineOffset:g,slotFoldLineOffsetX:d,slotFoldLineOffsetY:r,slotCollectY:f,slotRadiusR:L,slotWidth:T}=new DuplexAircraft(n),x=n.boxWidth,c=n.boxLength,m=(x-s*(u-2*L))/(s+1);if(s===1)t.moveTo(()=>(e.push({x:e[0].x+(i-g),y:e[0].y+(x-(u-2*L))/2}),e[e.length-1])),drawJackHole(t,e,n).moveTo(()=>(e.push({x:e[e.length-1].x+c-T,y:e[e.length-1].y}),e[e.length-1])),drawJackHole(t,e,n);else{t.moveTo(()=>(e.push({x:e[0].x+(i-g),y:e[0].y}),e[e.length-1])),t.moveTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+m}),e[e.length-1]));for(let y=0;y<s;y++)drawJackHole(t,e,n).moveTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+m+(u-2*L)}),e[e.length-1]));t.moveTo(()=>(e.push({x:e[0].x+(i-g)+c-T,y:e[0].y}),e[e.length-1])),t.moveTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+m}),e[e.length-1]));for(let y=0;y<s;y++)drawJackHole(t,e,n).moveTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+m+(u-2*L)}),e[e.length-1]))}},cuttingLinePath$g=function(t){const e=t.boxLength;t.boxWidth;const n=t.boxHeight;t.thickness;const s=new DuplexAircraft(t),{innerWallTotalHeightDC:u,upperWidthW1:l,mainLineOffset:o,boxTopHorizontalLength:i,ofReverseCornerR:g,mainLineOffsetHB:d}=s;function r(){const f=[],L=new SvgPathBuilder().moveTo(()=>(f.push({x:u+n+o-g,y:n+l+n}),f[f.length-1]));return startingPointCover(L,f,t),leftLateralSurface(L,f,t),leftHighest(L,f,t),L.lineTo(()=>(f.push({x:f[f.length-1].x+i,y:f[f.length-1].y}),f[f.length-1])),rightHighest(L,f,t),rightLateralSurface(L,f,t),rightStartingPointCover(L,f,t),rightSlot(L,f,t),rightBottomLid(L,f,t),L.lineTo(()=>(f.push({x:f[f.length-1].x-(e-2*d),y:f[f.length-1].y}),f[f.length-1])),leftBottomLid(L,f,t),leftSlot(L,f,t),drawJack(L,f,t),{path:L.build(),actionArray:f}}return{returnPath:r().path,actionArray:r().actionArray}},foldLineoordinates$g=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$g(t).actionArray,o=new DuplexAircraft(t),{boxTopCollect:i,highPointTRH:g,innerWallTotalHeightDC:d,mainLineOffset:r,mainLineOffsetFBToF:f,mainLineOffsetFTToFT:L,ofReverseCornerR:T,smallCornerR1:x,upperWidthW1:c,topOffsetFB:m,mainLineOffsetHB:y,slotCount:O,slotLengthSW:b,slotCollectY:j,slotFoldLineOffsetY:F,slotCollectX:k,bottomOffsetHB:_,slotRadiusR:ue}=o,re=(n-O*(b-2*ue))/(O+1),de={line1:{x1:l[15].x,y1:i,x2:l[15].x,y2:s-m},line2:{x1:l[17].x,y1:i,x2:l[17].x,y2:s-m},line3:{x1:l[0].x+T+f,y1:s,x2:l[0].x+T+e-2*u-f,y2:s},line4:{x1:l[0].x+T+f,y1:s,x2:l[0].x+T+f,y2:s+c},line5:{x1:l[0].x+T+e-2*u-f,y1:s,x2:l[0].x+T+e-2*u-f,y2:s+c},line6:{x1:l[0].x+T+f,y1:s+c,x2:l[0].x+T+e-2*u-f,y2:s+c},line7:{x1:l[0].x+T,y1:l[0].y-s+m,x2:l[0].x+T,y2:l[0].y-T},line8:{x1:l[0].x+T+e-2*u,y1:l[0].y-s+m,x2:l[0].x+T+e-2*u,y2:l[0].y-T},line9:{x1:l[0].x+T-r,y1:l[0].y,x2:l[0].x+T-r+e,y2:l[0].y},line10_1:{x1:d-k,y1:l[0].y+j,x2:d-k,y2:l[0].y+n-j},line10_2:{x1:d,y1:l[0].y,x2:d,y2:l[0].y+n},line11_1:{x1:d+s+e+s,y1:l[0].y,x2:d+s+e+s,y2:l[0].y+n},line11_2:{x1:d+s+e+s+k,y1:l[0].y+j,x2:d+s+e+s+k,y2:l[0].y+n-j},line12:{x1:d+s+(y-T),y1:l[0].y+n,x2:d+s+e+s-s-(y-T),y2:l[0].y+n},line13:{x1:l[0].x+(T-r)+y,y1:l[0].y+n+T,x2:l[0].x+(T-r)+y,y2:l[0].y+n+s-u-(_-T)},line14:{x1:l[0].x+(T-r)+y+(e-2*y),y1:l[0].y+n+T,x2:l[0].x+(T-r)+y+(e-2*y),y2:l[0].y+n+s-u-(_-T)}};if(n<120)de.line15={x1:l[0].x+(T-r),y1:l[0].y,x2:l[0].x+(T-r),y2:l[0].y+(n-(b-2*ue))/2},de.line16={x1:l[0].x+(T-r),y1:l[0].y+(n-(b-2*ue))/2+(b-2*ue),x2:l[0].x+(T-r),y2:l[0].y+n},de.line17={x1:l[0].x+(T-r)+e,y1:l[0].y,x2:l[0].x+(T-r)+e,y2:l[0].y+(n-(b-2*ue))/2},de.line18={x1:l[0].x+(T-r)+e,y1:l[0].y+(n-(b-2*ue))/2+(b-2*ue),x2:l[0].x+(T-r)+e,y2:l[0].y+n};else{const he=re,w=b-2*ue,le=he+w,V=l[0].x+(T-r);de.line15={x1:V,y1:l[0].y,x2:V,y2:l[0].y+he};for(let _e=0;_e<O;_e++)de[`line${_e+1+15}`]={x1:V,y1:l[0].y+(_e+1)*le,x2:V,y2:l[0].y+he+(_e+1)*le};const Ce=l[0].x+(T-r+e);de[`line${O+16}`]={x1:Ce,y1:l[0].y,x2:Ce,y2:l[0].y+he};for(let _e=0;_e<O;_e++)de[`line${_e+O+1+16}`]={x1:Ce,y1:l[0].y+(_e+1)*le,x2:Ce,y2:l[0].y+he+(_e+1)*le}}return{foldLineObj:de}},bleedingLinePath$g=t=>{function e(){const n=[];return{path:BleedGeneratorV2.getInstance().generate(cuttingLinePath$g(t).returnPath),actionArray:n}}return{returnPath:e().path,actionArray:e().actionArray}},previewBleedingLinePath$g=t=>{function e(){return BleedGeneratorV2.getInstance().generate(cuttingLinePath$g(t).returnPath)}return{returnPath:e()}},useDuplexAircraftBoxPath={mmToPt,cuttingLinePath:cuttingLinePath$g,foldLineoordinates:foldLineoordinates$g,bleedingLinePath:bleedingLinePath$g,previewBleedingLinePath:previewBleedingLinePath$g};function AircraftBoxRules(t,e,n,s){let u=!0;return(expandWidth$4(n,s)>1500||expandHeight$4(n,s)>1200)&&(u=!1),t==="boxLength"&&n.boxHeight+e<60||t==="boxHeight"&&n.boxLength+e<60?{validVal:!1,msg:"尺寸检查未通过,长度与高度之和要求不小于60mm!",syncType:""}:t==="boxHeight"&&e<20?{validVal:!1,msg:"尺寸检查未通过,高度不能小于20mm!",syncType:""}:t==="boxLength"&&e<40?{validVal:!1,msg:"尺寸检查未通过,长度不能小于40mm!",syncType:""}:t==="boxWidth"&&e<30?{validVal:!1,msg:"尺寸检查未通过,宽度不能小于30mm!",syncType:""}:t==="boxHeight"&&e>n.boxLength?{validVal:!1,msg:"尺寸检查未通过,高度不能大于长度!",syncType:""}:t==="boxLength"&&e<n.boxHeight?{validVal:!1,msg:"尺寸检查未通过,长度不能小于高度!",syncType:"boxHeight"}:u?{validVal:!0,msg:"success",syncType:""}:{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1500*1200mm!",syncType:""}}registerBox({type:"DuplexAircraft",name:"对裱飞机盒",group:"duplex",categoryId:"duplex-aircraft",component:()=>__vitePreload(()=>import("./index-Ck5Z-NCf.js"),__vite__mapDeps([19,1,2])),pathApi:useDuplexAircraftBoxPath,rules:AircraftBoxRules,display:{label:"对裱飞机盒",index:1,imgSrc:"./defaultDlate/飞机盒.svg",disabled:!1}});const cuttingLinePath$f=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new EarHangingPluginLock(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,radiusTongueCr:r,tongueBottomLength:f,radiusTongueRr:L,radiusTongueRrX:T,slotBottomWidth:x,slotWidth:c,sideWingLength:m,tongueTopLength:y,radiusTongueAr:O,xLength13:b,yLength13:j,lockSLength:F,errorLength:k,K2Length:_,motherLockLength:ue,lockYLength:re,M2Length:de,K3Height:he,radiusTongueK1r:w,receptionLocationBR:le,downMoveRY:V,receptionLocationBRX:Ce,K1Height:_e,downMoveRYK1:D,negativeBuckleWidthM:Ie,negativeBuckleNumber:Lt,radiusTongueK1rX:At,radiusTongueK1rY:ie,offsetX:Ve,hookHeightP:ze,extendPF:z,extendAnglePFTx:Dt,hookLengthPSW:v,hookHeightPSD:S,radiusPSRr:Ue,overcutYLength:M,tongueLinkWidth:Pt,positionPSP:hn,hookRadius:Oe,tongueLinkWidthHookSideHeight:Fe}=l;function Et(){const oe=[];let kt=i+Pt-g+d;kt=kt>2*ze+z?kt:2*ze+z;const Ne=new SvgPathBuilder().moveTo(()=>(oe.push({x:o,y:kt}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+u,y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-2*ze}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+Dt,y:oe[oe.length-1].y-z}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+(e-u-Oe-2*Dt),y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+Dt,y:oe[oe.length-1].y+z}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+2*ze}),oe[oe.length-1])).arcTo(Oe,Oe,0,0,0,()=>(oe.push({x:oe[oe.length-1].x+2*Oe,y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-F}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+re,y:oe[oe.length-1].y-re}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+b,y:oe[oe.length-1].y-j}),oe[oe.length-1])).arcTo(O,O,0,0,1,()=>(oe.push({x:oe[oe.length-1].x+.974*O,y:oe[oe.length-1].y-.775*O}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+y-(Oe-u),y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+(c-x),y:oe[oe.length-1].y+(m-x)}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+(x-T),y:oe[oe.length-1].y+x}),oe[oe.length-1])).arcTo(L,L,0,0,0,()=>(oe.push({x:oe[oe.length-1].x+T,y:oe[oe.length-1].y-d}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-Fe}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+u,y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-(i-g-r)}),oe[oe.length-1])).arcTo(r,r,0,0,1,()=>(oe.push({x:oe[oe.length-1].x+r,y:oe[oe.length-1].y-r}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+(f-2*r),y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(r,r,0,0,1,()=>(oe.push({x:oe[oe.length-1].x+r,y:oe[oe.length-1].y+r}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+(i-g-r)}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+u,y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+Fe}),oe[oe.length-1])).arcTo(L,L,0,0,0,()=>(oe.push({x:oe[oe.length-1].x+T,y:oe[oe.length-1].y+d}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-2].x+x,y:oe[oe.length-1].y-x}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-3].x+c,y:oe[oe.length-2].y-m}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+(y-k+u),y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(O,O,0,0,1,()=>(oe.push({x:oe[oe.length-1].x+.974*O,y:oe[oe.length-1].y+.775*O}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+b,y:oe[oe.length-1].y+j}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+re,y:oe[oe.length-1].y+re}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+F}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+s-d}),oe[oe.length-1])).arcTo(le,le,0,0,0,()=>(oe.push({x:oe[oe.length-1].x-(le-Ce),y:oe[oe.length-1].y+V}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+_+he-V}),oe[oe.length-1]));n<=50?Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x-(n-k-(de-le)-w-(le-Ce)),y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y-w}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-(he-w)}),oe[oe.length-1])):Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x-(n-k-(de-le)-(le-Ce))+Ve,y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-At,y:oe[oe.length-1].y-ie}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-2].x-Ve,y:oe[oe.length-2].y-he}),oe[oe.length-1])),Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x-(de-le-Ce),y:oe[oe.length-1].y-_}),oe[oe.length-1])).arcTo(le,le,0,0,0,()=>(oe.push({x:oe[oe.length-1].x-(le+Ce),y:oe[oe.length-1].y+V}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+_e+D-V}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-((e-Ie)/2-w-le)+le/2,y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y-w}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-(_e-w)}),oe[oe.length-1]));function _n(xn){const Bn=2*xn-1;for(let Sn=1;Sn<xn;Sn++)Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x-(Ie/Bn+le),y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+(_e-w)}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y+w}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(Ie/Bn-2*w-le),y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y-w}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-(_e-w)}),oe[oe.length-1]));Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x-Ie/Bn-le,y:oe[oe.length-1].y}),oe[oe.length-1]))}Lt===1?Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x-(Ie+le),y:oe[oe.length-1].y}),oe[oe.length-1])):_n(2),Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+_e-w}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y+w}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-((e-Ie)/2-w-le)+le/2,y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-(+_e+D-V)}),oe[oe.length-1])).arcTo(le,le,0,0,0,()=>(oe.push({x:oe[oe.length-1].x-(le+Ce),y:oe[oe.length-1].y-V}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(de-le-Ce),y:oe[oe.length-1].y+_}),oe[oe.length-1])),n<=50?(Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+he-w}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y+w}),oe[oe.length-1])),Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x-(n-le-w-(de-le)),y:oe[oe.length-1].y}),oe[oe.length-1]))):(Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x+(oe[38].x-oe[37].x),y:oe[oe.length-1].y+(oe[37].y-oe[38].y)}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-At,y:oe[oe.length-1].y+ie}),oe[oe.length-1])),Ne.lineTo(()=>(oe.push({x:o+e+le,y:oe[oe.length-1].y}),oe[oe.length-1]))),Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-(+he+_-V)}),oe[oe.length-1])).arcTo(le,le,0,0,0,()=>(oe.push({x:oe[oe.length-1].x-(le+Ce),y:oe[oe.length-1].y-V}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(e-(Ie-le)-2*Ce)/2,y:oe[oe.length-1].y+D}),oe[oe.length-1]));function wn(xn){const Bn=2*xn-1;for(let Sn=1;Sn<xn;Sn++)Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+_e-w}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y+w}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-((Ie-le)/Bn-2*w),y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y-w}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-(_e-w)}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(Ie-le)/Bn,y:oe[oe.length-1].y}),oe[oe.length-1]));Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+_e-w}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y+w}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-((Ie-le)/Bn-2*w),y:oe[oe.length-1].y}),oe[oe.length-1]))}return Lt===1?Ne.lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+_e-w}),oe[oe.length-1])).arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y+w}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(Ie-le)+2*w,y:oe[oe.length-1].y}),oe[oe.length-1])):wn(2),Ne.arcTo(w,w,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-w,y:oe[oe.length-1].y-w}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-(_e-w)}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(e-(Ie-le)-2*Ce)/2,y:oe[oe.length-1].y-D}),oe[oe.length-1])).arcTo(le,le,0,0,0,()=>(oe.push({x:oe[oe.length-1].x-Ce,y:oe[oe.length-1].y-(le-V)}),oe[oe.length-1])).lineTo(()=>(oe.push({x:0,y:oe[oe.length-1].y-o*Math.tan(15*(Math.PI/180))}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[0].y+o*Math.tan(15*(Math.PI/180))}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-3].x,y:oe[oe.length-1].y-o*Math.tan(15*(Math.PI/180))}),oe[oe.length-1])).moveTo(()=>(oe.push({x:oe[17].x,y:oe[17].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+(ue-u),y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+u}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+g-u+M}),oe[oe.length-1])).moveTo(()=>(oe.push({x:oe[22].x,y:oe[22].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(ue-u),y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+u}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+g-u+M}),oe[oe.length-1])).moveTo(()=>(oe.push({x:oe[1].x+(e-2*u-v)/2+S/2,y:oe[1].y-ze+hn+S/2}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+v-S,y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(S/2,S/2,0,0,0,()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-S}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(v-S-2*Ue)/2,y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(Ue,Ue,0,0,0,()=>(oe.push({x:oe[oe.length-1].x-2*Ue,y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(v-S-2*Ue)/2,y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(S/2,S/2,0,0,0,()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+S}),oe[oe.length-1])).moveTo(()=>(oe.push({x:oe[1].x+(e-2*u-v)/2+S/2,y:oe[1].y-ze-(hn+S/2)}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x+v-S,y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(S/2,S/2,0,0,1,()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y+S}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(v-S-2*Ue)/2,y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(Ue,Ue,0,0,1,()=>(oe.push({x:oe[oe.length-1].x-2*Ue,y:oe[oe.length-1].y}),oe[oe.length-1])).lineTo(()=>(oe.push({x:oe[oe.length-1].x-(v-S-2*Ue)/2,y:oe[oe.length-1].y}),oe[oe.length-1])).arcTo(S/2,S/2,0,0,1,()=>(oe.push({x:oe[oe.length-1].x,y:oe[oe.length-1].y-S}),oe[oe.length-1])),{path:Ne.build(),actionArray:oe}}return{returnPath:Et().path,actionArray:Et().actionArray}},foldLineoordinates$f=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$f(t).actionArray,o=new EarHangingPluginLock(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,receptionLocationBR:f,downMoveRY:L,receptionLocationBRX:T,errorLength:x,hookHeightP:c,hookRadius:m}=o;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+(s-g-(f-L))},line2:{x1:l[0].x+u,y1:l[0].y-2*c,x2:l[0].x+e-m,y2:l[0].y-2*c},line3:{x1:l[0].x+u,y1:l[0].y-c,x2:l[0].x+e-m,y2:l[0].y-c},line4:{x1:l[0].x+u,y1:l[0].y,x2:l[0].x+e-m,y2:l[0].y},line5:{x1:l[0].x+T,y1:l[0].y+s-g,x2:l[0].x+e-T,y2:l[0].y+s-g},line6:{x1:l[0].x+e,y1:l[0].y+m,x2:l[0].x+e,y2:l[0].y+(s-g-(f-L))},line7:{x1:l[0].x+e+m,y1:l[0].y,x2:l[0].x+e+n-d,y2:l[0].y},line8:{x1:l[0].x+e+T,y1:l[0].y+(s-g),x2:l[0].x+e+n-T,y2:l[0].y+(s-g)},line9:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n,y2:l[0].y+(s-g-(f-L))},line10:{x1:l[16].x+r,y1:l[16].y+i,x2:l[16].x+e-r,y2:l[16].y+i},line11:{x1:l[15].x,y1:l[15].y,x2:l[15].x+e,y2:l[15].y},line12:{x1:l[15].x+T,y1:l[15].y+s,x2:l[15].x+(e-T),y2:l[15].y+s},line13:{x1:l[15].x+e,y1:l[15].y,x2:l[15].x+e,y2:l[15].y+s-(f-L)},line14:{x1:l[15].x+(e+d),y1:l[15].y+g,x2:l[15].x+e+n-x,y2:l[15].y+g},line15:{x1:l[15].x+e+T,y1:l[15].y+s,x2:l[15].x+e+(n-x),y2:l[15].y+s}}}},bleedingLinePath$f=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new EarHangingPluginLock(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,radiusTongueCr:r,tongueBottomLength:f,radiusTongueRr:L,radiusTongueRrX:T,slotBottomWidth:x,slotWidth:c,sideWingLength:m,tongueTopLength:y,radiusTongueAr:O,xLength13:b,yLength13:j,lockSLength:F,errorLength:k,K2Length:_,lockYLength:ue,M2Length:re,K3Height:de,radiusTongueK1r:he,receptionLocationBR:w,downMoveRY:le,receptionLocationBRX:V,K1Height:Ce,downMoveRYK1:_e,negativeBuckleWidthM:D,negativeBuckleNumber:Ie,radiusTongueK1rX:Lt,radiusTongueK1rY:At,offsetX:ie,hookHeightP:Ve,extendPF:ze,extendAnglePFTx:z,tongueLinkWidth:Dt,tongueLinkWidthHookSideHeight:v,hookRadius:S}=l;function Ue(){const M=[];let Pt=i+Dt-g+d;Pt=Pt>2*Ve+ze?Pt:2*Ve+ze;const hn=new SvgPathBuilder().moveTo(()=>(M.push({x:o,y:Pt}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+u,y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-2*Ve}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+z,y:M[M.length-1].y-ze}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+(e-u-S-2*z),y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+z,y:M[M.length-1].y+ze}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+2*Ve}),M[M.length-1])).arcTo(S,S,0,0,0,()=>(M.push({x:M[M.length-1].x+2*S,y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-F}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+ue,y:M[M.length-1].y-ue}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+b,y:M[M.length-1].y-j}),M[M.length-1])).arcTo(O,O,0,0,1,()=>(M.push({x:M[M.length-1].x+.974*O,y:M[M.length-1].y-.775*O}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+y-(S-u),y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+(c-x),y:M[M.length-1].y+(m-x)}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+(x-T),y:M[M.length-1].y+x}),M[M.length-1])).arcTo(L,L,0,0,0,()=>(M.push({x:M[M.length-1].x+T,y:M[M.length-1].y-d}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-v}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+u,y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(i-g-r)}),M[M.length-1])).arcTo(r,r,0,0,1,()=>(M.push({x:M[M.length-1].x+r,y:M[M.length-1].y-r}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+(f-2*r),y:M[M.length-1].y}),M[M.length-1])).arcTo(r,r,0,0,1,()=>(M.push({x:M[M.length-1].x+r,y:M[M.length-1].y+r}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+(i-g-r)}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+u,y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+v}),M[M.length-1])).arcTo(L,L,0,0,0,()=>(M.push({x:M[M.length-1].x+T,y:M[M.length-1].y+d}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-2].x+x,y:M[M.length-1].y-x}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-3].x+c,y:M[M.length-2].y-m}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+(y-k+u),y:M[M.length-1].y}),M[M.length-1])).arcTo(O,O,0,0,1,()=>(M.push({x:M[M.length-1].x+.974*O,y:M[M.length-1].y+.775*O}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+b,y:M[M.length-1].y+j}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+ue,y:M[M.length-1].y+ue}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+F}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+s-d}),M[M.length-1])).arcTo(w,w,0,0,0,()=>(M.push({x:M[M.length-1].x-(w-V),y:M[M.length-1].y+le}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+_+de-le}),M[M.length-1]));n<=50?hn.lineTo(()=>(M.push({x:M[M.length-1].x-(n-k-(re-w)-he-(w-V)),y:M[M.length-1].y}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y-he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(de-he)}),M[M.length-1])):hn.lineTo(()=>(M.push({x:M[M.length-1].x-(n-k-(re-w)-(w-V))+ie,y:M[M.length-1].y}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-Lt,y:M[M.length-1].y-At}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-2].x-ie,y:M[M.length-2].y-de}),M[M.length-1])),hn.lineTo(()=>(M.push({x:M[M.length-1].x-(re-w-V),y:M[M.length-1].y-_}),M[M.length-1])).arcTo(w,w,0,0,0,()=>(M.push({x:M[M.length-1].x-(w+V),y:M[M.length-1].y+le}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+Ce+_e-le}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-((e-D)/2-he-w)+w/2,y:M[M.length-1].y}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y-he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(Ce-he)}),M[M.length-1]));function Oe(kt){const Ne=2*kt-1;for(let _n=1;_n<kt;_n++)hn.lineTo(()=>(M.push({x:M[M.length-1].x-(D/Ne+w),y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+(Ce-he)}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(D/Ne-2*he-w),y:M[M.length-1].y}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y-he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(Ce-he)}),M[M.length-1]));hn.lineTo(()=>(M.push({x:M[M.length-1].x-D/Ne-w,y:M[M.length-1].y}),M[M.length-1]))}Ie===1?hn.lineTo(()=>(M.push({x:M[M.length-1].x-(D+w),y:M[M.length-1].y}),M[M.length-1])):Oe(2),hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+Ce-he}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-((e-D)/2-he-w)+w/2,y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(+Ce+_e-le)}),M[M.length-1])).arcTo(w,w,0,0,0,()=>(M.push({x:M[M.length-1].x-(w+V),y:M[M.length-1].y-le}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(re-w-V),y:M[M.length-1].y+_}),M[M.length-1])),n<=50?(hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+de-he}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])),hn.lineTo(()=>(M.push({x:M[M.length-1].x-(n-w-he-(re-w)),y:M[M.length-1].y}),M[M.length-1]))):(hn.lineTo(()=>(M.push({x:M[M.length-1].x+(M[38].x-M[37].x),y:M[M.length-1].y+(M[37].y-M[38].y)}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-Lt,y:M[M.length-1].y+At}),M[M.length-1])),hn.lineTo(()=>(M.push({x:o+e+w,y:M[M.length-1].y}),M[M.length-1]))),hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(+de+_-le)}),M[M.length-1])).arcTo(w,w,0,0,0,()=>(M.push({x:M[M.length-1].x-(w+V),y:M[M.length-1].y-le}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(e-(D-w)-2*V)/2,y:M[M.length-1].y+_e}),M[M.length-1]));function Fe(kt){const Ne=2*kt-1;for(let _n=1;_n<kt;_n++)hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+Ce-he}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-((D-w)/Ne-2*he),y:M[M.length-1].y}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y-he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(Ce-he)}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(D-w)/Ne,y:M[M.length-1].y}),M[M.length-1]));hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+Ce-he}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-((D-w)/Ne-2*he),y:M[M.length-1].y}),M[M.length-1]))}return Ie===1?hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+Ce-he}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(D-w)+2*he,y:M[M.length-1].y}),M[M.length-1])):Fe(2),hn.arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y-he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(Ce-he)}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(e-(D-w)-2*V)/2,y:M[M.length-1].y-_e}),M[M.length-1])).arcTo(w,w,0,0,0,()=>(M.push({x:M[M.length-1].x-V,y:M[M.length-1].y-(w-le)}),M[M.length-1])).lineTo(()=>(M.push({x:0,y:M[M.length-1].y-o*Math.tan(15*(Math.PI/180))}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[0].y+o*Math.tan(15*(Math.PI/180))}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-3].x,y:M[M.length-1].y-o*Math.tan(15*(Math.PI/180))}),M[M.length-1])),{path:BleedGenerator.getInstance().generate(hn.build()),actionArray:M}}return{returnPath:Ue().path,actionArray:Ue().actionArray}},previewBleedingLinePath$f=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new EarHangingPluginLock(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,radiusTongueCr:r,tongueBottomLength:f,radiusTongueRr:L,radiusTongueRrX:T,slotBottomWidth:x,slotWidth:c,sideWingLength:m,tongueTopLength:y,radiusTongueAr:O,xLength13:b,yLength13:j,lockSLength:F,errorLength:k,K2Length:_,lockYLength:ue,M2Length:re,K3Height:de,radiusTongueK1r:he,receptionLocationBR:w,downMoveRY:le,receptionLocationBRX:V,K1Height:Ce,downMoveRYK1:_e,negativeBuckleWidthM:D,negativeBuckleNumber:Ie,radiusTongueK1rX:Lt,radiusTongueK1rY:At,offsetX:ie,hookHeightP:Ve,extendPF:ze,extendAnglePFTx:z,tongueLinkWidth:Dt,tongueLinkWidthHookSideHeight:v,hookRadius:S}=l;function Ue(){const M=[];let Pt=i+Dt-g+d;Pt=Pt>2*Ve+ze?Pt:2*Ve+ze;const hn=new SvgPathBuilder().moveTo(()=>(M.push({x:o,y:Pt}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+u,y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-2*Ve}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+z,y:M[M.length-1].y-ze}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+(e-u-S-2*z),y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+z,y:M[M.length-1].y+ze}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+2*Ve}),M[M.length-1])).arcTo(S,S,0,0,0,()=>(M.push({x:M[M.length-1].x+2*S,y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-F}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+ue,y:M[M.length-1].y-ue}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+b,y:M[M.length-1].y-j}),M[M.length-1])).arcTo(O,O,0,0,1,()=>(M.push({x:M[M.length-1].x+.974*O,y:M[M.length-1].y-.775*O}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+y-(S-u),y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+(c-x),y:M[M.length-1].y+(m-x)}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+(x-T),y:M[M.length-1].y+x}),M[M.length-1])).arcTo(L,L,0,0,0,()=>(M.push({x:M[M.length-1].x+T,y:M[M.length-1].y-d}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-v}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+u,y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(i-g-r)}),M[M.length-1])).arcTo(r,r,0,0,1,()=>(M.push({x:M[M.length-1].x+r,y:M[M.length-1].y-r}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+(f-2*r),y:M[M.length-1].y}),M[M.length-1])).arcTo(r,r,0,0,1,()=>(M.push({x:M[M.length-1].x+r,y:M[M.length-1].y+r}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+(i-g-r)}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+u,y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+v}),M[M.length-1])).arcTo(L,L,0,0,0,()=>(M.push({x:M[M.length-1].x+T,y:M[M.length-1].y+d}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-2].x+x,y:M[M.length-1].y-x}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-3].x+c,y:M[M.length-2].y-m}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+(y-k+u),y:M[M.length-1].y}),M[M.length-1])).arcTo(O,O,0,0,1,()=>(M.push({x:M[M.length-1].x+.974*O,y:M[M.length-1].y+.775*O}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+b,y:M[M.length-1].y+j}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x+ue,y:M[M.length-1].y+ue}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+F}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+s-d}),M[M.length-1])).arcTo(w,w,0,0,0,()=>(M.push({x:M[M.length-1].x-(w-V),y:M[M.length-1].y+le}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+_+de-le}),M[M.length-1]));n<=50?hn.lineTo(()=>(M.push({x:M[M.length-1].x-(n-k-(re-w)-he-(w-V)),y:M[M.length-1].y}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y-he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(de-he)}),M[M.length-1])):hn.lineTo(()=>(M.push({x:M[M.length-1].x-(n-k-(re-w)-(w-V))+ie,y:M[M.length-1].y}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-Lt,y:M[M.length-1].y-At}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-2].x-ie,y:M[M.length-2].y-de}),M[M.length-1])),hn.lineTo(()=>(M.push({x:M[M.length-1].x-(re-w-V),y:M[M.length-1].y-_}),M[M.length-1])).arcTo(w,w,0,0,0,()=>(M.push({x:M[M.length-1].x-(w+V),y:M[M.length-1].y+le}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+Ce+_e-le}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-((e-D)/2-he-w)+w/2,y:M[M.length-1].y}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y-he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(Ce-he)}),M[M.length-1]));function Oe(kt){const Ne=2*kt-1;for(let _n=1;_n<kt;_n++)hn.lineTo(()=>(M.push({x:M[M.length-1].x-(D/Ne+w),y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+(Ce-he)}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(D/Ne-2*he-w),y:M[M.length-1].y}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y-he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(Ce-he)}),M[M.length-1]));hn.lineTo(()=>(M.push({x:M[M.length-1].x-D/Ne-w,y:M[M.length-1].y}),M[M.length-1]))}Ie===1?hn.lineTo(()=>(M.push({x:M[M.length-1].x-(D+w),y:M[M.length-1].y}),M[M.length-1])):Oe(2),hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+Ce-he}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-((e-D)/2-he-w)+w/2,y:M[M.length-1].y}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(+Ce+_e-le)}),M[M.length-1])).arcTo(w,w,0,0,0,()=>(M.push({x:M[M.length-1].x-(w+V),y:M[M.length-1].y-le}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(re-w-V),y:M[M.length-1].y+_}),M[M.length-1])),n<=50?(hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+de-he}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])),hn.lineTo(()=>(M.push({x:M[M.length-1].x-(n-w-he-(re-w)),y:M[M.length-1].y}),M[M.length-1]))):(hn.lineTo(()=>(M.push({x:M[M.length-1].x+(M[38].x-M[37].x),y:M[M.length-1].y+(M[37].y-M[38].y)}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-Lt,y:M[M.length-1].y+At}),M[M.length-1])),hn.lineTo(()=>(M.push({x:o+e+w,y:M[M.length-1].y}),M[M.length-1]))),hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(+de+_-le)}),M[M.length-1])).arcTo(w,w,0,0,0,()=>(M.push({x:M[M.length-1].x-(w+V),y:M[M.length-1].y-le}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(e-(D-w)-2*V)/2,y:M[M.length-1].y+_e}),M[M.length-1]));function Fe(kt){const Ne=2*kt-1;for(let _n=1;_n<kt;_n++)hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+Ce-he}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-((D-w)/Ne-2*he),y:M[M.length-1].y}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y-he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(Ce-he)}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(D-w)/Ne,y:M[M.length-1].y}),M[M.length-1]));hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+Ce-he}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-((D-w)/Ne-2*he),y:M[M.length-1].y}),M[M.length-1]))}return Ie===1?hn.lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y+Ce-he}),M[M.length-1])).arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y+he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(D-w)+2*he,y:M[M.length-1].y}),M[M.length-1])):Fe(2),hn.arcTo(he,he,0,0,1,()=>(M.push({x:M[M.length-1].x-he,y:M[M.length-1].y-he}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x,y:M[M.length-1].y-(Ce-he)}),M[M.length-1])).lineTo(()=>(M.push({x:M[M.length-1].x-(e-(D-w)-2*V)/2,y:M[M.length-1].y-_e}),M[M.length-1])).arcTo(w,w,0,0,0,()=>(M.push({x:M[M.length-1].x-V,y:M[M.length-1].y-(w-le)}),M[M.length-1])).closePath(),BleedGenerator.getInstance().generate(hn.build())}return{returnPath:Ue()}},advancedParamsArrow$1=t=>{const e=t.boxLength;t.boxWidth,t.boxHeight,t.thickness;const n=cuttingLinePath$f(t).actionArray,s=new EarHangingPluginLock(t),{receptionLocation:u,heightDiff:l,radiusTongueRrX:o,motherLockLength:i,receptionLocationBR:g,downMoveRY:d,receptionLocationBRX:r,errorLength:f,hookHeightP:L,hookRadius:T}=s,x=.7,c={hookSideHeightMark:{path:"",text:{x:0,y:0,label:"0"}}};{const m=[],y=new SvgPathBuilder().moveTo(()=>(m.push({x:n[0].x+e-10,y:n[0].y}),m[m.length-1])).lineTo(()=>(m.push({x:m[m.length-1].x+x,y:m[m.length-1].y-x}),m[m.length-1])).moveTo(()=>(m.push({x:m[0].x,y:m[0].y}),m[m.length-1])).lineTo(()=>(m.push({x:m[0].x-x,y:m[0].y-x}),m[m.length-1])).moveTo(()=>(m.push({x:m[0].x,y:m[0].y}),m[m.length-1])).lineTo(()=>(m.push({x:m[0].x,y:m[0].y-L}),m[m.length-1])).lineTo(()=>(m.push({x:m[m.length-1].x-x,y:m[m.length-1].y+x}),m[m.length-1])).moveTo(()=>(m.push({x:m[m.length-2].x,y:m[m.length-2].y}),m[m.length-1])).lineTo(()=>(m.push({x:m[m.length-1].x+x,y:m[m.length-1].y+x}),m[m.length-1]));c.hookSideHeightMark.path=y.build(),c.hookSideHeightMark.text.x=mmToPt(m[0].x+2),c.hookSideHeightMark.text.y=mmToPt(m[0].y-L/2),c.hookSideHeightMark.text.label=L.toString()}return{markLineObj:c}},useEarHangingButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$f,foldLineoordinates:foldLineoordinates$f,bleedingLinePath:bleedingLinePath$f,previewBleedingLinePath:previewBleedingLinePath$f,advancedParamsArrow:advancedParamsArrow$1};function EarHangingButtonBottomRules(t,e,n){let s=!0;if((expandWidth$3(n)>1e3||expandHeight$3(n)>700)&&(s=!1),t==="boxLength"&&e<40)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于40mm!",syncType:""};if(t==="boxWidth"&&e<30)return console.log(t,e),{validVal:!1,msg:"尺寸检查未通过,宽度不能小于30mm!",syncType:""};if(t==="boxWidth"&&e>n.boxLength)return{validVal:!1,msg:"尺寸检查未通过,宽度不能大于长度!",syncType:""};if(t==="boxLength"&&e<n.boxWidth)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于宽度!",syncType:"boxWidth"};if(t==="boxHeight"&&e<15)return{validVal:!1,msg:"尺寸检查未通过,高度不能小于15mm!",syncType:"boxHeight",syncSize:15};if(!s)return{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1000*700mm!",syncType:""};if(t==="hookHeight"&&e<15)return{validVal:!1,msg:"尺寸检查未通过,挂钩高不能小于15mm!",syncType:"hookHeight",syncSize:15};if(t==="hookSideHeight"&&e>50)return{validVal:!1,msg:"尺寸检查未通过,挂耳尺寸范围30-50mm!",syncType:"hookSideHeight",syncSize:50};if(t==="hookSideHeight"&&e<30)return{validVal:!1,msg:"尺寸检查未通过,挂耳尺寸范围30-50mm!",syncType:"hookSideHeight",syncSize:30};const u=hookHeightRangeMax(n);return t==="hookHeight"&&e>u?{validVal:!1,msg:`尺寸检查未通过,该尺寸挂钩高不能大于${u}mm!`,syncType:"hookHeight",syncSize:u}:{validVal:!0,msg:"success",syncType:""}}const hookHeightRangeMax=t=>{const{hookHeightP:e,hookHeightPSD:n,radiusPSRr:s}=new EarHangingPluginLock(t);return e-(n+s)-2},expandWidth$3=t=>{const e=useEarHangingButtonBottomPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.x)),s=Math.min(...e.map(u=>u.x));return n-s},expandHeight$3=t=>{const e=useEarHangingButtonBottomPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.y)),s=Math.min(...e.map(u=>u.y));return n-s};registerBox({type:"EarHangingButtonBottomBox",name:"挂耳扣底盒",group:"card",categoryId:"ear-hanging",component:()=>__vitePreload(()=>import("./index-y2bY99ht.js"),__vite__mapDeps([20,1,2,5])),pathApi:useEarHangingButtonBottomPath,rules:EarHangingButtonBottomRules,display:{label:"挂耳扣底盒",index:8,imgSrc:"./defaultDlate/挂耳扣底盒.svg",disabled:!1}});registerBox({type:"EarHangingPluginLockBox",name:"挂耳双插盒",group:"card",categoryId:"ear-hanging",component:()=>__vitePreload(()=>import("./index-C89QjpyF.js"),__vite__mapDeps([21,1,2,5])),pathApi:useEarHangingPluginLockPath,rules:EarHangingPluginLockRules,display:{label:"挂耳双插盒",index:7,imgSrc:"./defaultDlate/挂耳双插盒.svg",disabled:!1}});class Envelope{constructor(e){this._hollowLineLength=13,this._radiusGT=15,this.initHollowLineLength(e.boxWidth),this.initErrorLength(e.thickness)}initHollowLineLength(e){e>=15&&e<20?this._hollowLineLength=e-4:this._hollowLineLength=15}initErrorLength(e){this._errorLength=e+.2}get hollowLineLength(){return this._hollowLineLength}get radiusGT(){return this._radiusGT}get errorLength(){return this._errorLength}}const cuttingLinePath$e=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=new Envelope(t),{hollowLineLength:l,radiusGT:o,errorLength:i}=u;function g(){const d=[];return{path:new SvgPathBuilder().moveTo(()=>(d.push({x:l,y:0}),d[0])).lineTo(()=>(d.push({x:d[0].x+e+n+e+n-i,y:0}),d[1])).lineTo(()=>(d.push({x:d[1].x,y:d[1].y+s}),d[2])).lineTo(()=>(d.push({x:d[2].x-e-n-e-n+i,y:d[2].y}),d[3])).lineTo(()=>(d.push({x:d[3].x-l,y:d[3].y-l*Math.tan(o*(Math.PI/180))}),d[4])).lineTo(()=>(d.push({x:d[4].x,y:d[4].y-(s-2*l*Math.tan(o*(Math.PI/180)))}),d[5])).lineTo(()=>(d.push({x:d[5].x+l,y:d[5].y-l*Math.tan(o*(Math.PI/180))}),d[6])).closePath().build(),actionArray:d}}return{returnPath:g().path,actionArray:g().actionArray}},foldLineoordinates$e=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=cuttingLinePath$e(t).actionArray;return{foldLineObj:{line1:{x1:u[0].x,y1:u[0].y,x2:u[0].x,y2:u[0].y+s},line2:{x1:u[0].x+e,y1:u[0].y,x2:u[0].x+e,y2:u[0].y+s},line3:{x1:u[0].x+e+n,y1:u[0].y,x2:u[0].x+e+n,y2:u[0].y+s},line4:{x1:u[0].x+e+n+e,y1:u[0].y,x2:u[0].x+e+n+e,y2:u[0].y+s}}}},bleedingLinePath$e=t=>{const e=t.boxHeight,n=t.bleedingSpace;function s(){const u=cuttingLinePath$e(t).actionArray,l=[],o=new SvgPathBuilder;{const g=getXOnOffsetLine([u[5].x,-u[5].y],[u[6].x,-u[6].y],0,0);o.moveTo(()=>(l.push({x:g,y:u[0].y}),l[0]))}o.lineTo(()=>(l.push({x:u[1].x+2*n,y:u[0].y}),l[1])).lineTo(()=>(l.push({x:l[1].x,y:l[1].y+e+2*n}),l[2]));{const{yA:g,xB:d}=computeMBPoints([u[3].x,-u[3].y],[u[4].x,-u[4].y],0,-l[2].y);o.lineTo(()=>(l.push({x:d,y:l[2].y}),l[3])).lineTo(()=>(l.push({x:0,y:-g}),l[4]))}{const{yA:g,xB:d}=computeMBPoints([u[5].x,-u[5].y],[u[6].x,-u[6].y],0,0);o.lineTo(()=>(l.push({x:0,y:-g}),l[5])).lineTo(()=>(l.push({x:d,y:0}),l[6]))}return o.closePath(),{path:o.build(),actionArray:l,pathLine:o}}return{returnPath:s().path,actionArray:s().actionArray,pathLine:s().pathLine}},previewBleedingLinePath$e=t=>{const e=bleedingLinePath$e(t).actionArray,n=bleedingLinePath$e(t).pathLine;function s(){const u=cuttingLinePath$e(t).actionArray,l=[];return n.actionSplice(-5,5).lineTo(()=>(l.push({x:u[0].x,y:e[e.length-5].y}),l[0])).lineTo(()=>(l.push({x:l[0].x,y:0}),l[1])).closePath().build()}return{returnPath:s()}},usePanelPath={mmToPt,cuttingLinePath:cuttingLinePath$e,foldLineoordinates:foldLineoordinates$e,bleedingLinePath:bleedingLinePath$e,previewBleedingLinePath:previewBleedingLinePath$e};function EnvelopeRules(t,e,n){return t==="boxLength"&&e<20?{validVal:!1,msg:"尺寸检查未通过,长度不能小于20mm!",syncType:""}:t==="boxWidth"&&e<20?{validVal:!1,msg:"尺寸检查未通过,宽度不能小于20mm!",syncType:""}:t==="boxHeight"&&e<15?{validVal:!1,msg:"尺寸检查未通过,高度不能小于15mm!",syncType:""}:{validVal:!0,msg:"",syncType:""}}registerBox({type:"Envelope",name:"腰封",group:"card",categoryId:"other",component:()=>__vitePreload(()=>import("./index-C0f4omfo.js"),__vite__mapDeps([22,1,2])),pathApi:usePanelPath,rules:EnvelopeRules,display:{label:"腰封",index:14,imgSrc:"./defaultDlate/腰封.svg",disabled:!1}});class TearLine{constructor(e){this._tearLineSpacing=6,this._tearLineVoid=1.5,this._tearLineTiltAngle=45,this._tearLineTiltAngleDisplacement=1.5,this._tearLineLength=5}get tearLineLength(){return this._tearLineLength}get tearLineSpacing(){return this._tearLineSpacing}get tearLineVoid(){return this._tearLineVoid}get tearLineTiltAngle(){return this._tearLineTiltAngle}get tearLineTiltAngleDisplacement(){return this._tearLineTiltAngleDisplacement}}class FlatAdhesive extends ButtonBottom{constructor(e){super(e),this._angleWT=3,this._upperCoverChamferWR=3,this._slotSlopeAS=3.5,this._upperCoverShrinkWS=3,this._upperCoverShrinkWX=1,this._tearLineRemoveCount=1,this._radiusTongueRr=.7,this.initFlatAdhesiveRadiusTongueRrX(),this.initHeightDiff(e.thickness),this.initUpperCoverLengthW3(e.boxWidth),this.initInnerLidLengthW2(),this.initAngleWTVerticalShift(),this.initAngleWTHorizontalShift(),this.initSideHighA(e.boxLength,e.boxWidth),this.initHeightDiffOF1(e.thickness),this.initInnerLidLength(e.boxLength),this.initSideHighAShiftY(),this.initSideHighAShiftX(),this.initSlotSlopeASHorizontalShift(),this.initSlotSlopeASVerticalShift(),this.initSideHighAShortLineHorizontalShift(e.boxWidth),this.initTearLineRemoveCount(e)}initHeightDiff(e){this._heightDiff=e}initUpperCoverLengthW3(e){this._upperCoverLengthW3=e-1}initInnerLidLengthW2(){this._innerLidLengthW2=this.upperCoverLengthW3-4}initSideHighA(e,n){this._sideHighA=n-10<e/2?n-10:e/2}initHeightDiffOF1(e){this._heightDiffOF1=2*e}initAngleWTHorizontalShift(){this._angleWTHorizontalShift=this._angleWTVerticalShift*Math.tan(this._angleWT*(Math.PI/180))}initAngleWTVerticalShift(){this._angleWTVerticalShift=this._innerLidLengthW2-this._upperCoverChamferWR-this._upperCoverShrinkWS}initInnerLidLength(e){this._innerLidLength=e-2*(this._angleWTHorizontalShift+this._upperCoverChamferWR+this.upperCoverShrinkWX)}initSideHighAShiftY(){this._sideHighAShiftY=this._sideHighA-this._upperCoverChamferWR-this._slotSlopeAS}initSideHighAShiftX(){this._sideHighAShiftX=this._sideHighAShiftY*Math.tan(this._angleWT*Math.PI/180)}initSlotSlopeASHorizontalShift(){this._slotSlopeASHorizontalShift=this._slotSlopeAS-this._radiusTongueRr}initSlotSlopeASVerticalShift(){this._slotSlopeASVerticalShift=this._slotSlopeAS-(this._radiusTongueRr-this.heightDiff)}initSideHighAShortLineHorizontalShift(e){this._sideHighAShortLineHorizontalShift=e-2*(this._upperCoverChamferWR+this._sideHighAShiftX+this._slotSlopeASHorizontalShift+(this._radiusTongueRrX-this.upperCoverShrinkWX/2))}initTearLineRemoveCount(e){const{tearLineLength:n,tearLineVoid:s,tearLineTiltAngleDisplacement:u}=new TearLine(e);this._tearLineRemoveCount=Math.floor((e.boxLength-2*this._upperCoverShrinkWX-n-u)/(n+u+s))}initFlatAdhesiveRadiusTongueRrX(){this._radiusTongueRrX=Math.sqrt(this._radiusTongueRr*this._radiusTongueRr-this._heightDiff*this._heightDiff)+this._radiusTongueRr}get upperCoverLengthW3(){return this._upperCoverLengthW3}get innerLidLengthW2(){return this._innerLidLengthW2}get sideHighA(){return this._sideHighA}get upperCoverChamferWR(){return this._upperCoverChamferWR}get angleWT(){return this._angleWT}get heightDiffOF1(){return this._heightDiffOF1}get slotSlopeAS(){return this._slotSlopeAS}get upperCoverShrinkWS(){return this._upperCoverShrinkWS}get upperCoverShrinkWX(){return this._upperCoverShrinkWX}get angleWTHorizontalShift(){return this._angleWTHorizontalShift}get innerLidLength(){return this._innerLidLength}get sideHighAShiftX(){return this._sideHighAShiftX}get sideHighAShiftY(){return this._sideHighAShiftY}get slotSlopeASHorizontalShift(){return this._slotSlopeASHorizontalShift}get sideHighAShortLineHorizontalShift(){return this._sideHighAShortLineHorizontalShift}get angleWTVerticalShift(){return this._angleWTVerticalShift}get slotSlopeASVerticalShift(){return this._slotSlopeASVerticalShift}get tearLineRemoveCount(){return this._tearLineRemoveCount}}const cuttingLinePath$d=function(t){const e=t.boxLength,n=t.boxHeight,s=new FlatAdhesive(t),{hollowLineLength:u,heightDiff:l,radiusTongueRr:o,radiusTongueRrX:i,errorLength:g,upperCoverLengthW3:d,upperCoverShrinkWS:r,upperCoverShrinkWX:f,angleWTHorizontalShift:L,upperCoverChamferWR:T,innerLidLength:x,slotSlopeASHorizontalShift:c,slotSlopeASVerticalShift:m,sideHighAShiftX:y,sideHighAShiftY:O,sideHighAShortLineHorizontalShift:b,angleWTVerticalShift:j}=s;function F(){const k=[],_=new SvgPathBuilder().moveTo(()=>(k.push({x:u,y:d+l}),k[0])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x+f/2,y:k[k.length-1].y-l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+f/2,y:k[k.length-1].y-r}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+L,y:k[k.length-1].y-j}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+x,y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+L,y:k[k.length-1].y+j}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+f/2,y:k[k.length-1].y+r}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x+i,y:k[k.length-1].y+l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+c,y:k[k.length-1].y-m}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+y,y:k[k.length-1].y-O}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+b,y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+y,y:k[k.length-1].y+O}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+c,y:k[k.length-1].y+m}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x+i,y:k[k.length-1].y-l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+f/2,y:k[k.length-1].y-r}),k[k.length-1]));return _.lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y-(d-r)}),k[k.length-1])),_.lineTo(()=>(k.push({x:k[k.length-1].x+(e-2*f),y:k[k.length-1].y}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y+(d-r)}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+f/2,y:k[k.length-1].y+r}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x+i,y:k[k.length-1].y+l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+c,y:k[k.length-1].y-m}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+y,y:k[k.length-1].y-O}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+(b-g),y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+y,y:k[k.length-1].y+O}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+c+(i-f/2),y:k[k.length-1].y+m}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y+(n-2*l)}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-(c+(i-f/2)),y:k[k.length-1].y+m}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-y,y:k[k.length-1].y+O}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-(b-g),y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-y,y:k[k.length-1].y-O}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-c,y:k[k.length-1].y-m}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x-i,y:k[k.length-1].y+l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-f/2,y:k[k.length-1].y+r}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y+(d-r)}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-(e-2*f),y:k[k.length-1].y}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y-(d-r)}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-f/2,y:k[k.length-1].y-r}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x-i,y:k[k.length-1].y-l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-c,y:k[k.length-1].y+m}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-y,y:k[k.length-1].y+O}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-b,y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-y,y:k[k.length-1].y-O}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-c,y:k[k.length-1].y-m}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x-i,y:k[k.length-1].y+l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-f/2,y:k[k.length-1].y+r}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-L,y:k[k.length-1].y+j}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-x,y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-L,y:k[k.length-1].y-j}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-f/2,y:k[k.length-1].y-r}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x-f/2,y:k[k.length-1].y-l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-u,y:k[k.length-1].y-u*Math.tan(15*(Math.PI/180))}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y-(n-(2*l+2*u*Math.tan(15*(Math.PI/180))))}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+u,y:k[k.length-1].y-u*Math.tan(15*(Math.PI/180))}),k[k.length-1])),{path:_.build(),actionArray:k}}return{returnPath:F().path,actionArray:F().actionArray}},foldLineoordinates$d=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=cuttingLinePath$d(t).actionArray,{heightDiff:l,upperCoverShrinkWX:o,radiusTongueRr:i}=new FlatAdhesive(t),g=getXOnLine(u[17].x,-u[17].y,u[18].x,-u[18].y,-(u[0].y-l)),d=g-(u[0].x+e+n);return{foldLineObj:{line1:{x1:u[0].x,y1:u[0].y,x2:u[0].x,y2:u[0].y+(s-2*l)},line2:{x1:u[0].x+o/2,y1:u[0].y-l,x2:u[0].x+e-o/2,y2:u[0].y-l},line3:{x1:u[0].x+o/2,y1:u[0].y-l+s,x2:u[0].x+e-o/2,y2:u[0].y-l+s},line4:{x1:u[0].x+e,y1:u[0].y+(i-l),x2:u[0].x+e,y2:u[0].y+(s-2*l)-(i-l)},line5:{x1:u[9].x,y1:u[0].y,x2:u[16].x,y2:u[0].y},line6:{x1:u[9].x,y1:u[0].y+(s-2*l),x2:u[16].x,y2:u[0].y+(s-2*l)},line7:{x1:u[0].x+e+n,y1:u[0].y-l+i,x2:u[0].x+e+n,y2:u[0].y+(s-2*l)-(i-l)},line8:{x1:g,y1:u[0].y-l,x2:u[0].x+e+n+e-d,y2:u[0].y-l},line9:{x1:g,y1:u[0].y-l+s,x2:u[0].x+e+n+e-d,y2:u[0].y-l+s},line10:{x1:u[0].x+e+n+e,y1:u[0].y-l+i,x2:u[0].x+e+n+e,y2:u[0].y+(s-2*l)-(i-l)},line11:{x1:u[23].x,y1:u[0].y,x2:u[30].x,y2:u[0].y},line12:{x1:u[23].x,y1:u[0].y+(s-2*l),x2:u[30].x,y2:u[0].y+(s-2*l)}}}},bleedingLinePath$d=t=>{function e(){const n=[],s=cuttingLinePath$d(t).returnPath;return{path:BleedGenerator.getInstance().generate(s),actionArray:n}}return{returnPath:e().path,actionArray:e().actionArray}},previewBleedingLinePath$d=function(t){const e=t.boxLength,n=t.boxHeight,s=new FlatAdhesive(t),{hollowLineLength:u,heightDiff:l,radiusTongueRr:o,radiusTongueRrX:i,errorLength:g,upperCoverLengthW3:d,upperCoverShrinkWS:r,upperCoverShrinkWX:f,angleWTHorizontalShift:L,upperCoverChamferWR:T,innerLidLength:x,slotSlopeASHorizontalShift:c,slotSlopeASVerticalShift:m,sideHighAShiftX:y,sideHighAShiftY:O,sideHighAShortLineHorizontalShift:b,angleWTVerticalShift:j}=s;function F(){const k=[],_=new SvgPathBuilder().moveTo(()=>(k.push({x:u,y:d+l}),k[0])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x+f/2,y:k[k.length-1].y-l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+f/2,y:k[k.length-1].y-r}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+L,y:k[k.length-1].y-j}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+x,y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+L,y:k[k.length-1].y+j}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+f/2,y:k[k.length-1].y+r}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x+i,y:k[k.length-1].y+l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+c,y:k[k.length-1].y-m}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+y,y:k[k.length-1].y-O}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+b,y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+y,y:k[k.length-1].y+O}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+c,y:k[k.length-1].y+m}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x+i,y:k[k.length-1].y-l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+f/2,y:k[k.length-1].y-r}),k[k.length-1]));return _.lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y-(d-r)}),k[k.length-1])),_.lineTo(()=>(k.push({x:k[k.length-1].x+(e-2*f),y:k[k.length-1].y}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y+(d-r)}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+f/2,y:k[k.length-1].y+r}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x+i,y:k[k.length-1].y+l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+c,y:k[k.length-1].y-m}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+y,y:k[k.length-1].y-O}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+(b-g),y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x+T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+y,y:k[k.length-1].y+O}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x+c+(i-f/2),y:k[k.length-1].y+m}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y+(n-2*l)}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-(c+(i-f/2)),y:k[k.length-1].y+m}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-y,y:k[k.length-1].y+O}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-(b-g),y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-y,y:k[k.length-1].y-O}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-c,y:k[k.length-1].y-m}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x-i,y:k[k.length-1].y+l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-f/2,y:k[k.length-1].y+r}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y+(d-r)}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-(e-2*f),y:k[k.length-1].y}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x,y:k[k.length-1].y-(d-r)}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-f/2,y:k[k.length-1].y-r}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x-i,y:k[k.length-1].y-l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-c,y:k[k.length-1].y+m}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-y,y:k[k.length-1].y+O}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-b,y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-y,y:k[k.length-1].y-O}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-c,y:k[k.length-1].y-m}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x-i,y:k[k.length-1].y+l}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-f/2,y:k[k.length-1].y+r}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-L,y:k[k.length-1].y+j}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y+T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-x,y:k[k.length-1].y}),k[k.length-1])).arcTo(T,T,0,0,1,()=>(k.push({x:k[k.length-1].x-T,y:k[k.length-1].y-T}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-L,y:k[k.length-1].y-j}),k[k.length-1])).lineTo(()=>(k.push({x:k[k.length-1].x-f/2,y:k[k.length-1].y-r}),k[k.length-1])).arcTo(o,o,0,0,0,()=>(k.push({x:k[k.length-1].x-f/2,y:k[k.length-1].y-l}),k[k.length-1])).closePath(),{path:BleedGenerator.getInstance().generate(_.build()),actionArray:k}}return{returnPath:F().path,actionArray:F().actionArray}},useFlatAdhesivePath={mmToPt,cuttingLinePath:cuttingLinePath$d,foldLineoordinates:foldLineoordinates$d,bleedingLinePath:bleedingLinePath$d,previewBleedingLinePath:previewBleedingLinePath$d};registerBox({type:"FlatAdhesiveBox",name:"平粘盒",group:"card",categoryId:"flat-adhesive",component:()=>__vitePreload(()=>import("./index-BOTkDqEd.js"),__vite__mapDeps([23,1,2])),pathApi:useFlatAdhesivePath,rules:ReversePluginLockBoxRules,display:{label:"平粘盒",index:10,imgSrc:"./defaultDlate/平粘盒.svg",disabled:!1}});class Handheld extends ButtonBottom{constructor(e){super(e),this._handheldHighH1=35,this._jacketWidthHX=3,this._jacketLength=25,this._jacketPosition=3,this._handheldHighHR=6,this._handheldHighHRLeft=26,this._handheldHighHRRight=7,this._handheldHighHRAngle=60,this._handheldHighHRTopAngle=79,this._handheldHighHRVertical=16,this._handheldHighHRHorizontal=10,this._handheldHighEar=45,this._handheldHighEarArcRadius=5,this._handheldHigh=15,this._handheldHighLength=60,this._handheldHighRadius=7.5,this._handheldHighRadiusDown=2,this._radiusTongueT1=1,this._heightDiffT1=.2,this.initHandheldHighH2(e.boxWidth,e.thickness),this.initHandheldHighHRHorizontalTop(e.boxLength),this.initHandheldHighEarArcRadius(),this.initHandheldHighEarArcXDisplacement(),this.initHandheldHighEarArcYDisplacement(),this.initHandheldHighEarSlopeYDisplacement(),this.initHandheldHighStart(e.boxLength),this.initRadiusTongueT1X(),this.initRadiusTongueCutT1X(),this.initHandheldHighEarSlopeXDisplacement(),this.initHandheldHighEarTopLine(e.boxWidth)}initHandheldHighH2(e,n){this._handheldHighH2=e/2-n}initHandheldHighHRHorizontalTop(e){this._handheldHighHRHorizontalTop=e-2*(this._handheldHighHRHorizontal+2*this._handheldHighHR)}initHandheldHighEarArcXDisplacement(){this._handheldHighEarArcXDisplacement=this._handheldHighEarArcRadius*.965926}initHandheldHighEarArcYDisplacement(){this._handheldHighEarArcYDisplacement=this._handheldHighEarArcRadius*.741181}initHandheldHighEarSlopeYDisplacement(){this._handheldHighEarSlopeYDisplacement=this._handheldHighEar-this._handheldHighEarArcRadius-this._heightDiffT1}initHandheldHighEarSlopeXDisplacement(){this._handheldHighEarSlopeXDisplacement=this._handheldHighEarSlopeYDisplacement*this._heightDiffT1/this._radiusTongueCutT1X}initHandheldHighEarTopLine(e){this._handheldHighEarTopLine=e-2*(this._radiusTongueCutT1X+this._radiusTongueT1+this._handheldHighEarSlopeXDisplacement+this._handheldHighEarArcXDisplacement)}initHandheldHighEarArcRadius(){this._handheldHighEarArcRadius=5}initHandheldHighStart(e){this._handheldHighStart=(e-this._handheldHighLength)/2+this._handheldHighRadiusDown}initRadiusTongueT1X(){this._radiusTongueT1X=Math.sqrt(this._radiusTongueT1*this._radiusTongueT1-this._heightDiff*this._heightDiff)}initRadiusTongueCutT1X(){this._radiusTongueCutT1X=Math.sqrt(this._radiusTongueT1*this._radiusTongueT1-this._heightDiffT1*this._heightDiffT1)}get handheldHighEarArcRadius(){return this._handheldHighEarArcRadius}get handheldHighEarTopLine(){return this._handheldHighEarTopLine}get handheldHighEarSlopeYDisplacement(){return this._handheldHighEarSlopeYDisplacement}get handheldHighEarSlopeXDisplacement(){return this._handheldHighEarSlopeXDisplacement}get handheldHighEarArcXDisplacement(){return this._handheldHighEarArcXDisplacement}get handheldHighEarArcYDisplacement(){return this._handheldHighEarArcYDisplacement}get handheldHighEar(){return this._handheldHighEar}get handheldHighHRTopAngle(){return this._handheldHighHRTopAngle}get handheldHighHRHorizontalTop(){return this._handheldHighHRHorizontalTop}get handheldHighHRHorizontal(){return this._handheldHighHRHorizontal}get handheldHighHRVertical(){return this._handheldHighHRVertical}get handheldHighHRAngle(){return this._handheldHighHRAngle}get handheldHighHRRight(){return this._handheldHighHRRight}get handheldHighHRLeft(){return this._handheldHighHRLeft}get handheldHighH1(){return this._handheldHighH1}get jacketWidthHX(){return this._jacketWidthHX}get handheldHighHR(){return this._handheldHighHR}get jacketLength(){return this._jacketLength}get handheldHigh(){return this._handheldHigh}get handheldHighLength(){return this._handheldHighLength}get jacketPosition(){return this._jacketPosition}get handheldHighStart(){return this._handheldHighStart}get handheldHighH2(){return this._handheldHighH2}get handheldHighRadius(){return this._handheldHighRadius}get handheldHighRadiusDown(){return this._handheldHighRadiusDown}get radiusTongueT1(){return this._radiusTongueT1}get radiusTongueT1X(){return this._radiusTongueT1X}get heightDiffT1(){return this._heightDiffT1}get radiusTongueCutT1X(){return this._radiusTongueCutT1X}}const buckleRender=(t,e,n)=>{const{K2Length:s,M2Length:u,receptionLocationBR:l,downMoveRY:o,receptionLocationBRX:i,K3Height:g,radiusTongueK1r:d,radiusTongueK1rX:r,radiusTongueK1rY:f,offsetX:L,hollowLineLength:T,negativeBuckleWidthM:x,negativeBuckleNumber:c,K1Height:m,downMoveRYK1:y}=new ButtonBottom(n),O=n.boxLength,b=n.boxWidth;t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-i),y:e[e.length-1].y+s}),e[e.length-1])),b<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-d}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+d}),e[e.length-1])),t.lineTo(()=>(e.push({x:T+O+b+O+l,y:e[e.length-1].y}),e[e.length-1]))):(t.lineTo(()=>(e.push({x:e[e.length-1].x+(r-L),y:e[e.length-1].y+(g-f)}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y+f}),e[e.length-1])),t.lineTo(()=>(e.push({x:T+O+b+O+l,y:e[e.length-1].y}),e[e.length-1]))),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-5].y+o}),e[e.length-1])),t.arcTo(l,l,0,0,0,()=>(e.push({x:e[e.length-1].x-(l+i),y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(O-(x-l)-2*i)/2,y:e[e.length-1].y+y}),e[e.length-1]));function j(k){const _=2*k-1;for(let ue=1;ue<k;ue++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+m-d}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((x-l)/_-2*d),y:e[e.length-1].y}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(m-d)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(x-l)/_,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+m-d}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((x-l)/_-2*d),y:e[e.length-1].y}),e[e.length-1]))}c===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+m-d}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(x-l)+2*d,y:e[e.length-1].y}),e[e.length-1])):j(2),t.arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(m-d)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(O-(x-l)-2*i)/2,y:e[e.length-1].y-y}),e[e.length-1])).arcTo(l,l,0,0,0,()=>(e.push({x:e[e.length-1].x-(l+i),y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s+g-o}),e[e.length-1])),b<=50?t.lineTo(()=>(e.push({x:T+O+u+d,y:e[e.length-1].y}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-d)}),e[e.length-1])):t.lineTo(()=>(e.push({x:T+O+u+L,y:e[e.length-1].y}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(r-L),y:e[e.length-1].y-(g-f)}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-u+i,y:e[e.length-1].y-s}),e[e.length-1])).arcTo(l,l,0,0,0,()=>(e.push({x:e[e.length-1].x-(l+i),y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+m+y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((O-x)/2-d-l)+l/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(m-d)}),e[e.length-1]));function F(k){const _=2*k-1;for(let ue=1;ue<k;ue++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(x/_+l),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(m-d)}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(x/_-2*d-l),y:e[e.length-1].y}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(m-d)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-x/_-l,y:e[e.length-1].y}),e[e.length-1]))}return c===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(x+l),y:e[e.length-1].y}),e[e.length-1])):F(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+m-d}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((O-x)/2-d-l)+l/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+m+y-o)}),e[e.length-1])).arcTo(l,l,0,0,0,()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-l}),e[e.length-1])),t},handheldRender=(t,e,n)=>{const{handheldHighRadiusDown:s,handheldHighRadius:u,handheldHighLength:l,handheldHigh:o}=new Handheld(n);t.arcTo(s,s,0,0,1,()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y-s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(o-s-u)}),e[e.length-1])).arcTo(u,u,0,0,1,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y-u}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-2*u),y:e[e.length-1].y}),e[e.length-1])).arcTo(u,u,0,0,1,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y+u}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(o-s-u)}),e[e.length-1])).arcTo(s,s,0,0,1,()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y+s}),e[e.length-1]))},jacketRender=(t,e,n)=>{const{jacketLength:s,jacketWidthHX:u}=new Handheld(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(s-u)}),e[e.length-1])).arcTo(u/2,u/2,0,0,1,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s-u)}),e[e.length-1])).arcTo(u/2,u/2,0,0,1,()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y}),e[e.length-1]))},handleSurfaceRender=(t,e,n)=>{const{handheldHighH2:s,handheldHighHR:u,handheldHighHRLeft:l,handheldHighHRRight:o,handheldHighHRHorizontal:i,handheldHighHRVertical:g,handheldHighHRHorizontalTop:d,receptionLocationBR:r}=new Handheld(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(s+l)}),e[e.length-1])).arcTo(u,u,0,0,1,()=>(e.push({x:e[e.length-1].x+2*u,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-o}),e[e.length-1])).arcTo(u,u,0,0,1,()=>(e.push({x:e[e.length-1].x+2*u,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s+l)}),e[e.length-1]))},cuttingLinePath$c=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight;t.thickness;const u=new Handheld(t),{hollowLineLength:l,errorLength:o,receptionLocationBR:i,downMoveRY:g,handheldHighEarSlopeXDisplacement:d,handheldHighEarSlopeYDisplacement:r,handheldHighEarArcRadius:f,handheldHighEarArcXDisplacement:L,handheldHighEarArcYDisplacement:T,handheldHighEarTopLine:x,handheldHighStart:c,jacketPosition:m,jacketWidthHX:y,handheldHighH1:O,handheldHighH2:b,radiusTongueT1:j,heightDiffT1:F,radiusTongueCutT1X:k}=u;function _(){const ue=[],re=new SvgPathBuilder().moveTo(()=>(ue.push({x:l,y:O+b+i}),ue[ue.length-1]));return handleSurfaceRender(re,ue,t),re.arcTo(j,j,0,0,0,()=>(ue.push({x:ue[ue.length-1].x+j+k,y:ue[ue.length-1].y+F}),ue[ue.length-1])).lineTo(()=>(ue.push({x:ue[ue.length-1].x+d,y:ue[ue.length-1].y-r}),ue[ue.length-1])).arcTo(f,f,0,0,1,()=>(ue.push({x:ue[ue.length-1].x+L,y:ue[ue.length-1].y-T}),ue[ue.length-1])).lineTo(()=>(ue.push({x:ue[ue.length-1].x+x,y:ue[ue.length-1].y}),ue[ue.length-1])).arcTo(f,f,0,0,1,()=>(ue.push({x:ue[ue.length-1].x+L,y:ue[ue.length-1].y+T}),ue[ue.length-1])).lineTo(()=>(ue.push({x:ue[ue.length-1].x+d,y:ue[ue.length-1].y+r}),ue[ue.length-1])).arcTo(j,j,0,0,0,()=>(ue.push({x:ue[ue.length-1].x+j+k,y:ue[ue.length-1].y-F}),ue[ue.length-1])),handleSurfaceRender(re,ue,t),re.arcTo(j,j,0,0,0,()=>(ue.push({x:ue[ue.length-1].x+j+k,y:ue[ue.length-1].y+F}),ue[ue.length-1])).lineTo(()=>(ue.push({x:ue[ue.length-1].x+d,y:ue[ue.length-1].y-r}),ue[ue.length-1])).arcTo(f,f,0,0,1,()=>(ue.push({x:ue[ue.length-1].x+L,y:ue[ue.length-1].y-T}),ue[ue.length-1])).lineTo(()=>(ue.push({x:ue[ue.length-1].x+x-o+j,y:ue[ue.length-1].y}),ue[ue.length-1])).arcTo(f,f,0,0,1,()=>(ue.push({x:ue[ue.length-1].x+L,y:ue[ue.length-1].y+T}),ue[ue.length-1])).lineTo(()=>(ue.push({x:ue[ue.length-1].x+d,y:ue[ue.length-1].y+r}),ue[ue.length-1])).arcTo(j,j,0,0,0,()=>(ue.push({x:ue[ue.length-1].x+k,y:ue[ue.length-1].y+(j-F)}),ue[ue.length-1])).lineTo(()=>(ue.push({x:ue[ue.length-1].x,y:ue[ue.length-1].y+(s-j)}),ue[ue.length-1])),buckleRender(re,ue,t),re.lineTo(()=>(ue.push({x:0,y:ue[ue.length-1].y-l*Math.tan(15*(Math.PI/180))}),ue[ue.length-1])).lineTo(()=>(ue.push({x:ue[ue.length-1].x,y:ue[0].y+l*Math.tan(15*(Math.PI/180))}),ue[ue.length-1])).lineTo(()=>(ue.push({x:ue[ue.length-3].x,y:ue[ue.length-1].y-l*Math.tan(15*(Math.PI/180))}),ue[ue.length-1])).moveTo(()=>(ue.push({x:ue[0].x+c,y:ue[0].y-b}),ue[ue.length-1])),handheldRender(re,ue,t),re.moveTo(()=>(ue.push({x:ue[0].x+e+n+c,y:ue[0].y-b}),ue[ue.length-1])),handheldRender(re,ue,t),re.moveTo(()=>(ue.push({x:ue[0].x+e+n/2-y/2,y:ue[0].y-(i-g)-m-y/2}),ue[ue.length-1])),jacketRender(re,ue,t),re.moveTo(()=>(ue.push({x:ue[0].x+e+n+e+(n-o)/2-y/2,y:ue[0].y-(i-g)-m-y/2}),ue[ue.length-1])),jacketRender(re,ue,t),{path:re.build(),actionArray:ue,pathLine:re}}return{returnPath:_().path,actionArray:_().actionArray,pathLine:_().pathLine}},foldLineoordinates$c=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight;t.thickness;const u=cuttingLinePath$c(t).actionArray,l=new Handheld(t),{heightDiff:o,errorLength:i,receptionLocationBR:g,downMoveRY:d,receptionLocationBRX:r,handheldHighH2:f,radiusTongueT1:L,radiusTongueCutT1X:T,radiusTongueT1X:x}=l;return{foldLineObj:{line1:{x1:u[0].x,y1:u[0].y,x2:u[0].x,y2:u[0].y+s-(g-d)},line2:{x1:u[0].x,y1:u[0].y-f,x2:u[0].x+e,y2:u[0].y-f},line3:{x1:u[0].x,y1:u[0].y,x2:u[0].x+e,y2:u[0].y},line4:{x1:u[0].x+r,y1:u[0].y+s,x2:u[0].x+e-r,y2:u[0].y+s},line5:{x1:u[0].x+e,y1:u[0].y,x2:u[0].x+e,y2:u[0].y+s-(g-d)},line6:{x1:u[0].x+e+L+x,y1:u[0].y+o,x2:u[0].x+e+n-(L+x),y2:u[0].y+o},line7:{x1:u[0].x+e+r,y1:u[0].y+s,x2:u[0].x+e+n-r,y2:u[0].y+s},line8:{x1:u[0].x+e+n,y1:u[0].y,x2:u[0].x+e+n,y2:u[0].y+s-(g-d)},line9:{x1:u[0].x+n+e,y1:u[0].y-f,x2:u[0].x+e+n+e,y2:u[0].y-f},line10:{x1:u[0].x+n+e,y1:u[0].y,x2:u[0].x+e+n+e,y2:u[0].y},line11:{x1:u[0].x+r+n+e,y1:u[0].y+s,x2:u[0].x+e-r+n+e,y2:u[0].y+s},line12:{x1:u[0].x+e+n+e,y1:u[0].y,x2:u[0].x+e+n+e,y2:u[0].y+s-(g-d)},line13:{x1:u[0].x+e+n+e+L+x,y1:u[0].y+o,x2:u[0].x+e+n+e+n-i-x,y2:u[0].y+o},line14:{x1:u[0].x+2*e+n+r,y1:u[0].y+s,x2:u[0].x+2*e+n+n-i,y2:u[0].y+s}}}},bleedingLinePath$c=t=>{t.boxLength,t.boxWidth;const e=t.boxHeight;t.thickness;const n=new Handheld(t),{hollowLineLength:s,errorLength:u,receptionLocationBR:l,handheldHighEarSlopeXDisplacement:o,handheldHighEarSlopeYDisplacement:i,handheldHighEarArcRadius:g,handheldHighEarArcXDisplacement:d,handheldHighEarArcYDisplacement:r,handheldHighEarTopLine:f,handheldHighH1:L,handheldHighH2:T,radiusTongueT1:x,heightDiffT1:c,radiusTongueCutT1X:m}=n;function y(){const O=[],b=new SvgPathBuilder().moveTo(()=>(O.push({x:s,y:L+T+l}),O[O.length-1]));return handleSurfaceRender(b,O,t),b.arcTo(x,x,0,0,0,()=>(O.push({x:O[O.length-1].x+x+m,y:O[O.length-1].y+c}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+o,y:O[O.length-1].y-i}),O[O.length-1])).arcTo(g,g,0,0,1,()=>(O.push({x:O[O.length-1].x+d,y:O[O.length-1].y-r}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+f,y:O[O.length-1].y}),O[O.length-1])).arcTo(g,g,0,0,1,()=>(O.push({x:O[O.length-1].x+d,y:O[O.length-1].y+r}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+o,y:O[O.length-1].y+i}),O[O.length-1])).arcTo(x,x,0,0,0,()=>(O.push({x:O[O.length-1].x+x+m,y:O[O.length-1].y-c}),O[O.length-1])),handleSurfaceRender(b,O,t),b.arcTo(x,x,0,0,0,()=>(O.push({x:O[O.length-1].x+x+m,y:O[O.length-1].y+c}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+o,y:O[O.length-1].y-i}),O[O.length-1])).arcTo(g,g,0,0,1,()=>(O.push({x:O[O.length-1].x+d,y:O[O.length-1].y-r}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+f-u+x,y:O[O.length-1].y}),O[O.length-1])).arcTo(g,g,0,0,1,()=>(O.push({x:O[O.length-1].x+d,y:O[O.length-1].y+r}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+o,y:O[O.length-1].y+i}),O[O.length-1])).arcTo(x,x,0,0,0,()=>(O.push({x:O[O.length-1].x+m,y:O[O.length-1].y+(x-c)}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x,y:O[O.length-1].y+(e-x)}),O[O.length-1])),buckleRender(b,O,t),b.lineTo(()=>(O.push({x:0,y:O[O.length-1].y-s*Math.tan(15*(Math.PI/180))}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x,y:O[0].y+s*Math.tan(15*(Math.PI/180))}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-3].x,y:O[O.length-1].y-s*Math.tan(15*(Math.PI/180))}),O[O.length-1])),{path:BleedGeneratorV2.getInstance().generate(b.build()),actionArray:O}}return{returnPath:y().path,actionArray:y().actionArray}},previewBleedingLinePath$c=t=>{t.boxLength,t.boxWidth;const e=t.boxHeight,n=new Handheld(t),{hollowLineLength:s,errorLength:u,receptionLocationBR:l,handheldHighEarSlopeXDisplacement:o,handheldHighEarSlopeYDisplacement:i,handheldHighEarArcRadius:g,handheldHighEarArcXDisplacement:d,handheldHighEarArcYDisplacement:r,handheldHighEarTopLine:f,handheldHighH1:L,handheldHighH2:T,radiusTongueT1:x,heightDiffT1:c,radiusTongueCutT1X:m}=n;function y(){const O=[],b=new SvgPathBuilder().moveTo(()=>(O.push({x:s,y:L+T+l}),O[O.length-1]));return handleSurfaceRender(b,O,t),b.arcTo(x,x,0,0,0,()=>(O.push({x:O[O.length-1].x+x+m,y:O[O.length-1].y+c}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+o,y:O[O.length-1].y-i}),O[O.length-1])).arcTo(g,g,0,0,1,()=>(O.push({x:O[O.length-1].x+d,y:O[O.length-1].y-r}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+f,y:O[O.length-1].y}),O[O.length-1])).arcTo(g,g,0,0,1,()=>(O.push({x:O[O.length-1].x+d,y:O[O.length-1].y+r}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+o,y:O[O.length-1].y+i}),O[O.length-1])).arcTo(x,x,0,0,0,()=>(O.push({x:O[O.length-1].x+x+m,y:O[O.length-1].y-c}),O[O.length-1])),handleSurfaceRender(b,O,t),b.arcTo(x,x,0,0,0,()=>(O.push({x:O[O.length-1].x+x+m,y:O[O.length-1].y+c}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+o,y:O[O.length-1].y-i}),O[O.length-1])).arcTo(g,g,0,0,1,()=>(O.push({x:O[O.length-1].x+d,y:O[O.length-1].y-r}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+f-u+x,y:O[O.length-1].y}),O[O.length-1])).arcTo(g,g,0,0,1,()=>(O.push({x:O[O.length-1].x+d,y:O[O.length-1].y+r}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x+o,y:O[O.length-1].y+i}),O[O.length-1])).arcTo(x,x,0,0,0,()=>(O.push({x:O[O.length-1].x+m,y:O[O.length-1].y+(x-c)}),O[O.length-1])).lineTo(()=>(O.push({x:O[O.length-1].x,y:O[O.length-1].y+(e-x)}),O[O.length-1])),buckleRender(b,O,t),b.closePath(),BleedGeneratorV2.getInstance().generate(b.build())}return{returnPath:y()}},useHandheldPath={mmToPt,cuttingLinePath:cuttingLinePath$c,foldLineoordinates:foldLineoordinates$c,bleedingLinePath:bleedingLinePath$c,previewBleedingLinePath:previewBleedingLinePath$c};function HandheldBoxRules(t,e,n){let s=!0;if(t==="boxLength"?(hollowLineLengthInit(e,n.boxWidth)+2*e+2*n.boxWidth>1e3||n.boxHeight+2*(n.boxWidth+tongueHeightInit(e))>700)&&(s=!1):t==="boxWidth"?(hollowLineLengthInit(n.boxLength,e)+2*n.boxLength+2*e>1e3||n.boxHeight+2*(e+tongueHeightInit(n.boxLength))>700)&&(s=!1):t==="boxHeight"&&(hollowLineLengthInit(n.boxLength,n.boxWidth)+2*n.boxLength+2*n.boxWidth>1e3||e+2*(n.boxWidth+tongueHeightInit(n.boxLength))>700)&&(s=!1),t==="boxLength"&&n.boxWidth+e<70||t==="boxWidth"&&n.boxLength+e<70)return{validVal:!1,msg:"尺寸检查未通过,长度与宽度之和要求不小于70mm!",syncType:""};if(t==="boxWidth"&&e<30)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于30mm!",syncType:""};if(t==="boxLength"&&e<30)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于30mm!",syncType:""};if(t==="boxWidth"&&e>n.boxLength)return{validVal:!1,msg:"尺寸检查未通过,宽度不能大于长度!",syncType:""};if(t==="boxLength"&&e<n.boxWidth)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于宽度!",syncType:"boxWidth"};if(s){if(t==="boxLength"&&e<70)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于70mm!",syncType:""};if(t==="boxHeight"&&e<20)return{validVal:!1,msg:"尺寸检查未通过,高度不能小于20mm!",syncType:"boxHeight",syncSize:20}}else return{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1000*700mm!",syncType:""};return{validVal:!0,msg:"success",syncType:""}}registerBox({type:"HandheldBox",name:"手提盒",group:"card",categoryId:"special",component:()=>__vitePreload(()=>import("./index-DlSFUEOs.js"),__vite__mapDeps([24,1,2])),pathApi:useHandheldPath,rules:HandheldBoxRules,display:{label:"手提盒",index:12,imgSrc:"./defaultDlate/手提盒.svg",disabled:!1}});function LargeWidthButtonBottomBoxRules(t,e,n){let s=!0;if((expandWidth$2(n)>1500||expandHeight$2(n)>1200)&&(s=!1),t==="boxWidth"&&e<30)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于30mm!",syncType:""};if(t==="boxLength"&&e<30)return{validVal:!1,msg:"尺寸检查未通过,长度不能小于30mm!",syncType:""};if(t==="boxLength"&&e>=n.boxWidth)return{validVal:!1,msg:"尺寸检查未通过,长度不能大于等于宽度!",syncType:""};if(t==="boxWidth"&&e<=n.boxLength)return{validVal:!1,msg:"尺寸检查未通过,宽度不能小于等于长度!",syncType:"boxLength"};if(s){if(t==="boxHeight"&&e<20)return{validVal:!1,msg:"尺寸检查未通过,高度不能小于20mm!",syncType:"boxHeight",syncSize:20}}else return{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1000*700mm!",syncType:""};return{validVal:!0,msg:"success",syncType:""}}const expandWidth$2=t=>{const e=useLargeWidthButtonBottomPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.x)),s=Math.min(...e.map(u=>u.x));return n-s},expandHeight$2=t=>{const e=useLargeWidthButtonBottomPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.y)),s=Math.min(...e.map(u=>u.y));return n-s};registerBox({type:"LargeWidthButtonBottomBox",name:"普通扣底盒(宽大于长、异侧)",group:"card",categoryId:"large-width-button-bottom",component:()=>__vitePreload(()=>import("./index-BhlbW8dR.js"),__vite__mapDeps([25,1,2])),pathApi:useLargeWidthButtonBottomPath,rules:LargeWidthButtonBottomBoxRules,display:{label:"普通扣底盒(宽大于长、异侧)",index:28,imgSrc:"./defaultDlate/普通扣底盒(宽大于长、异侧).svg",disabled:!1}});const topLeftBigTongue$3=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:u,y:l-i}),e[1])).lineTo(()=>(e.push({x:u+s,y:e[1].y}),e[2])).lineTo(()=>(e.push({x:e[2].x,y:g}),e[3])).arcTo(g,g,0,0,1,()=>(e.push({x:e[3].x+g,y:e[3].y-g}),e[4])).lineTo(()=>(e.push({x:e[4].x+o-2*g,y:e[4].y}),e[5])).arcTo(g,g,0,0,1,()=>(e.push({x:e[5].x+g,y:e[5].y+g}),e[6])).lineTo(()=>(e.push({x:e[6].x,y:e[6].y+l-i-g}),e[7])).lineTo(()=>(e.push({x:e[7].x+s,y:e[7].y}),e[8])).lineTo(()=>(e.push({x:e[8].x,y:e[8].y+d}),e[9])),t},topLeftEar$3=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,sideWingLength:g,tongueTopLength:d,radiusTongueAr:r,xLength13:f,yLength13:L,lockYLength:T,lockSLength:x}=new LargeWidthButtonBottom(n);return t.arcTo(s,s,0,0,0,()=>(e.push({x:e[9].x+u,y:e[9].y+l}),e[10])).lineTo(()=>(e.push({x:e[9].x+o,y:e[10].y-o}),e[11])).lineTo(()=>(e.push({x:e[9].x+i,y:e[10].y-g}),e[12])).lineTo(()=>(e.push({x:e[12].x+d,y:e[12].y}),e[13])).arcTo(r,r,0,0,1,()=>(e.push({x:e[13].x+.974*r,y:e[13].y+.775*r}),e[14])).lineTo(()=>(e.push({x:e[14].x+f,y:e[14].y+L}),e[15])).lineTo(()=>(e.push({x:e[15].x+T,y:e[15].y+T}),e[16])).lineTo(()=>(e.push({x:e[16].x,y:e[16].y+x}),e[17])),t},topRightEar$3=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth;n.boxHeight,n.thickness;const{hollowLineLength:l,errorLength:o,slotBottomWidth:i,slotWidth:g,radiusTongueAr:d,xLength13:r,yLength13:f,lockYLength:L,lockSLength:T}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-f}),e[e.length-1])).arcTo(d,d,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*d,y:e[e.length-1].y-.775*d}),e[e.length-1])).lineTo(()=>(e.push({x:l+s+u+s+u-o-g,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g-i,y:e[e.length-6].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-7].y}),e[e.length-1])),t},motherLockRender$2=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new LargeWidthButtonBottom(n);return t.moveTo(()=>(e.push({x:e[2].x,y:e[1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[7].x,y:e[7].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},rightEar$2=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth,l=n.boxHeight;n.thickness;const{hollowLineLength:o,errorLength:i,receptionLocationBR:g,receptionLocationBRX:d,downMoveRY:r,K2Length:f,K3Height:L,M2Length:T,radiusTongueK1r:x,offsetX:c,radiusTongueK1rX:m,radiusTongueK1rY:y,K1Height:O,downMoveRYK1:b,negativeBuckleWidthM:j,negativeBuckleNumber:F,receptionLocation:k,overcutYLength:_,motherLockLength:ue,heightDiff:re}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(T-g-d),y:e[e.length-1].y+f}),e[e.length-1])),s<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+L-x}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+x}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+s+u+g,y:e[e.length-1].y}),e[e.length-1]))):t.lineTo(()=>(e.push({x:e[e.length-1].x-c+m,y:e[e.length-1].y+L-y}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-m,y:e[e.length-1].y+y}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x+s+u+g,y:e[e.length-1].y}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[0].y+(l-re)+r}),e[e.length-1])),t},lefrEar$2=(t,e,n)=>{const s=n.boxLength;n.boxWidth;const u=n.boxHeight;n.thickness;const{errorLength:l,receptionLocationBR:o,receptionLocationBRX:i,downMoveRY:g,K2Length:d,K3Height:r,M2Length:f,radiusTongueK1r:L,offsetX:T,radiusTongueK1rX:x,radiusTongueK1rY:c,heightDiff:m}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d+r-g}),e[e.length-1])),s<=50?t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(f-o)-L-o),y:e[e.length-1].y}),e[e.length-1])).arcTo(L,L,0,0,1,()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(r-L)}),e[e.length-1])):t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(f-o)-o)+T,y:e[e.length-1].y}),e[e.length-1])).arcTo(L,L,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y-c}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-T,y:e[e.length-2].y-r}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+i,y:e[0].y+(u-m)}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-(o-g)}),e[e.length-1])),t},plugintRender$2=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-u)-2*l)/2,y:e[e.length-1].y+d}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)/c,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)+2*i,y:e[e.length-1].y}),e[e.length-1])):T(2),t.arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-u)-2*l)/2,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y+o}),e[e.length-1])),t},negativeBuckleRender$2=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-L-r)/2-i-u+u)+u/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(r/c+u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(g-i)}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r/c-2*i-u),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-r/c-u,y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(r+u),y:e[e.length-1].y}),e[e.length-1])):T(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-L-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g+d-o)}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])),t},cuttingLinePath$b=function(t){const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u;function r(){const f=[],L=new SvgPathBuilder().moveTo(()=>(f.push({x:l,y:o+d-i+g}),f[0]));return topLeftBigTongue$3(L,f,t),topLeftEar$3(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x+2*s+e,y:f[f.length-1].y}),f[f.length-1])),topRightEar$3(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[f.length-1].y+n-g}),f[f.length-1])),negativeBuckleRender$2(L,f,t),rightEar$2(L,f,t),plugintRender$2(L,f,t),lefrEar$2(L,f,t).lineTo(()=>(f.push({x:0,y:f[f.length-1].y-l*Math.tan(15*(Math.PI/180))}),f[f.length-1])).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[0].y+l*Math.tan(15*(Math.PI/180))}),f[f.length-1])).lineTo(()=>(f.push({x:f[f.length-3].x,y:f[f.length-1].y-l*Math.tan(15*(Math.PI/180))}),f[f.length-1])),motherLockRender$2(L,f,t),{path:L.build(),actionArray:f,pathLine:L}}return{returnPath:r().path,actionArray:r().actionArray,pathLine:r().pathLine}},foldLineoordinates$b=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$b(t).actionArray,o=new LargeWidthButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c}=o;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-(L-T)},line2:{x1:l[0].x+f,y1:l[0].y-g-(c-i),x2:l[0].x+e-f,y2:l[0].y-g-(c-i)},line3:{x1:l[0].x,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g},line4:{x1:l[0].x+e+d,y1:l[0].y,x2:l[0].x+e+n-u,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g+s-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+u,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+x,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g}}}},bleedingLinePath$b=t=>{function e(){const n=cuttingLinePath$b(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$b=t=>{const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u;function r(){const f=[],L=new SvgPathBuilder().moveTo(()=>(f.push({x:l,y:o+d-i+g}),f[0]));return topLeftBigTongue$3(L,f,t),topLeftEar$3(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x+2*s+e,y:f[f.length-1].y}),f[f.length-1])),topRightEar$3(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[f.length-1].y+n-g}),f[f.length-1])),negativeBuckleRender$2(L,f,t),rightEar$2(L,f,t),plugintRender$2(L,f,t),lefrEar$2(L,f,t).lineTo(()=>(f.push({x:f[0].x,y:f[0].y}),f[f.length-1])),motherLockRender$2(L,f,t),BleedGenerator.getInstance().generate(L.build())}return{returnPath:r()}},useLargeWidthReverseButtonBottomPath$1={mmToPt,cuttingLinePath:cuttingLinePath$b,foldLineoordinates:foldLineoordinates$b,bleedingLinePath:bleedingLinePath$b,previewBleedingLinePath:previewBleedingLinePath$b};registerBox({type:"LargeWidthReverseButtonBottomBox",name:"反向扣底盒(宽大于长、异侧)",group:"card",categoryId:"large-width-button-bottom",component:()=>__vitePreload(()=>import("./index-C-BcBZ1j.js"),__vite__mapDeps([26,1,2])),pathApi:useLargeWidthReverseButtonBottomPath$1,rules:LargeWidthButtonBottomBoxRules,display:{label:"反向扣底盒(宽大于长、异侧)",index:29,imgSrc:"./defaultDlate/反向扣底盒(宽大于长、异侧).svg",disabled:!1}});const topLeftBigTongue$2=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:l-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:g}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-2*g,y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-i-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d}),e[e.length-1])),t},topLeftEar$2=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRrX:s,errorLength:u,slotBottomWidth:l,slotWidth:o,radiusTongueAr:i,xLength13:g,yLength13:d,lockYLength:r,tongueTopLength:f,lockSLength:L,sideWingLength:T,radiusTongueRr:x,heightDiff:c}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*i,y:e[e.length-1].y-.775*i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-l,y:e[e.length-1].y+(T-l)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-s),y:e[e.length-1].y+l}),e[e.length-1])).arcTo(x,x,0,0,0,()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y-c}),e[e.length-1])),t},topRightEar$2=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{radiusTongueRr:u,radiusTongueRrX:l,heightDiff:o,slotBottomWidth:i,slotWidth:g,sideWingLength:d,tongueTopLength:r,radiusTongueAr:f,xLength13:L,yLength13:T,lockYLength:x,lockSLength:c,errorLength:m}=new LargeWidthButtonBottom(n);return t.arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x+i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-3].x+g,y:e[e.length-2].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(r-m+s),y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*f,y:e[e.length-1].y+.775*f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+x,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+c}),e[e.length-1])),t},motherLockRender$1=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new LargeWidthButtonBottom(n);return t.moveTo(()=>(e.push({x:e[11].x,y:e[11].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[16].x,y:e[16].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},rightEar$1=(t,e,n)=>{const s=n.boxLength,u=n.boxWidth,l=n.boxHeight;n.thickness;const{hollowLineLength:o,errorLength:i,receptionLocationBR:g,receptionLocationBRX:d,downMoveRY:r,K2Length:f,K3Height:L,M2Length:T,radiusTongueK1r:x,offsetX:c,radiusTongueK1rX:m,radiusTongueK1rY:y,K1Height:O,downMoveRYK1:b,negativeBuckleWidthM:j,negativeBuckleNumber:F,receptionLocation:k,overcutYLength:_,motherLockLength:ue,heightDiff:re}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(T-g-d),y:e[e.length-1].y+f}),e[e.length-1])),s<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+L-x}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y+x}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+s+u+g,y:e[e.length-1].y}),e[e.length-1]))):t.lineTo(()=>(e.push({x:e[e.length-1].x-c+m,y:e[e.length-1].y+L-y}),e[e.length-1])).arcTo(x,x,0,0,1,()=>(e.push({x:e[e.length-1].x-m,y:e[e.length-1].y+y}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x+s+u+g,y:e[e.length-1].y}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[0].y+(l-re)+r}),e[e.length-1])),t},lefrEar$1=(t,e,n)=>{const s=n.boxLength;n.boxWidth;const u=n.boxHeight;n.thickness;const{errorLength:l,receptionLocationBR:o,receptionLocationBRX:i,downMoveRY:g,K2Length:d,K3Height:r,M2Length:f,radiusTongueK1r:L,offsetX:T,radiusTongueK1rX:x,radiusTongueK1rY:c,heightDiff:m}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d+r-g}),e[e.length-1])),s<=50?t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(f-o)-L-o),y:e[e.length-1].y}),e[e.length-1])).arcTo(L,L,0,0,1,()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(r-L)}),e[e.length-1])):t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(f-o)-o)+T,y:e[e.length-1].y}),e[e.length-1])).arcTo(L,L,0,0,1,()=>(e.push({x:e[e.length-1].x-x,y:e[e.length-1].y-c}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-T,y:e[e.length-2].y-r}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+i,y:e[0].y+(u-m)}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-(o-g)}),e[e.length-1])),t},plugintRender$1=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-u)-2*l)/2,y:e[e.length-1].y+d}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)/c,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)+2*i,y:e[e.length-1].y}),e[e.length-1])):T(2),t.arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-u)-2*l)/2,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y+o}),e[e.length-1])),t},negativeBuckleRender$1=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-L-r)/2-i-u+u)+u/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(r/c+u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(g-i)}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r/c-2*i-u),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-r/c-u,y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(r+u),y:e[e.length-1].y}),e[e.length-1])):T(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-L-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g+d-o)}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])),t},cuttingLinePath$a=function(t){const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u;function r(){const f=[],L=new SvgPathBuilder().moveTo(()=>(f.push({x:l,y:o+d-i+g}),f[0])).lineTo(()=>(f.push({x:f[f.length-1].x+s+e,y:f[f.length-1].y}),f[f.length-1]));return topLeftEar$2(L,f,t),topLeftBigTongue$2(L,f,t),topRightEar$2(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[f.length-1].y+n-g}),f[f.length-1])),negativeBuckleRender$1(L,f,t),rightEar$1(L,f,t),plugintRender$1(L,f,t),lefrEar$1(L,f,t).lineTo(()=>(f.push({x:0,y:f[f.length-1].y-l*Math.tan(15*(Math.PI/180))}),f[f.length-1])).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[0].y+l*Math.tan(15*(Math.PI/180))}),f[f.length-1])).lineTo(()=>(f.push({x:f[f.length-3].x,y:f[f.length-1].y-l*Math.tan(15*(Math.PI/180))}),f[f.length-1])),motherLockRender$1(L,f,t),{path:L.build(),actionArray:f,pathLine:L}}return{returnPath:r().path,actionArray:r().actionArray,pathLine:r().pathLine}},foldLineoordinates$a=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$a(t).actionArray,o=new LargeWidthButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c,hollowLineLengthR:m,hollowLineLengthRX:y,hollowLineLengthRY:O}=o;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-(L-T)},line2:{x1:l[0].x+e+n+f,y1:l[0].y-g-(c-i),x2:l[0].x+e+n+e-f,y2:l[0].y-g-(c-i)},line3:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n+e,y2:l[0].y-g},line4:{x1:l[0].x+e+u,y1:l[0].y,x2:l[0].x+e+n-d,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+s-g-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y-g,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+d,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+y,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g}}}},bleedingLinePath$a=t=>{function e(){const n=cuttingLinePath$a(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$a=t=>{const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u;function r(){const f=[],L=new SvgPathBuilder().moveTo(()=>(f.push({x:l,y:o+d-i+g}),f[0])).lineTo(()=>(f.push({x:f[f.length-1].x+s+e,y:f[f.length-1].y}),f[f.length-1]));return topLeftEar$2(L,f,t),topLeftBigTongue$2(L,f,t),topRightEar$2(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[f.length-1].y+n-g}),f[f.length-1])),negativeBuckleRender$1(L,f,t),rightEar$1(L,f,t),plugintRender$1(L,f,t),lefrEar$1(L,f,t).lineTo(()=>(f.push({x:f[0].x,y:f[0].y}),f[f.length-1])),motherLockRender$1(L,f,t),BleedGenerator.getInstance().generate(L.build())}return{returnPath:r()}},useLargeWidthReverseButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$a,foldLineoordinates:foldLineoordinates$a,bleedingLinePath:bleedingLinePath$a,previewBleedingLinePath:previewBleedingLinePath$a};registerBox({type:"LargeWidthReverseSameButtonBottomBox",name:"反向扣底盒(宽大于长、同侧)",group:"card",categoryId:"large-width-button-bottom",component:()=>__vitePreload(()=>import("./index-3exIDyKk.js"),__vite__mapDeps([27,1,2])),pathApi:useLargeWidthReverseButtonBottomPath,rules:LargeWidthButtonBottomBoxRules,display:{label:"反向扣底盒(宽大于长、同侧)",index:31,imgSrc:"./defaultDlate/反向扣底盒(宽大于长、同侧).svg",disabled:!1}});const topLeftBigTongue$1=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:l-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:g}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-2*g,y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-i-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d}),e[e.length-1])),t},topLeftEar$1=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRrX:s,errorLength:u,slotBottomWidth:l,slotWidth:o,radiusTongueAr:i,xLength13:g,yLength13:d,lockYLength:r,tongueTopLength:f,lockSLength:L,sideWingLength:T,radiusTongueRr:x,heightDiff:c}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*i,y:e[e.length-1].y-.775*i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-l,y:e[e.length-1].y+(T-l)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-s),y:e[e.length-1].y+l}),e[e.length-1])).arcTo(x,x,0,0,0,()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y-c}),e[e.length-1])),t},topRightEar$1=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{radiusTongueRr:u,radiusTongueRrX:l,heightDiff:o,slotBottomWidth:i,slotWidth:g,sideWingLength:d,tongueTopLength:r,radiusTongueAr:f,xLength13:L,yLength13:T,lockYLength:x,lockSLength:c,errorLength:m}=new LargeWidthButtonBottom(n);return t.arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x+i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-3].x+g,y:e[e.length-2].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(r-m+s),y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*f,y:e[e.length-1].y+.775*f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+L,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+x,y:e[e.length-1].y+x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+c}),e[e.length-1])),t},motherLockRender=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new LargeWidthButtonBottom(n);return t.moveTo(()=>(e.push({x:e[11].x,y:e[11].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[16].x,y:e[16].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},lefrEar=(t,e,n)=>{const s=n.boxLength;n.boxWidth;const u=n.boxHeight;n.thickness;const{receptionLocationBR:l,receptionLocationBRX:o,K2Length:i,K3Height:g,M2Length:d,radiusTongueK1r:r,offsetX:f,radiusTongueK1rX:L,radiusTongueK1rY:T,hollowLineLengthR:x,hollowLineLengthRX:c,hollowLineLengthRY:m,heightDiff:y}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(d-l-o),y:e[e.length-1].y+i}),e[e.length-1])),s<=50?(t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-r}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y+r}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[0].x+c,y:e[e.length-1].y}),e[e.length-1]))):t.lineTo(()=>(e.push({x:e[e.length-1].x-f+L,y:e[e.length-1].y+g-T}),e[e.length-1])).arcTo(r,r,0,0,1,()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y+T}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x+c,y:e[e.length-1].y}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[0].y+(u-y)}),e[e.length-1])).arcTo(x,x,0,0,0,()=>(e.push({x:e[e.length-1].x-c,y:e[e.length-1].y-m}),e[e.length-1])),t},rightEar=(t,e,n)=>{const s=n.boxLength;n.boxWidth,n.boxHeight,n.thickness;const{errorLength:u,receptionLocationBR:l,receptionLocationBRX:o,downMoveRY:i,K2Length:g,K3Height:d,M2Length:r,radiusTongueK1r:f,offsetX:L,radiusTongueK1rX:T,radiusTongueK1rY:x}=new LargeWidthButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d-i}),e[e.length-1])),s<=50?t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-l)-f-l),y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x-f,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(d-f)}),e[e.length-1])):t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-(r-l)-l)+L,y:e[e.length-1].y}),e[e.length-1])).arcTo(f,f,0,0,1,()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-2].x-L,y:e[e.length-2].y-d}),e[e.length-1])),t.lineTo(()=>(e.push({x:e[e.length-1].x-(r-l-o),y:e[e.length-1].y-g}),e[e.length-1])).arcTo(l,l,0,0,0,()=>(e.push({x:e[e.length-1].x-(l+o),y:e[e.length-1].y+i}),e[e.length-1])),t},plugintRender=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f,errorLength:L}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-(s-L-(r-u)-2*l)/2-l,y:e[e.length-1].y+d}),e[e.length-1]));function T(x){const c=2*x-1;for(let m=1;m<x;m++)t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)/c,y:e[e.length-1].y}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((r-u)/c-2*i),y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r-u)+2*i,y:e[e.length-1].y}),e[e.length-1])):T(2),t.arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(s-L-(r-u)-2*l)/2,y:e[e.length-1].y-d}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y+o}),e[e.length-1])),t},negativeBuckleRender=(t,e,n)=>{n.boxLength;const s=n.boxWidth;n.boxHeight,n.thickness;const{receptionLocationBR:u,receptionLocationBRX:l,downMoveRY:o,radiusTongueK1r:i,K1Height:g,downMoveRYK1:d,negativeBuckleWidthM:r,negativeBuckleNumber:f}=new LargeWidthButtonBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g+d-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));function L(T){const x=2*T-1;for(let c=1;c<T;c++)t.lineTo(()=>(e.push({x:e[e.length-1].x-(r/x+u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(g-i)}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(r/x-2*i-u),y:e[e.length-1].y}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-i)}),e[e.length-1]));t.lineTo(()=>(e.push({x:e[e.length-1].x-r/x-u,y:e[e.length-1].y}),e[e.length-1]))}return f===1?t.lineTo(()=>(e.push({x:e[e.length-1].x-(r+u),y:e[e.length-1].y}),e[e.length-1])):L(2),t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+g-i}),e[e.length-1])).arcTo(i,i,0,0,1,()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-((s-r)/2-i-u)+u/2,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(+g+d-o)}),e[e.length-1])).arcTo(u,u,0,0,0,()=>(e.push({x:e[e.length-1].x-(u+l),y:e[e.length-1].y-o}),e[e.length-1])),t},cuttingLinePath$9=function(t){const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u;function r(){const f=[],L=new SvgPathBuilder().moveTo(()=>(f.push({x:l,y:o+d-i+g}),f[0])).lineTo(()=>(f.push({x:f[f.length-1].x+s+e,y:f[f.length-1].y}),f[f.length-1]));return topLeftEar$1(L,f,t),topLeftBigTongue$1(L,f,t),topRightEar$1(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[f.length-1].y+n-g}),f[f.length-1])),plugintRender(L,f,t),rightEar(L,f,t),negativeBuckleRender(L,f,t),lefrEar(L,f,t).lineTo(()=>(f.push({x:0,y:f[f.length-1].y-l*Math.tan(15*(Math.PI/180))}),f[f.length-1])).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[0].y+l*Math.tan(15*(Math.PI/180))}),f[f.length-1])).lineTo(()=>(f.push({x:f[f.length-3].x,y:f[f.length-1].y-l*Math.tan(15*(Math.PI/180))}),f[f.length-1])),motherLockRender(L,f,t),{path:L.build(),actionArray:f,pathLine:L}}return{returnPath:r().path,actionArray:r().actionArray,pathLine:r().pathLine}},foldLineoordinates$9=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$9(t).actionArray,o=new LargeWidthButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c,hollowLineLengthR:m,hollowLineLengthRX:y,hollowLineLengthRY:O}=o;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-O},line2:{x1:l[0].x+e+n+f,y1:l[0].y-g-(c-i),x2:l[0].x+e+n+e-f,y2:l[0].y-g-(c-i)},line3:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n+e,y2:l[0].y-g},line4:{x1:l[0].x+e+u,y1:l[0].y,x2:l[0].x+e+n-d,y2:l[0].y},line5:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+s-g-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y-g,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line8:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+d,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line12:{x1:l[0].x+y,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g}}}},bleedingLinePath$9=t=>{function e(){const n=cuttingLinePath$9(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$9=t=>{const e=t.boxLength;t.boxWidth;const n=t.boxHeight,s=t.thickness,u=new LargeWidthButtonBottom(t),{hollowLineLength:l,tongueHeight:o,receptionLocation:i,heightDiff:g,tongueLinkWidth:d}=u;function r(){const f=[],L=new SvgPathBuilder().moveTo(()=>(f.push({x:l,y:o+d-i+g}),f[0])).lineTo(()=>(f.push({x:f[f.length-1].x+s+e,y:f[f.length-1].y}),f[f.length-1]));return topLeftEar$1(L,f,t),topLeftBigTongue$1(L,f,t),topRightEar$1(L,f,t).lineTo(()=>(f.push({x:f[f.length-1].x,y:f[f.length-1].y+n-g}),f[f.length-1])),plugintRender(L,f,t),rightEar(L,f,t),negativeBuckleRender(L,f,t),lefrEar(L,f,t).lineTo(()=>(f.push({x:f[0].x,y:f[0].y}),f[f.length-1])),motherLockRender(L,f,t),BleedGenerator.getInstance().generate(L.build())}return{returnPath:r()}},useLargeWidthSameButtonBottomBoxPath={mmToPt,cuttingLinePath:cuttingLinePath$9,foldLineoordinates:foldLineoordinates$9,bleedingLinePath:bleedingLinePath$9,previewBleedingLinePath:previewBleedingLinePath$9};registerBox({type:"LargeWidthSameButtonBottomBox",name:"普通扣底盒(宽大于长、同侧)",group:"card",categoryId:"large-width-button-bottom",component:()=>__vitePreload(()=>import("./index-BcqyOH9m.js"),__vite__mapDeps([28,1,2])),pathApi:useLargeWidthSameButtonBottomBoxPath,rules:LargeWidthButtonBottomBoxRules,display:{label:"普通扣底盒(宽大于长、同侧)",index:30,imgSrc:"./defaultDlate/普通扣底盒(宽大于长、同侧).svg",disabled:!1}});const cuttingLinePath$8=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,radiusTongueCr:r,tongueBottomLength:f,radiusTongueRr:L,radiusTongueRrX:T,slotBottomWidth:x,slotWidth:c,sideWingLength:m,tongueTopLength:y,radiusTongueAr:O,xLength13:b,yLength13:j,lockSLength:F,errorLength:k,K2Length:_,motherLockLength:ue,lockYLength:re,M2Length:de,K3Height:he,radiusTongueK1r:w,receptionLocationBR:le,downMoveRY:V,receptionLocationBRX:Ce,K1Height:_e,downMoveRYK1:D,negativeBuckleWidthM:Ie,negativeBuckleNumber:Lt,radiusTongueK1rX:At,radiusTongueK1rY:ie,offsetX:Ve,tongueLinkWidth:ze,overcutYLength:z}=l;function Dt(){const v=[],S=new SvgPathBuilder().moveTo(()=>(v.push({x:o,y:i+ze-g+d}),v[0])).lineTo(()=>(v.push({x:o,y:i-g}),v[1])).lineTo(()=>(v.push({x:o+u,y:v[1].y}),v[2])).lineTo(()=>(v.push({x:v[2].x,y:r}),v[3])).arcTo(r,r,0,0,1,()=>(v.push({x:v[3].x+r,y:v[3].y-r}),v[4])).lineTo(()=>(v.push({x:v[4].x+f-2*r,y:v[4].y}),v[5])).arcTo(r,r,0,0,1,()=>(v.push({x:v[5].x+r,y:v[5].y+r}),v[6])).lineTo(()=>(v.push({x:v[6].x,y:v[6].y+i-g-r}),v[7])).lineTo(()=>(v.push({x:v[7].x+u,y:v[7].y}),v[8])).lineTo(()=>(v.push({x:v[8].x,y:v[8].y+ze}),v[9])).arcTo(L,L,0,0,0,()=>(v.push({x:v[9].x+T,y:v[9].y+d}),v[10])).lineTo(()=>(v.push({x:v[9].x+x,y:v[10].y-x}),v[11])).lineTo(()=>(v.push({x:v[9].x+c,y:v[10].y-m}),v[12])).lineTo(()=>(v.push({x:v[12].x+y,y:v[12].y}),v[13])).arcTo(O,O,0,0,1,()=>(v.push({x:v[13].x+.974*O,y:v[13].y+.775*O}),v[14])).lineTo(()=>(v.push({x:v[14].x+b,y:v[14].y+j}),v[15])).lineTo(()=>(v.push({x:v[15].x+re,y:v[15].y+re}),v[16])).lineTo(()=>(v.push({x:v[16].x,y:v[16].y+F}),v[17])).lineTo(()=>(v.push({x:v[17].x+e+2*u,y:v[17].y}),v[18])).lineTo(()=>(v.push({x:v[18].x,y:v[18].y-F}),v[19])).lineTo(()=>(v.push({x:v[19].x+re,y:v[19].y-re}),v[20])).lineTo(()=>(v.push({x:v[20].x+b,y:v[20].y-j}),v[21])).arcTo(O,O,0,0,1,()=>(v.push({x:v[21].x+.974*O,y:v[21].y-.775*O}),v[22])).lineTo(()=>(v.push({x:o+e+n+e+n-k-c,y:v[22].y}),v[23])).lineTo(()=>(v.push({x:v[23].x+c-x,y:v[18].y-x}),v[24])).lineTo(()=>(v.push({x:v[24].x+x,y:v[18].y}),v[25])).lineTo(()=>(v.push({x:v[25].x,y:v[25].y+s-d}),v[26])).lineTo(()=>(v.push({x:v[v.length-1].x-(de-Ce),y:v[v.length-1].y+_}),v[27]));n<=50?(S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+he-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])),S.lineTo(()=>(v.push({x:o+e+n+e+le,y:v[v.length-1].y}),v[v.length-1]))):(S.lineTo(()=>(v.push({x:v[v.length-1].x+(At-Ve),y:v[v.length-1].y+(he-ie)}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-At,y:v[v.length-1].y+ie}),v[v.length-1])),S.lineTo(()=>(v.push({x:o+e+n+e+le,y:v[v.length-1].y}),v[v.length-1]))),S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[26].y+V}),v[v.length-1])),S.arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y-V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(e-(Ie-le)-2*Ce)/2,y:v[v.length-1].y+D}),v[v.length-1]));function Ue(hn){const Oe=2*hn-1;for(let Fe=1;Fe<hn;Fe++)S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((Ie-le)/Oe-2*w),y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie-le)/Oe,y:v[v.length-1].y}),v[v.length-1]));S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((Ie-le)/Oe-2*w),y:v[v.length-1].y}),v[v.length-1]))}Lt===1?S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie-le)+2*w,y:v[v.length-1].y}),v[v.length-1])):Ue(2),S.arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(e-(Ie-le)-2*Ce)/2,y:v[v.length-1].y-D}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y+V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_+he-V}),v[v.length-1])),n<=50?S.lineTo(()=>(v.push({x:o+e+de+w,y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(he-w)}),v[v.length-1])):S.lineTo(()=>(v.push({x:o+e+de+Ve,y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-At,y:v[v.length-1].y-ie}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x+(At-Ve),y:v[v.length-1].y-(he-ie)}),v[v.length-1])),S.lineTo(()=>(v.push({x:v[v.length-1].x-de+Ce,y:v[v.length-1].y-_}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y+V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e+D-V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((e-Ie)/2-w-le)+le/2,y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1]));function M(hn){const Oe=2*hn-1;for(let Fe=1;Fe<hn;Fe++)S.lineTo(()=>(v.push({x:v[v.length-1].x-(Ie/Oe+le),y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+(_e-w)}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie/Oe-2*w-le),y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1]));S.lineTo(()=>(v.push({x:v[v.length-1].x-Ie/Oe-le,y:v[v.length-1].y}),v[v.length-1]))}return Lt===1?S.lineTo(()=>(v.push({x:v[v.length-1].x-(Ie+le),y:v[v.length-1].y}),v[v.length-1])):M(2),S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((e-Ie)/2-w-le)+le/2,y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(+_e+D-V)}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-le,y:v[v.length-1].y-le}),v[v.length-1])).lineTo(()=>(v.push({x:0,y:v[v.length-1].y-o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[0].y+o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-3].x,y:v[v.length-1].y-o*Math.tan(15*(Math.PI/180))}),v[v.length-1])),S.moveTo(()=>(v.push({x:v[2].x,y:v[1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x+(ue-u),y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+u}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+g-u+z}),v[v.length-1])).moveTo(()=>(v.push({x:v[7].x,y:v[7].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(ue-u),y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+u}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+g-u+z}),v[v.length-1])),{path:S.build(),actionArray:v}}return{returnPath:Dt().path,actionArray:Dt().actionArray}},foldLineoordinates$8=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$8(t).actionArray,o=new ButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,errorLength:r,motherLockLength:f,receptionLocationBR:L,downMoveRY:T,receptionLocationBRX:x,tongueLinkWidth:c}=o;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g},line2:{x1:l[0].x+f,y1:l[0].y-g-(c-i),x2:l[0].x+e-f,y2:l[0].y-g-(c-i)},line5:{x1:l[0].x+e,y1:l[0].y-g,x2:l[0].x+e,y2:l[0].y-g+s-(L-T)},line3:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g-(L-T)},line4:{x1:l[0].x+e+d,y1:l[0].y,x2:l[0].x+e+n-u,y2:l[0].y},line8:{x1:l[0].x+e+n,y1:l[0].y,x2:l[0].x+e+n,y2:l[0].y+s-g-(L-T)},line6:{x1:l[0].x+e+x,y1:l[0].y+s-g,x2:l[0].x+e+n-x,y2:l[0].y+s-g},line7:{x1:l[0].x+2*e+n,y1:l[0].y,x2:l[0].x+2*e+n,y2:l[0].y+s-g-(L-T)},line9:{x1:l[0].x+e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n-x,y2:l[0].y+s-g},line11:{x1:l[0].x+2*e+n+u,y1:l[0].y,x2:l[0].x+2*e+n+n-r,y2:l[0].y},line10:{x1:l[0].x+2*e+n+x,y1:l[0].y+s-g,x2:l[0].x+2*e+n+n-r,y2:l[0].y+s-g},line12:{x1:l[0].x+x,y1:l[0].y+s-g,x2:l[0].x+e-x,y2:l[0].y+s-g}}}},bleedingLinePathOld$2=t=>{const e=t.boxWidth,n=t.thickness,s=t.bleedingSpace,u=cuttingLinePath$8(t).actionArray,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,radiusTongueCr:r,tongueBottomLength:f,negativeBuckleNumber:L}=l;function T(){const x=[];let c;const m=new SvgPathBuilder().moveTo(()=>(x.push({x:o,y:i+e-g+d}),x[0])).lineTo(()=>(x.push({x:o,y:i-g}),x[1])).lineTo(()=>(x.push({x:o+n,y:x[1].y}),x[2])).lineTo(()=>(x.push({x:x[2].x,y:r+s}),x[3])).quadTo(x[3].x,0,()=>(x.push({x:u[4].x+s,y:0}),x[4])).lineTo(()=>(x.push({x:u[4].x+f-2*r+s,y:x[4].y}),x[5])).quadTo(u[6].x+2*s,0,()=>(x.push({x:u[6].x+2*s,y:u[6].y+s}),x[6])).lineTo(()=>(x.push({x:x[6].x,y:x[2].y}),x[7])).lineTo(()=>(x.push({x:x[7].x+g,y:x[7].y}),x[8])).lineTo(()=>(x.push({x:x[8].x,y:u[12].y}),x[9])).lineTo(()=>(x.push({x:e>=40?u[13].x-s:u[13].x+s,y:x[9].y}),x[10])).quadTo(e>=40?u[14].x+s:u[14].x+3*s/2,e>=40?x[10].y-s/2:x[10].y,()=>(x.push({x:u[14].x+2*s,y:u[14].y+s/2}),x[11])).lineTo(()=>(x.push({x:u[15].x+2*s,y:u[15].y+s/2}),x[12])).lineTo(()=>(x.push({x:u[16].x+2*s,y:u[16].y+s/2}),x[13])).lineTo(()=>(x.push({x:x[13].x,y:u[17].y}),x[14])).lineTo(()=>(x.push({x:u[18].x,y:x[14].y}),x[15])).lineTo(()=>(x.push({x:x[15].x,y:x[13].y}),x[16])).lineTo(()=>(x.push({x:u[20].x,y:u[20].y+s/2}),x[17])).lineTo(()=>(x.push({x:u[21].x,y:u[21].y+s/2}),x[18])).quadTo(e>=40?x[18].x+s:x[18].x+s/2,u[22].y,()=>(x.push({x:u[22].x+s,y:u[22].y}),x[19])).lineTo(()=>(x.push({x:u[23].x+2*s,y:u[22].y}),x[20])).lineTo(()=>(x.push({x:u[24].x+2*s,y:u[24].y+s/2}),x[21])).lineTo(()=>(x.push({x:u[25].x+2*s,y:u[25].y+s/2}),x[22]));let y=26;{const F=-getYOnOffsetLine([u[y].x,-u[y].y],[u[y+1].x,-u[y+1].y],x[x.length-1].x),k=-getYOnOffsetLine([u[y].x,-u[y].y],[u[y+1].x,-u[y+1].y],u[y+1].x+2*s);m.lineTo(()=>(x.push({x:x[22].x,y:F}),y++,x[23])),m.lineTo(()=>(x.push({x:u[y].x+2*s,y:k}),y++,x[24]))}e<=50?m.lineTo(()=>(x.push({x:x[x.length-1].x,y:u[y].y+s}),y++,x[x.length-1])).quadTo(x[x.length-1].x,u[y].y+2*s,()=>(x.push({x:u[y].x+s,y:u[y].y+2*s}),y++,x[x.length-1])):m.lineTo(()=>(x.push({x:u[y].x+2*s,y:u[y].y+(x[x.length-1].y-u[y-1].y)}),y++,c=x.length-1,x[x.length-1])).quadTo(x[x.length-1].x+s/2,u[y].y+2*s-s/4,()=>(x.push({x:u[y].x+s,y:u[y].y+2*s}),y++,x[x.length-1])),m.lineTo(()=>(x.push({x:u[y].x,y:x[x.length-1].y}),y++,x[x.length-1]));{const{yA:F,xB:k}=computeMBPoints([u[y+1].x,-u[y+1].y],[u[y+2].x,-u[y+2].y],x[x.length-1].x,-(u[y+2].y+2*s));m.lineTo(()=>(x.push({x:x[x.length-1].x,y:-F}),y+=2,x[x.length-1])).lineTo(()=>(x.push({x:u[y].x+2*s,y:-getYOnLine(x[x.length-1].x,-x[x.length-1].y,k,-(u[y].y+2*s),u[y].x+2*s)}),y++,x[x.length-1]))}function O(F){for(let k=1;k<F;k++)m.lineTo(()=>(x.push({x:x[x.length-1].x,y:u[y].y+s}),y++,x[x.length-1])).quadTo(x[x.length-1].x,u[y].y+2*s,()=>(x.push({x:u[y].x+s,y:u[y].y+2*s}),y++,x[x.length-1])).lineTo(()=>(x.push({x:u[y].x+s,y:x[x.length-1].y}),y++,x[x.length-1])).quadTo(u[y].x,x[x.length-1].y,()=>(x.push({x:u[y].x,y:u[y].y+s}),y++,x[x.length-1])).lineTo(()=>(x.push({x:x[x.length-1].x,y:u[y].y+2*s}),y++,x[x.length-1])).lineTo(()=>(x.push({x:u[y].x+2*s,y:x[x.length-1].y}),y++,x[x.length-1]));m.lineTo(()=>(x.push({x:x[x.length-1].x,y:u[y].y+s}),y++,x[x.length-1])).quadTo(x[x.length-1].x,u[y].y+2*s,()=>(x.push({x:u[y].x+s,y:u[y].y+2*s}),y++,x[x.length-1])).lineTo(()=>(x.push({x:u[y].x+s,y:x[x.length-1].y}),y++,x[x.length-1]))}L===1?m.lineTo(()=>(x.push({x:x[x.length-1].x,y:u[y].y+s}),y++,x[x.length-1])).quadTo(x[x.length-1].x,u[y].y+2*s,()=>(x.push({x:u[y].x+s,y:u[y].y+2*s}),y++,x[x.length-1])).lineTo(()=>(x.push({x:u[y].x+s,y:x[x.length-1].y}),y++,x[x.length-1])):O(2),m.quadTo(u[y].x,x[x.length-1].y,()=>(x.push({x:u[y].x,y:u[y].y+s}),y++,x[x.length-1]));{const F=getYOnOffsetLine([u[y+1].x,-u[y+1].y],[u[y].x,-u[y].y],x[x.length-1].x,void 0,-1),k=getYOnOffsetLine([u[y+1].x,-u[y+1].y],[u[y].x,-u[y].y],u[y+2].x+2*s,void 0,-1);m.lineTo(()=>(x.push({x:x[x.length-1].x,y:-F}),y+=2,x[x.length-1])).lineTo(()=>(x.push({x:u[y].x+2*s,y:-k}),y++,x[x.length-1])).lineTo(()=>(x.push({x:x[x.length-1].x,y:u[y].y+2*s}),y++,x[x.length-1]))}if(m.lineTo(()=>(x.push({x:u[y].x+s,y:x[x.length-1].y}),y++,x[x.length-1])),e<=50){m.quadTo(u[y].x,x[x.length-1].y,()=>(x.push({x:u[y].x,y:u[y].y+s}),y++,x[x.length-1]));const F=getYOnOffsetLine([u[y+1].x,-u[y+1].y],[u[y].x,-u[y].y],x[x.length-1].x,void 0,-1);m.lineTo(()=>(x.push({x:x[x.length-1].x,y:-F}),y++,x[x.length-1]))}else m.quadTo(u[y].x-s/2,x[x.length-1].y+s/4,()=>(x.push({x:x[x.length-1].x-(x[c].x-x[c+1].x),y:x[x.length-1].y-(x[c+1].y-x[c].y)}),y++,x[x.length-1])).lineTo(()=>(x.push({x:x[x.length-1].x+x[c].x-x[c-1].x,y:x[x.length-1].y-(x[c].y-x[c-1].y)}),y++,x[x.length-1]));{const F=getYOnOffsetLine([u[y-1].x,-u[y-1].y],[u[y].x,-u[y].y],u[y+1].x+2*s);m.lineTo(()=>(x.push({x:u[y+1].x+2*s,y:-F}),y+=2,x[x.length-1]))}m.lineTo(()=>(x.push({x:x[x.length-1].x,y:u[y].y+2*s}),y++,x[x.length-1])).lineTo(()=>(x.push({x:u[y].x+s,y:x[x.length-1].y}),y++,x[x.length-1])).quadTo(u[y].x,x[x.length-1].y,()=>(x.push({x:u[y].x,y:u[y].y+s}),y++,x[x.length-1])).lineTo(()=>(x.push({x:x[x.length-1].x,y:u[y].y+2*s}),y++,x[x.length-1]));function b(F){for(let k=1;k<F;k++)m.lineTo(()=>(x.push({x:u[y].x+2*s,y:x[x.length-1].y}),y++,x[x.length-1])).lineTo(()=>(x.push({x:x[x.length-1].x,y:u[y].y+s}),y++,x[x.length-1])).quadTo(x[x.length-1].x,u[y].y+2*s,()=>(x.push({x:u[y].x+s,y:u[y].y+2*s}),y++,x[x.length-1])).lineTo(()=>(x.push({x:u[y].x+s,y:x[x.length-1].y}),y++,x[x.length-1])).quadTo(u[y].x,x[x.length-1].y,()=>(x.push({x:u[y].x,y:u[y].y+s}),y++,x[x.length-1])).lineTo(()=>(x.push({x:u[y].x,y:u[y].y+2*s}),y++,x[x.length-1]));m.lineTo(()=>(x.push({x:u[y].x+2*s,y:x[x.length-1].y}),y++,x[x.length-1]))}L===1?m.lineTo(()=>(x.push({x:u[y].x+2*s,y:x[x.length-1].y}),y++,x[x.length-1])):b(2),m.lineTo(()=>(x.push({x:x[x.length-1].x,y:u[y].y+s}),y++,x[x.length-1])).quadTo(x[x.length-1].x,u[y].y+2*s,()=>(x.push({x:u[y].x+s,y:u[y].y+2*s}),y++,x[x.length-1])).lineTo(()=>(x.push({x:u[y].x,y:x[x.length-1].y}),y++,x[x.length-1]));{const F=-getYOnOffsetLine([u[y+2].x,-u[y+2].y],[u[y+1].x,-u[y+1].y],x[x.length-1].x,void 0,-1),k=-getYOnOffsetLine([u[y+2].x,-u[y+2].y],[u[y+1].x,-u[y+1].y],0,void 0,-1);m.lineTo(()=>(x.push({x:x[x.length-1].x,y:F}),y+=2,x[x.length-1])),m.lineTo(()=>(x.push({x:0,y:k}),y++,x[x.length-1]))}{const F=-getYOnOffsetLine([u[y].x,-u[y].y],[u[y+1].x,-u[y+1].y],0),k=-getYOnOffsetLine([u[y].x,-u[y].y],[u[y+1].x,-u[y+1].y],u[0].x);m.lineTo(()=>(x.push({x:x[x.length-1].x,y:F}),y+=2,x[x.length-1])),m.lineTo(()=>(x.push({x:u[0].x,y:k}),y++,x[x.length-1]))}return m.closePath(),{path:m.build(),actionArray:x,pathLine:m}}return{returnPath:T().path,actionArray:T().actionArray,pathLine:T().pathLine}},bleedingLinePath$8=t=>{function e(){const n=[];return{path:BleedGenerator.getInstance().generate(cuttingLinePath$8(t).returnPath),actionArray:n}}return{returnPath:e().path,actionArray:e().actionArray}},previewBleedingLinePath$8=t=>{const e=bleedingLinePathOld$2(t).actionArray,n=bleedingLinePathOld$2(t).pathLine;function s(){return n.actionSplice(-5,5).lineTo(()=>({x:e[0].x,y:e[e.length-5].y})).closePath().build()}return{returnPath:s()}},useReverseButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$8,foldLineoordinates:foldLineoordinates$8,bleedingLinePath:bleedingLinePath$8,previewBleedingLinePath:previewBleedingLinePath$8};registerBox({type:"ReverseButtonBottomBox",name:"反向扣底盒(异侧)",group:"card",categoryId:"button-bottom",component:()=>__vitePreload(()=>import("./index-DKsDmAV6.js"),__vite__mapDeps([29,1,2])),pathApi:useReverseButtonBottomPath,rules:ButtonBottomBoxRules,display:{label:"反向扣底盒(异侧)",index:5,imgSrc:"./defaultDlate/反向扣底盒(异侧).svg",disabled:!1}});const cuttingLinePath$7=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,tongueBottomLength:g,receptionLocation:d,heightDiff:r,radiusTongueCr:f,radiusTongueRr:L,radiusTongueRrX:T,slotWidth:x,slotBottomWidth:c,lockSLength:m,xLength13:y,yLength13:O,radiusTongueAr:b,sideWingLength:j,tongueTopLength:F,errorLength:k,motherLockLength:_,lockYLength:ue,overcutYLength:re,tongueLinkWidth:de}=l;function he(){const w=[];return{path:new SvgPathBuilder().moveTo(()=>(w.push({x:o,y:i+de-d+r}),w[0])).lineTo(()=>(w.push({x:o,y:i-d}),w[1])).lineTo(()=>(w.push({x:o+u,y:w[1].y}),w[2])).lineTo(()=>(w.push({x:w[2].x,y:f}),w[3])).arcTo(f,f,0,0,1,()=>(w.push({x:w[3].x+f,y:w[3].y-f}),w[4])).lineTo(()=>(w.push({x:w[4].x+g-2*f,y:w[4].y}),w[5])).arcTo(f,f,0,0,1,()=>(w.push({x:w[5].x+f,y:w[5].y+f}),w[6])).lineTo(()=>(w.push({x:w[6].x,y:w[6].y+i-d-f}),w[7])).lineTo(()=>(w.push({x:w[7].x+u,y:w[7].y}),w[8])).lineTo(()=>(w.push({x:w[8].x,y:w[8].y+de}),w[9])).arcTo(L,L,0,0,0,()=>(w.push({x:w[9].x+T,y:w[9].y+r}),w[10])).lineTo(()=>(w.push({x:w[9].x+c,y:w[10].y-c}),w[11])).lineTo(()=>(w.push({x:w[9].x+x,y:w[10].y-j}),w[12])).lineTo(()=>(w.push({x:w[12].x+F,y:w[12].y}),w[13])).arcTo(b,b,0,0,1,()=>(w.push({x:w[13].x+.974*b,y:w[13].y+.775*b}),w[14])).lineTo(()=>(w.push({x:w[14].x+y,y:w[14].y+O}),w[15])).lineTo(()=>(w.push({x:w[15].x+ue,y:w[15].y+ue}),w[16])).lineTo(()=>(w.push({x:w[16].x,y:w[16].y+m}),w[17])).lineTo(()=>(w.push({x:w[17].x+e+2*u,y:w[17].y}),w[18])).lineTo(()=>(w.push({x:w[18].x,y:w[18].y-m}),w[19])).lineTo(()=>(w.push({x:w[19].x+ue,y:w[19].y-ue}),w[20])).lineTo(()=>(w.push({x:w[20].x+y,y:w[20].y-O}),w[21])).arcTo(b,b,0,0,1,()=>(w.push({x:w[21].x+.974*b,y:w[21].y-.775*b}),w[22])).lineTo(()=>(w.push({x:o+e+n+e+n-k-x,y:w[22].y}),w[23])).lineTo(()=>(w.push({x:w[23].x+x-c,y:w[18].y-c}),w[24])).lineTo(()=>(w.push({x:w[24].x+c,y:w[18].y}),w[25])).lineTo(()=>(w.push({x:w[25].x,y:w[25].y+s+m-r}),w[26])).lineTo(()=>(w.push({x:w[26].x-ue,y:w[26].y+ue}),w[27])).lineTo(()=>(w.push({x:w[27].x-y,y:w[27].y+O}),w[28])).arcTo(b,b,0,0,1,()=>(w.push({x:w[28].x-.974*b,y:w[28].y+.775*b}),w[29])).lineTo(()=>(w.push({x:o+e+n+e+x,y:w[29].y}),w[30])).lineTo(()=>(w.push({x:w[30].x-x+c,y:w[26].y-m+c}),w[31])).lineTo(()=>(w.push({x:w[31].x-c+T,y:w[31].y-c}),w[32])).arcTo(L,L,0,0,0,()=>(w.push({x:w[32].x-T,y:w[32].y+r}),w[33])).lineTo(()=>(w.push({x:w[33].x,y:w[33].y+de}),w[34])).lineTo(()=>(w.push({x:w[34].x-u,y:w[34].y}),w[35])).lineTo(()=>(w.push({x:w[35].x,y:w[35].y+i-d-f}),w[36])).arcTo(f,f,0,0,1,()=>(w.push({x:w[36].x-f,y:w[36].y+f}),w[37])).lineTo(()=>(w.push({x:w[37].x-(g-2*f),y:w[37].y}),w[38])).arcTo(f,f,0,0,1,()=>(w.push({x:w[38].x-f,y:w[38].y-f}),w[39])).lineTo(()=>(w.push({x:w[39].x,y:w[39].y-(i-d-f)}),w[40])).lineTo(()=>(w.push({x:w[40].x-u,y:w[40].y}),w[41])).lineTo(()=>(w.push({x:w[41].x,y:w[41].y-de}),w[42])).arcTo(L,L,0,0,0,()=>(w.push({x:w[42].x-T,y:w[42].y-r}),w[43])).lineTo(()=>(w.push({x:w[42].x-c,y:w[43].y+c}),w[44])).lineTo(()=>(w.push({x:w[42].x-x,y:w[42].y+j-r}),w[45])).lineTo(()=>(w.push({x:w[45].x-(n-u-ue-y-.974*b-x),y:w[45].y}),w[46])).arcTo(b,b,0,0,1,()=>(w.push({x:w[46].x-.974*b,y:w[46].y-.775*b}),w[47])).lineTo(()=>(w.push({x:w[47].x-y,y:w[47].y-O}),w[48])).lineTo(()=>(w.push({x:w[48].x-ue,y:w[48].y-ue}),w[49])).lineTo(()=>(w.push({x:w[49].x,y:w[49].y-m}),w[50])).lineTo(()=>(w.push({x:w[49].x-e-u,y:w[50].y}),w[51])).lineTo(()=>(w.push({x:w[51].x-o,y:w[51].y-o*Math.tan(15*(Math.PI/180))}),w[52])).lineTo(()=>(w.push({x:w[52].x,y:w[52].y-(s-2*(o*Math.tan(15*(Math.PI/180))))}),w[53])).lineTo(()=>(w.push({x:w[0].x,y:w[0].y}),w[54])).closePath().moveTo(()=>(w.push({x:w[2].x,y:w[1].y}),w[55])).lineTo(()=>(w.push({x:w[55].x+(_-u),y:w[55].y}),w[56])).lineTo(()=>(w.push({x:w[56].x,y:w[56].y+u}),w[57])).lineTo(()=>(w.push({x:w[57].x,y:w[57].y+d-u+re}),w[58])).moveTo(()=>(w.push({x:w[7].x,y:w[7].y}),w[59])).lineTo(()=>(w.push({x:w[59].x-(_-u),y:w[59].y}),w[60])).lineTo(()=>(w.push({x:w[60].x,y:w[60].y+u}),w[61])).lineTo(()=>(w.push({x:w[61].x,y:w[61].y+d-u+re}),w[62])).moveTo(()=>(w.push({x:w[35].x,y:w[35].y}),w[63])).lineTo(()=>(w.push({x:w[35].x-(_-u),y:w[35].y}),w[64])).lineTo(()=>(w.push({x:w[64].x,y:w[64].y-u}),w[65])).lineTo(()=>(w.push({x:w[65].x,y:w[65].y-(d-u)-re}),w[66])).moveTo(()=>(w.push({x:w[40].x,y:w[40].y}),w[67])).lineTo(()=>(w.push({x:w[40].x+(_-u),y:w[40].y}),w[68])).lineTo(()=>(w.push({x:w[68].x,y:w[68].y-u}),w[69])).lineTo(()=>(w.push({x:w[69].x,y:w[69].y-(d-u)-re}),w[70])).build(),actionArray:w}}return{returnPath:he().path,actionArray:he().actionArray}},foldLineoordinates$7=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$7(t).actionArray,o=new ButtonBottom(t),{heightDiff:i,radiusTongueRrX:g,errorLength:d,motherLockLength:r,receptionLocation:f,tongueLinkWidth:L}=o;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-i},line2:{x1:l[0].x+r,y1:l[0].y-i-(L-f),x2:l[0].x+e-r,y2:l[0].y-i-(L-f)},line3:{x1:l[0].x,y1:l[0].y-i,x2:l[0].x+e,y2:l[0].y-i},line4:{x1:l[0].x+e,y1:l[0].y-i,x2:l[0].x+e,y2:l[0].y-i+s},line5:{x1:l[0].x+e+g,y1:l[0].y,x2:l[0].x+e+n-u,y2:l[0].y},line6:{x1:l[0].x+e+n-g,y1:l[0].y+s-i,x2:l[0].x+e+u,y2:l[0].y+s-i},line7:{x1:l[0].x+e+n,y1:l[0].y,x2:l[0].x+e+n,y2:l[0].y+s},line8:{x1:l[0].x+e+n,y1:l[0].y+s,x2:l[0].x+2*e+n,y2:l[0].y+s},line9:{x1:l[0].x+e+n+r,y1:l[0].y+s+L-f,x2:l[0].x+2*e+n-r,y2:l[0].y+s+L-f},line10:{x1:l[0].x+2*e+n,y1:l[0].y,x2:l[0].x+2*e+n,y2:l[0].y+s},line11:{x1:l[0].x+2*e+n+u,y1:l[0].y,x2:l[0].x+2*e+n+n-d,y2:l[0].y},line12:{x1:l[0].x+2*e+n+g,y1:l[0].y+s-i,x2:l[0].x+2*e+n+n-d,y2:l[0].y+s-i}}}},bleedingLinePath$7=t=>{const e=t.boxWidth,n=t.thickness,s=t.bleedingSpace,u=cuttingLinePath$7(t).actionArray;function l(){const o=[],i=new SvgPathBuilder().moveTo(()=>(o.push({x:u[0].x,y:u[0].y}),o[0])).lineTo(()=>(o.push({x:u[1].x,y:u[1].y}),o[1])).lineTo(()=>(o.push({x:u[2].x,y:u[2].y}),o[2])).lineTo(()=>(o.push({x:u[3].x,y:u[3].y+s}),o[3])).quadTo(u[3].x,u[4].y,()=>(o.push({x:u[4].x+s,y:u[4].y}),o[4])).lineTo(()=>(o.push({x:u[5].x+s,y:u[5].y}),o[5])).quadTo(u[6].x+2*s,o[5].y,()=>(o.push({x:u[6].x+2*s,y:u[6].y+s}),o[6])).lineTo(()=>(o.push({x:o[6].x,y:u[7].y}),o[7])).lineTo(()=>(o.push({x:o[7].x+n,y:o[7].y}),o[8])).lineTo(()=>(o.push({x:o[8].x,y:u[12].y}),o[9])).lineTo(()=>(o.push({x:e>=40?u[13].x-s:u[13].x+s,y:o[9].y}),o[10])).quadTo(e>=40?u[14].x+s:u[14].x+3*s/2,e>=40?o[10].y-s/2:o[10].y,()=>(o.push({x:u[14].x+2*s,y:u[14].y+s/2}),o[11])).lineTo(()=>(o.push({x:u[15].x+2*s,y:u[15].y+s/2}),o[12])).lineTo(()=>(o.push({x:u[16].x+2*s,y:u[16].y+s/2}),o[13])).lineTo(()=>(o.push({x:o[13].x,y:u[17].y}),o[14])).lineTo(()=>(o.push({x:u[18].x,y:u[18].y}),o[15])).lineTo(()=>(o.push({x:u[19].x,y:u[19].y+s/2}),o[16])).lineTo(()=>(o.push({x:u[20].x,y:u[20].y+s/2}),o[17])).lineTo(()=>(o.push({x:u[21].x,y:u[21].y+s/2}),o[18])).quadTo(e>=40?o[18].x+s:o[18].x+s/2,u[22].y,()=>(o.push({x:u[22].x+s,y:u[22].y}),o[19])).lineTo(()=>(o.push({x:u[23].x+2*s,y:u[22].y}),o[20])).lineTo(()=>(o.push({x:u[24].x+2*s,y:u[24].y+s/2}),o[21])).lineTo(()=>(o.push({x:u[25].x+2*s,y:u[25].y+s/2}),o[22])).lineTo(()=>(o.push({x:o[22].x,y:u[26].y+3*s/2}),o[23])).lineTo(()=>(o.push({x:u[27].x+2*s,y:u[27].y+3*s/2}),o[24])).lineTo(()=>(o.push({x:u[28].x+2*s,y:e>=40?u[28].y+2*s:u[28].y+3*s/2}),o[25])).quadTo(e>=40?o[25].x-s:o[25].x-s/2,e>=40?u[29].y+2*s+s/2:u[29].y+2*s,()=>(o.push({x:e>=40?u[29].x-2*s:u[29].x,y:u[29].y+2*s}),o[26])).lineTo(()=>(o.push({x:u[34].x+2*s,y:o[26].y}),o[27])).lineTo(()=>(o.push({x:o[27].x,y:u[34].y+2*s}),o[28])).lineTo(()=>(o.push({x:o[28].x-n,y:o[28].y}),o[29])).lineTo(()=>(o.push({x:o[29].x,y:u[36].y+s}),o[30])).quadTo(o[30].x,u[37].y+2*s,()=>(o.push({x:u[37].x+s,y:u[37].y+2*s}),o[31])).lineTo(()=>(o.push({x:u[38].x+s,y:u[38].y+2*s}),o[32])).quadTo(u[39].x,o[32].y,()=>(o.push({x:u[39].x,y:u[39].y+s}),o[33])).lineTo(()=>(o.push({x:o[33].x,y:u[40].y+2*s}),o[34])).lineTo(()=>(o.push({x:o[34].x-n,y:o[34].y}),o[35])).lineTo(()=>(o.push({x:o[35].x,y:u[45].y+2*s}),o[36])).lineTo(()=>(o.push({x:e>=40?u[46].x+s:u[46].x+3*s/2,y:o[36].y}),o[37])).quadTo(e>=40?u[47].x+s:u[47].x+s/2,o[37].y,()=>(o.push({x:u[47].x,y:u[47].y+2*s}),o[38])).lineTo(()=>(o.push({x:u[48].x,y:u[48].y+3*s/2}),o[39])).lineTo(()=>(o.push({x:u[49].x,y:u[49].y+3*s/2}),o[40])).lineTo(()=>(o.push({x:o[40].x,y:u[50].y+2*s}),o[41])).lineTo(()=>(o.push({x:u[51].x+s/4,y:o[41].y}),o[42])).lineTo(()=>(o.push({x:u[52].x,y:u[52].y+2*s-s/8}),o[43])).lineTo(()=>(o.push({x:u[53].x,y:u[53].y+s/4}),o[44])).lineTo(()=>(o.push({x:u[54].x,y:u[54].y+s/4}),o[45])).lineTo(()=>(o.push({x:o[0].x,y:o[0].y}),o[46])).closePath();return{path:i.build(),actionArray:o,pathLine:i}}return{returnPath:l().path,actionArray:l().actionArray,pathLine:l().pathLine}},previewBleedingLinePath$7=t=>{const e=bleedingLinePath$7(t).actionArray,n=bleedingLinePath$7(t).pathLine,s=cuttingLinePath$7(t).actionArray;function u(){const l=[];return n.actionSplice(-5,5).lineTo(()=>(l.push({x:s[0].x,y:e[e.length-5].y}),l[0])).lineTo(()=>(l.push({x:l[0].x,y:l[0].y}),l[1])).closePath().build()}return{returnPath:u()}},useReversePluginLockPath={mmToPt,cuttingLinePath:cuttingLinePath$7,foldLineoordinates:foldLineoordinates$7,bleedingLinePath:bleedingLinePath$7,previewBleedingLinePath:previewBleedingLinePath$7};registerBox({type:"ReversePluginLockBox",name:"普通双插盒(异侧)",group:"card",categoryId:"double-interlock",component:()=>__vitePreload(()=>import("./index-DV7oiY0r.js"),__vite__mapDeps([30,1,2])),pathApi:useReversePluginLockPath,rules:ReversePluginLockBoxRules,display:{label:"普通双插盒(异侧)",index:1,imgSrc:"./defaultDlate/普通双插盒(异侧).svg",disabled:!1}});const cuttingLinePath$6=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,radiusTongueCr:r,tongueBottomLength:f,radiusTongueRr:L,radiusTongueRrX:T,slotBottomWidth:x,slotWidth:c,sideWingLength:m,tongueTopLength:y,radiusTongueAr:O,xLength13:b,yLength13:j,lockSLength:F,errorLength:k,K2Length:_,motherLockLength:ue,lockYLength:re,M2Length:de,K3Height:he,radiusTongueK1r:w,receptionLocationBR:le,downMoveRY:V,receptionLocationBRX:Ce,K1Height:_e,downMoveRYK1:D,negativeBuckleWidthM:Ie,negativeBuckleNumber:Lt,radiusTongueK1rX:At,radiusTongueK1rY:ie,offsetX:Ve,tongueLinkWidth:ze,overcutYLength:z}=l;function Dt(){const v=[],S=new SvgPathBuilder().moveTo(()=>(v.push({x:o,y:i+ze-g+d}),v[0])).lineTo(()=>(v.push({x:v[v.length-1].x+e+u,y:v[v.length-1].y}),v[1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-F}),v[2])).lineTo(()=>(v.push({x:v[v.length-1].x+re,y:v[v.length-1].y-re}),v[3])).lineTo(()=>(v.push({x:v[v.length-1].x+b,y:v[v.length-1].y-j}),v[4])).arcTo(O,O,0,0,1,()=>(v.push({x:v[v.length-1].x+.974*O,y:v[v.length-1].y-.775*O}),v[5])).lineTo(()=>(v.push({x:v[v.length-1].x+y,y:v[v.length-1].y}),v[6])).lineTo(()=>(v.push({x:v[v.length-1].x+(c-x),y:v[v.length-1].y+(m-x)}),v[7])).lineTo(()=>(v.push({x:v[v.length-1].x+(x-T),y:v[v.length-1].y+x}),v[8])).arcTo(L,L,0,0,0,()=>(v.push({x:v[v.length-1].x+T,y:v[v.length-1].y-d}),v[9])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-ze}),v[10])).lineTo(()=>(v.push({x:v[v.length-1].x+u,y:v[v.length-1].y}),v[11])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(i-g-r)}),v[12])).arcTo(r,r,0,0,1,()=>(v.push({x:v[v.length-1].x+r,y:v[v.length-1].y-r}),v[13])).lineTo(()=>(v.push({x:v[v.length-1].x+(f-2*r),y:v[v.length-1].y}),v[14])).arcTo(r,r,0,0,1,()=>(v.push({x:v[v.length-1].x+r,y:v[v.length-1].y+r}),v[15])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+(i-g-r)}),v[16])).lineTo(()=>(v.push({x:v[v.length-1].x+u,y:v[v.length-1].y}),v[17])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+ze}),v[18])).arcTo(L,L,0,0,0,()=>(v.push({x:v[v.length-1].x+T,y:v[v.length-1].y+d}),v[19])).lineTo(()=>(v.push({x:v[v.length-2].x+x,y:v[v.length-1].y-x}),v[20])).lineTo(()=>(v.push({x:v[v.length-3].x+c,y:v[v.length-2].y-m}),v[21])).lineTo(()=>(v.push({x:v[v.length-1].x+(y-k+u),y:v[v.length-1].y}),v[22])).arcTo(O,O,0,0,1,()=>(v.push({x:v[v.length-1].x+.974*O,y:v[v.length-1].y+.775*O}),v[23])).lineTo(()=>(v.push({x:v[v.length-1].x+b,y:v[v.length-1].y+j}),v[24])).lineTo(()=>(v.push({x:v[v.length-1].x+re,y:v[v.length-1].y+re}),v[25])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+F}),v[26])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+s-d}),v[27])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le-Ce),y:v[v.length-1].y+V}),v[28])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_+he-V}),v[29]));n<=50?S.lineTo(()=>(v.push({x:v[v.length-1].x-(n-k-(de-le)-w-(le-Ce)),y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(he-w)}),v[v.length-1])):S.lineTo(()=>(v.push({x:v[v.length-1].x-(n-k-(de-le)-(le-Ce))+Ve,y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-At,y:v[v.length-1].y-ie}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-2].x-Ve,y:v[v.length-2].y-he}),v[v.length-1])),S.lineTo(()=>(v.push({x:v[v.length-1].x-(de-le-Ce),y:v[v.length-1].y-_}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y+V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e+D-V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((e-Ie)/2-w-le)+le/2,y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1]));function Ue(hn){const Oe=2*hn-1;for(let Fe=1;Fe<hn;Fe++)S.lineTo(()=>(v.push({x:v[v.length-1].x-(Ie/Oe+le),y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+(_e-w)}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie/Oe-2*w-le),y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1]));S.lineTo(()=>(v.push({x:v[v.length-1].x-Ie/Oe-le,y:v[v.length-1].y}),v[v.length-1]))}Lt===1?S.lineTo(()=>(v.push({x:v[v.length-1].x-(Ie+le),y:v[v.length-1].y}),v[v.length-1])):Ue(2),S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((e-Ie)/2-w-le)+le/2,y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(+_e+D-V)}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y-V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(de-le-Ce),y:v[v.length-1].y+_}),v[v.length-1])),n<=50?(S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+he-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])),S.lineTo(()=>(v.push({x:v[v.length-1].x-(n-le-w-(de-le)),y:v[v.length-1].y}),v[v.length-1]))):(S.lineTo(()=>(v.push({x:v[v.length-1].x+(v[32].x-v[31].x),y:v[v.length-1].y+(v[31].y-v[32].y)}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-At,y:v[v.length-1].y+ie}),v[v.length-1])),S.lineTo(()=>(v.push({x:o+e+le,y:v[v.length-1].y}),v[v.length-1]))),S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(+he+_-V)}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y-V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(e-(Ie-le)-2*Ce)/2,y:v[v.length-1].y+D}),v[v.length-1]));function M(hn){const Oe=2*hn-1;for(let Fe=1;Fe<hn;Fe++)S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((Ie-le)/Oe-2*w),y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie-le)/Oe,y:v[v.length-1].y}),v[v.length-1]));S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((Ie-le)/Oe-2*w),y:v[v.length-1].y}),v[v.length-1]))}return Lt===1?S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie-le)+2*w,y:v[v.length-1].y}),v[v.length-1])):M(2),S.arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(e-(Ie-le)-2*Ce)/2,y:v[v.length-1].y-D}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-Ce,y:v[v.length-1].y-(le-V)}),v[v.length-1])).lineTo(()=>(v.push({x:0,y:v[v.length-1].y-o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[0].y+o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-3].x,y:v[v.length-1].y-o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).closePath().moveTo(()=>(v.push({x:v[11].x,y:v[11].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x+(ue-u),y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+u}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+g-u+z}),v[v.length-1])).moveTo(()=>(v.push({x:v[16].x,y:v[16].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(ue-u),y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+u}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+g-u+z}),v[v.length-1])),{path:S.build(),actionArray:v}}return{returnPath:Dt().path,actionArray:Dt().actionArray}},foldLineoordinates$6=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$6(t).actionArray,o=new ButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,receptionLocationBR:f,downMoveRY:L,receptionLocationBRX:T,errorLength:x}=o;return{foldLineObj:{line1:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+(s-g-(f-L))},line2:{x1:l[0].x+T,y1:l[0].y+(s-g),x2:l[0].x+e-T,y2:l[0].y+(s-g)},line3:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+(s-g-(f-L))},line4:{x1:l[1].x,y1:l[0].y,x2:l[1].x+n-u-d,y2:l[0].y},line5:{x1:l[0].x+e+T,y1:l[0].y+(s-g),x2:l[0].x+e+(n-T),y2:l[0].y+(s-g)},line6:{x1:l[1].x+n-u,y1:l[0].y-g,x2:l[1].x+n-u,y2:l[0].y+(s-g-(f-L))},line7:{x1:l[10].x+r,y1:l[10].y+i,x2:l[10].x+e-r,y2:l[10].y+i},line8:{x1:l[9].x,y1:l[9].y,x2:l[9].x+e,y2:l[9].y},line9:{x1:l[9].x+T,y1:l[9].y+s,x2:l[9].x+(e-T),y2:l[9].y+s},line10:{x1:l[9].x+e,y1:l[9].y,x2:l[9].x+e,y2:l[9].y+s-(f-L)},line11:{x1:l[9].x+(e+d),y1:l[9].y+g,x2:l[9].x+e+n-x,y2:l[9].y+g},line12:{x1:l[9].x+e+T,y1:l[9].y+s,x2:l[9].x+e+(n-x),y2:l[9].y+s}}}},bleedingLinePathOld$1=t=>{const e=t.boxLength,n=t.boxWidth,s=t.thickness,u=t.bleedingSpace,l=new ButtonBottom(t),{negativeBuckleNumber:o}=l;function i(){const g=cuttingLinePath$6(t).actionArray,d=[],r=new SvgPathBuilder().moveTo(()=>(d.push({x:g[0].x+e,y:g[1].y}),d[0])).lineTo(()=>(d.push({x:g[1].x,y:g[1].y}),d[1]));{const c=-getYOnOffsetLine([g[3].x,-g[3].y],[g[2].x,-g[2].y],d[d.length-1].x,void 0,-1);r.lineTo(()=>(d.push({x:d[d.length-1].x,y:c}),d[2]));const m=getXOnOffsetLine([g[3].x,-g[3].y],[g[2].x,-g[2].y],-(g[3].y+(c-g[2].y)),void 0,-1);r.lineTo(()=>(d.push({x:m,y:g[3].y+(c-g[2].y)}),d[3]));const y=getXOnOffsetLine([g[3].x,-g[3].y],[g[4].x,-g[4].y],-(g[4].y+(c-g[2].y)));r.lineTo(()=>(d.push({x:y,y:g[4].y+(c-g[2].y)}),d[4]))}r.quadTo(n>=40?d[4].x+u:d[4].x+u/2,g[5].y,()=>(d.push({x:g[5].x+u,y:g[5].y}),d[5])).lineTo(()=>(d.push({x:g[9].x,y:g[5].y}),d[6])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[10].y}),d[7])).lineTo(()=>(d.push({x:d[d.length-1].x+s,y:d[d.length-1].y}),d[8])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[12].y+u}),d[9])).quadTo(d[d.length-1].x,0,()=>(d.push({x:g[13].x+u,y:0}),d[10])).lineTo(()=>(d.push({x:g[14].x+u,y:0}),d[11])).quadTo(g[15].x+2*u,0,()=>(d.push({x:g[15].x+2*u,y:g[15].y+u}),d[12])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[16].y}),d[13])).lineTo(()=>(d.push({x:d[d.length-1].x+s,y:d[d.length-1].y}),d[14])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[21].y}),d[15])).lineTo(()=>(d.push({x:n>=40?g[22].x-u:g[22].x+u,y:d[d.length-1].y}),d[16])).quadTo(n>=40?g[23].x+u:g[23].x+3*u/2,n>=40?d[d.length-1].y-u/2:d[d.length-1].y,()=>(d.push({x:g[23].x+2*u,y:g[23].y+u/2}),d[17])).lineTo(()=>(d.push({x:g[24].x+2*u,y:g[24].y+u/2}),d[18])).lineTo(()=>(d.push({x:g[25].x+2*u,y:g[25].y+u/2}),d[19])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[27].y+u}),d[20])).lineTo(()=>(d.push({x:g[28].x+2*u,y:g[28].y+u}),d[21])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[29].y+2*u}),d[22])).lineTo(()=>(d.push({x:g[30].x+u,y:g[30].y+2*u}),d[23])),n<=50?r.quadTo(g[31].x,d[d.length-1].y,()=>(d.push({x:g[31].x,y:g[31].y+u}),d[24])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[32].y+3*u/2}),d[25])):r.quadTo(g[31].x-u/2,d[d.length-1].y-u/4,()=>(d.push({x:g[31].x,y:g[31].y+u}),d[d.length-1])).lineTo(()=>(d.push({x:g[32].x,y:g[32].y+3*u/2}),d[d.length-1])),r.lineTo(()=>(d.push({x:g[35].x+2*u,y:-getYOnLine(g[33].x,-(g[33].y+3*u/2),g[32].x,-(g[32].y+3*u/2),g[35].x+2*u)}),d[d.length-1])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[35].y+2*u}),d[d.length-1])).lineTo(()=>(d.push({x:g[36].x+u,y:d[d.length-1].y}),d[d.length-1])).quadTo(g[37].x,d[d.length-1].y,()=>(d.push({x:g[37].x,y:g[37].y+u}),d[d.length-1])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[38].y+2*u}),d[d.length-1]));let f=39;function L(c){for(let m=1;m<c;m++)r.lineTo(()=>(d.push({x:g[f].x+2*u,y:d[d.length-1].y}),f++,d[d.length-1])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[f].y+u}),f++,d[d.length-1])).quadTo(d[d.length-1].x,g[f].y+2*u,()=>(d.push({x:g[f].x+u,y:g[f].y+2*u}),f++,d[d.length-1])).lineTo(()=>(d.push({x:g[f].x+u,y:d[d.length-1].y}),f++,d[d.length-1])).quadTo(g[f].x,d[d.length-1].y,()=>(d.push({x:g[f].x,y:g[f].y+u}),f++,d[d.length-1])).lineTo(()=>(d.push({x:g[f].x,y:g[f].y+2*u}),f++,d[d.length-1]));r.lineTo(()=>(d.push({x:g[f].x+2*u,y:d[d.length-1].y}),f++,d[d.length-1]))}o===1?r.lineTo(()=>(d.push({x:g[f].x+2*u,y:d[d.length-1].y}),f++,d[d.length-1])):L(2),r.lineTo(()=>(d.push({x:d[d.length-1].x,y:g[f].y+u}),f++,d[d.length-1])).quadTo(d[d.length-1].x,g[f].y+2*u,()=>(d.push({x:g[f].x+u,y:g[f].y+2*u}),f++,d[d.length-1])).lineTo(()=>(d.push({x:g[f].x,y:d[d.length-1].y}),f++,d[d.length-1]));{const c=getYOnOffsetLine([g[f+1].x,-g[f+1].y],[g[f+2].x,-g[f+2].y],d[d.length-1].x);r.lineTo(()=>(d.push({x:d[d.length-1].x,y:-c}),f++,d[d.length-1]));const m=getYOnOffsetLine([g[f].x,-g[f].y],[g[f+1].x,-g[f+1].y],g[f+1].x+2*u);r.lineTo(()=>(d.push({x:g[f+1].x+2*u,y:-m}),f+=2,d[d.length-1]))}if(n<=50)r.lineTo(()=>(d.push({x:d[d.length-1].x,y:g[f].y+u}),f++,d[d.length-1])).quadTo(d[d.length-1].x,g[f].y+2*u,()=>(d.push({x:g[f].x+u,y:g[f].y+2*u}),f++,d[d.length-1]));else{const c=getXOnOffsetLine([g[f].x,-g[f].y],[g[f-1].x,-g[f-1].y],-(g[f].y+(d[d.length-1].y-g[f-1].y)),void 0,-1);r.lineTo(()=>(d.push({x:c,y:g[f].y+(d[d.length-1].y-g[f-1].y)}),f++,d[d.length-1])).quadTo(d[d.length-1].x+u/2,g[f].y+2*u-u/4,()=>(d.push({x:g[f].x+u,y:g[f].y+2*u}),f++,d[d.length-1]))}r.lineTo(()=>(d.push({x:g[f].x,y:d[d.length-1].y}),f++,d[d.length-1])),r.lineTo(()=>(d.push({x:d[d.length-1].x,y:-getYOnOffsetLine([g[f+2].x,-g[f+2].y],[g[f+1].x,-g[f+1].y],d[d.length-1].x,void 0,-1)}),f++,d[d.length-1])).lineTo(()=>(d.push({x:g[f+2].x+2*u,y:-getYOnOffsetLine([g[f].x,-g[f].y],[g[f+1].x,-g[f+1].y],g[f+1].x+2*u)}),f=f+2,d[d.length-1]));function T(c){for(let m=1;m<c;m++)r.lineTo(()=>(d.push({x:d[d.length-1].x,y:g[f].y+u}),f++,d[d.length-1])).quadTo(d[d.length-1].x,g[f].y+2*u,()=>(d.push({x:g[f].x+u,y:g[f].y+2*u}),f++,d[d.length-1])).lineTo(()=>(d.push({x:g[f].x+u,y:d[d.length-1].y}),f++,d[d.length-1])).quadTo(g[f].x,d[d.length-1].y,()=>(d.push({x:g[f].x,y:g[f].y+u}),f++,d[d.length-1])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[f].y+2*u}),f++,d[d.length-1])).lineTo(()=>(d.push({x:g[f].x+2*u,y:d[d.length-1].y}),f++,d[d.length-1]));r.lineTo(()=>(d.push({x:d[d.length-1].x,y:g[f].y+u}),f++,d[d.length-1])).quadTo(d[d.length-1].x,g[f].y+2*u,()=>(d.push({x:g[f].x+u,y:g[f].y+2*u}),f++,d[d.length-1])).lineTo(()=>(d.push({x:g[f].x+u,y:d[d.length-1].y}),f++,d[d.length-1]))}o===1?r.lineTo(()=>(d.push({x:d[d.length-1].x,y:g[f].y+u}),f++,d[d.length-1])).quadTo(d[d.length-1].x,g[f].y+2*u,()=>(d.push({x:g[f].x+u,y:g[f].y+2*u}),f++,d[d.length-1])).lineTo(()=>(d.push({x:g[f].x+u,y:d[d.length-1].y}),f++,d[d.length-1])):T(2),r.quadTo(g[f].x,d[d.length-1].y,()=>(d.push({x:g[f].x,y:g[f].y+u}),f++,d[d.length-1])).lineTo(()=>(d.push({x:d[d.length-1].x,y:g[f].y+3*u/2}),f++,d[d.length-1])).lineTo(()=>(d.push({x:g[f].x+u/2,y:-getYOnLine(g[f-1].x,-g[f-1].y,g[f].x,-g[f].y,g[f].x+u/2)+3*u/2}),f++,d[d.length-1])).quadTo(g[f].x+u/4,g[f].y+13*u/8,()=>(d.push({x:g[f].x,y:g[f].y+7*u/4}),f++,d[d.length-1])).lineTo(()=>(d.push({x:g[f].x,y:g[f].y+7*u/4}),f++,d[d.length-1]));{const{yA:c,xB:m}=computeMBPoints([g[f].x,-g[f].y],[g[f+1].x,-g[f+1].y],d[d.length-1].x,-g[0].y);r.lineTo(()=>(d.push({x:d[d.length-1].x,y:-c}),f++,d[d.length-1])).lineTo(()=>(d.push({x:m,y:g[0].y}),f++,d[d.length-1]))}return r.closePath(),{path:r.build(),actionArray:d,pathLine:r}}return{returnPath:i().path,actionArray:i().actionArray,pathLine:i().pathLine}},bleedingLinePath$6=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,receptionLocation:g,heightDiff:d,radiusTongueCr:r,tongueBottomLength:f,radiusTongueRr:L,radiusTongueRrX:T,slotBottomWidth:x,slotWidth:c,sideWingLength:m,tongueTopLength:y,radiusTongueAr:O,xLength13:b,yLength13:j,lockSLength:F,errorLength:k,K2Length:_,motherLockLength:ue,lockYLength:re,M2Length:de,K3Height:he,radiusTongueK1r:w,receptionLocationBR:le,downMoveRY:V,receptionLocationBRX:Ce,K1Height:_e,downMoveRYK1:D,negativeBuckleWidthM:Ie,negativeBuckleNumber:Lt,radiusTongueK1rX:At,radiusTongueK1rY:ie,offsetX:Ve,tongueLinkWidth:ze,overcutYLength:z}=l;function Dt(){const v=[],S=new SvgPathBuilder().moveTo(()=>(v.push({x:o,y:i+ze-g+d}),v[0])).lineTo(()=>(v.push({x:v[v.length-1].x+e+u,y:v[v.length-1].y}),v[1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-F}),v[2])).lineTo(()=>(v.push({x:v[v.length-1].x+re,y:v[v.length-1].y-re}),v[3])).lineTo(()=>(v.push({x:v[v.length-1].x+b,y:v[v.length-1].y-j}),v[4])).arcTo(O,O,0,0,1,()=>(v.push({x:v[v.length-1].x+.974*O,y:v[v.length-1].y-.775*O}),v[5])).lineTo(()=>(v.push({x:v[v.length-1].x+y,y:v[v.length-1].y}),v[6])).lineTo(()=>(v.push({x:v[v.length-1].x+(c-x),y:v[v.length-1].y+(m-x)}),v[7])).lineTo(()=>(v.push({x:v[v.length-1].x+(x-T),y:v[v.length-1].y+x}),v[8])).arcTo(L,L,0,0,0,()=>(v.push({x:v[v.length-1].x+T,y:v[v.length-1].y-d}),v[9])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-ze}),v[10])).lineTo(()=>(v.push({x:v[v.length-1].x+u,y:v[v.length-1].y}),v[11])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(i-g-r)}),v[12])).arcTo(r,r,0,0,1,()=>(v.push({x:v[v.length-1].x+r,y:v[v.length-1].y-r}),v[13])).lineTo(()=>(v.push({x:v[v.length-1].x+(f-2*r),y:v[v.length-1].y}),v[14])).arcTo(r,r,0,0,1,()=>(v.push({x:v[v.length-1].x+r,y:v[v.length-1].y+r}),v[15])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+(i-g-r)}),v[16])).lineTo(()=>(v.push({x:v[v.length-1].x+u,y:v[v.length-1].y}),v[17])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+ze}),v[18])).arcTo(L,L,0,0,0,()=>(v.push({x:v[v.length-1].x+T,y:v[v.length-1].y+d}),v[19])).lineTo(()=>(v.push({x:v[v.length-2].x+x,y:v[v.length-1].y-x}),v[20])).lineTo(()=>(v.push({x:v[v.length-3].x+c,y:v[v.length-2].y-m}),v[21])).lineTo(()=>(v.push({x:v[v.length-1].x+(y-k+u),y:v[v.length-1].y}),v[22])).arcTo(O,O,0,0,1,()=>(v.push({x:v[v.length-1].x+.974*O,y:v[v.length-1].y+.775*O}),v[23])).lineTo(()=>(v.push({x:v[v.length-1].x+b,y:v[v.length-1].y+j}),v[24])).lineTo(()=>(v.push({x:v[v.length-1].x+re,y:v[v.length-1].y+re}),v[25])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+F}),v[26])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+s-d}),v[27])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le-Ce),y:v[v.length-1].y+V}),v[28])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_+he-V}),v[29]));n<=50?S.lineTo(()=>(v.push({x:v[v.length-1].x-(n-k-(de-le)-w-(le-Ce)),y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(he-w)}),v[v.length-1])):S.lineTo(()=>(v.push({x:v[v.length-1].x-(n-k-(de-le)-(le-Ce))+Ve,y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-At,y:v[v.length-1].y-ie}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-2].x-Ve,y:v[v.length-2].y-he}),v[v.length-1])),S.lineTo(()=>(v.push({x:v[v.length-1].x-(de-le-Ce),y:v[v.length-1].y-_}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y+V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e+D-V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((e-Ie)/2-w-le)+le/2,y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1]));function Ue(Oe){const Fe=2*Oe-1;for(let Et=1;Et<Oe;Et++)S.lineTo(()=>(v.push({x:v[v.length-1].x-(Ie/Fe+le),y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+(_e-w)}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie/Fe-2*w-le),y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1]));S.lineTo(()=>(v.push({x:v[v.length-1].x-Ie/Fe-le,y:v[v.length-1].y}),v[v.length-1]))}Lt===1?S.lineTo(()=>(v.push({x:v[v.length-1].x-(Ie+le),y:v[v.length-1].y}),v[v.length-1])):Ue(2),S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((e-Ie)/2-w-le)+le/2,y:v[v.length-1].y}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(+_e+D-V)}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y-V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(de-le-Ce),y:v[v.length-1].y+_}),v[v.length-1])),n<=50?(S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+he-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])),S.lineTo(()=>(v.push({x:v[v.length-1].x-(n-le-w-(de-le)),y:v[v.length-1].y}),v[v.length-1]))):(S.lineTo(()=>(v.push({x:v[v.length-1].x+(v[32].x-v[31].x),y:v[v.length-1].y+(v[31].y-v[32].y)}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-At,y:v[v.length-1].y+ie}),v[v.length-1])),S.lineTo(()=>(v.push({x:o+e+le,y:v[v.length-1].y}),v[v.length-1]))),S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(+he+_-V)}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-(le+Ce),y:v[v.length-1].y-V}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(e-(Ie-le)-2*Ce)/2,y:v[v.length-1].y+D}),v[v.length-1]));function M(Oe){const Fe=2*Oe-1;for(let Et=1;Et<Oe;Et++)S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((Ie-le)/Fe-2*w),y:v[v.length-1].y}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie-le)/Fe,y:v[v.length-1].y}),v[v.length-1]));S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-((Ie-le)/Fe-2*w),y:v[v.length-1].y}),v[v.length-1]))}return Lt===1?S.lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y+_e-w}),v[v.length-1])).arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y+w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(Ie-le)+2*w,y:v[v.length-1].y}),v[v.length-1])):M(2),S.arcTo(w,w,0,0,1,()=>(v.push({x:v[v.length-1].x-w,y:v[v.length-1].y-w}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[v.length-1].y-(_e-w)}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x-(e-(Ie-le)-2*Ce)/2,y:v[v.length-1].y-D}),v[v.length-1])).arcTo(le,le,0,0,0,()=>(v.push({x:v[v.length-1].x-Ce,y:v[v.length-1].y-(le-V)}),v[v.length-1])).lineTo(()=>(v.push({x:0,y:v[v.length-1].y-o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-1].x,y:v[0].y+o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).lineTo(()=>(v.push({x:v[v.length-3].x,y:v[v.length-1].y-o*Math.tan(15*(Math.PI/180))}),v[v.length-1])).closePath(),{path:BleedGeneratorV2.getInstance().generate(S.build()),actionArray:v}}return{returnPath:Dt().path,actionArray:Dt().actionArray}},previewBleedingLinePath$6=t=>{const e=bleedingLinePathOld$1(t).actionArray,n=cuttingLinePath$6(t).actionArray,s=bleedingLinePathOld$1(t).pathLine;function u(){return s.actionSplice(-5,5).lineTo(()=>({x:n[0].x,y:e[e.length-5].y})).lineTo(()=>({x:n[0].x,y:n[0].y})).closePath().build()}return{returnPath:u()}},useReverseSameButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$6,foldLineoordinates:foldLineoordinates$6,bleedingLinePath:bleedingLinePath$6,previewBleedingLinePath:previewBleedingLinePath$6};registerBox({type:"ReverseSameButtonBottomBox",name:"反向扣底盒(同侧)",group:"card",categoryId:"button-bottom",component:()=>__vitePreload(()=>import("./index-fufLJU9v.js"),__vite__mapDeps([31,1,2])),pathApi:useReverseSameButtonBottomPath,rules:ButtonBottomBoxRules,display:{label:"反向扣底盒(同侧)",index:6,imgSrc:"./defaultDlate/反向扣底盒(同侧).svg",disabled:!1}});const cuttingLinePath$5=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,radiusGT:i,tongueHeight:g,receptionLocation:d,heightDiff:r,radiusTongueCr:f,tongueBottomLength:L,radiusTongueRr:T,radiusTongueRrX:x,slotBottomWidth:c,slotWidth:m,sideWingLength:y,tongueTopLength:O,radiusTongueAr:b,xLength13:j,yLength13:F,lockSLength:k,errorLength:_,K2Length:ue,motherLockLength:re,lockYLength:de,M2Length:he,K3Height:w,radiusTongueK1r:le,receptionLocationBR:V,downMoveRY:Ce,receptionLocationBRX:_e,K1Height:D,downMoveRYK1:Ie,negativeBuckleWidthM:Lt,negativeBuckleNumber:At,radiusTongueK1rX:ie,radiusTongueK1rY:Ve,offsetX:ze,tongueLinkWidth:z,overcutYLength:Dt}=l;function v(){const S=[],Ue=new SvgPathBuilder().moveTo(()=>(S.push({x:n-_,y:g+z-d}),S[0])).lineTo(()=>(S.push({x:S[0].x,y:S[0].y-z}),S[1])).lineTo(()=>(S.push({x:S[1].x+u,y:S[1].y}),S[2])).lineTo(()=>(S.push({x:S[2].x,y:f}),S[3])).arcTo(f,f,0,0,1,()=>(S.push({x:S[3].x+f,y:S[3].y-f}),S[4])).lineTo(()=>(S.push({x:S[4].x+L-2*f,y:S[4].y}),S[5])).arcTo(f,f,0,0,1,()=>(S.push({x:S[5].x+f,y:S[5].y+f}),S[6])).lineTo(()=>(S.push({x:S[6].x,y:S[6].y+g-d-f}),S[7])).lineTo(()=>(S.push({x:S[7].x+u,y:S[7].y}),S[8])).lineTo(()=>(S.push({x:S[8].x,y:S[8].y+z}),S[9])).arcTo(T,T,0,0,0,()=>(S.push({x:S[9].x+x,y:S[9].y+r}),S[10])).lineTo(()=>(S.push({x:S[9].x+c,y:S[10].y-c}),S[11])).lineTo(()=>(S.push({x:S[9].x+m,y:S[10].y-y}),S[12])).lineTo(()=>(S.push({x:S[12].x+O,y:S[12].y}),S[13])).arcTo(b,b,0,0,1,()=>(S.push({x:S[13].x+.974*b,y:S[13].y+.775*b}),S[14])).lineTo(()=>(S.push({x:S[14].x+j,y:S[14].y+F}),S[15])).lineTo(()=>(S.push({x:S[15].x+de,y:S[15].y+de}),S[16])).lineTo(()=>(S.push({x:S[16].x,y:S[16].y+k}),S[17])).lineTo(()=>(S.push({x:S[17].x+e+u,y:S[17].y}),S[18])).lineTo(()=>(S.push({x:S[18].x+o,y:S[18].y+o*Math.tan(i*(Math.PI/180))}),S[19])).lineTo(()=>(S.push({x:S[19].x,y:S[19].y+(s-r-2*o*Math.tan(i*(Math.PI/180))-(V-Ce))}),S[20])).lineTo(()=>(S.push({x:S[20].x-o,y:S[20].y+o*Math.tan(i*(Math.PI/180))}),S[21])).arcTo(V,V,0,0,0,()=>(S.push({x:S[21].x-V,y:S[21].y+V}),S[22])).lineTo(()=>(S.push({x:S[22].x,y:S[22].y+D+Ie-Ce}),S[23])).lineTo(()=>(S.push({x:S[S.length-1].x-((e-Lt)/2-le-V)+V/2,y:S[S.length-1].y}),S[24])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y-le}),S[25])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(D-le)}),S[S.length-1]));function M(Oe){const Fe=2*Oe-1;for(let Et=1;Et<Oe;Et++)Ue.lineTo(()=>(S.push({x:S[S.length-1].x-(Lt/Fe+V),y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+(D-le)}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y+le}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(Lt/Fe-2*le-V),y:S[S.length-1].y}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y-le}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(D-le)}),S[S.length-1]));Ue.lineTo(()=>(S.push({x:S[S.length-1].x-Lt/Fe-V,y:S[S.length-1].y}),S[S.length-1]))}At===1?Ue.lineTo(()=>(S.push({x:S[S.length-1].x-(Lt+V),y:S[S.length-1].y}),S[S.length-1])):M(2),Ue.lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+D-le}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y+le}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-((e-Lt)/2-le-V)+V/2,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(+D+Ie-Ce)}),S[S.length-1])).arcTo(V,V,0,0,0,()=>(S.push({x:S[S.length-1].x-(V+_e),y:S[S.length-1].y-Ce}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(he-V-_e),y:S[S.length-1].y+ue}),S[S.length-1])),n<=50?(Ue.lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+w-le}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y+le}),S[S.length-1])),Ue.lineTo(()=>(S.push({x:S[S.length-1].x-(n-V-le-(he-V)),y:S[S.length-1].y}),S[S.length-1]))):(Ue.lineTo(()=>(S.push({x:S[S.length-1].x+(ie-ze),y:S[S.length-1].y+(w-Ve)}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-ie,y:S[S.length-1].y+Ve}),S[S.length-1])),Ue.lineTo(()=>(S.push({x:n-_+e+V,y:S[S.length-1].y}),S[S.length-1]))),Ue.lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(+w+ue-Ce)}),S[S.length-1])).arcTo(V,V,0,0,0,()=>(S.push({x:S[S.length-1].x-(V+_e),y:S[S.length-1].y-Ce}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(e-(Lt-V)-2*_e)/2,y:S[S.length-1].y+Ie}),S[S.length-1]));function Pt(Oe){const Fe=2*Oe-1;for(let Et=1;Et<Oe;Et++)Ue.lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+D-le}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y+le}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-((Lt-V)/Fe-2*le),y:S[S.length-1].y}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y-le}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(D-le)}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(Lt-V)/Fe,y:S[S.length-1].y}),S[S.length-1]));Ue.lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+D-le}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y+le}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-((Lt-V)/Fe-2*le),y:S[S.length-1].y}),S[S.length-1]))}return At===1?Ue.lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+D-le}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y+le}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(Lt-V)+2*le,y:S[S.length-1].y}),S[S.length-1])):Pt(2),Ue.arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y-le}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(D-le)}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(e-(Lt-V)-2*_e)/2,y:S[S.length-1].y-Ie}),S[S.length-1])).arcTo(V,V,0,0,0,()=>(S.push({x:S[S.length-1].x-(_e+V),y:S[S.length-1].y+Ce}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+ue+w-Ce}),S[S.length-1])),n<=50?Ue.lineTo(()=>(S.push({x:he+le,y:S[S.length-1].y}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-le,y:S[S.length-1].y-le}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(w-le)}),S[S.length-1])):Ue.lineTo(()=>(S.push({x:he+ze,y:S[S.length-1].y}),S[S.length-1])).arcTo(le,le,0,0,1,()=>(S.push({x:S[S.length-1].x-ie,y:S[S.length-1].y-Ve}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+(le-ze),y:S[S.length-1].y-(w-Ve)}),S[S.length-1])),Ue.lineTo(()=>(S.push({x:0,y:S[S.length-1].y-ue}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-(s-r)}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y-k}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+de,y:S[S.length-1].y-de}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+j,y:S[S.length-1].y-F}),S[S.length-1])).arcTo(b,b,0,0,1,()=>(S.push({x:S[S.length-1].x+.974*b,y:S[S.length-1].y-.775*b}),S[S.length-1])).lineTo(()=>(S.push({x:S[0].x-m,y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+m-c,y:S[0].y+r-c}),S[S.length-1])).lineTo(()=>(S.push({x:S[0].x-x,y:S[S.length-1].y+c}),S[S.length-1])).arcTo(T,T,0,0,0,()=>(S.push({x:S[S.length-1].x+x,y:S[S.length-1].y-r}),S[S.length-1])).moveTo(()=>(S.push({x:S[2].x,y:S[1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x+(re-u),y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+u}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+d-u+Dt}),S[S.length-1])).moveTo(()=>(S.push({x:S[7].x,y:S[7].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x-(re-u),y:S[S.length-1].y}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+u}),S[S.length-1])).lineTo(()=>(S.push({x:S[S.length-1].x,y:S[S.length-1].y+d-u+Dt}),S[S.length-1])),{path:Ue.build(),actionArray:S}}return{returnPath:v().path,actionArray:v().actionArray}},foldLineoordinates$5=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$5(t).actionArray,o=new ButtonBottom(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,receptionLocationBR:f,downMoveRY:L,receptionLocationBRX:T}=o;return{foldLineObj:{line1:{x1:0,y1:l[0].y+g,x2:l[0].x-d,y2:l[0].y+g},line2:{x1:0,y1:l[0].y+s,x2:l[0].x-T,y2:l[0].y+s},line3:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+(s-(f-L))},line4:{x1:l[0].x+r,y1:l[2].y+i,x2:l[0].x+e-r,y2:l[2].y+i},line5:{x1:l[0].x,y1:l[0].y,x2:l[0].x+e,y2:l[0].y},line6:{x1:l[0].x+T,y1:l[0].y+s,x2:l[0].x+e-T,y2:l[0].y+s},line7:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+(s-(f-L))},line8:{x1:l[10].x,y1:l[0].y+g,x2:l[17].x,y2:l[0].y+g},line9:{x1:l[0].x+e+T,y1:l[0].y+s,x2:l[0].x+e+n-T,y2:l[0].y+s},line10:{x1:l[17].x+u,y1:l[0].y+g,x2:l[17].x+u,y2:l[0].y+(s-(f-L))},line11:{x1:l[17].x+u+T,y1:l[0].y+s,x2:l[17].x+u+e-T,y2:l[0].y+s},line12:{x1:l[17].x+u+e,y1:l[0].y+g,x2:l[17].x+u+e,y2:l[0].y+(s-(f-L))}}}},bleedingLinePathOld=t=>{const e=t.boxWidth,n=t.thickness,s=t.bleedingSpace,u=cuttingLinePath$5(t).actionArray,l=new ButtonBottom(t),{errorLength:o,radiusTongueCr:i,negativeBuckleNumber:g}=l;function d(){const r=[];let f;const L=new SvgPathBuilder().moveTo(()=>(r.push({x:e-o,y:u[u.length-13].y}),r[0])).lineTo(()=>(r.push({x:r[0].x,y:u[1].y}),r[1])).lineTo(()=>(r.push({x:r[1].x+n,y:r[1].y}),r[2])).lineTo(()=>(r.push({x:r[2].x,y:i+s}),r[3])).quadTo(r[3].x,u[4].y,()=>(r.push({x:u[4].x+s,y:u[4].y}),r[4])).lineTo(()=>(r.push({x:u[5].x+s,y:u[5].y}),r[5])).quadTo(u[6].x+2*s,r[5].y,()=>(r.push({x:u[6].x+2*s,y:u[6].y+s}),r[6])).lineTo(()=>(r.push({x:r[6].x,y:u[7].y}),r[7])).lineTo(()=>(r.push({x:r[7].x+n,y:r[7].y}),r[8])).lineTo(()=>(r.push({x:r[8].x,y:u[12].y}),r[9])).lineTo(()=>(r.push({x:e>=40?u[13].x-s:u[13].x+s,y:r[9].y}),r[10])).quadTo(e>=40?u[14].x+s:u[14].x+3*s/2,e>=40?r[10].y-s/2:r[10].y,()=>(r.push({x:u[14].x+2*s,y:u[14].y+s/2}),r[11])).lineTo(()=>(r.push({x:u[15].x+2*s,y:u[15].y+s/2}),r[12])).lineTo(()=>(r.push({x:u[16].x+2*s,y:u[16].y+s/2}),r[13])).lineTo(()=>(r.push({x:r[13].x,y:u[17].y}),r[14]));{const{yA:y,xB:O}=computeMBPoints([u[18].x,-u[18].y],[u[19].x,-u[19].y],u[19].x+2*s,-r[14].y);L.lineTo(()=>(r.push({x:O,y:r[14].y}),r[15])).lineTo(()=>(r.push({x:u[19].x+2*s,y:-y}),r[16]))}{const{yA:y,xB:O}=computeMBPoints([u[20].x,-u[20].y],[u[21].x,-u[21].y],r[16].x,-(u[21].y+2*s));L.lineTo(()=>(r.push({x:r[16].x,y:-y}),r[17])),L.lineTo(()=>(r.push({x:u[23].x+2*s,y:-getYOnLine(r[17].x,-r[17].y,O,-(u[21].y+2*s),u[23].x+2*s)}),r[18]))}L.lineTo(()=>(r.push({x:r[r.length-1].x,y:u[23].y+2*s}),r[19])).lineTo(()=>(r.push({x:u[24].x+s,y:r[r.length-1].y}),r[20])).quadTo(u[25].x,r[r.length-1].y,()=>(r.push({x:u[25].x,y:u[25].y+s}),r[21])).lineTo(()=>(r.push({x:r[r.length-1].x,y:u[26].y+2*s}),r[22]));let T=27;function x(y){for(let O=1;O<y;O++)L.lineTo(()=>(r.push({x:u[T].x+2*s,y:r[r.length-1].y}),T++,r[r.length-1])).lineTo(()=>(r.push({x:r[r.length-1].x,y:u[T].y+s}),T++,r[r.length-1])).quadTo(r[r.length-1].x,u[T].y+2*s,()=>(r.push({x:u[T].x+s,y:u[T].y+2*s}),T++,r[r.length-1])).lineTo(()=>(r.push({x:u[T].x+s,y:r[r.length-1].y}),T++,r[r.length-1])).quadTo(u[T].x,r[r.length-1].y,()=>(r.push({x:u[T].x,y:u[T].y+s}),T++,r[r.length-1])).lineTo(()=>(r.push({x:u[T].x,y:u[T].y+2*s}),T++,r[r.length-1]));L.lineTo(()=>(r.push({x:u[T].x+2*s,y:r[r.length-1].y}),T++,r[r.length-1]))}g===1?L.lineTo(()=>(r.push({x:u[T].x+2*s,y:r[r.length-1].y}),T++,r[r.length-1])):x(2),L.lineTo(()=>(r.push({x:r[r.length-1].x,y:u[T].y+s}),T++,r[r.length-1])).quadTo(r[r.length-1].x,u[T].y+2*s,()=>(r.push({x:u[T].x+s,y:u[T].y+2*s}),T++,r[r.length-1])).lineTo(()=>(r.push({x:u[T].x,y:r[r.length-1].y}),T++,r[r.length-1]));{const{xB:y,yA:O}=computeMBPoints([u[T+1].x,-u[T+1].y],[u[T+2].x,-u[T+2].y],r[r.length-1].x,-(u[T+2].y+2*s));L.lineTo(()=>(r.push({x:r[r.length-1].x,y:-O}),T++,r[r.length-1])).lineTo(()=>(r.push({x:u[T+1].x+2*s,y:-getYOnLine(r[r.length-1].x,-r[r.length-1].y,y,-(u[T+1].y+2*s),u[T+1].x+2*s)}),T+=2,r[r.length-1])),e<=50?L.lineTo(()=>(r.push({x:r[r.length-1].x,y:u[T].y+s}),T++,r[r.length-1])).quadTo(r[r.length-1].x,u[T].y+2*s,()=>(r.push({x:u[T].x+s,y:u[T].y+2*s}),T++,r[r.length-1])):L.lineTo(()=>(r.push({x:u[T].x+2*s,y:u[T].y+(r[r.length-1].y-u[T-1].y)}),f=r.length-1,T++,r[r.length-1])).quadTo(r[r.length-1].x+s/2,u[T].y+2*s-s/4,()=>(r.push({x:u[T].x+s,y:u[T].y+2*s}),T++,r[r.length-1])),L.lineTo(()=>(r.push({x:u[T].x,y:r[r.length-1].y}),T++,r[r.length-1]))}{const{yA:y,xB:O}=computeMBPoints([u[T+1].x,-u[T+1].y],[u[T+2].x,-u[T+2].y],r[r.length-1].x,-(u[T+2].y+2*s));L.lineTo(()=>(r.push({x:r[r.length-1].x,y:-y}),T+=2,r[r.length-1])).lineTo(()=>(r.push({x:u[T].x+2*s,y:-getYOnLine(r[r.length-1].x,-r[r.length-1].y,O,-(u[T].y+2*s),u[T].x+2*s)}),T++,r[r.length-1]))}function c(y){for(let O=1;O<y;O++)L.lineTo(()=>(r.push({x:r[r.length-1].x,y:u[T].y+s}),T++,r[r.length-1])).quadTo(r[r.length-1].x,u[T].y+2*s,()=>(r.push({x:u[T].x+s,y:u[T].y+2*s}),T++,r[r.length-1])).lineTo(()=>(r.push({x:u[T].x+s,y:r[r.length-1].y}),T++,r[r.length-1])).quadTo(u[T].x,r[r.length-1].y,()=>(r.push({x:u[T].x,y:u[T].y+s}),T++,r[r.length-1])).lineTo(()=>(r.push({x:r[r.length-1].x,y:u[T].y+2*s}),T++,r[r.length-1])).lineTo(()=>(r.push({x:u[T].x+2*s,y:r[r.length-1].y}),T++,r[r.length-1]));L.lineTo(()=>(r.push({x:r[r.length-1].x,y:u[T].y+s}),T++,r[r.length-1])).quadTo(r[r.length-1].x,u[T].y+2*s,()=>(r.push({x:u[T].x+s,y:u[T].y+2*s}),T++,r[r.length-1])).lineTo(()=>(r.push({x:u[T].x+s,y:r[r.length-1].y}),T++,r[r.length-1]))}g===1?L.lineTo(()=>(r.push({x:r[r.length-1].x,y:u[T].y+s}),T++,r[r.length-1])).quadTo(r[r.length-1].x,u[T].y+2*s,()=>(r.push({x:u[T].x+s,y:u[T].y+2*s}),T++,r[r.length-1])).lineTo(()=>(r.push({x:u[T].x+s,y:r[r.length-1].y}),T++,r[r.length-1])):c(2),L.quadTo(u[T].x,r[r.length-1].y,()=>(r.push({x:u[T].x,y:u[T].y+s}),T++,r[r.length-1]));{const y=getYOnOffsetLine([u[T+1].x,-u[T+1].y],[u[T].x,-u[T].y],r[r.length-1].x,void 0,-1),O=getYOnOffsetLine([u[T+1].x,-u[T+1].y],[u[T].x,-u[T].y],u[T+2].x+2*s,void 0,-1);L.lineTo(()=>(r.push({x:r[r.length-1].x,y:-y}),T+=2,r[r.length-1])).lineTo(()=>(r.push({x:u[T].x+2*s,y:-O}),T++,r[r.length-1])).lineTo(()=>(r.push({x:r[r.length-1].x,y:u[T].y+2*s}),T++,r[r.length-1]))}if(L.lineTo(()=>(r.push({x:u[T].x+s,y:r[r.length-1].y}),T++,r[r.length-1])),e<=50){L.quadTo(u[T].x,r[r.length-1].y,()=>(r.push({x:u[T].x,y:u[T].y+s}),T++,r[r.length-1]));const y=getYOnOffsetLine([u[T+1].x,-u[T+1].y],[u[T].x,-u[T].y],r[r.length-1].x,void 0,-1);L.lineTo(()=>(r.push({x:r[r.length-1].x,y:-y}),T++,r[r.length-1]))}else L.quadTo(u[T].x-s/2,r[r.length-1].y+s/4,()=>(r.push({x:r[r.length-1].x-(r[f].x-r[f+1].x),y:r[r.length-1].y-(r[f+1].y-r[f].y)}),T++,r[r.length-1])).lineTo(()=>(r.push({x:r[r.length-1].x+r[f].x-r[f-1].x,y:r[r.length-1].y-(r[f].y-r[f-1].y)}),T++,r[r.length-1]));{const y=getYOnOffsetLine([u[T-1].x,-u[T-1].y],[u[T].x,-u[T].y],0,void 0);L.lineTo(()=>(r.push({x:0,y:-y}),T+=2,r[r.length-1]))}{const y=getYOnOffsetLine([u[T+1].x,-u[T+1].y],[u[T].x,-u[T].y],0,void 0,-1);L.lineTo(()=>(r.push({x:0,y:-y}),T++,r[r.length-1]))}return L.lineTo(()=>(r.push({x:r[r.length-1].x+r[13].x-r[12].x,y:r[r.length-1].y-(r[13].y-r[12].y)}),T++,r[r.length-1])).lineTo(()=>(r.push({x:r[r.length-1].x+r[12].x-r[11].x,y:r[r.length-1].y-(r[12].y-r[11].y)}),T++,r[r.length-1])).quadTo(e>=40?r[r.length-1].x+s:r[r.length-1].x+s/2,e>=40?u[T].y-s/2:u[T].y,()=>(r.push({x:r[r.length-1].x+r[11].x-r[10].x,y:r[r.length-1].y-(r[11].y-r[10].y)}),T++,r[r.length-1])).closePath(),{path:L.build(),actionArray:r,pathLine:L}}return{returnPath:d().path,actionArray:d().actionArray,pathLine:d().pathLine}},bleedingLinePath$5=t=>{function e(){const n=[];return{path:BleedGenerator.getInstance().generate(cuttingLinePath$5(t).returnPath),actionArray:n}}return{returnPath:e().path,actionArray:e().actionArray}},previewBleedingLinePath$5=t=>{const e=bleedingLinePathOld(t).actionArray,n=bleedingLinePathOld(t).pathLine;function s(){const u=n;return u.actionSplice(15,3).addLineTo(15,()=>({x:e[18].x,y:e[15].y})).addLineTo(16,()=>({x:e[18].x,y:e[18].y})),u.build()}return{returnPath:s()}},useSameButtonBottomPath={mmToPt,cuttingLinePath:cuttingLinePath$5,foldLineoordinates:foldLineoordinates$5,bleedingLinePath:bleedingLinePath$5,previewBleedingLinePath:previewBleedingLinePath$5};registerBox({type:"SameButtonBottomBox",name:"普通扣底盒(同侧)",group:"card",categoryId:"button-bottom",component:()=>__vitePreload(()=>import("./index-DvW_0GQy.js"),__vite__mapDeps([32,1,2])),pathApi:useSameButtonBottomPath,rules:ButtonBottomBoxRules,display:{label:"普通扣底盒(同侧)",index:4,imgSrc:"./defaultDlate/普通扣底盒(同侧).svg",disabled:!1}});const cuttingLinePath$4=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new ButtonBottom(t),{hollowLineLength:o,tongueHeight:i,tongueBottomLength:g,receptionLocation:d,heightDiff:r,radiusTongueCr:f,radiusTongueRr:L,radiusTongueRrX:T,slotWidth:x,slotBottomWidth:c,lockSLength:m,xLength13:y,yLength13:O,radiusTongueAr:b,sideWingLength:j,tongueTopLength:F,errorLength:k,motherLockLength:_,lockYLength:ue,tongueLinkWidth:re,overcutYLength:de}=l;function he(){const w=[];return{path:new SvgPathBuilder().moveTo(()=>(w.push({x:n-k,y:i+re-d}),w[w.length-1])).lineTo(()=>(w.push({x:n-k,y:i-d}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+u,y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:f}),w[w.length-1])).arcTo(f,f,0,0,1,()=>(w.push({x:w[w.length-1].x+f,y:w[w.length-1].y-f}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+g-2*f,y:w[w.length-1].y}),w[w.length-1])).arcTo(f,f,0,0,1,()=>(w.push({x:w[w.length-1].x+f,y:w[w.length-1].y+f}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+i-d-f}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+u,y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+re}),w[w.length-1])).arcTo(L,L,0,0,0,()=>(w.push({x:w[w.length-1].x+T,y:w[w.length-1].y+r}),w[w.length-1])).lineTo(()=>(w.push({x:w[9].x+c,y:w[w.length-1].y-c}),w[w.length-1])).lineTo(()=>(w.push({x:w[9].x+x,y:w[10].y-j}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+F,y:w[w.length-1].y}),w[w.length-1])).arcTo(b,b,0,0,1,()=>(w.push({x:w[w.length-1].x+.974*b,y:w[w.length-1].y+.775*b}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+y,y:w[w.length-1].y+O}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+ue,y:w[w.length-1].y+ue}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+m}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+e+u,y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+o,y:w[w.length-1].y+o*Math.tan(15*(Math.PI/180))}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+(s-2*(o*Math.tan(15*(Math.PI/180))))-2*r}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-o,y:w[w.length-1].y+o*Math.tan(15*(Math.PI/180))}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-e-u,y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+m}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-ue,y:w[w.length-1].y+ue}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-y,y:w[w.length-1].y+O}),w[w.length-1])).arcTo(b,b,0,0,1,()=>(w.push({x:w[w.length-1].x-.974*b,y:w[w.length-1].y+.775*b}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-F,y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-(x-c),y:w[w.length-1].y-(j-c)}),w[w.length-1])).lineTo(()=>(w.push({x:n-k+e+T,y:w[w.length-1].y-c}),w[w.length-1])).arcTo(L,L,0,0,0,()=>(w.push({x:w[w.length-1].x-T,y:w[w.length-1].y+r}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+re}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-u,y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+i-f-d}),w[w.length-1])).arcTo(f,f,0,0,1,()=>(w.push({x:w[w.length-1].x-f,y:w[w.length-1].y+f}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-(g-2*f),y:w[w.length-1].y}),w[w.length-1])).arcTo(f,f,0,0,1,()=>(w.push({x:w[w.length-1].x-f,y:w[w.length-1].y-f}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y-(i-f-d)}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-u,y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y-re}),w[w.length-1])).arcTo(L,L,0,0,0,()=>(w.push({x:w[w.length-1].x-T,y:w[w.length-1].y-r}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-3].x-c,y:w[w.length-1].y+c}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-(x-c),y:w[w.length-2].y+j}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-(F+u-k),y:w[w.length-1].y}),w[w.length-1])).arcTo(b,b,0,0,1,()=>(w.push({x:w[w.length-1].x-.974*b,y:w[w.length-1].y-.775*b}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-y,y:w[w.length-1].y-O}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-ue,y:w[w.length-1].y-ue}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[16].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+ue,y:w[w.length-1].y-ue}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+y,y:w[w.length-1].y-O}),w[w.length-1])).arcTo(b,b,0,0,1,()=>(w.push({x:w[w.length-1].x+.974*b,y:w[w.length-1].y-.775*b}),w[w.length-1])).lineTo(()=>(w.push({x:w[0].x-x,y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+(x-c),y:w[w.length-1].y+(j-c)}),w[w.length-1])).lineTo(()=>(w.push({x:w[0].x-T,y:w[0].y+r}),w[w.length-1])).arcTo(L,L,0,0,0,()=>(w.push({x:w[0].x,y:w[0].y}),w[w.length-1])).moveTo(()=>(w.push({x:w[2].x,y:w[2].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+(_-u),y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+u}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+d-u+de}),w[w.length-1])).moveTo(()=>(w.push({x:w[7].x,y:w[7].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-(_-u),y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+u}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y+d-u+de}),w[w.length-1])).moveTo(()=>(w.push({x:w[32].x,y:w[32].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x-(_-u),y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y-u}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y-d+u-de}),w[w.length-1])).moveTo(()=>(w.push({x:w[37].x,y:w[37].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x+(_-u),y:w[w.length-1].y}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y-u}),w[w.length-1])).lineTo(()=>(w.push({x:w[w.length-1].x,y:w[w.length-1].y-d+u-de}),w[w.length-1])).build(),actionArray:w}}return{returnPath:he().path,actionArray:he().actionArray}},foldLineoordinates$4=t=>{const e=t.boxLength,n=t.boxHeight,s=t.thickness,u=cuttingLinePath$4(t).actionArray,l=new ButtonBottom(t),{receptionLocation:o,heightDiff:i,radiusTongueRrX:g,motherLockLength:d}=l;return{foldLineObj:{line1:{x1:0,y1:u[0].y+i,x2:u[0].x-g,y2:u[0].y+i},line2:{x1:0,y1:u[0].y+n-i,x2:u[0].x-g,y2:u[0].y+n-i},line3:{x1:u[0].x,y1:u[0].y,x2:u[0].x,y2:u[0].y+n},line4:{x1:u[0].x+d,y1:u[2].y+o,x2:u[0].x+e-d,y2:u[2].y+o},line5:{x1:u[0].x,y1:u[0].y,x2:u[0].x+e,y2:u[0].y},line6:{x1:u[0].x,y1:u[0].y+n,x2:u[0].x+e,y2:u[0].y+n},line7:{x1:u[38].x+d,y1:u[38].y-o,x2:u[38].x+e-d,y2:u[38].y-o},line8:{x1:u[0].x+e,y1:u[0].y,x2:u[0].x+e,y2:u[0].y+n},line9:{x1:u[10].x,y1:u[0].y+i,x2:u[17].x,y2:u[0].y+i},line10:{x1:u[10].x,y1:u[0].y+n-i,x2:u[17].x,y2:u[0].y+n-i},line11:{x1:u[17].x+s,y1:u[0].y+i,x2:u[17].x+s,y2:u[0].y+n-i},line12:{x1:u[17].x+s+e,y1:u[0].y+i,x2:u[17].x+s+e,y2:u[0].y+n-i}}}},bleedingLinePath$4=t=>{const e=t.boxWidth,n=t.thickness,s=t.bleedingSpace,u=cuttingLinePath$4(t).actionArray,l=new ButtonBottom(t),{lockSLength:o,heightDiff:i,sideWingLength:g}=l;function d(){const r=[],f=new SvgPathBuilder().moveTo(()=>(r.push({x:u[0].x,y:u[0].y-(g-i)}),r[0])).lineTo(()=>(r.push({x:u[1].x,y:u[1].y}),r[1])).lineTo(()=>(r.push({x:u[2].x,y:u[2].y}),r[2])).lineTo(()=>(r.push({x:u[3].x,y:u[3].y+s}),r[3])).quadTo(u[3].x,u[4].y,()=>(r.push({x:u[4].x+s,y:u[4].y}),r[4])).lineTo(()=>(r.push({x:u[5].x+s,y:u[5].y}),r[5])).quadTo(u[6].x+2*s,r[5].y,()=>(r.push({x:u[6].x+2*s,y:u[6].y+s}),r[6])).lineTo(()=>(r.push({x:r[6].x,y:u[7].y}),r[7])).lineTo(()=>(r.push({x:r[7].x+n,y:r[7].y}),r[8])).lineTo(()=>(r.push({x:r[8].x,y:u[12].y}),r[9])).lineTo(()=>(r.push({x:e>=40?u[13].x-s:u[13].x+s,y:r[9].y}),r[10])).quadTo(e>=40?u[14].x+s:u[14].x+3*s/2,e>=40?r[10].y-s/2:r[10].y,()=>(r.push({x:u[14].x+2*s,y:u[14].y+s/2}),r[11])).lineTo(()=>(r.push({x:u[15].x+2*s,y:u[15].y+s/2}),r[12])).lineTo(()=>(r.push({x:u[16].x+2*s,y:u[16].y+s/2}),r[13])).lineTo(()=>(r.push({x:r[13].x,y:u[17].y}),r[14])).lineTo(()=>(r.push({x:u[18].x+2*s-s/2,y:u[18].y}),r[15])).lineTo(()=>(r.push({x:u[19].x+2*s,y:u[19].y+s/5}),r[16])).lineTo(()=>(r.push({x:r[16].x,y:u[20].y+2*s-s/5}),r[17])).lineTo(()=>(r.push({x:r[17].x-(r[16].x-r[15].x),y:r[17].y+(r[16].y-r[15].y)}),r[18])).lineTo(()=>(r.push({x:u[22].x+2*s,y:r[18].y}),r[19])).lineTo(()=>(r.push({x:r[19].x,y:u[23].y+2*s-s/2}),r[20])).lineTo(()=>(r.push({x:u[24].x+2*s,y:u[24].y+2*s-s/2}),r[21])).lineTo(()=>(r.push({x:u[25].x+2*s,y:u[25].y+2*s-s/2}),r[22])).quadTo(e>=40?r[22].x-s:r[22].x-s/2,e>=40?u[26].y+2*s+s/2:u[26].y+2*s,()=>(r.push({x:e>=40?u[26].x-s:u[26].x+s,y:u[26].y+2*s}),r[23])).lineTo(()=>(r.push({x:u[31].x+2*s,y:r[23].y}),r[24])).lineTo(()=>(r.push({x:r[24].x,y:u[32].y+2*s}),r[25])).lineTo(()=>(r.push({x:r[24].x-n,y:r[25].y}),r[26])).lineTo(()=>(r.push({x:r[26].x,y:u[33].y+2*s-s}),r[27])).quadTo(r[27].x,u[34].y+2*s,()=>(r.push({x:u[34].x+s,y:u[34].y+2*s}),r[28])).lineTo(()=>(r.push({x:u[35].x+s,y:r[28].y}),r[29])).quadTo(u[36].x,r[29].y,()=>(r.push({x:u[36].x,y:u[36].y+s}),r[30])).lineTo(()=>(r.push({x:r[30].x,y:r[25].y}),r[31])).lineTo(()=>(r.push({x:r[31].x-n,y:r[31].y}),r[32])).lineTo(()=>(r.push({x:r[32].x,y:u[42].y+2*s}),r[33])).lineTo(()=>(r.push({x:e>=40?u[43].x+3*s:u[43].x+s,y:r[33].y}),r[34])).quadTo(e>=40?r[34].x-(r[11].x-r[10].x)+s:r[34].x-(r[11].x-r[10].x)+s/2,e>=40?r[34].y+s/2:r[34].y,()=>(r.push({x:r[34].x-(r[11].x-r[10].x),y:r[34].y-(r[11].y-r[10].y)}),r[35])).lineTo(()=>(r.push({x:r[35].x-(r[12].x-r[11].x),y:r[35].y-(r[12].y-r[11].y)}),r[36])).lineTo(()=>(r.push({x:r[36].x-(r[13].x-r[12].x),y:r[36].y-(r[13].y-r[12].y)}),r[37])).lineTo(()=>(r.push({x:r[37].x,y:u[47].y+(o-(r[14].y-r[13].y))}),r[38])).lineTo(()=>(r.push({x:r[38].x+(r[13].x-r[12].x),y:r[38].y-(r[13].y-r[12].y)}),r[39])).lineTo(()=>(r.push({x:r[39].x+(r[12].x-r[11].x),y:r[39].y-(r[12].y-r[11].y)}),r[40])).quadTo(e>=40?r[40].x+s:r[40].x+s/2,e>=40?u[50].y-s/2:u[50].y,()=>(r.push({x:r[40].x+(r[11].x-r[10].x),y:u[50].y}),r[41])).lineTo(()=>(r.push({x:r[0].x,y:r[0].y}),r[42]));return{path:f.build(),actionArray:r,pathLine:f}}return{returnPath:d().path,actionArray:d().actionArray,pathLine:d().pathLine}},previewBleedingLinePath$4=t=>{const e=t.bleedingSpace,n=bleedingLinePath$4(t).actionArray,s=bleedingLinePath$4(t).pathLine;function u(){const l=s;return l.actionSplice(15,3).addLineTo(15,()=>({x:n[18].x+e/2,y:n[15].y})).addLineTo(16,()=>({x:n[18].x+e/2,y:n[18].y})).closePath(),l.build()}return{returnPath:u()}},useSameReversePluginLockPath={mmToPt,cuttingLinePath:cuttingLinePath$4,foldLineoordinates:foldLineoordinates$4,bleedingLinePath:bleedingLinePath$4,previewBleedingLinePath:previewBleedingLinePath$4};registerBox({type:"SameReversePluginLockBox",name:"普通双插盒(同侧)",group:"card",categoryId:"double-interlock",component:()=>__vitePreload(()=>import("./index-X9niFWBv.js"),__vite__mapDeps([33,1,2])),pathApi:useSameReversePluginLockPath,rules:ReversePluginLockBoxRules,display:{label:"普通双插盒(同侧)",index:2,imgSrc:"./defaultDlate/普通双插盒(同侧).svg",disabled:!1}});registerBox({type:"SameSelfLockingBox",name:"普通自锁底盒(同侧)",group:"card",categoryId:"self-locking",component:()=>__vitePreload(()=>import("./index-zDBJy-0t.js"),__vite__mapDeps([34,1,2])),pathApi:useSameSelfLockingPath,rules:SelfLockingBoxRules,display:{label:"普通自锁底盒(同侧)",index:24,imgSrc:"./defaultDlate/普通自锁底盒(同侧)1.svg",disabled:!1}});const topLeftBigTongue=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{hollowLineLength:u,tongueHeight:l,tongueBottomLength:o,receptionLocation:i,radiusTongueCr:g,tongueLinkWidth:d,heightDiff:r}=new SelfLocking(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:g}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o-2*g,y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-i-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+d+r}),e[e.length-1])),t},topRightEar=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight,n.thickness;const{radiusTongueRr:s,radiusTongueRrX:u,heightDiff:l,slotBottomWidth:o,slotWidth:i,radiusTongueAr:g,xLength13:d,yLength13:r,lockYLength:f,lockSLength:L,tongueTopLength:T,sideWingLength:x}=new ButtonBottom(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-L}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*g,y:e[e.length-1].y-.775*g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+T,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i-o,y:e[e.length-1].y+x-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(o-u),y:e[e.length-1].y+o}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y-l}),e[e.length-1])),t},rightSticky=(t,e,n)=>{const s=n.boxHeight,u=new SelfLocking(n),{hollowLineLength:l,hollowLineY:o,heightDiff:i,radiusGT:g,receptionLocationBR:d,downMoveRY:r}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s-i-o-l)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+l}),e[e.length-1])),t},mainSlot=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{lockXX:u,lockYY:l,mainLockLength:o,selfLockLength:i,selfLockXX:g,mainLockMidXX:d,mainLockLeftXX:r,mainSlotLinkLockY:f,mainSlotLinkLockX:L,mainLockSlotBX2X:T,mainLockSlotBX2Y:x,mainLockSlotBX1X:c,mainLockSlotBX1Y:m,mainLockSlotBRX:y,mainLockSlotBRY:O,mainLockSlotBR:b,selfLockR:j,selfLockXR:F,selfLockYR:k}=s;return t.lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-g-F),y:e[e.length-1].y-(i-g-F)}),e[e.length-1])).arcTo(j,j,0,0,1,()=>(e.push({x:e[e.length-1].x-F,y:e[e.length-1].y-k}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-(k-F))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).arcTo(b,b,0,0,0,()=>(e.push({x:e[e.length-1].x-y,y:e[e.length-1].y+O}),e[e.length-1])),t},topLeftEar=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{slotBottomWidth:u,slotWidth:l,radiusTongueAr:o,xLength13:i,yLength13:g,lockYLength:d,lockSLength:r,radiusTongueRr:f,radiusTongueRrX:L,heightDiff:T,sideWingLength:x,tongueTopLength:c,errorLength:m}=new SelfLocking(n);return t.lineTo(()=>(e.push({x:e[e.length-1].x+(u-L),y:e[e.length-1].y-u}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(l-u),y:e[e.length-1].y-(x-u)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(c-m+L),y:e[e.length-1].y}),e[e.length-1])).arcTo(o,o,0,0,1,()=>(e.push({x:e[e.length-1].x+.974*o,y:e[e.length-1].y+.775*o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])),t},motherLock=(t,e,n)=>{n.boxLength,n.boxWidth,n.boxHeight;const s=n.thickness,{motherLockLength:u,receptionLocation:l,overcutYLength:o}=new ButtonBottom(n);return t.moveTo(()=>(e.push({x:e[11].x,y:e[11].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])).moveTo(()=>(e.push({x:e[16].x,y:e[16].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u-s),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l-s+o}),e[e.length-1])),t},rightSubordinateSlot=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{subordinate60Y:u,subordinate60X:l,subordinateSlotXXShort:o,subordinate45Y:i,subordinate45X:g,subordinateSlotXXArc:d,subordinateSlotYYArc:r,subordinateSlotR:f}=s;return t.lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+u}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-i}),e[e.length-1])).arcTo(f,f,0,0,0,()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+r}),e[e.length-1])),t},leftMainSlot=(t,e,n)=>{n.boxHeight;const s=new SelfLocking(n),{lockXX:u,lockYY:l,mainLockLength:o,selfLockLength:i,selfLockXX:g,mainLockMidXX:d,mainLockLeftXX:r,mainSlotLinkLockY:f,mainSlotLinkLockX:L,mainLockSlotBX2X:T,mainLockSlotBX2Y:x,mainLockSlotBX1X:c,mainLockSlotBX1Y:m,mainLockSlotBRX:y,mainLockSlotBRY:O,mainLockSlotBR:b,subordinateSlotXXArc:j,subordinateSlotYYLeft:F,subordinateSlotYYRight:k,lockAngle:_,selfLockR:ue,selfLockXR:re,selfLockYR:de}=s,he=F/Math.tan(_*Math.PI/180);return t.lineTo(()=>(e.push({x:e[e.length-1].x-(u-he),y:e[e.length-1].y+(l-F)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(o-(j-k-he)),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-g-re),y:e[e.length-1].y-(i-g-re)}),e[e.length-1])).arcTo(ue,ue,0,0,1,()=>(e.push({x:e[e.length-1].x-re,y:e[e.length-1].y-de}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(g-(de-re))}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-i,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-L,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+c,y:e[e.length-1].y-m}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-T,y:e[e.length-1].y-x}),e[e.length-1])).arcTo(b,b,0,0,0,()=>(e.push({x:e[e.length-1].x-y,y:e[e.length-1].y+O}),e[e.length-1])),t},leftSubordinateSlot=(t,e,n)=>{n.boxHeight;const s=n.boxWidth,u=new SelfLocking(n),{subordinate60Y:l,subordinate60X:o,subordinateSlotXXShort:i,subordinate45Y:g,subordinate45X:d,subordinateSlotXXArc:r,subordinateSlotYYArc:f,subordinateSlotR:L,errorLength:T}=u;return t.lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-T),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s/2,y:e[e.length-1].y-s/2}),e[e.length-1])),t},cuttingLinePath$3=function(t){const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=new SelfLocking(t),{tongueHeight:o,receptionLocation:i,heightDiff:g,errorLength:d,tongueLinkWidth:r,hollowLineY:f}=l;function L(){const T=[],x=new SvgPathBuilder().moveTo(()=>(T.push({x:n-d,y:o+r-i+g}),T[T.length-1])).lineTo(()=>(T.push({x:T[T.length-1].x+(e+u),y:T[T.length-1].y}),T[T.length-1]));return topRightEar(x,T,t),topLeftBigTongue(x,T,t),rightSticky(x,T,t),mainSlot(x,T,t),rightSubordinateSlot(x,T,t),leftMainSlot(x,T,t),leftSubordinateSlot(x,T,t).lineTo(()=>(T.push({x:T[T.length-1].x,y:T[T.length-1].y-(s-g)}),T[T.length-1])),topLeftEar(x,T,t),motherLock(x,T,t),{path:x.build(),actionArray:T,pathLine:x}}return{returnPath:L().path,actionArray:L().actionArray,pathLine:L().pathLine}},foldLineoordinates$3=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$3(t).actionArray,o=new SelfLocking(t),{receptionLocation:i,heightDiff:g,radiusTongueRrX:d,motherLockLength:r,receptionLocationBR:f,downMoveRY:L,receptionLocationBRX:T,mainLockSlotAngleLeft:x}=o,c={line1:{x1:0,y1:l[0].y,x2:l[0].x-u,y2:l[0].y},line2:{x1:0,y1:l[0].y+s-g,x2:l[0].x,y2:l[0].y+s-g},line3:{x1:l[0].x,y1:l[0].y,x2:l[0].x,y2:l[0].y+s-g},line4:{x1:l[10].x+r,y1:l[11].y+i,x2:l[10].x+e-r,y2:l[11].y+i},line5:{x1:l[0].x+e+u,y1:l[0].y,x2:l[0].x+e+n-d,y2:l[0].y},line6:{x1:l[0].x,y1:l[0].y+s-g,x2:l[0].x+e,y2:l[0].y+s-g},line7:{x1:l[0].x+e,y1:l[0].y,x2:l[0].x+e,y2:l[0].y+s-g},line8:{x1:l[10].x,y1:l[0].y-g,x2:l[17].x,y2:l[0].y-g},line9:{x1:l[0].x+e,y1:l[0].y+s-g,x2:l[0].x+e+n,y2:l[0].y+s-g},line10:{x1:l[17].x,y1:l[0].y,x2:l[17].x,y2:l[0].y+s-g},line11:{x1:l[0].x+e+n,y1:l[0].y+s-g,x2:l[0].x+e+n+e,y2:l[0].y+s-g},line12:{x1:l[0].x+e+n,y1:l[0].y-g,x2:l[0].x+e+n,y2:l[0].y+s-g},lineRightMainSlot_1:{x1:l[31].x-.49*Math.cos(45*Math.PI/180),y1:l[31].y+.49*Math.sin(45*Math.PI/180),x2:l[31].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y2:l[31].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180)},lineRightMainSlot_2:{x1:l[27].x-5*Math.cos(45*Math.PI/180),y1:l[27].y-5*Math.cos(45*Math.PI/180),x2:l[27].x,y2:l[27].y},lineLeftMainSlot_1:{x1:l[47].x-.49*Math.cos(45*Math.PI/180),y1:l[47].y+.49*Math.sin(45*Math.PI/180),x2:l[47].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y2:l[47].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180)},lineLeftMainSlot_2:{x1:l[43].x-5*Math.cos(45*Math.PI/180),y1:l[43].y-5*Math.cos(45*Math.PI/180),x2:l[43].x,y2:l[43].y}},m={lineRightMainSlot:{x1:l[31].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y1:l[31].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),x2:l[27].x-5*Math.cos(45*Math.PI/180),y2:l[27].y-5*Math.cos(45*Math.PI/180)},lineLeftMainSlot:{x1:l[47].x-.49*Math.cos(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),y1:l[47].y+.49*Math.sin(45*Math.PI/180)+5*Math.cos(45*Math.PI/180),x2:l[43].x-5*Math.cos(45*Math.PI/180),y2:l[43].y-5*Math.cos(45*Math.PI/180)}};return{foldLineObj:c,secondFoldLineObj:m}},bleedingLinePath$3=t=>{function e(){const n=cuttingLinePath$3(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath$3=t=>{function e(){const n=cuttingLinePath$3(t).pathLine;n.actionSplice(19,2);let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},useSelfLockingPath={mmToPt,cuttingLinePath:cuttingLinePath$3,foldLineoordinates:foldLineoordinates$3,bleedingLinePath:bleedingLinePath$3,previewBleedingLinePath:previewBleedingLinePath$3};registerBox({type:"SelfLockingBox",name:"普通自锁底盒(异侧)",group:"card",categoryId:"self-locking",component:()=>__vitePreload(()=>import("./index-BYSbFWac.js"),__vite__mapDeps([35,1,2])),pathApi:useSelfLockingPath,rules:SelfLockingBoxRules,display:{label:"普通自锁底盒(异侧)",index:25,imgSrc:"./defaultDlate/普通自锁底盒(异侧)1.svg",disabled:!1}});class SkyAndEarthBottom{constructor(e){this._backEdge=15,this._backEdgeSlopeAngle=60,this._gutterWidth=10,this._longEdge=10,this._shortEdge=10,this._upperCoverTW1X=2,this._upperCoverTW1Y=2,this._upperCoverTW1LongEdgeX=2,this._upperCoverTW1LongEdgeY=9.5,this._lowerCoverTeethFitDiff=10,this._listenAttentively=2,this._fourCornerStacking=2,this._cornerRadius=5,this._upperCoverTW1TeethFitLength=10,this._greenLineRedLineLength=15,e.advancedParams?.longEdge&&(this._longEdge=e.advancedParams.longEdge.value),this.initBackEdgeX(),this.initTeethFit(e.thickness),this.initGutterLength(e.boxHeight,e.thickness),this.initUpperCoverTW1(e.boxWidth),this.initHighLowOF(e.thickness),this.initFourCornerSkewLineX(e.boxWidth,e.boxHeight,e.thickness),this.initFourCornerSkewLineY(e.boxHeight),this.initCornerRadius(e.boxHeight),this.initBackEdgeToCornerRadius(),this.initUpperCoverTW1Height(e.boxHeight,e.thickness),this.initBackEdgeHeight(e.boxHeight,e.thickness),this.initBackEdgeTopHorizontalLength(e.boxWidth),this.initUpperCoverTW1TeethFitLength(e.boxLength,e.thickness),this.initShortEdge()}initBackEdgeX(){this._backEdgeX=this._backEdge/Math.tan(this._backEdgeSlopeAngle*Math.PI/180)}initTeethFit(e){this._teethFit=e}initGutterLength(e,n){this._gutterLength=e-2*n-2}initUpperCoverTW1(e){this._upperCoverTW1=(e-2*this.longEdge)/2+10}initHighLowOF(e){this._highLowOF=e}initFourCornerSkewLineX(e,n,s){this._fourCornerSkewLineX=n*.2;const u=n+this._highLowOF-this._fourCornerStacking,l=u-this._fourCornerSkewLineX,o=n-s-this._fourCornerStacking,i=o-this._fourCornerSkewLineX;if(Math.sqrt(l**2+i**2)>=e/2){const g=.4*e,d=2,r=-2*(u+o),f=o**2+u**2-g**2,L=r**2-4*d*f,T=(-r+Math.sqrt(L))/(2*d),x=(-r-Math.sqrt(L))/(2*d);T<n?this._fourCornerSkewLineX=T:this._fourCornerSkewLineX=x}}initFourCornerSkewLineY(e){this._fourCornerSkewLineY=e+this._highLowOF-this._fourCornerSkewLineX-this._fourCornerStacking}initCornerRadius(e){this._cornerRadius=5}initUpperCoverTW1Height(e,n){this._upperCoverTW1Height=e-2*n}initBackEdgeHeight(e,n){this._backEdgeHeight=e-n}initBackEdgeTopHorizontalLength(e){this._backEdgeTopHorizontalLength=e-2*(this._cornerRadius+this._backEdgeX+this._backEdgeToCornerRadius)}initUpperCoverTW1TeethFitLength(e,n){this._upperCoverTW1TeethFitLength=e-2*(n+this._upperCoverTW1LongEdgeY+this._backEdgeX)}initBackEdgeToCornerRadius(){this._backEdgeToCornerRadius=this._shortEdge-this._cornerRadius}initLongEdge(){this._longEdge=10}initShortEdge(){this._shortEdge=this._longEdge}get backEdge(){return this._backEdge}get gutterWidth(){return this._gutterWidth}get backEdgeSlopeAngle(){return this._backEdgeSlopeAngle}get backEdgeX(){return this._backEdgeX}get longEdge(){return this._longEdge}get shortEdge(){return this._shortEdge}get teethFit(){return this._teethFit}get gutterLength(){return this._gutterLength}get upperCoverTW1(){return this._upperCoverTW1}get lowerCoverTeethFitDiff(){return this._lowerCoverTeethFitDiff}get highLowOF(){return this._highLowOF}get listenAttentively(){return this._listenAttentively}get fourCornerStacking(){return this._fourCornerStacking}get fourCornerSkewLineX(){return this._fourCornerSkewLineX}get fourCornerSkewLineY(){return this._fourCornerSkewLineY}get cornerRadius(){return this._cornerRadius}get backEdgeToCornerRadius(){return this._backEdgeToCornerRadius}get upperCoverTW1X(){return this._upperCoverTW1X}get upperCoverTW1Y(){return this._upperCoverTW1Y}get upperCoverTW1Height(){return this._upperCoverTW1Height}get upperCoverTW1LongEdgeX(){return this._upperCoverTW1LongEdgeX}get upperCoverTW1LongEdgeY(){return this._upperCoverTW1LongEdgeY}get backEdgeHeight(){return this._backEdgeHeight}get backEdgeTopHorizontalLength(){return this._backEdgeTopHorizontalLength}get upperCoverTW1TeethFitLength(){return this._upperCoverTW1TeethFitLength}get greenLineRedLineLength(){return this._greenLineRedLineLength}}const leftUpperEar=(t,e,n)=>{const{upperCoverTW1:s,gutterWidth:u,upperCoverTW1X:l,upperCoverTW1Y:o,upperCoverTW1Height:i,upperCoverTW1LongEdgeX:g,upperCoverTW1LongEdgeY:d}=new SkyAndEarthBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(s-u-o)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i/2-l),y:e[e.length-1].y}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(u-o)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-g),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s-d)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+d}),e[e.length-1]))},topLeftCorner=(t,e,n)=>{const{longEdge:s,upperCoverTW1LongEdgeX:u,fourCornerStacking:l,fourCornerSkewLineX:o,fourCornerSkewLineY:i,cornerRadius:g,shortEdge:d,backEdgeToCornerRadius:r}=new SkyAndEarthBottom(n),{thickness:f}=n;t.lineTo(()=>(e.push({x:e[e.length-1].x+u+s+l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i-2*f,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l+d-g)}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y}),e[e.length-1]))},topBackEdge$1=(t,e,n)=>{const{backEdge:s,backEdgeX:u,backEdgeHeight:l,backEdgeTopHorizontalLength:o}=new SkyAndEarthBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y-s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l}),e[e.length-1]))},topRightCorner=(t,e,n)=>{const{longEdge:s,upperCoverTW1LongEdgeX:u,fourCornerStacking:l,fourCornerSkewLineX:o,fourCornerSkewLineY:i,cornerRadius:g,shortEdge:d,backEdgeToCornerRadius:r}=new SkyAndEarthBottom(n),{thickness:f}=n;t.lineTo(()=>(e.push({x:e[e.length-1].x+r,y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l+d-g)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+i-2*f,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+o,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+u+s+l,y:e[e.length-1].y}),e[e.length-1]))},rightUpperEar=(t,e,n)=>{const{upperCoverTW1:s,gutterWidth:u,upperCoverTW1X:l,upperCoverTW1Y:o,upperCoverTW1Height:i,upperCoverTW1LongEdgeX:g,upperCoverTW1LongEdgeY:d}=new SkyAndEarthBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y+d}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(s-d-u-o)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i/2-l-g),y:e[e.length-1].y}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(u-o)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-g),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1]))},rightBottomEar=(t,e,n)=>{const{upperCoverTW1:s,gutterWidth:u,upperCoverTW1X:l,upperCoverTW1Y:o,upperCoverTW1Height:i,upperCoverTW1LongEdgeX:g,upperCoverTW1LongEdgeY:d}=new SkyAndEarthBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-g),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(u-o)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i/2-l-g),y:e[e.length-1].y}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(s-d-u-o)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-d}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1]))},bottomRightCorner=(t,e,n)=>{const{longEdge:s,upperCoverTW1LongEdgeX:u,fourCornerStacking:l,fourCornerSkewLineX:o,fourCornerSkewLineY:i,cornerRadius:g,shortEdge:d,backEdgeToCornerRadius:r}=new SkyAndEarthBottom(n),{thickness:f}=n;t.lineTo(()=>(e.push({x:e[e.length-1].x-(u+s+l),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-2*f),y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l+d-g)}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y}),e[e.length-1]))},bottomBackEdge$1=(t,e,n)=>{const{backEdge:s,backEdgeX:u,backEdgeHeight:l,backEdgeTopHorizontalLength:o}=new SkyAndEarthBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y+s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y-s}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-l}),e[e.length-1]))},bottomLeftCorner=(t,e,n)=>{const{longEdge:s,upperCoverTW1LongEdgeX:u,fourCornerStacking:l,fourCornerSkewLineX:o,fourCornerSkewLineY:i,cornerRadius:g,shortEdge:d,backEdgeToCornerRadius:r}=new SkyAndEarthBottom(n),{thickness:f}=n;t.lineTo(()=>(e.push({x:e[e.length-1].x-r,y:e[e.length-1].y}),e[e.length-1])).arcTo(g,g,0,0,1,()=>(e.push({x:e[e.length-1].x-g,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l+d-g)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-2*f),y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(u+s+l),y:e[e.length-1].y}),e[e.length-1]))},leftBottomEar=(t,e,n)=>{const{upperCoverTW1:s,gutterWidth:u,upperCoverTW1X:l,upperCoverTW1Y:o,upperCoverTW1Height:i,upperCoverTW1LongEdgeX:g,upperCoverTW1LongEdgeY:d}=new SkyAndEarthBottom(n);t.lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s-d)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-g),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(u-o)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i/2-l),y:e[e.length-1].y}),e[e.length-1])).moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(s-u-o)}),e[e.length-1]))},SkyAndEarthBottomPath=(t,e,n)=>{const s=n.boxHeight,u=new SkyAndEarthBottom(n),{backEdge:l,backEdgeX:o,shortEdge:i,upperCoverTW1:g,highLowOF:d,backEdgeHeight:r,upperCoverTW1TeethFitLength:f,upperCoverTW1LongEdgeY:L}=u,T=l+r+i+s+d+L;t.moveTo(()=>(e.push({x:l,y:g>T?g:T}),e[e.length-1])),leftUpperEar(t,e,n),t.moveTo(()=>(e.push({x:e[e.length-2].x,y:e[e.length-2].y}),e[e.length-1])),topLeftCorner(t,e,n),topBackEdge$1(t,e,n),topRightCorner(t,e,n),rightUpperEar(t,e,n),t.lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+o}),e[e.length-1])),rightBottomEar(t,e,n),bottomRightCorner(t,e,n),bottomBackEdge$1(t,e,n),bottomLeftCorner(t,e,n),leftBottomEar(t,e,n),t.lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-f}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y-o}),e[e.length-1]))},SkyAndEarthFoldLine=(t,e)=>{const n=e.boxHeight,s=e.thickness,u=new SkyAndEarthBottom(e),{shortEdge:l,longEdge:o,highLowOF:i,fourCornerStacking:g,greenLineRedLineLength:d,cornerRadius:r,backEdgeToCornerRadius:f,upperCoverTW1Height:L,upperCoverTW1LongEdgeY:T,backEdgeHeight:x,fourCornerSkewLineY:c}=u,m=e.boxWidth,y=e.boxLength,O={line2:{x1:t[0].x,y1:t[0].y,x2:t[0].x+L,y2:t[0].y},line3:{x1:t[0].x,y1:t[0].y+y-2*(s+T),x2:t[0].x+L,y2:t[0].y+y-2*(s+T)},line4:{x1:t[0].x+L,y1:t[0].y,x2:t[0].x+L,y2:t[0].y+y-2*(s+T)},line5:{x1:t[0].x+L+l,y1:t[0].y-T,x2:t[0].x+L+l,y2:t[0].y+y-2*(s+T)+T},line6:{x1:t[0].x+L+l+g,y1:t[0].y-T,x2:t[0].x+L+l+g+x-g,y2:t[0].y-T},line7:{x1:t[0].x+L+l+g,y1:t[0].y-T+y-2*i,x2:t[0].x+L+l+g+x-g,y2:t[0].y-T+y-2*i},line8:{x1:t[0].x+L+l+g+x-g,y1:t[0].y-T-(n+i)+g,x2:t[0].x+L+l+g+x-g,y2:t[0].y-T},line9:{x1:t[0].x+L+l+g+x-g,y1:t[0].y-T,x2:t[0].x+L+l+g+x-g,y2:t[0].y-T+(y-2*i)},line10:{x1:t[0].x+L+l+g+x-g,y1:t[0].y-T+(y-2*i),x2:t[0].x+L+l+g+x-g,y2:t[0].y-T+(y-2*i)+(n+i-g)},line12:{x1:t[0].x+L+l+g+x-g+r+f,y1:t[0].y-T-(n+i+l),x2:t[0].x+L+l+g+x-g+r+f+(m-2*(r+f)),y2:t[0].y-T-(n+i+l)},line13:{x1:t[0].x+L+l+g+x-g,y1:t[0].y-T-(n+i),x2:t[0].x+L+l+g+x-g+m,y2:t[0].y-T-(n+i)},line14:{x1:t[0].x+L+l+g+x-g,y1:t[0].y-T-(n+i)+n,x2:t[0].x+L+l+g+x-g+m,y2:t[0].y-T-(n+i)+n},line15:{x1:t[0].x+L+l+g+x-g,y1:t[0].y-T-(n+i)+n+y,x2:t[0].x+L+l+g+x-g+m,y2:t[0].y-T-(n+i)+n+y},line16:{x1:t[0].x+L+l+g+x-g,y1:t[0].y-T-(n+i)+n+y+n,x2:t[0].x+L+l+g+x-g+m,y2:t[0].y-T-(n+i)+n+y+n},line17:{x1:t[0].x+L+l+g+x-g+r+f,y1:t[0].y-T-(n+i+l)+l+n+y+n+l,x2:t[0].x+L+l+g+x-g+r+f+(m-2*(r+f)),y2:t[0].y-T-(n+i+l)+l+n+y+n+l},line19:{x1:t[0].x+L+l+g+x-g+m,y1:t[0].y-T-(n+i)+g,x2:t[0].x+L+l+g+x-g+m,y2:t[0].y-T},line20:{x1:t[0].x+L+l+g+x-g+m,y1:t[0].y-T,x2:t[0].x+L+l+g+x-g+m,y2:t[0].y-T+(y-2*i)},line21:{x1:t[0].x+L+l+g+x-g+m,y1:t[0].y-T+(y-2*i),x2:t[0].x+L+l+g+x-g+m,y2:t[0].y-T+(y-2*i)+(n+i-g)},line22:{x1:t[0].x+L+l+g+x-g+m,y1:t[0].y-T,x2:t[0].x+L+l+g+x-g+m+(x-g),y2:t[0].y-T},line23:{x1:t[0].x+L+l+g+x-g+m,y1:t[0].y-T+(y-2*s),x2:t[0].x+L+l+g+x-g+m+(x-g),y2:t[0].y-T+(y-2*s)},line24:{x1:t[0].x+L+l+g+x-g+m+x,y1:t[0].y-T,x2:t[0].x+L+l+g+x-g+m+x,y2:t[0].y-T+(y-2*i)},line25:{x1:t[0].x+L+l+x+m+x+o,y1:t[0].y,x2:t[0].x+L+l+x+m+x+o,y2:t[0].y+y-2*(s+T)},line26:{x1:t[0].x+L+l+x+m+x+o,y1:t[0].y,x2:t[0].x+L+l+x+m+x+o+L,y2:t[0].y},line27:{x1:t[0].x+L+l+x+m+x+o,y1:t[0].y+y-2*(s+T),x2:t[0].x+L+l+x+m+x+o+L,y2:t[0].y+y-2*(s+T)},line1_1:{x1:t[0].x,y1:t[0].y,x2:t[0].x,y2:t[0].y+d},line1_2:{x1:t[0].x,y1:t[0].y+(y-2*(i+T))-d,x2:t[0].x,y2:t[0].y+(y-2*(i+T))},line11_1:{x1:t[17].x,y1:t[17].y,x2:t[17].x+d,y2:t[17].y},line11_2:{x1:t[20].x-d,y1:t[20].y,x2:t[20].x,y2:t[20].y},line18_1:{x1:t[57].x,y1:t[57].y,x2:t[57].x-d,y2:t[57].y},line18_2:{x1:t[60].x,y1:t[60].y,x2:t[60].x+d,y2:t[60].y},line28_1:{x1:t[37].x,y1:t[37].y,x2:t[37].x,y2:t[37].y+d},line28_2:{x1:t[40].x,y1:t[40].y-d,x2:t[40].x,y2:t[40].y}},b={line1:{x1:t[0].x,y1:t[0].y+d,x2:t[0].x,y2:t[0].y+(y-2*(i+T))-d},line11:{x1:t[17].x+d,y1:t[17].y,x2:t[20].x-d,y2:t[20].y},line18:{x1:t[57].x-d,y1:t[57].y,x2:t[60].x+d,y2:t[60].y},line28:{x1:t[37].x,y1:t[37].y+d,x2:t[40].x,y2:t[40].y-d},line29:{x1:t[12].x,y1:t[12].y,x2:t[12].x+(c-2*s),y2:t[12].y+c},line30:{x1:t[25].x,y1:t[25].y,x2:t[25].x-(c-2*s),y2:t[25].y+c},line31:{x1:t[65].x,y1:t[65].y,x2:t[65].x+(c-2*s),y2:t[65].y-c},line32:{x1:t[52].x,y1:t[52].y,x2:t[52].x-(c-2*s),y2:t[52].y-c}};return{skyAndEarthBottomFoldLineObj:O,skyAndEarthBottomSecondFoldLineObj:b}};class SkyAndEarthCover{constructor(e){this._backEdge=15,this._backEdgeSlopeAngle=60,this._topCoverPatchLength=2.1,this._bottomCoverPatchLength=2.1,this._upperCoverScaling=2,this._backEdgeCornerRadius=.5,this.initBottomCoverPatchLength(e.thickness),this.initCornerRadius(e.thickness),this.initUpperCoverTW2(e.boxWidth),this.initBackEdgeX(),this.initUpperCoverPatchHeight(e.boxHeight),this.initLowerCoverPatchHeight(e.boxHeight),this.initLengthPatch(e.boxWidth),this.initWidthPatch(e.boxLength,e.thickness),this.initBackEdgeCornerRadiusX(),this.initBackEdgeCornerRadiusY(),this.initBackEdgeVerticalLength(e.thickness),this.initUpperCoverTW2Height(e.boxHeight,e.thickness),this.initTopBackEdgeX(e.thickness),this.initTopBackEdgeY(e.thickness),this.initTopBackEdgeHeight(e.boxHeight,e.thickness),this.initBackEdgeHorizontalLength(),this.initSlotNTangentX(e.boxHeight),this.initSlotNTangentY()}initBottomCoverPatchLength(e){this._bottomCoverPatchLength=this._topCoverPatchLength+e}initCornerRadius(e){this._cornerRadius=1.5}initUpperCoverTW2(e){this._upperCoverTW2=2*e/5}initBackEdgeX(){this._backEdgeX=this._backEdge/Math.tan(this._backEdgeSlopeAngle*Math.PI/180)}initUpperCoverPatchHeight(e){this._upperCoverPatchHeight=e+this._topCoverPatchLength}initLowerCoverPatchHeight(e){this._lowerCoverPatchHeight=e+this._bottomCoverPatchLength}initLengthPatch(e){this._lengthPatch=e+5}initWidthPatch(e,n){n==.3?this._widthPatch=e+5+5*n-.5:n==.6?this._widthPatch=e+5+5*n+.5:this._widthPatch=e+5+5*n}initBackEdgeVerticalLength(e){this._backEdgeVerticalLength=this._widthPatch-4*e-2*this._backEdgeX}initBackEdgeCornerRadiusX(){this._backEdgeCornerRadiusX=this._backEdgeCornerRadius-this._backEdgeCornerRadius*Math.sin(this._backEdgeSlopeAngle*Math.PI/180)}initBackEdgeCornerRadiusY(){this._backEdgeCornerRadiusY=this._backEdgeCornerRadius*Math.cos(this._backEdgeSlopeAngle*Math.PI/180)}initTopBackEdgeX(e){e<=.3?this._topBackEdgeX=1.6:e<=.4?this._topBackEdgeX=1.8:e<=.5?this._topBackEdgeX=2:e<=.6&&(this._topBackEdgeX=2.2),this._topBackEdgeX=this._topBackEdgeX+.4}initTopBackEdgeY(e){e==.5?this._topBackEdgeY=2:this._topBackEdgeY=4*e}initTopBackEdgeHeight(e,n){this._topBackEdgeHeight=this._topBackEdgeY+e-3*n}initBackEdgeHorizontalLength(){this._backEdgeHorizontalLength=this._lengthPatch-2*(this._topBackEdgeX+this._backEdgeX)}initSlotNTangentX(e){this._slotNTangentX=e/4}initSlotNTangentY(){this._slotNTangentY=this._upperCoverTW2/2-5}initUpperCoverTW2Height(e,n){this._upperCoverTW2Height=e-n}get backEdge(){return this._backEdge}get backEdgeSlopeAngle(){return this._backEdgeSlopeAngle}get topCoverPatchLength(){return this._topCoverPatchLength}get bottomCoverPatchLength(){return this._bottomCoverPatchLength}get cornerRadius(){return this._cornerRadius}get upperCoverTW2(){return this._upperCoverTW2}get upperCoverScaling(){return this._upperCoverScaling}get slotNTangentX(){return this._slotNTangentX}get backEdgeX(){return this._backEdgeX}get upperCoverPatchHeight(){return this._upperCoverPatchHeight}get lowerCoverPatchHeight(){return this._lowerCoverPatchHeight}get lengthPatch(){return this._lengthPatch}get widthPatch(){return this._widthPatch}get backEdgeVerticalLength(){return this._backEdgeVerticalLength}get backEdgeCornerRadius(){return this._backEdgeCornerRadius}get backEdgeCornerRadiusX(){return this._backEdgeCornerRadiusX}get backEdgeCornerRadiusY(){return this._backEdgeCornerRadiusY}get upperCoverTW2Height(){return this._upperCoverTW2Height}get slotNTangentY(){return this._slotNTangentY}get topBackEdgeX(){return this._topBackEdgeX}get topBackEdgeY(){return this._topBackEdgeY}get topBackEdgeHeight(){return this._topBackEdgeHeight}get backEdgeHorizontalLength(){return this._backEdgeHorizontalLength}}const leftBackEdge=(t,e,n)=>{const{backEdge:s,backEdgeX:u,backEdgeVerticalLength:l}=new SkyAndEarthCover(n);t.lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y-u}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y-u}),e[e.length-1]))},topLeftOuterEar=(t,e,n)=>{const{backEdgeCornerRadius:s,backEdgeCornerRadiusX:u,backEdgeCornerRadiusY:l,upperCoverTW2:o,upperCoverTW2Height:i,cornerRadius:g,slotNTangentX:d,slotNTangentY:r}=new SkyAndEarthCover(n);t.arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y-l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(o-l)+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-u-g)-2*d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(o-g)-r}),e[e.length-1])).arcTo(g,g,0,0,0,()=>(e.push({x:e[e.length-1].x+2*g,y:e[e.length-1].y}),e[e.length-1]))},topLeftInnerEar=(t,e,n)=>{const{backEdgeCornerRadius:s,upperCoverTW2:u,slotNTangentX:l,slotNTangentY:o,cornerRadius:i}=new SkyAndEarthCover(n),g=n.boxHeight,d=n.thickness;t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(u-i)+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(g-3*i-2*l),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(u-d-i-o)}),e[e.length-1])).arcTo(i,i,0,0,0,()=>(e.push({x:e[e.length-1].x+2*i,y:e[e.length-1].y}),e[e.length-1]))},topBackEdge=(t,e,n)=>{const{backEdgeHorizontalLength:s,upperCoverTW2:u,slotNTangentX:l,cornerRadius:o,topBackEdgeHeight:i,topBackEdgeX:g,topBackEdgeY:d,backEdge:r,backEdgeX:f}=new SkyAndEarthCover(n),L=n.boxHeight,T=n.thickness;t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(L+T-o)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(i-d)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+f,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(i-d)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+g,y:e[e.length-1].y+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(L+T-o)}),e[e.length-1]))},topRightInnerEar=(t,e,n)=>{const{backEdgeCornerRadius:s,upperCoverTW2:u,slotNTangentX:l,cornerRadius:o,slotNTangentY:i}=new SkyAndEarthCover(n),g=n.boxHeight,d=n.thickness;t.arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x+2*o,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(u-d-o-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(g-3*o-2*l),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+l,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(u-o)-i}),e[e.length-1]))},topRightOuterEar=(t,e,n)=>{const{backEdgeCornerRadius:s,backEdgeCornerRadiusX:u,backEdgeCornerRadiusY:l,upperCoverTW2:o,upperCoverTW2Height:i,cornerRadius:g,slotNTangentX:d,slotNTangentY:r}=new SkyAndEarthCover(n);t.arcTo(g,g,0,0,0,()=>(e.push({x:e[e.length-1].x+2*g,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(o-g)+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+(i-u-g)-2*d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(o-l)-r}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y+l}),e[e.length-1]))},rightBackEdge=(t,e,n)=>{const{backEdge:s,backEdgeX:u,backEdgeVerticalLength:l}=new SkyAndEarthCover(n);t.lineTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y+u}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y+u}),e[e.length-1]))},bottomRightOuterEar=(t,e,n)=>{const{backEdgeCornerRadius:s,backEdgeCornerRadiusX:u,backEdgeCornerRadiusY:l,upperCoverTW2:o,upperCoverTW2Height:i,cornerRadius:g,slotNTangentX:d,slotNTangentY:r}=new SkyAndEarthCover(n);t.arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y+l}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(o-l)-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-u-g)+2*d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(o-g)+r}),e[e.length-1])).arcTo(g,g,0,0,0,()=>(e.push({x:e[e.length-1].x-2*g,y:e[e.length-1].y}),e[e.length-1]))},bottomRightInnerEar=(t,e,n)=>{const{backEdgeCornerRadius:s,upperCoverTW2:u,slotNTangentX:l,cornerRadius:o,slotNTangentY:i}=new SkyAndEarthCover(n),g=n.boxHeight,d=n.thickness;t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(u-o)-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(g-3*o-2*l),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-l,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(u-d-o-i)}),e[e.length-1])).arcTo(o,o,0,0,0,()=>(e.push({x:e[e.length-1].x-2*o,y:e[e.length-1].y}),e[e.length-1]))},bottomBackEdge=(t,e,n)=>{const{backEdgeHorizontalLength:s,cornerRadius:u,topBackEdgeHeight:l,topBackEdgeX:o,topBackEdgeY:i,backEdge:g,backEdgeX:d}=new SkyAndEarthCover(n),r=n.boxHeight,f=n.thickness;t.lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(r+f-u)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y+i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(l-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-s,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-g}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(l-i)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-o,y:e[e.length-1].y-i}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(r+f-u)}),e[e.length-1]))},bottomLeftInnerEar=(t,e,n)=>{const{upperCoverTW2:s,slotNTangentX:u,cornerRadius:l,slotNTangentY:o}=new SkyAndEarthCover(n),i=n.boxHeight,g=n.thickness;t.arcTo(l,l,0,0,0,()=>(e.push({x:e[e.length-1].x-2*l,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(s-g-l-o)}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y+o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-3*l-2*u),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y-o}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(s-l)+o}),e[e.length-1]))},bottomLeftOuterEar=(t,e,n)=>{const{backEdgeCornerRadius:s,backEdgeCornerRadiusX:u,backEdgeCornerRadiusY:l,upperCoverTW2:o,upperCoverTW2Height:i,cornerRadius:g,slotNTangentX:d,slotNTangentY:r}=new SkyAndEarthCover(n);t.arcTo(g,g,0,0,0,()=>(e.push({x:e[e.length-1].x-2*g,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+(o-g)-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y+r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-(i-u-g)+2*d,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x-d,y:e[e.length-1].y-r}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-(o-l)+r}),e[e.length-1])).arcTo(s,s,0,0,0,()=>(e.push({x:e[e.length-1].x-u,y:e[e.length-1].y-l}),e[e.length-1]))},SkyAndEarthUpperPath=(t,e,n)=>{const s=new SkyAndEarthCover(n),{backEdge:u,backEdgeX:l,backEdgeVerticalLength:o}=s;t.moveTo(()=>(e.push({x:e[e.length-1].x+u,y:e[e.length-1].y+o/2+l}),e[e.length-1])),leftBackEdge(t,e,n),topLeftOuterEar(t,e,n),topLeftInnerEar(t,e,n),topBackEdge(t,e,n),topRightInnerEar(t,e,n),topRightOuterEar(t,e,n),rightBackEdge(t,e,n),bottomRightOuterEar(t,e,n),bottomRightInnerEar(t,e,n),bottomBackEdge(t,e,n),bottomLeftInnerEar(t,e,n),bottomLeftOuterEar(t,e,n)},SkyAndEarthUpperFoldLine=(t,e)=>{const n=e.boxHeight,s=e.thickness,u=new SkyAndEarthCover(e),{backEdgeVerticalLength:l,backEdgeX:o,upperCoverTW2Height:i,widthPatch:g,lengthPatch:d,cornerRadius:r,topBackEdgeHeight:f,topBackEdgeX:L}=u,T=Math.sqrt(r**2-(r-s)**2),x=82,c={coverLine1:{x1:t[x].x,y1:t[x].y-(l+2*o),x2:t[x].x,y2:t[x].y-(l+2*o)+15},coverLine3:{x1:t[x].x,y1:t[x].y-15,x2:t[x].x,y2:t[x].y},coverLine4:{x1:t[x].x,y1:t[x].y-(g-4*s),x2:t[x].x+i,y2:t[x].y-(g-4*s)},coverLine5:{x1:t[x].x,y1:t[x].y,x2:t[x].x+i,y2:t[x].y},coverLine6:{x1:t[x].x+i,y1:t[x].y-(g-4*s),x2:t[x].x+i,y2:t[x].y},coverLine7:{x1:t[x].x+i+T,y1:t[x].y-(g-4*s)-s,x2:t[x].x+i+n-T,y2:t[x].y-(g-4*s)-s},coverLine8:{x1:t[x].x+i+T,y1:t[x].y-(g-4*s)-s+(g-2*s),x2:t[x].x+i+n-T,y2:t[x].y-(g-4*s)-s+(g-2*s)},coverLine9:{x1:t[x].x+i+n,y1:t[x].y-(g-4*s)-s-s,x2:t[x].x+i+n,y2:t[x].y-(g-4*s)-s-s+g},coverLine10:{x1:t[x].x+i+n+L,y1:t[x].y-(g-4*s)-s-s-(f+n),x2:t[x].x+i+n+L+15,y2:t[x].y-(g-4*s)-s-s-(f+n)},coverLine12:{x1:t[x].x+i+n+L+(d-2*L)-15,y1:t[x].y-(g-4*s)-s-s-(f+n),x2:t[x].x+i+n+L+(d-2*L),y2:t[x].y-(g-4*s)-s-s-(f+n)},coverLine13:{x1:t[x].x+i+n,y1:t[x].y-(g-2*s)-n,x2:t[x].x+i+n+d,y2:t[x].y-(g-2*s)-n},coverLine14:{x1:t[x].x+i+n,y1:t[x].y-(g-2*s),x2:t[x].x+i+n+d,y2:t[x].y-(g-2*s)},coverLine15:{x1:t[x].x+i+n,y1:t[x].y+2*s,x2:t[x].x+i+n+d,y2:t[x].y+2*s},coverLine16:{x1:t[x].x+i+n,y1:t[x].y+2*s+n,x2:t[x].x+i+n+d,y2:t[x].y+2*s+n},coverLine17:{x1:t[x].x+i+n+L,y1:t[x].y+2*s+n+f,x2:t[x].x+i+n+L+15,y2:t[x].y+2*s+n+f},coverLine19:{x1:t[x].x+i+n+d-L-15,y1:t[x].y+2*s+n+f,x2:t[x].x+i+n+d-L,y2:t[x].y+2*s+n+f},coverLine20:{x1:t[x].x+i+n+d,y1:t[x].y-(g-2*s),x2:t[x].x+i+n+d,y2:t[x].y+2*s},coverLine21:{x1:t[x].x+i+n+d+r,y1:t[x].y-(g-3*s),x2:t[x].x+i+n+d+n-T,y2:t[x].y-(g-3*s)},coverLine22:{x1:t[x].x+i+n+d+r,y1:t[x].y-(g-3*s)+(g-2*s),x2:t[x].x+i+n+d+n-T,y2:t[x].y-(g-3*s)+(g-2*s)},coverLine23:{x1:t[x].x+i+n+d+n,y1:t[x].y-(g-4*s),x2:t[x].x+i+n+d+n,y2:t[x].y},coverLine24:{x1:t[x].x+i+n+d+n,y1:t[x].y-(g-4*s),x2:t[x].x+i+n+d+n+i,y2:t[x].y-(g-4*s)},coverLine25:{x1:t[x].x+i+n+d+n,y1:t[x].y,x2:t[x].x+i+n+d+n+i,y2:t[x].y},coverLine26:{x1:t[x].x+i+n+d+n+i,y1:t[x].y-(g-4*s),x2:t[x].x+i+n+d+n+i,y2:t[x].y-(g-4*s)+15},coverLine28:{x1:t[x].x+i+n+d+n+i,y1:t[x].y-15,x2:t[x].x+i+n+d+n+i,y2:t[x].y}},m={coverLine2:{x1:t[x].x,y1:t[x].y-(l+2*o)+15,x2:t[x].x,y2:t[x].y-15},coverLine11:{x1:t[x].x+i+n+L+15,y1:t[x].y-(g-4*s)-s-s-(f+n),x2:t[x].x+i+n+L+(d-2*L)-15,y2:t[x].y-(g-4*s)-s-s-(f+n)},coverLine18:{x1:t[x].x+i+n+d-L-15,y1:t[x].y+2*s+n+f,x2:t[x].x+i+n+L+15,y2:t[x].y+2*s+n+f},coverLine27:{x1:t[x].x+i+n+d+n+i,y1:t[x].y-(g-4*s)+15,x2:t[x].x+i+n+d+n+i,y2:t[x].y-15}};return{skyAndEarthCoverFoldLineObj:c,skyAndEarthCoverSecondFoldLineObj:m}},cuttingLinePath$2=function(t){function e(){const n=[],s=new SvgPathBuilder;SkyAndEarthBottomPath(s,n,t);const u=Math.max(...n.map(d=>d.y)),l=Math.min(...n.map(d=>d.y)),o=u+l,i=Math.max(...n.map(d=>d.x));return s.moveTo(()=>(n.push({x:i+30,y:o/2}),n[n.length-1])),SkyAndEarthUpperPath(s,n,t),{path:s.build(),actionArray:n}}return{returnPath:e().path,actionArray:e().actionArray}},foldLineoordinates$2=t=>{const e=cuttingLinePath$2(t).actionArray,{skyAndEarthBottomFoldLineObj:n,skyAndEarthBottomSecondFoldLineObj:s}=SkyAndEarthFoldLine(e,t),{skyAndEarthCoverFoldLineObj:u,skyAndEarthCoverSecondFoldLineObj:l}=SkyAndEarthUpperFoldLine(e,t),o={...n,...u},i={...s,...l};return{foldLineObj:o,secondFoldLineObj:i}},bleedingLinePath$2=t=>{function e(){const n=[];let s=BleedGenerator.getInstance().generate(cuttingLinePath$2(t).returnPath);return s=removeInnerBleedingLine(s),{path:s,actionArray:n}}return{returnPath:e().path,actionArray:e().actionArray}},previewBleedingLinePath$2=t=>{function e(){let n=BleedGenerator.getInstance().generate(cuttingLinePath$2(t).returnPath);return n=removeInnerBleedingLine(n),n}return{returnPath:e()}},advancedParamsArrow=t=>{const e=t.boxWidth,n=t.boxLength,s=t.boxHeight,u=t.thickness,l=cuttingLinePath$2(t).actionArray,o=new SkyAndEarthBottom(t),{upperCoverTW1TeethFitLength:i,upperCoverTW1Height:g,longEdge:d,backEdgeHeight:r,backEdgeX:f,upperCoverTW1LongEdgeY:L}=o,{upperCoverTW2Height:T,lengthPatch:x,widthPatch:c}=new SkyAndEarthCover(t),m=.7,y={path:"",text:{x:0,y:0,label:"0"}},O={skyAndEarthBottomLengthMark:{...structuredClone(y)},skyAndEarthBottomWidthMark:{...structuredClone(y)},skyAndEarthBottomHeightMark:{...structuredClone(y)},skyAndEarthCoverLengthMark:{...structuredClone(y),color:"#CCCCCC"},skyAndEarthCoverWidthMark:{...structuredClone(y),color:"#CCCCCC"},skyAndEarthCoverHeightMark:{...structuredClone(y),color:"#CCCCCC"},skyAndEarthBottomLeftFoldLineMark:{...structuredClone(y)},skyAndEarthBottomRightFoldLineMark:{...structuredClone(y)},skyAndEarthBottomTopFoldLineMark:{...structuredClone(y)},skyAndEarthBottomBottomFoldLineMark:{...structuredClone(y)}};{const b=[],j=new SvgPathBuilder().moveTo(()=>(b.push({x:l[0].x+g+d+r,y:l[0].y+i}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x+m,y:b[0].y+m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x+e,y:b[0].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y+m}),b[b.length-1]));O.skyAndEarthBottomLengthMark.path=j.build(),O.skyAndEarthBottomLengthMark.text.x=mmToPt(b[0].x+e/2),O.skyAndEarthBottomLengthMark.text.y=mmToPt(b[0].y+10),O.skyAndEarthBottomLengthMark.text.label=e.toString()}{const b=[],j=new SvgPathBuilder().moveTo(()=>(b.push({x:l[0].x+g+d+r+10,y:l[0].y+i+2*f+L+u}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x-m,y:b[0].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x,y:b[0].y-n}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y+m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y+m}),b[b.length-1]));O.skyAndEarthBottomWidthMark.path=j.build(),O.skyAndEarthBottomWidthMark.text.x=mmToPt(b[0].x+10),O.skyAndEarthBottomWidthMark.text.y=mmToPt(b[0].y-n/2),O.skyAndEarthBottomWidthMark.text.label=n.toString()}{const b=[],j=new SvgPathBuilder().moveTo(()=>(b.push({x:l[0].x+g+d+r+2*e/3,y:l[0].y-L-u}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x-m,y:b[0].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x,y:b[0].y-s}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y+m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y+m}),b[b.length-1]));O.skyAndEarthBottomHeightMark.path=j.build(),O.skyAndEarthBottomHeightMark.text.x=mmToPt(b[0].x+5),O.skyAndEarthBottomHeightMark.text.y=mmToPt(b[0].y-s/2),O.skyAndEarthBottomHeightMark.text.label=s.toString()}{const b=[],j=new SvgPathBuilder().moveTo(()=>(b.push({x:l[82].x+T+s,y:l[82].y-10}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x+m,y:b[0].y+m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x+x,y:b[0].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y+m}),b[b.length-1]));O.skyAndEarthCoverLengthMark.path=j.build(),O.skyAndEarthCoverLengthMark.text.x=mmToPt(b[0].x+e/2),O.skyAndEarthCoverLengthMark.text.y=mmToPt(b[0].y+10),O.skyAndEarthCoverLengthMark.text.label=x.toString()}{const b=[],j=new SvgPathBuilder().moveTo(()=>(b.push({x:l[82].x+T+s+10,y:l[82].y+2*u}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x-m,y:b[0].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x,y:b[0].y-c}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y+m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y+m}),b[b.length-1]));O.skyAndEarthCoverWidthMark.path=j.build(),O.skyAndEarthCoverWidthMark.text.x=mmToPt(b[0].x+10),O.skyAndEarthCoverWidthMark.text.y=mmToPt(b[0].y-c/2),O.skyAndEarthCoverWidthMark.text.label=c.toString()}{const b=[],j=new SvgPathBuilder().moveTo(()=>(b.push({x:l[82].x+T+s+2*e/3,y:l[82].y+2*u-c}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x-m,y:b[0].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x,y:b[0].y-s}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y+m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y+m}),b[b.length-1]));O.skyAndEarthCoverHeightMark.path=j.build(),O.skyAndEarthCoverHeightMark.text.x=mmToPt(b[0].x+5),O.skyAndEarthCoverHeightMark.text.y=mmToPt(b[0].y-s/2),O.skyAndEarthCoverHeightMark.text.label=s.toString()}{const b=[],j=new SvgPathBuilder().moveTo(()=>(b.push({x:l[0].x+g,y:l[0].y+n/2}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x+m,y:b[0].y+m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x+d,y:b[0].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y+m}),b[b.length-1]));O.skyAndEarthBottomLeftFoldLineMark.path=j.build(),O.skyAndEarthBottomLeftFoldLineMark.text.x=mmToPt(b[0].x+2),O.skyAndEarthBottomLeftFoldLineMark.text.y=mmToPt(b[0].y+5),O.skyAndEarthBottomLeftFoldLineMark.text.label=d.toString()+"(折边)"}{const b=[],j=new SvgPathBuilder().moveTo(()=>(b.push({x:l[0].x+g+d+r+e+r,y:l[0].y+n/2}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x+m,y:b[0].y+m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x+d,y:b[0].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y+m}),b[b.length-1]));O.skyAndEarthBottomRightFoldLineMark.path=j.build(),O.skyAndEarthBottomRightFoldLineMark.text.x=mmToPt(b[0].x+2),O.skyAndEarthBottomRightFoldLineMark.text.y=mmToPt(b[0].y+5),O.skyAndEarthBottomRightFoldLineMark.text.label=d.toString()+"(折边)"}{const b=[],j=new SvgPathBuilder().moveTo(()=>(b.push({x:l[0].x+g+d+r+e/2,y:l[0].y-L-u-s}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x-m,y:b[0].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x,y:b[0].y-d}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y+m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y+m}),b[b.length-1]));O.skyAndEarthBottomTopFoldLineMark.path=j.build(),O.skyAndEarthBottomTopFoldLineMark.text.x=mmToPt(b[0].x+5),O.skyAndEarthBottomTopFoldLineMark.text.y=mmToPt(b[0].y-2),O.skyAndEarthBottomTopFoldLineMark.text.label=d.toString()+"(折边)"}{const b=[],j=new SvgPathBuilder().moveTo(()=>(b.push({x:l[0].x+g+d+r+e/2,y:l[0].y-L-u-s+d+s+n+s}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x-m,y:b[0].y-m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[0].x,y:b[0].y-d}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x-m,y:b[b.length-1].y+m}),b[b.length-1])).moveTo(()=>(b.push({x:b[b.length-2].x,y:b[b.length-2].y}),b[b.length-1])).lineTo(()=>(b.push({x:b[b.length-1].x+m,y:b[b.length-1].y+m}),b[b.length-1]));O.skyAndEarthBottomBottomFoldLineMark.path=j.build(),O.skyAndEarthBottomBottomFoldLineMark.text.x=mmToPt(b[0].x+5),O.skyAndEarthBottomBottomFoldLineMark.text.y=mmToPt(b[0].y-2),O.skyAndEarthBottomBottomFoldLineMark.text.label=d.toString()+"(折边)"}return{markLineObj:O}},useSkyAndEarthPath={mmToPt,cuttingLinePath:cuttingLinePath$2,foldLineoordinates:foldLineoordinates$2,bleedingLinePath:bleedingLinePath$2,previewBleedingLinePath:previewBleedingLinePath$2,advancedParamsArrow},removeInnerBleedingLine=t=>{let e=t;if(t.split("M").length>2){const n=t.split("M").filter(g=>g!==""),s=g=>{if(typeof document>"u")return Number.NaN;const d="http://www.w3.org/2000/svg",r=document.createElementNS(d,"svg"),f=document.createElementNS(d,"path");r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.overflow="hidden",f.setAttribute("d",`M${g}`),r.appendChild(f);try{document.body.appendChild(r);const L=f.getBBox(),T=L.x+L.width/2;return{area:L.width*L.height,centerX:T}}catch{return Number.NaN}finally{r.remove()}},u=n.map((g,d)=>{const r=s(g);return{index:d,bboxInfo:r,length:g.length}}),l=u.some(g=>typeof g.bboxInfo!="number"&&Number.isFinite(g.bboxInfo.area));let o=[];if(l&&n.length>=3){const g=u.filter(f=>typeof f.bboxInfo!="number"&&Number.isFinite(f.bboxInfo.area)&&Number.isFinite(f.bboxInfo.centerX)),d=g.reduce((f,L)=>L.bboxInfo.centerX>f.bboxInfo.centerX?L:f),r=g.filter(f=>f.index!==d.index);r.length>=2?o=[[...r].sort((L,T)=>T.bboxInfo.area-L.bboxInfo.area)[0].index,d.index]:o=[...g].sort((L,T)=>T.bboxInfo.area-L.bboxInfo.area).slice(0,2).map(L=>L.index)}else o=u.map(g=>({index:g.index,length:g.length})).sort((g,d)=>d.length-g.length).slice(0,2).map(g=>g.index);const i=o.sort((g,d)=>g-d);e=`M${n[i[0]]} M${n[i[1]]}`}return e};function SkyAndEarthBottomRules(t,e,n){let s=!0;return(expandWidth$1(n)>1500||expandHeight$1(n)>1200)&&(s=!1),t==="longEdge"&&e>15?{validVal:!1,msg:"尺寸检查未通过,折边范围8-15mm!",syncType:"longEdge",syncSize:15}:t==="longEdge"&&e<8?{validVal:!1,msg:"尺寸检查未通过,折边范围8-15mm!",syncType:"longEdge",syncSize:8}:t==="boxWidth"&&e<80?{validVal:!1,msg:"尺寸检查未通过,宽度不能小于80mm!",syncType:""}:t==="boxLength"&&e<80?{validVal:!1,msg:"尺寸检查未通过,长度不能小于80mm!",syncType:""}:t==="boxHeight"&&e<30?{validVal:!1,msg:"尺寸检查未通过,高度不能小于30mm!",syncType:""}:t==="boxWidth"&&e>n.boxLength?{validVal:!1,msg:"尺寸检查未通过,宽度不能大于长度!",syncType:""}:t==="boxLength"&&e<n.boxWidth?{validVal:!1,msg:"尺寸检查未通过,长度不能小于宽度!",syncType:"boxWidth"}:t==="boxHeight"&&e>n.boxWidth?{validVal:!1,msg:"尺寸检查未通过,高度不能大于宽度!",syncType:"boxHeight",syncSize:n.boxWidth}:t==="boxLength"&&e<n.boxHeight?{validVal:!1,msg:"尺寸检查未通过,长度不能小于高度!",syncType:"boxHeight"}:t==="boxWidth"&&e<n.boxHeight?{validVal:!1,msg:"尺寸检查未通过,宽度不能小于高度!",syncType:"boxHeight"}:s?{validVal:!0,msg:"success",syncType:""}:{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1500*1500mm!",syncType:""}}const expandWidth$1=t=>{const e=useSkyAndEarthPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.x)),s=Math.min(...e.map(u=>u.x));return n-s},expandHeight$1=t=>{const e=useSkyAndEarthPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.y)),s=Math.min(...e.map(u=>u.y));return n-s};registerBox({type:"SkyAndEarthBox",name:"天地盖盒（上盖、盒底）",group:"card",categoryId:"special",component:()=>__vitePreload(()=>import("./index-Clb2nvuU.js"),__vite__mapDeps([36,1,2,5])),pathApi:useSkyAndEarthPath,rules:SkyAndEarthBottomRules,display:{label:"天地盖盒（上盖、盒底）",index:17,imgSrc:"./defaultDlate/天地盒.svg",disabled:!1}});const cuttingLinePath$1=function(t){const e=t.boxLength,n=t.boxHeight,s=new FlatAdhesive(t),u=new TearLine(t),{hollowLineLength:l,heightDiff:o,radiusTongueRr:i,radiusTongueRrX:g,errorLength:d,upperCoverLengthW3:r,upperCoverShrinkWS:f,upperCoverShrinkWX:L,angleWTHorizontalShift:T,upperCoverChamferWR:x,innerLidLength:c,slotSlopeASHorizontalShift:m,slotSlopeASVerticalShift:y,sideHighAShiftX:O,sideHighAShiftY:b,sideHighAShortLineHorizontalShift:j,angleWTVerticalShift:F,tearLineRemoveCount:k}=s,{tearLineLength:_,tearLineSpacing:ue,tearLineVoid:re,tearLineTiltAngleDisplacement:de}=u;function he(){let w=0,le=0;const V=[],Ce=new SvgPathBuilder().moveTo(()=>(V.push({x:l,y:r+o}),V[0])).arcTo(i,i,0,0,0,()=>(V.push({x:V[V.length-1].x+L/2,y:V[V.length-1].y-o}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+L/2,y:V[V.length-1].y-f}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+T,y:V[V.length-1].y-F}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x+x,y:V[V.length-1].y-x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+c,y:V[V.length-1].y}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x+x,y:V[V.length-1].y+x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+T,y:V[V.length-1].y+F}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+L/2,y:V[V.length-1].y+f}),V[V.length-1])).arcTo(i,i,0,0,0,()=>(V.push({x:V[V.length-1].x+g,y:V[V.length-1].y+o}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+m,y:V[V.length-1].y-y}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+O,y:V[V.length-1].y-b}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x+x,y:V[V.length-1].y-x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+j,y:V[V.length-1].y}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x+x,y:V[V.length-1].y+x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+O,y:V[V.length-1].y+b}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+m,y:V[V.length-1].y+y}),V[V.length-1])).arcTo(i,i,0,0,0,()=>(V.push({x:V[V.length-1].x+g,y:V[V.length-1].y-o}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+L/2,y:V[V.length-1].y-f}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x,y:V[V.length-2].y-(r/2-(ue/2+de))}),w=V.length-1,V[V.length-1])).moveTo(()=>(V.push({x:V[V.length-1].x,y:V[V.length-1].y-(ue+2*de)}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x,y:V[V.length-1].y-(r/2-(ue/2+de))}),V[V.length-1]));Ce.lineTo(()=>(V.push({x:V[V.length-1].x+(e-2*L),y:V[V.length-1].y}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x,y:V[V.length-1].y+(r-f)}),le=V.length-1,V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+L/2,y:V[V.length-1].y+f}),V[V.length-1])).arcTo(i,i,0,0,0,()=>(V.push({x:V[V.length-1].x+g,y:V[V.length-1].y+o}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+m,y:V[V.length-1].y-y}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+O,y:V[V.length-1].y-b}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x+x,y:V[V.length-1].y-x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+(j-d),y:V[V.length-1].y}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x+x,y:V[V.length-1].y+x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+O,y:V[V.length-1].y+b}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+m+(g-L/2),y:V[V.length-1].y+y}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x,y:V[V.length-1].y+(n-2*o)}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-(m+(g-L/2)),y:V[V.length-1].y+y}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-O,y:V[V.length-1].y+b}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x-x,y:V[V.length-1].y+x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-(j-d),y:V[V.length-1].y}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x-x,y:V[V.length-1].y-x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-O,y:V[V.length-1].y-b}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-m,y:V[V.length-1].y-y}),V[V.length-1])).arcTo(i,i,0,0,0,()=>(V.push({x:V[V.length-1].x-g,y:V[V.length-1].y+o}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-L/2,y:V[V.length-1].y+f}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x,y:V[V.length-1].y+(r-f)}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-(e-2*L),y:V[V.length-1].y}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x,y:V[V.length-1].y-(r-f)}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-L/2,y:V[V.length-1].y-f}),V[V.length-1])).arcTo(i,i,0,0,0,()=>(V.push({x:V[V.length-1].x-g,y:V[V.length-1].y-o}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-m,y:V[V.length-1].y+y}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-O,y:V[V.length-1].y+b}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x-x,y:V[V.length-1].y+x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-j,y:V[V.length-1].y}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x-x,y:V[V.length-1].y-x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-O,y:V[V.length-1].y-b}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-m,y:V[V.length-1].y-y}),V[V.length-1])).arcTo(i,i,0,0,0,()=>(V.push({x:V[V.length-1].x-g,y:V[V.length-1].y+o}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-L/2,y:V[V.length-1].y+f}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-T,y:V[V.length-1].y+F}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x-x,y:V[V.length-1].y+x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-c,y:V[V.length-1].y}),V[V.length-1])).arcTo(x,x,0,0,1,()=>(V.push({x:V[V.length-1].x-x,y:V[V.length-1].y-x}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-T,y:V[V.length-1].y-F}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-L/2,y:V[V.length-1].y-f}),V[V.length-1])).arcTo(i,i,0,0,0,()=>(V.push({x:V[V.length-1].x-L/2,y:V[V.length-1].y-o}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-l,y:V[V.length-1].y-l*Math.tan(15*(Math.PI/180))}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x,y:V[V.length-1].y-(n-(2*o+2*l*Math.tan(15*(Math.PI/180))))}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+l,y:V[V.length-1].y-l*Math.tan(15*(Math.PI/180))}),V[V.length-1])).moveTo(()=>(V.push({x:V[w].x,y:V[w].y}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+de,y:V[V.length-1].y-de}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-de,y:V[V.length-1].y-de}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x,y:V[V.length-1].y-(ue-2*de)}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+de,y:V[V.length-1].y-de}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-de,y:V[V.length-1].y-de}),V[V.length-1])).moveTo(()=>(V.push({x:V[w].x+de,y:V[w].y-de}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+_,y:V[V.length-1].y}),V[V.length-1])).moveTo(()=>(V.push({x:V[w+1].x+de,y:V[w+1].y+de}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+_,y:V[V.length-1].y}),V[V.length-1]));for(let Ie=0;Ie<k;Ie++)Ce.moveTo(()=>(V.push({x:V[V.length-1].x+re+de+_,y:V[V.length-1].y+ue}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-_,y:V[V.length-1].y}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x-de,y:V[V.length-1].y-de}),V[V.length-1])).moveTo(()=>(V.push({x:V[V.length-1].x,y:V[V.length-1].y-(ue-2*de)}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+de,y:V[V.length-1].y-de}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+_,y:V[V.length-1].y}),V[V.length-1]));return V[le].x-V[V.length-1].x>=re+de+1.5?Ce.moveTo(()=>(V.push({x:V[V.length-1].x+re,y:V[V.length-1].y+de}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+de,y:V[V.length-1].y-de}),V[V.length-1])).lineTo(()=>(V.push({x:V[le].x-1.5,y:V[V.length-1].y}),V[V.length-1])).moveTo(()=>(V.push({x:V[V.length-3].x,y:V[V.length-3].y+(ue-2*de)}),V[V.length-1])).lineTo(()=>(V.push({x:V[V.length-1].x+de,y:V[V.length-1].y+de}),V[V.length-1])).lineTo(()=>(V.push({x:V[le].x-1.5,y:V[V.length-1].y}),V[V.length-1])):Ce.lineTo(()=>(V.push({x:V[le].x-1.5,y:V[V.length-1].y}),V[V.length-1])).moveTo(()=>(V.push({x:V[V.length-2].x,y:V[V.length-2].y+ue}),V[V.length-1])).lineTo(()=>(V.push({x:V[le].x-1.5,y:V[V.length-1].y}),V[V.length-1])),{path:Ce.build(),actionArray:V}}return{returnPath:he().path,actionArray:he().actionArray}},foldLineoordinates$1=t=>{const e=t.boxLength,n=t.boxWidth,s=t.boxHeight,u=cuttingLinePath$1(t).actionArray,{heightDiff:l,upperCoverShrinkWX:o,radiusTongueRr:i}=new FlatAdhesive(t),g=getXOnLine(u[17].x,-u[17].y,u[18].x,-u[18].y,-(u[0].y-l)),d=g-(u[0].x+e+n);return{foldLineObj:{line1:{x1:u[0].x,y1:u[0].y,x2:u[0].x,y2:u[0].y+(s-2*l)},line2:{x1:u[0].x+o/2,y1:u[0].y-l,x2:u[0].x+e-o/2,y2:u[0].y-l},line3:{x1:u[0].x+o/2,y1:u[0].y-l+s,x2:u[0].x+e-o/2,y2:u[0].y-l+s},line4:{x1:u[0].x+e,y1:u[0].y+(i-l),x2:u[0].x+e,y2:u[0].y+(s-2*l)-(i-l)},line5:{x1:u[9].x,y1:u[0].y,x2:u[16].x,y2:u[0].y},line6:{x1:u[9].x,y1:u[0].y+(s-2*l),x2:u[16].x,y2:u[0].y+(s-2*l)},line7:{x1:u[0].x+e+n,y1:u[0].y-l+i,x2:u[0].x+e+n,y2:u[0].y+(s-2*l)-(i-l)},line8:{x1:g,y1:u[0].y-l,x2:u[0].x+e+n+e-d,y2:u[0].y-l},line9:{x1:g,y1:u[0].y-l+s,x2:u[0].x+e+n+e-d,y2:u[0].y-l+s},line10:{x1:u[0].x+e+n+e,y1:u[0].y-l+i,x2:u[0].x+e+n+e,y2:u[0].y+(s-2*l)-(i-l)},line11:{x1:u[25].x,y1:u[0].y,x2:u[32].x,y2:u[0].y},line12:{x1:u[25].x,y1:u[0].y+(s-2*l),x2:u[32].x,y2:u[0].y+(s-2*l)}}}},bleedingLinePath$1=t=>{const e=t.boxLength,n=t.boxHeight,s=new FlatAdhesive(t),{hollowLineLength:u,heightDiff:l,radiusTongueRr:o,radiusTongueRrX:i,errorLength:g,upperCoverLengthW3:d,upperCoverShrinkWS:r,upperCoverShrinkWX:f,angleWTHorizontalShift:L,upperCoverChamferWR:T,innerLidLength:x,slotSlopeASHorizontalShift:c,slotSlopeASVerticalShift:m,heightDiffOF1:y,sideHighAShiftX:O,sideHighAShiftY:b,sideHighAShortLineHorizontalShift:j,angleWTVerticalShift:F}=s;function k(){const _=[],ue=new SvgPathBuilder().moveTo(()=>(_.push({x:u,y:d+l}),_[0])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x+f/2,y:_[_.length-1].y-l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+f/2,y:_[_.length-1].y-r}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+L,y:_[_.length-1].y-F}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+x,y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+L,y:_[_.length-1].y+F}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+f/2,y:_[_.length-1].y+r}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x+i,y:_[_.length-1].y+l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+c,y:_[_.length-1].y-m}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+O,y:_[_.length-1].y-b}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+j,y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+O,y:_[_.length-1].y+b}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+c,y:_[_.length-1].y+m}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x+i,y:_[_.length-1].y-l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+f/2,y:_[_.length-1].y-r}),_[_.length-1]));return ue.lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(d-r)}),_[_.length-1])),ue.lineTo(()=>(_.push({x:_[_.length-1].x+(e-2*f),y:_[_.length-1].y}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+(d-r)}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+f/2,y:_[_.length-1].y+r}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x+i,y:_[_.length-1].y+l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+c,y:_[_.length-1].y-m}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+O,y:_[_.length-1].y-b}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+(j-g),y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+O,y:_[_.length-1].y+b}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+c+(i-f/2),y:_[_.length-1].y+m}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+(n-2*l)}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(c+(i-f/2)),y:_[_.length-1].y+m}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-O,y:_[_.length-1].y+b}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(j-g),y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-O,y:_[_.length-1].y-b}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-c,y:_[_.length-1].y-m}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x-i,y:_[_.length-1].y+l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-f/2,y:_[_.length-1].y+r}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+(d-r)}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(e-2*f),y:_[_.length-1].y}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(d-r)}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-f/2,y:_[_.length-1].y-r}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x-i,y:_[_.length-1].y-l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-c,y:_[_.length-1].y+m}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-O,y:_[_.length-1].y+b}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-j,y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-O,y:_[_.length-1].y-b}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-c,y:_[_.length-1].y-m}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x-i,y:_[_.length-1].y+l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-f/2,y:_[_.length-1].y+r}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-L,y:_[_.length-1].y+F}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-x,y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-L,y:_[_.length-1].y-F}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-f/2,y:_[_.length-1].y-r}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x-f/2,y:_[_.length-1].y-l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-u,y:_[_.length-1].y-u*Math.tan(15*(Math.PI/180))}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(n-(2*l+2*u*Math.tan(15*(Math.PI/180))))}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+u,y:_[_.length-1].y-u*Math.tan(15*(Math.PI/180))}),_[_.length-1])),{path:BleedGenerator.getInstance().generate(ue.build()),actionArray:_}}return{returnPath:k().path,actionArray:k().actionArray}},previewBleedingLinePath$1=function(t){const e=t.boxLength,n=t.boxHeight,s=new FlatAdhesive(t),{hollowLineLength:u,heightDiff:l,radiusTongueRr:o,radiusTongueRrX:i,errorLength:g,upperCoverLengthW3:d,upperCoverShrinkWS:r,upperCoverShrinkWX:f,angleWTHorizontalShift:L,upperCoverChamferWR:T,innerLidLength:x,slotSlopeASHorizontalShift:c,slotSlopeASVerticalShift:m,heightDiffOF1:y,sideHighAShiftX:O,sideHighAShiftY:b,sideHighAShortLineHorizontalShift:j,angleWTVerticalShift:F}=s;function k(){const _=[],ue=new SvgPathBuilder().moveTo(()=>(_.push({x:u,y:d+l}),_[0])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x+f/2,y:_[_.length-1].y-l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+f/2,y:_[_.length-1].y-r}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+L,y:_[_.length-1].y-F}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+x,y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+L,y:_[_.length-1].y+F}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+f/2,y:_[_.length-1].y+r}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x+i,y:_[_.length-1].y+l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+c,y:_[_.length-1].y-m}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+O,y:_[_.length-1].y-b}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+j,y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+O,y:_[_.length-1].y+b}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+c,y:_[_.length-1].y+m}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x+i,y:_[_.length-1].y-l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+f/2,y:_[_.length-1].y-r}),_[_.length-1]));return ue.lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(d-r)}),_[_.length-1])),ue.lineTo(()=>(_.push({x:_[_.length-1].x+(e-2*f),y:_[_.length-1].y}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+(d-r)}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+f/2,y:_[_.length-1].y+r}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x+i,y:_[_.length-1].y+l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+c,y:_[_.length-1].y-m}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+O,y:_[_.length-1].y-b}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+(j-g),y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x+T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+O,y:_[_.length-1].y+b}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x+c+(i-f/2),y:_[_.length-1].y+m}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+(n-2*l)}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(c+(i-f/2)),y:_[_.length-1].y+m}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-O,y:_[_.length-1].y+b}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(j-g),y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-O,y:_[_.length-1].y-b}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-c,y:_[_.length-1].y-m}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x-i,y:_[_.length-1].y+l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-f/2,y:_[_.length-1].y+r}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y+(d-r)}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-(e-2*f),y:_[_.length-1].y}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x,y:_[_.length-1].y-(d-r)}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-f/2,y:_[_.length-1].y-r}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x-i,y:_[_.length-1].y-l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-c,y:_[_.length-1].y+m}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-O,y:_[_.length-1].y+b}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-j,y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-O,y:_[_.length-1].y-b}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-c,y:_[_.length-1].y-m}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x-i,y:_[_.length-1].y+l}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-f/2,y:_[_.length-1].y+r}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-L,y:_[_.length-1].y+F}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y+T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-x,y:_[_.length-1].y}),_[_.length-1])).arcTo(T,T,0,0,1,()=>(_.push({x:_[_.length-1].x-T,y:_[_.length-1].y-T}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-L,y:_[_.length-1].y-F}),_[_.length-1])).lineTo(()=>(_.push({x:_[_.length-1].x-f/2,y:_[_.length-1].y-r}),_[_.length-1])).arcTo(o,o,0,0,0,()=>(_.push({x:_[_.length-1].x-f/2,y:_[_.length-1].y-l}),_[_.length-1])).closePath(),{path:BleedGenerator.getInstance().generate(ue.build()),actionArray:_}}return{returnPath:k().path,actionArray:k().actionArray}},useWithTearLineFlatAdhesivePath={mmToPt,cuttingLinePath:cuttingLinePath$1,foldLineoordinates:foldLineoordinates$1,bleedingLinePath:bleedingLinePath$1,previewBleedingLinePath:previewBleedingLinePath$1};registerBox({type:"WithTearLineFlatAdhesiveBox",name:"平粘盒(带易撕线)",group:"card",categoryId:"flat-adhesive",component:()=>__vitePreload(()=>import("./index-CTRAabib.js"),__vite__mapDeps([37,1,2])),pathApi:useWithTearLineFlatAdhesivePath,rules:ReversePluginLockBoxRules,display:{label:"平粘盒(带易撕线)",index:9,imgSrc:"./defaultDlate/平粘盒(带易撕线).svg",disabled:!1}});const FIXED_HOLE_WIDTH_BY_SIZE={"360*260*80":120,"200*250*100":120,"200*280*100":120,"260*360*80":130,"250*320*100":130,"250*320*110":130,"280*320*110":130,"270*200*110":75};class WhiteCardboard{constructor(e){this._hollowLineLength=17,this._holeHeight=20,this._holeRadius=2.75,this._hollowHeight=30,this._cuttingWidth=1,this._bottomOverlap=15,this.initHalfThickness(e.boxLength),this.initHoleWidth(e.boxHeight,e.boxWidth,e.boxLength),e.advancedParams.hollowHeight&&(this._hollowHeight=e.advancedParams.hollowHeight.value)}initHalfThickness(e){this._halfThickness=e/2}initHoleWidth(e,n,s){const u=`${e}*${n}*${s}`;this._holeWidth=FIXED_HOLE_WIDTH_BY_SIZE[u]??n*2/5}get hollowLineLength(){return this._hollowLineLength}get halfThickness(){return this._halfThickness}get holeWidth(){return this._holeWidth}get holeHeight(){return this._holeHeight}get hollowHeight(){return this._hollowHeight}get cuttingWidth(){return this._cuttingWidth}get bottomOverlap(){return this._bottomOverlap}get holeRadius(){return this._holeRadius}}const outerRender=(t,e,n)=>{const s=n.boxHeight,u=n.boxWidth;n.boxLength;const{hollowLineLength:l,halfThickness:o,hollowHeight:i,cuttingWidth:g,bottomOverlap:d}=new WhiteCardboard(n);t.lineTo(()=>(e.push({x:l+u+2*o+u+2*o-g,y:0}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x,y:i+s+o+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x+l+u-o+d,y:e[e.length-1].y}),e[e.length-1])).moveTo(()=>(e.push({x:l+u-(o+d),y:i+s+o+d}),e[e.length-1])).lineTo(()=>(e.push({x:l+(o+d),y:e[e.length-1].y}),e[e.length-1])).moveTo(()=>(e.push({x:l+(o+d-2*d),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x,y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[0].x,y:e[0].y}),e[e.length-1]))},holeCircle=(t,e,n)=>{const{holeRadius:s}=new WhiteCardboard(n);return t.arcTo(s,s,0,0,1,()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y+2*s}),e[e.length-1])).arcTo(s,s,0,0,1,()=>(e.push({x:e[e.length-1].x,y:e[e.length-1].y-2*s}),e[e.length-1])),t},holePaths=(t,e,n)=>{const{holeWidth:s,hollowHeight:u,holeHeight:l,holeRadius:o,halfThickness:i,hollowLineLength:g}=new WhiteCardboard(n);n.boxHeight;const d=n.boxWidth;n.boxLength,t.moveTo(()=>(e.push({x:g+(d-s)/2,y:u-l-o}),e[e.length-1])),holeCircle(t,e,n).moveTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])),holeCircle(t,e,n).moveTo(()=>(e.push({x:g+(d-s)/2,y:u-l-o+2*l}),e[e.length-1])),holeCircle(t,e,n).moveTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])),holeCircle(t,e,n).moveTo(()=>(e.push({x:g+(d-s)/2+d+2*i,y:u-l-o}),e[e.length-1])),holeCircle(t,e,n).moveTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])),holeCircle(t,e,n).moveTo(()=>(e.push({x:g+(d-s)/2+d+2*i,y:u-l-o+2*l}),e[e.length-1])),holeCircle(t,e,n).moveTo(()=>(e.push({x:e[e.length-1].x+s,y:e[e.length-1].y}),e[e.length-1])),holeCircle(t,e,n)},cutLinePath=(t,e,n)=>{const s=n.boxHeight,u=n.boxWidth;n.boxLength;const{hollowLineLength:l,halfThickness:o,hollowHeight:i,cuttingWidth:g,bottomOverlap:d}=new WhiteCardboard(n);t.moveTo(()=>(e.push({x:l+o-d,y:i+s+o+d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y+d}),e[e.length-1])).moveTo(()=>(e.push({x:l+u-(o+d),y:e[e.length-1].y}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y-d}),e[e.length-1])).lineTo(()=>(e.push({x:e[e.length-1].x+d,y:e[e.length-1].y+d}),e[e.length-1])).moveTo(()=>(e.push({x:2,y:i+s-l+2}),e[e.length-1])).lineTo(()=>(e.push({x:l-5,y:i+s-5}),e[e.length-1])).moveTo(()=>(e.push({x:2,y:i+s}),e[e.length-1])).lineTo(()=>(e.push({x:l-5,y:e[e.length-1].y}),e[e.length-1]))},cuttingLinePath=function(t){t.boxHeight,t.boxWidth,t.boxLength;const e=new WhiteCardboard(t),{holeWidth:n}=e;function s(){const u=[],l=new SvgPathBuilder().moveTo(()=>(u.push({x:0,y:0}),u[u.length-1]));return outerRender(l,u,t),holePaths(l,u,t),cutLinePath(l,u,t),{path:l.build(),actionArray:u,pathLine:l}}return{returnPath:s().path,actionArray:s().actionArray,pathLine:s().pathLine}},foldLineoordinates=t=>{t.boxLength;const e=t.boxWidth,n=t.boxHeight,s=cuttingLinePath(t).actionArray,{hollowHeight:u,hollowLineLength:l,halfThickness:o,cuttingWidth:i,holeWidth:g,bottomOverlap:d}=new WhiteCardboard(t);return{foldLineObj:{lineX1:{x1:s[0].x,y1:u,x2:l+e+2*o+e+2*o-i,y2:u},lineX2:{x1:l+e+o,y1:u+n-o,x2:l+2*e+3*o,y2:u+n-o},lineX3:{x1:l,y1:u+n,x2:l+2*e+4*o-i,y2:u+n},lineY1:{x1:s[0].x+l,y1:s[0].y,x2:s[0].x+l,y2:u+n+o+d},lineY2:{x1:s[0].x+l+e,y1:s[0].y,x2:s[0].x+l+e,y2:u+n+o+d},lineY3:{x1:s[0].x+l+e+o,y1:s[0].y,x2:s[0].x+l+e+o,y2:u+n+o+d},lineY4:{x1:s[0].x+l+e+2*o,y1:s[0].y,x2:s[0].x+l+e+2*o,y2:u+n+o+d},lineY5:{x1:s[0].x+l+e+2*o+e,y1:s[0].y,x2:s[0].x+l+e+2*o+e,y2:u+n+o+d},lineY6:{x1:s[0].x+l+e+2*o+e+o,y1:s[0].y,x2:s[0].x+l+e+2*o+e+o,y2:u+n+o+d},lineL1:{x1:s[0].x+l,y1:u+n,x2:s[0].x+l+o,y2:u+n+o},lineL2:{x1:s[0].x+l+e+o,y1:u+n-o,x2:s[0].x+l+2*o+e+o+d,y2:u+n+o+d},lineL3:{x1:s[0].x+l+2*e+2*o+o,y1:u+n-o,x2:s[0].x+l+4*o+2*e-i,y2:u+n-i},lineR1:{x1:s[0].x+l+e+o,y1:u+n-o,x2:s[0].x+l+e-(o+d)+d,y2:u+n+o},lineR2:{x1:s[0].x+l+2*e+2*o-(o+d),y1:u+n+o+d,x2:s[0].x+l+2*e+2*o+o,y2:u+n-o}}}},bleedingLinePath=t=>{function e(){const n=cuttingLinePath(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},previewBleedingLinePath=t=>{function e(){const n=cuttingLinePath(t).pathLine;let s=BleedGenerator.getInstance().generate(n.build());const u=s.split("M").filter(o=>o.trim()!=="");if(u.length>1){const o=r=>{if(typeof document>"u")return Number.NaN;const f="http://www.w3.org/2000/svg",L=document.createElementNS(f,"svg"),T=document.createElementNS(f,"path");L.style.position="absolute",L.style.width="0",L.style.height="0",L.style.overflow="hidden",T.setAttribute("d",`M${r}`),L.appendChild(T);try{document.body.appendChild(L);const x=T.getBBox();return x.width*x.height}catch{return Number.NaN}finally{L.remove()}},i=u.map((r,f)=>({index:f,area:o(r),length:r.length})),d=(i.some(r=>Number.isFinite(r.area))?i.sort((r,f)=>f.area-r.area):i.sort((r,f)=>f.length-r.length))[0];s=`M${u[d.index]}`}return s}return{returnPath:e()}},useWhiteCardboardPath={mmToPt,cuttingLinePath,foldLineoordinates,bleedingLinePath,previewBleedingLinePath};function WhiteCardboardBagRules(t,e,n){if(t==="boxHeight"||t==="boxWidth"||t==="boxLength"){const u=Math.round(e/5)*5;if(e!==u)return{validVal:!1,msg:"尺寸检查未通过,尺寸必须为5的倍数!",syncType:t,syncSize:u}}let s=!0;return(expandWidth(n)>1537||expandHeight(n)>865)&&(s=!1),t==="boxHeight"&&(e<150||e>550)?{validVal:!1,msg:"尺寸检查未通过,高度必须在150mm到550mm之间!",syncType:""}:t==="boxWidth"&&(e<150||e>600)?{validVal:!1,msg:"尺寸检查未通过,宽度必须在150mm到600mm之间!",syncType:""}:t==="boxLength"&&(e<60||e>250)?{validVal:!1,msg:"尺寸检查未通过,厚度必须在60mm到250mm之间!",syncType:""}:t==="boxLength"&&e>n.boxWidth*.8?{validVal:!1,msg:"尺寸检查未通过,厚度不能大于宽度的80%!",syncType:"boxLength",syncSize:n.boxWidth*.8}:t==="boxWidth"&&e<n.boxLength*1.25?{validVal:!1,msg:"尺寸检查未通过,宽度不能小于厚度的1.25倍!",syncType:"boxWidth",syncSize:n.boxLength*1.25}:s?{validVal:!0,msg:"success",syncType:""}:{validVal:!1,msg:"尺寸检查未通过,展开尺寸不能超过1537*865mm!",syncType:""}}const expandWidth=t=>{const e=useWhiteCardboardPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.x)),s=Math.min(...e.map(u=>u.x));return n-s},expandHeight=t=>{const e=useWhiteCardboardPath.cuttingLinePath(t).actionArray,n=Math.max(...e.map(u=>u.y)),s=Math.min(...e.map(u=>u.y));return n-s};registerBox({type:"WhiteCardboardBag",name:"白卡纸袋",group:"bag",categoryId:"white-cardboard",component:()=>__vitePreload(()=>import("./index-06CzVtTQ.js"),__vite__mapDeps([38,1,2,5])),pathApi:useWhiteCardboardPath,rules:WhiteCardboardBagRules,display:{label:"白卡纸袋",index:1,imgSrc:"./defaultDlate/白卡纸袋.svg",disabled:!1}});function toBoxConfig(t){return{name:t.name,apiModule:t.pathApi,rules:t.rules}}function toBoxTreeItem(t){return{value:t.type,label:t.display?.label??t.name,index:t.display?.index??0,imgSrc:t.display?.imgSrc,disabled:t.display?.disabled??!1}}const BOX_GROUPS=[{id:"card",label:"卡盒"},{id:"corrugated",label:"瓦楞盒",disabled:!0},{id:"duplex",label:"白卡对裱盒",disabled:!0},{id:"bag",label:"手提袋"}],BOX_CATEGORIES=[{id:"double-interlock",groupId:"card",label:"双插盒",order:1},{id:"button-bottom",groupId:"card",label:"扣底盒",order:2},{id:"large-width-button-bottom",groupId:"card",label:"扣底盒（宽大于长）",order:3},{id:"ear-hanging",groupId:"card",label:"挂耳盒",order:4},{id:"self-locking",groupId:"card",label:"自锁底盒",order:5},{id:"flat-adhesive",groupId:"card",label:"平粘盒",order:6},{id:"special",groupId:"card",label:"特殊盒型",order:7},{id:"other",groupId:"card",label:"其他",order:8},{id:"corrugated-special",groupId:"corrugated",label:"特殊",order:1},{id:"duplex-aircraft",groupId:"duplex",label:"对裱飞机盒",order:1},{id:"white-cardboard",groupId:"bag",label:"白卡纸袋",order:1}],getBoxesForCategory=(t,e)=>getAllBoxes().filter(n=>n.group===t&&n.categoryId===e).map(toBoxTreeItem).sort((n,s)=>n.index-s.index),getTreeData=()=>BOX_GROUPS.map(t=>({id:t.id,label:t.label,disabled:t.disabled,children:BOX_CATEGORIES.filter(e=>e.groupId===t.id).sort((e,n)=>e.order-n.order).map(e=>({id:e.id,label:e.label,disabled:e.disabled,boxTypes:getBoxesForCategory(t.id,e.id)})).filter(e=>(e.boxTypes?.length??0)>0)})),flattenBoxTree=(t=getTreeData())=>{const e=[],n=s=>{for(const u of s)u.boxTypes?.length&&e.push(...u.boxTypes),u.children?.length&&n(u.children)};return n(t),e},flattenTreeData=(t=getTreeData())=>flattenBoxTree(t),getBoxTypeOptions=()=>flattenBoxTree().map(t=>({Index:t.index,value:t.value,label:t.label,disabled:t.disabled??!1})).sort((t,e)=>t.Index-e.Index),getComponentMap=()=>Object.fromEntries(getAllBoxes().map(t=>[t.type,defineAsyncComponent(t.component)])),TREE_DATA=getTreeData(),BOX_TYPE_OPTIONS=getBoxTypeOptions(),COMPONENTS_MAP=getComponentMap(),_hoisted_1$3={key:0,class:"box-selection-overlay"},_hoisted_2$3={class:"box-selection-panel"},_hoisted_3$3={class:"panel-header"},_hoisted_4$3={class:"title"},_hoisted_5$2={class:"panel-content"},_hoisted_6$2={class:"groups"},_hoisted_7$2=["onClick"],_hoisted_8$2={class:"group-name"},_hoisted_9$2={class:"categories"},_hoisted_10$2=["onClick"],_hoisted_11$2={class:"cat-name"},_hoisted_12$2={class:"cat-count"},_hoisted_13$1=["data-box-value","onClick"],_hoisted_14$1={class:"card-img"},_hoisted_15$1=["src"],_hoisted_16$1={class:"card-info"},_hoisted_17$1={class:"box-name"},_hoisted_18$1={class:"box-id"},_sfc_main$G=defineComponent({__name:"BoxSelectionPanel",props:{visible:{type:Boolean},currentBoxType:{},categories:{},title:{},defaultGroupId:{}},emits:["close","select"],setup(t,{emit:e}){const n=t,s=e,u=computed(()=>n.title||"选择盒型"),l=computed(()=>n.categories?.length?n.categories:TREE_DATA),o=ref(null),i=computed(()=>l.value.some(_=>_.children?.length)),g=computed(()=>i.value?l.value:[{id:"default",label:"默认",disabled:!1,children:l.value}]),d=_=>{if(!_)return[];const ue=[];if(_.boxTypes?.length&&ue.push(..._.boxTypes),_.children?.length)for(const re of _.children)ue.push(...d(re));return ue},r=_=>{for(const ue of g.value){const re=ue.children||[];for(const de of re)if(d(de).some(he=>he.value===_))return ue.id;if(d(ue).some(de=>de.value===_))return ue.id}return g.value[0]?.id||""},f=(_,ue)=>{const de=g.value.find(w=>w.id===_)?.children||[];for(const w of de)if(d(w).some(le=>le.value===ue))return w.id;return de.find(w=>!w.disabled)?.id||de[0]?.id||""},L=()=>{const _=n.currentBoxType;if(_)return r(_);const ue=n.defaultGroupId;return ue&&g.value.some(de=>de.id===ue&&!de.disabled)?ue:g.value.find(de=>!de.disabled)?.id||g.value[0]?.id||""},T=ref(L()),x=computed(()=>g.value.find(_=>_.id===T.value)?.children||[]),c=ref(f(T.value,n.currentBoxType||""));watch(()=>n.visible,_=>{if(!_||n.currentBoxType)return;if((g.value.find(re=>re.id===T.value)||null)?.disabled){const re=g.value.find(de=>!de.disabled);T.value=re?.id||g.value[0]?.id||""}},{immediate:!0}),watch(()=>n.defaultGroupId,()=>{n.visible&&(n.currentBoxType||(T.value=L()))});const m=async _=>{for(let ue=0;ue<12;ue++)if(await nextTick(),await new Promise(re=>requestAnimationFrame(()=>re())),_.clientHeight>0)return},y=async()=>{const _=o.value;if(!_)return;await m(_);const ue=n.currentBoxType;if(!ue){_.scrollTop=0;return}const de=Array.from(_.querySelectorAll(".box-card")).find(_e=>_e.getAttribute("data-box-value")===ue)||null;if(!de){_.scrollTop=0;return}if(_.scrollHeight<=_.clientHeight)return;const he=12,w=_.getBoundingClientRect(),le=de.getBoundingClientRect(),Ce=le.top-w.top+_.scrollTop-(_.clientHeight-le.height-he);_.scrollTo({top:Math.max(0,Ce)})};watch(()=>n.currentBoxType,_=>{_&&(T.value=r(_),c.value=f(T.value,_))}),watch(()=>T.value,()=>{if(!x.value.length){c.value="";return}const _=x.value.find(ue=>ue.id===c.value)||null;if(!_||_.disabled&&!n.currentBoxType){const ue=x.value.find(re=>!re.disabled);c.value=ue?.id||x.value[0].id}});const O=computed(()=>{const _=x.value.find(ue=>ue.id===c.value);return!n.currentBoxType&&_?.disabled?[]:d(_)});watch(()=>n.visible,_=>{_&&y()},{immediate:!0,flush:"post"}),watch(()=>o.value,_=>{_&&n.visible&&y()},{flush:"post"}),watch(()=>c.value,()=>{n.visible&&y()},{flush:"post"}),watch(()=>O.value.length,()=>{n.visible&&y()},{flush:"post"}),onMounted(()=>{n.visible&&y()});const b=_=>{_.disabled||(s("select",_.value),s("close"))},j=_=>{_.disabled||(T.value=_.id)},F=_=>{_.disabled||(c.value=_.id)},k=_=>d(_).length;return(_,ue)=>t.visible?(openBlock(),createElementBlock("div",_hoisted_1$3,[createBaseVNode("div",_hoisted_2$3,[createBaseVNode("div",_hoisted_3$3,[createBaseVNode("div",_hoisted_4$3,toDisplayString(u.value),1)]),createBaseVNode("div",_hoisted_5$2,[createBaseVNode("div",_hoisted_6$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(g.value,re=>(openBlock(),createElementBlock("div",{key:re.id,class:normalizeClass(["group-item",{active:T.value===re.id,disabled:!!re.disabled}]),onClick:de=>j(re)},[createBaseVNode("span",_hoisted_8$2,toDisplayString(re.label),1)],10,_hoisted_7$2))),128))]),createBaseVNode("div",_hoisted_9$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(x.value,re=>(openBlock(),createElementBlock("div",{key:re.id,class:normalizeClass(["category-item",{active:c.value===re.id,disabled:!!re.disabled}]),onClick:de=>F(re)},[createBaseVNode("span",_hoisted_11$2,toDisplayString(re.label),1),createBaseVNode("span",_hoisted_12$2,toDisplayString(k(re)),1)],10,_hoisted_10$2))),128))]),createBaseVNode("div",{class:"box-grid",ref_key:"boxGridRef",ref:o},[(openBlock(!0),createElementBlock(Fragment,null,renderList(O.value,re=>(openBlock(),createElementBlock("div",{key:re.value,class:normalizeClass(["box-card",{disabled:re.disabled,selected:re.value===t.currentBoxType}]),"data-box-value":re.value,onClick:de=>b(re)},[createBaseVNode("div",_hoisted_14$1,[createBaseVNode("img",{src:re.imgSrc,alt:"box.label",style:{width:"100%",height:"100%","object-fit":"contain"}},null,8,_hoisted_15$1)]),createBaseVNode("div",_hoisted_16$1,[createBaseVNode("div",_hoisted_17$1,toDisplayString(re.label),1),createBaseVNode("div",_hoisted_18$1,toDisplayString(re.index),1)])],10,_hoisted_13$1))),128))],512)])])])):createCommentVNode("",!0)}}),__unplugin_components_13=_export_sfc$1(_sfc_main$G,[["__scopeId","data-v-2746e416"]]),configProviderContextKey=Symbol(),defaultNamespace="el",statePrefix="is-",_bem=(t,e,n,s,u)=>{let l=`${t}-${e}`;return n&&(l+=`-${n}`),s&&(l+=`__${s}`),u&&(l+=`--${u}`),l},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=t=>{const e=t||(getCurrentInstance()?inject(namespaceContextKey,ref(defaultNamespace)):ref(defaultNamespace));return computed(()=>unref(e)||defaultNamespace)},useNamespace=(t,e)=>{const n=useGetDerivedNamespace(e);return{namespace:n,b:(c="")=>_bem(n.value,t,c,"",""),e:c=>c?_bem(n.value,t,"",c,""):"",m:c=>c?_bem(n.value,t,"","",c):"",be:(c,m)=>c&&m?_bem(n.value,t,c,m,""):"",em:(c,m)=>c&&m?_bem(n.value,t,"",c,m):"",bm:(c,m)=>c&&m?_bem(n.value,t,c,"",m):"",bem:(c,m,y)=>c&&m&&y?_bem(n.value,t,c,m,y):"",is:(c,...m)=>{const y=m.length>=1?m[0]:!0;return c&&y?`${statePrefix}${c}`:""},cssVar:c=>{const m={};for(const y in c)c[y]&&(m[`--${n.value}-${y}`]=c[y]);return m},cssVarName:c=>`--${n.value}-${c}`,cssVarBlock:c=>{const m={};for(const y in c)c[y]&&(m[`--${n.value}-${t}-${y}`]=c[y]);return m},cssVarBlockName:c=>`--${n.value}-${t}-${c}`}};var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root.Symbol,objectProto$e=Object.prototype,hasOwnProperty$c=objectProto$e.hasOwnProperty,nativeObjectToString$1=objectProto$e.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(t){var e=hasOwnProperty$c.call(t,symToStringTag$1),n=t[symToStringTag$1];try{t[symToStringTag$1]=void 0;var s=!0}catch{}var u=nativeObjectToString$1.call(t);return s&&(e?t[symToStringTag$1]=n:delete t[symToStringTag$1]),u}var objectProto$d=Object.prototype,nativeObjectToString=objectProto$d.toString;function objectToString(t){return nativeObjectToString.call(t)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(t){return t==null?t===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?getRawTag(t):objectToString(t)}function isObjectLike(t){return t!=null&&typeof t=="object"}var symbolTag$3="[object Symbol]";function isSymbol(t){return typeof t=="symbol"||isObjectLike(t)&&baseGetTag(t)==symbolTag$3}function arrayMap(t,e){for(var n=-1,s=t==null?0:t.length,u=Array(s);++n<s;)u[n]=e(t[n],n,t);return u}var isArray$2=Array.isArray,symbolProto$2=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString(t){if(typeof t=="string")return t;if(isArray$2(t))return arrayMap(t,baseToString)+"";if(isSymbol(t))return symbolToString?symbolToString.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var reWhitespace=/\s/;function trimmedEndIndex(t){for(var e=t.length;e--&&reWhitespace.test(t.charAt(e)););return e}var reTrimStart=/^\s+/;function baseTrim(t){return t&&t.slice(0,trimmedEndIndex(t)+1).replace(reTrimStart,"")}function isObject$1(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(t){if(typeof t=="number")return t;if(isSymbol(t))return NAN;if(isObject$1(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=isObject$1(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=baseTrim(t);var n=reIsBinary.test(t);return n||reIsOctal.test(t)?freeParseInt(t.slice(2),n?2:8):reIsBadHex.test(t)?NAN:+t}function identity$1(t){return t}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(t){if(!isObject$1(t))return!1;var e=baseGetTag(t);return e==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag}var coreJsData=root["__core-js_shared__"],maskSrcKey=(function(){var t=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function isMasked(t){return!!maskSrcKey&&maskSrcKey in t}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(t){if(t!=null){try{return funcToString$1.call(t)}catch{}try{return t+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$c=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$b=objectProto$c.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$b).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(t){if(!isObject$1(t)||isMasked(t))return!1;var e=isFunction$2(t)?reIsNative:reIsHostCtor;return e.test(toSource(t))}function getValue$1(t,e){return t?.[e]}function getNative(t,e){var n=getValue$1(t,e);return baseIsNative(n)?n:void 0}var WeakMap$1=getNative(root,"WeakMap"),objectCreate=Object.create,baseCreate=(function(){function t(){}return function(e){if(!isObject$1(e))return{};if(objectCreate)return objectCreate(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function apply(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function copyArray(t,e){var n=-1,s=t.length;for(e||(e=Array(s));++n<s;)e[n]=t[n];return e}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(t){var e=0,n=0;return function(){var s=nativeNow(),u=HOT_SPAN-(s-n);if(n=s,u>0){if(++e>=HOT_COUNT)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function constant(t){return function(){return t}}var defineProperty=(function(){try{var t=getNative(Object,"defineProperty");return t({},"",{}),t}catch{}})(),baseSetToString=defineProperty?function(t,e){return defineProperty(t,"toString",{configurable:!0,enumerable:!1,value:constant(e),writable:!0})}:identity$1,setToString=shortOut(baseSetToString);function arrayEach(t,e){for(var n=-1,s=t==null?0:t.length;++n<s&&e(t[n],n,t)!==!1;);return t}function baseFindIndex(t,e,n,s){t.length;for(var u=n+1;u--;)if(e(t[u],u,t))return u;return-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(t,e){var n=typeof t;return e=e??MAX_SAFE_INTEGER$1,!!e&&(n=="number"||n!="symbol"&&reIsUint.test(t))&&t>-1&&t%1==0&&t<e}function baseAssignValue(t,e,n){e=="__proto__"&&defineProperty?defineProperty(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function eq(t,e){return t===e||t!==t&&e!==e}var objectProto$b=Object.prototype,hasOwnProperty$a=objectProto$b.hasOwnProperty;function assignValue(t,e,n){var s=t[e];(!(hasOwnProperty$a.call(t,e)&&eq(s,n))||n===void 0&&!(e in t))&&baseAssignValue(t,e,n)}function copyObject(t,e,n,s){var u=!n;n||(n={});for(var l=-1,o=e.length;++l<o;){var i=e[l],g=void 0;g===void 0&&(g=t[i]),u?baseAssignValue(n,i,g):assignValue(n,i,g)}return n}var nativeMax$1=Math.max;function overRest(t,e,n){return e=nativeMax$1(e===void 0?t.length-1:e,0),function(){for(var s=arguments,u=-1,l=nativeMax$1(s.length-e,0),o=Array(l);++u<l;)o[u]=s[e+u];u=-1;for(var i=Array(e+1);++u<e;)i[u]=s[u];return i[e]=n(o),apply(t,this,i)}}var MAX_SAFE_INTEGER=9007199254740991;function isLength(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=MAX_SAFE_INTEGER}function isArrayLike(t){return t!=null&&isLength(t.length)&&!isFunction$2(t)}var objectProto$a=Object.prototype;function isPrototype(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||objectProto$a;return t===n}function baseTimes(t,e){for(var n=-1,s=Array(t);++n<t;)s[n]=e(n);return s}var argsTag$3="[object Arguments]";function baseIsArguments(t){return isObjectLike(t)&&baseGetTag(t)==argsTag$3}var objectProto$9=Object.prototype,hasOwnProperty$9=objectProto$9.hasOwnProperty,propertyIsEnumerable$2=objectProto$9.propertyIsEnumerable,isArguments=baseIsArguments((function(){return arguments})())?baseIsArguments:function(t){return isObjectLike(t)&&hasOwnProperty$9.call(t,"callee")&&!propertyIsEnumerable$2.call(t,"callee")};function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer$1=nativeIsBuffer||stubFalse,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(t){return isObjectLike(t)&&isLength(t.length)&&!!typedArrayTags[baseGetTag(t)]}function baseUnary(t){return function(e){return t(e)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal.process,nodeUtil=(function(){try{var t=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return t||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}})(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function arrayLikeKeys(t,e){var n=isArray$2(t),s=!n&&isArguments(t),u=!n&&!s&&isBuffer$1(t),l=!n&&!s&&!u&&isTypedArray$1(t),o=n||s||u||l,i=o?baseTimes(t.length,String):[],g=i.length;for(var d in t)(e||hasOwnProperty$8.call(t,d))&&!(o&&(d=="length"||u&&(d=="offset"||d=="parent")||l&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||isIndex(d,g)))&&i.push(d);return i}function overArg(t,e){return function(n){return t(e(n))}}var nativeKeys=overArg(Object.keys,Object),objectProto$7=Object.prototype,hasOwnProperty$7=objectProto$7.hasOwnProperty;function baseKeys(t){if(!isPrototype(t))return nativeKeys(t);var e=[];for(var n in Object(t))hasOwnProperty$7.call(t,n)&&n!="constructor"&&e.push(n);return e}function keys(t){return isArrayLike(t)?arrayLikeKeys(t):baseKeys(t)}function nativeKeysIn(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var objectProto$6=Object.prototype,hasOwnProperty$6=objectProto$6.hasOwnProperty;function baseKeysIn(t){if(!isObject$1(t))return nativeKeysIn(t);var e=isPrototype(t),n=[];for(var s in t)s=="constructor"&&(e||!hasOwnProperty$6.call(t,s))||n.push(s);return n}function keysIn(t){return isArrayLike(t)?arrayLikeKeys(t,!0):baseKeysIn(t)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(t,e){if(isArray$2(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||isSymbol(t)?!0:reIsPlainProp.test(t)||!reIsDeepProp.test(t)||e!=null&&t in Object(e)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty;function hashGet(t){var e=this.__data__;if(nativeCreate){var n=e[t];return n===HASH_UNDEFINED$2?void 0:n}return hasOwnProperty$5.call(e,t)?e[t]:void 0}var objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function hashHas(t){var e=this.__data__;return nativeCreate?e[t]!==void 0:hasOwnProperty$4.call(e,t)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nativeCreate&&e===void 0?HASH_UNDEFINED$1:e,this}function Hash(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var s=t[e];this.set(s[0],s[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(t,e){for(var n=t.length;n--;)if(eq(t[n][0],e))return n;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(t){var e=this.__data__,n=assocIndexOf(e,t);if(n<0)return!1;var s=e.length-1;return n==s?e.pop():splice.call(e,n,1),--this.size,!0}function listCacheGet(t){var e=this.__data__,n=assocIndexOf(e,t);return n<0?void 0:e[n][1]}function listCacheHas(t){return assocIndexOf(this.__data__,t)>-1}function listCacheSet(t,e){var n=this.__data__,s=assocIndexOf(n,t);return s<0?(++this.size,n.push([t,e])):n[s][1]=e,this}function ListCache(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var s=t[e];this.set(s[0],s[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$1=getNative(root,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function isKeyable(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function getMapData(t,e){var n=t.__data__;return isKeyable(e)?n[typeof e=="string"?"string":"hash"]:n.map}function mapCacheDelete(t){var e=getMapData(this,t).delete(t);return this.size-=e?1:0,e}function mapCacheGet(t){return getMapData(this,t).get(t)}function mapCacheHas(t){return getMapData(this,t).has(t)}function mapCacheSet(t,e){var n=getMapData(this,t),s=n.size;return n.set(t,e),this.size+=n.size==s?0:1,this}function MapCache(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var s=t[e];this.set(s[0],s[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$1="Expected a function";function memoize(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var n=function(){var s=arguments,u=e?e.apply(this,s):s[0],l=n.cache;if(l.has(u))return l.get(u);var o=t.apply(this,s);return n.cache=l.set(u,o)||l,o};return n.cache=new(memoize.Cache||MapCache),n}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(t){var e=memoize(t,function(s){return n.size===MAX_MEMOIZE_SIZE&&n.clear(),s}),n=e.cache;return e}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(rePropName,function(n,s,u,l){e.push(u?l.replace(reEscapeChar,"$1"):s||n)}),e});function toString$1(t){return t==null?"":baseToString(t)}function castPath(t,e){return isArray$2(t)?t:isKey(t,e)?[t]:stringToPath(toString$1(t))}function toKey(t){if(typeof t=="string"||isSymbol(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function baseGet(t,e){e=castPath(e,t);for(var n=0,s=e.length;t!=null&&n<s;)t=t[toKey(e[n++])];return n&&n==s?t:void 0}function get(t,e,n){var s=t==null?void 0:baseGet(t,e);return s===void 0?n:s}function arrayPush(t,e){for(var n=-1,s=e.length,u=t.length;++n<s;)t[u+n]=e[n];return t}var spreadableSymbol=Symbol$1?Symbol$1.isConcatSpreadable:void 0;function isFlattenable(t){return isArray$2(t)||isArguments(t)||!!(spreadableSymbol&&t&&t[spreadableSymbol])}function baseFlatten(t,e,n,s,u){var l=-1,o=t.length;for(n||(n=isFlattenable),u||(u=[]);++l<o;){var i=t[l];n(i)?arrayPush(u,i):u[u.length]=i}return u}function flatten(t){var e=t==null?0:t.length;return e?baseFlatten(t):[]}function flatRest(t){return setToString(overRest(t,void 0,flatten),t+"")}var getPrototype=overArg(Object.getPrototypeOf,Object);function castArray$1(){if(!arguments.length)return[];var t=arguments[0];return isArray$2(t)?t:[t]}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function stackGet(t){return this.__data__.get(t)}function stackHas(t){return this.__data__.has(t)}var LARGE_ARRAY_SIZE=200;function stackSet(t,e){var n=this.__data__;if(n instanceof ListCache){var s=n.__data__;if(!Map$1||s.length<LARGE_ARRAY_SIZE-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new MapCache(s)}return n.set(t,e),this.size=n.size,this}function Stack(t){var e=this.__data__=new ListCache(t);this.size=e.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(t,e){return t&&copyObject(e,keys(e),t)}function baseAssignIn(t,e){return t&&copyObject(e,keysIn(e),t)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer(t,e){var n=t.length,s=allocUnsafe?allocUnsafe(n):new t.constructor(n);return t.copy(s),s}function arrayFilter(t,e){for(var n=-1,s=t==null?0:t.length,u=0,l=[];++n<s;){var o=t[n];e(o,n,t)&&(l[u++]=o)}return l}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable$1=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(t){return t==null?[]:(t=Object(t),arrayFilter(nativeGetSymbols$1(t),function(e){return propertyIsEnumerable$1.call(t,e)}))}:stubArray;function copySymbols(t,e){return copyObject(t,getSymbols(t),e)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(t){for(var e=[];t;)arrayPush(e,getSymbols(t)),t=getPrototype(t);return e}:stubArray;function copySymbolsIn(t,e){return copyObject(t,getSymbolsIn(t),e)}function baseGetAllKeys(t,e,n){var s=e(t);return isArray$2(t)?s:arrayPush(s,n(t))}function getAllKeys(t){return baseGetAllKeys(t,keys,getSymbols)}var DataView=getNative(root,"DataView"),Promise$1=getNative(root,"Promise"),Set$1=getNative(root,"Set"),mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag$3||Map$1&&getTag(new Map$1)!=mapTag$4||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(t){var e=baseGetTag(t),n=e==objectTag$2?t.constructor:void 0,s=n?toSource(n):"";if(s)switch(s){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return e});var objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function initCloneArray(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&hasOwnProperty$3.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Uint8Array$1=root.Uint8Array;function cloneArrayBuffer(t){var e=new t.constructor(t.byteLength);return new Uint8Array$1(e).set(new Uint8Array$1(t)),e}function cloneDataView(t,e){var n=t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var reFlags=/\w*$/;function cloneRegExp(t){var e=new t.constructor(t.source,reFlags.exec(t));return e.lastIndex=t.lastIndex,e}var symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(t){return symbolValueOf$1?Object(symbolValueOf$1.call(t)):{}}function cloneTypedArray(t,e){var n=t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(t,e,n){var s=t.constructor;switch(e){case arrayBufferTag$2:return cloneArrayBuffer(t);case boolTag$2:case dateTag$2:return new s(+t);case dataViewTag$2:return cloneDataView(t);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(t);case mapTag$3:return new s;case numberTag$2:case stringTag$2:return new s(t);case regexpTag$2:return cloneRegExp(t);case setTag$3:return new s;case symbolTag$2:return cloneSymbol(t)}}function initCloneObject(t){return typeof t.constructor=="function"&&!isPrototype(t)?baseCreate(getPrototype(t)):{}}var mapTag$2="[object Map]";function baseIsMap(t){return isObjectLike(t)&&getTag(t)==mapTag$2}var nodeIsMap=nodeUtil&&nodeUtil.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,setTag$2="[object Set]";function baseIsSet(t){return isObjectLike(t)&&getTag(t)==setTag$2}var nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,CLONE_FLAT_FLAG=2,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(t,e,n,s,u,l){var o,i=e&CLONE_FLAT_FLAG;if(o!==void 0)return o;if(!isObject$1(t))return t;var g=isArray$2(t);if(g)return o=initCloneArray(t),copyArray(t,o);var d=getTag(t),r=d==funcTag||d==genTag;if(isBuffer$1(t))return cloneBuffer(t);if(d==objectTag$1||d==argsTag$1||r&&!u)return o=r?{}:initCloneObject(t),i?copySymbolsIn(t,baseAssignIn(o,t)):copySymbols(t,baseAssign(o,t));if(!cloneableTags[d])return u?t:{};o=initCloneByTag(t,d),l||(l=new Stack);var f=l.get(t);if(f)return f;l.set(t,o),isSet(t)?t.forEach(function(x){o.add(baseClone(x,e,n,x,t,l))}):isMap(t)&&t.forEach(function(x,c){o.set(c,baseClone(x,e,n,c,t,l))});var L=getAllKeys,T=g?void 0:L(t);return arrayEach(T||t,function(x,c){T&&(c=x,x=t[c]),assignValue(o,c,baseClone(x,e,n,c,t,l))}),o}var CLONE_SYMBOLS_FLAG=4;function clone(t){return baseClone(t,CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(t){return this.__data__.set(t,HASH_UNDEFINED),this}function setCacheHas(t){return this.__data__.has(t)}function SetCache(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new MapCache;++e<n;)this.add(t[e])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(t,e){for(var n=-1,s=t==null?0:t.length;++n<s;)if(e(t[n],n,t))return!0;return!1}function cacheHas(t,e){return t.has(e)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(t,e,n,s,u,l){var o=n&COMPARE_PARTIAL_FLAG$5,i=t.length,g=e.length;if(i!=g&&!(o&&g>i))return!1;var d=l.get(t),r=l.get(e);if(d&&r)return d==e&&r==t;var f=-1,L=!0,T=n&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(l.set(t,e),l.set(e,t);++f<i;){var x=t[f],c=e[f];if(s)var m=o?s(c,x,f,e,t,l):s(x,c,f,t,e,l);if(m!==void 0){if(m)continue;L=!1;break}if(T){if(!arraySome(e,function(y,O){if(!cacheHas(T,O)&&(x===y||u(x,y,n,s,l)))return T.push(O)})){L=!1;break}}else if(!(x===c||u(x,c,n,s,l))){L=!1;break}}return l.delete(t),l.delete(e),L}function mapToArray(t){var e=-1,n=Array(t.size);return t.forEach(function(s,u){n[++e]=[u,s]}),n}function setToArray(t){var e=-1,n=Array(t.size);return t.forEach(function(s){n[++e]=s}),n}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(t,e,n,s,u,l,o){switch(n){case dataViewTag:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case arrayBufferTag:return!(t.byteLength!=e.byteLength||!l(new Uint8Array$1(t),new Uint8Array$1(e)));case boolTag:case dateTag:case numberTag:return eq(+t,+e);case errorTag:return t.name==e.name&&t.message==e.message;case regexpTag:case stringTag:return t==e+"";case mapTag:var i=mapToArray;case setTag:var g=s&COMPARE_PARTIAL_FLAG$4;if(i||(i=setToArray),t.size!=e.size&&!g)return!1;var d=o.get(t);if(d)return d==e;s|=COMPARE_UNORDERED_FLAG$2,o.set(t,e);var r=equalArrays(i(t),i(e),s,u,l,o);return o.delete(t),r;case symbolTag:if(symbolValueOf)return symbolValueOf.call(t)==symbolValueOf.call(e)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects(t,e,n,s,u,l){var o=n&COMPARE_PARTIAL_FLAG$3,i=getAllKeys(t),g=i.length,d=getAllKeys(e),r=d.length;if(g!=r&&!o)return!1;for(var f=g;f--;){var L=i[f];if(!(o?L in e:hasOwnProperty$2.call(e,L)))return!1}var T=l.get(t),x=l.get(e);if(T&&x)return T==e&&x==t;var c=!0;l.set(t,e),l.set(e,t);for(var m=o;++f<g;){L=i[f];var y=t[L],O=e[L];if(s)var b=o?s(O,y,L,e,t,l):s(y,O,L,t,e,l);if(!(b===void 0?y===O||u(y,O,n,s,l):b)){c=!1;break}m||(m=L=="constructor")}if(c&&!m){var j=t.constructor,F=e.constructor;j!=F&&"constructor"in t&&"constructor"in e&&!(typeof j=="function"&&j instanceof j&&typeof F=="function"&&F instanceof F)&&(c=!1)}return l.delete(t),l.delete(e),c}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep(t,e,n,s,u,l){var o=isArray$2(t),i=isArray$2(e),g=o?arrayTag:getTag(t),d=i?arrayTag:getTag(e);g=g==argsTag?objectTag:g,d=d==argsTag?objectTag:d;var r=g==objectTag,f=d==objectTag,L=g==d;if(L&&isBuffer$1(t)){if(!isBuffer$1(e))return!1;o=!0,r=!1}if(L&&!r)return l||(l=new Stack),o||isTypedArray$1(t)?equalArrays(t,e,n,s,u,l):equalByTag(t,e,g,n,s,u,l);if(!(n&COMPARE_PARTIAL_FLAG$2)){var T=r&&hasOwnProperty$1.call(t,"__wrapped__"),x=f&&hasOwnProperty$1.call(e,"__wrapped__");if(T||x){var c=T?t.value():t,m=x?e.value():e;return l||(l=new Stack),u(c,m,n,s,l)}}return L?(l||(l=new Stack),equalObjects(t,e,n,s,u,l)):!1}function baseIsEqual(t,e,n,s,u){return t===e?!0:t==null||e==null||!isObjectLike(t)&&!isObjectLike(e)?t!==t&&e!==e:baseIsEqualDeep(t,e,n,s,baseIsEqual,u)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(t,e,n,s){var u=n.length,l=u;if(t==null)return!l;for(t=Object(t);u--;){var o=n[u];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++u<l;){o=n[u];var i=o[0],g=t[i],d=o[1];if(o[2]){if(g===void 0&&!(i in t))return!1}else{var r=new Stack,f;if(!(f===void 0?baseIsEqual(d,g,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,s,r):f))return!1}}return!0}function isStrictComparable(t){return t===t&&!isObject$1(t)}function getMatchData(t){for(var e=keys(t),n=e.length;n--;){var s=e[n],u=t[s];e[n]=[s,u,isStrictComparable(u)]}return e}function matchesStrictComparable(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function baseMatches(t){var e=getMatchData(t);return e.length==1&&e[0][2]?matchesStrictComparable(e[0][0],e[0][1]):function(n){return n===t||baseIsMatch(n,t,e)}}function baseHasIn(t,e){return t!=null&&e in Object(t)}function hasPath(t,e,n){e=castPath(e,t);for(var s=-1,u=e.length,l=!1;++s<u;){var o=toKey(e[s]);if(!(l=t!=null&&n(t,o)))break;t=t[o]}return l||++s!=u?l:(u=t==null?0:t.length,!!u&&isLength(u)&&isIndex(o,u)&&(isArray$2(t)||isArguments(t)))}function hasIn(t,e){return t!=null&&hasPath(t,e,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(t,e){return isKey(t)&&isStrictComparable(e)?matchesStrictComparable(toKey(t),e):function(n){var s=get(n,t);return s===void 0&&s===e?hasIn(n,t):baseIsEqual(e,s,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(t){return function(e){return e?.[t]}}function basePropertyDeep(t){return function(e){return baseGet(e,t)}}function property(t){return isKey(t)?baseProperty(toKey(t)):basePropertyDeep(t)}function baseIteratee(t){return typeof t=="function"?t:t==null?identity$1:typeof t=="object"?isArray$2(t)?baseMatchesProperty(t[0],t[1]):baseMatches(t):property(t)}var now=function(){return root.Date.now()},FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(t,e,n){var s,u,l,o,i,g,d=0,r=!1,f=!1,L=!0;if(typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT);e=toNumber(e)||0,isObject$1(n)&&(r=!!n.leading,f="maxWait"in n,l=f?nativeMax(toNumber(n.maxWait)||0,e):l,L="trailing"in n?!!n.trailing:L);function T(k){var _=s,ue=u;return s=u=void 0,d=k,o=t.apply(ue,_),o}function x(k){return d=k,i=setTimeout(y,e),r?T(k):o}function c(k){var _=k-g,ue=k-d,re=e-_;return f?nativeMin(re,l-ue):re}function m(k){var _=k-g,ue=k-d;return g===void 0||_>=e||_<0||f&&ue>=l}function y(){var k=now();if(m(k))return O(k);i=setTimeout(y,c(k))}function O(k){return i=void 0,L&&s?T(k):(s=u=void 0,o)}function b(){i!==void 0&&clearTimeout(i),d=0,s=g=u=i=void 0}function j(){return i===void 0?o:O(now())}function F(){var k=now(),_=m(k);if(s=arguments,u=this,g=k,_){if(i===void 0)return x(g);if(f)return clearTimeout(i),i=setTimeout(y,e),T(g)}return i===void 0&&(i=setTimeout(y,e)),o}return F.cancel=b,F.flush=j,F}function findLastIndex(t,e,n){var s=t==null?0:t.length;if(!s)return-1;var u=s-1;return baseFindIndex(t,baseIteratee(e),u)}function fromPairs(t){for(var e=-1,n=t==null?0:t.length,s={};++e<n;){var u=t[e];s[u[0]]=u[1]}return s}function isEqual(t,e){return baseIsEqual(t,e)}function isNil(t){return t==null}function isUndefined$2(t){return t===void 0}function baseSet(t,e,n,s){if(!isObject$1(t))return t;e=castPath(e,t);for(var u=-1,l=e.length,o=l-1,i=t;i!=null&&++u<l;){var g=toKey(e[u]),d=n;if(g==="__proto__"||g==="constructor"||g==="prototype")return t;if(u!=o){var r=i[g];d=void 0,d===void 0&&(d=isObject$1(r)?r:isIndex(e[u+1])?[]:{})}assignValue(i,g,d),i=i[g]}return t}function basePickBy(t,e,n){for(var s=-1,u=e.length,l={};++s<u;){var o=e[s],i=baseGet(t,o);n(i,o)&&baseSet(l,castPath(o,t),i)}return l}function basePick(t,e){return basePickBy(t,e,function(n,s){return hasIn(t,s)})}var pick=flatRest(function(t,e){return t==null?{}:basePick(t,e)});function set(t,e,n){return t==null?t:baseSet(t,e,n)}const isUndefined$1=t=>t===void 0,isBoolean$1=t=>typeof t=="boolean",isNumber$1=t=>typeof t=="number",isElement=t=>typeof Element>"u"?!1:t instanceof Element,isPropAbsent=t=>isNil(t),isStringNumber=t=>isString$2(t)?!Number.isNaN(Number(t)):!1;var __defProp$9=Object.defineProperty,__defProps$6=Object.defineProperties,__getOwnPropDescs$6=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$b=Object.getOwnPropertySymbols,__hasOwnProp$b=Object.prototype.hasOwnProperty,__propIsEnum$b=Object.prototype.propertyIsEnumerable,__defNormalProp$9=(t,e,n)=>e in t?__defProp$9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__spreadValues$9=(t,e)=>{for(var n in e||(e={}))__hasOwnProp$b.call(e,n)&&__defNormalProp$9(t,n,e[n]);if(__getOwnPropSymbols$b)for(var n of __getOwnPropSymbols$b(e))__propIsEnum$b.call(e,n)&&__defNormalProp$9(t,n,e[n]);return t},__spreadProps$6=(t,e)=>__defProps$6(t,__getOwnPropDescs$6(e));function computedEager(t,e){var n;const s=shallowRef();return watchEffect(()=>{s.value=t()},__spreadProps$6(__spreadValues$9({},e),{flush:(n=void 0)!=null?n:"sync"})),readonly(s)}var _a;const isClient=typeof window<"u",isString$1=t=>typeof t=="string",noop$2=()=>{},isIOS=isClient&&((_a=window?.navigator)==null?void 0:_a.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref(t){return typeof t=="function"?t():unref(t)}function createFilterWrapper(t,e){function n(...s){return new Promise((u,l)=>{Promise.resolve(t(()=>e.apply(this,s),{fn:e,thisArg:this,args:s})).then(u).catch(l)})}return n}function debounceFilter(t,e={}){let n,s,u=noop$2;const l=i=>{clearTimeout(i),u(),u=noop$2};return i=>{const g=resolveUnref(t),d=resolveUnref(e.maxWait);return n&&l(n),g<=0||d!==void 0&&d<=0?(s&&(l(s),s=null),Promise.resolve(i())):new Promise((r,f)=>{u=e.rejectOnCancel?f:r,d&&!s&&(s=setTimeout(()=>{n&&l(n),s=null,r(i())},d)),n=setTimeout(()=>{s&&l(s),s=null,r(i())},g)})}}function identity(t){return t}function tryOnScopeDispose(t){return getCurrentScope()?(onScopeDispose(t),!0):!1}function useDebounceFn(t,e=200,n={}){return createFilterWrapper(debounceFilter(e,n),t)}function refDebounced(t,e=200,n={}){const s=ref(t.value),u=useDebounceFn(()=>{s.value=t.value},e,n);return watch(t,()=>u()),s}function tryOnMounted(t,e=!0){getCurrentInstance()?onMounted(t):e?t():nextTick(t)}function useTimeoutFn(t,e,n={}){const{immediate:s=!0}=n,u=ref(!1);let l=null;function o(){l&&(clearTimeout(l),l=null)}function i(){u.value=!1,o()}function g(...d){o(),u.value=!0,l=setTimeout(()=>{u.value=!1,l=null,t(...d)},resolveUnref(e))}return s&&(u.value=!0,isClient&&g()),tryOnScopeDispose(i),{isPending:readonly(u),start:g,stop:i}}function unrefElement(t){var e;const n=resolveUnref(t);return(e=n?.$el)!=null?e:n}const defaultWindow=isClient?window:void 0;function useEventListener(...t){let e,n,s,u;if(isString$1(t[0])||Array.isArray(t[0])?([n,s,u]=t,e=defaultWindow):[e,n,s,u]=t,!e)return noop$2;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const l=[],o=()=>{l.forEach(r=>r()),l.length=0},i=(r,f,L,T)=>(r.addEventListener(f,L,T),()=>r.removeEventListener(f,L,T)),g=watch(()=>[unrefElement(e),resolveUnref(u)],([r,f])=>{o(),r&&l.push(...n.flatMap(L=>s.map(T=>i(r,L,T,f))))},{immediate:!0,flush:"post"}),d=()=>{g(),o()};return tryOnScopeDispose(d),d}let _iOSWorkaround=!1;function onClickOutside(t,e,n={}){const{window:s=defaultWindow,ignore:u=[],capture:l=!0,detectIframe:o=!1}=n;if(!s)return;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(s.document.body.children).forEach(L=>L.addEventListener("click",noop$2)));let i=!0;const g=L=>u.some(T=>{if(typeof T=="string")return Array.from(s.document.querySelectorAll(T)).some(x=>x===L.target||L.composedPath().includes(x));{const x=unrefElement(T);return x&&(L.target===x||L.composedPath().includes(x))}}),r=[useEventListener(s,"click",L=>{const T=unrefElement(t);if(!(!T||T===L.target||L.composedPath().includes(T))){if(L.detail===0&&(i=!g(L)),!i){i=!0;return}e(L)}},{passive:!0,capture:l}),useEventListener(s,"pointerdown",L=>{const T=unrefElement(t);T&&(i=!L.composedPath().includes(T)&&!g(L))},{passive:!0}),o&&useEventListener(s,"blur",L=>{var T;const x=unrefElement(t);((T=s.document.activeElement)==null?void 0:T.tagName)==="IFRAME"&&!x?.contains(s.document.activeElement)&&e(L)})].filter(Boolean);return()=>r.forEach(L=>L())}function useSupported(t,e=!1){const n=ref(),s=()=>n.value=!!t();return s(),tryOnMounted(s,e),n}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global$1[globalKey]=_global$1[globalKey]||{};var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=(t,e)=>{var n={};for(var s in t)__hasOwnProp$g.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&__getOwnPropSymbols$g)for(var s of __getOwnPropSymbols$g(t))e.indexOf(s)<0&&__propIsEnum$g.call(t,s)&&(n[s]=t[s]);return n};function useResizeObserver(t,e,n={}){const s=n,{window:u=defaultWindow}=s,l=__objRest$2(s,["window"]);let o;const i=useSupported(()=>u&&"ResizeObserver"in u),g=()=>{o&&(o.disconnect(),o=void 0)},d=watch(()=>unrefElement(t),f=>{g(),i.value&&u&&f&&(o=new ResizeObserver(e),o.observe(f,l))},{immediate:!0,flush:"post"}),r=()=>{g(),d()};return tryOnScopeDispose(r),{isSupported:i,stop:r}}var __getOwnPropSymbols$8=Object.getOwnPropertySymbols,__hasOwnProp$8=Object.prototype.hasOwnProperty,__propIsEnum$8=Object.prototype.propertyIsEnumerable,__objRest$1=(t,e)=>{var n={};for(var s in t)__hasOwnProp$8.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&__getOwnPropSymbols$8)for(var s of __getOwnPropSymbols$8(t))e.indexOf(s)<0&&__propIsEnum$8.call(t,s)&&(n[s]=t[s]);return n};function useMutationObserver(t,e,n={}){const s=n,{window:u=defaultWindow}=s,l=__objRest$1(s,["window"]);let o;const i=useSupported(()=>u&&"MutationObserver"in u),g=()=>{o&&(o.disconnect(),o=void 0)},d=watch(()=>unrefElement(t),f=>{g(),i.value&&u&&f&&(o=new MutationObserver(e),o.observe(f,l))},{immediate:!0}),r=()=>{g(),d()};return tryOnScopeDispose(r),{isSupported:i,stop:r}}var SwipeDirection;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__spreadValues=(t,e)=>{for(var n in e||(e={}))__hasOwnProp.call(e,n)&&__defNormalProp(t,n,e[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(e))__propIsEnum.call(e,n)&&__defNormalProp(t,n,e[n]);return t};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity},_TransitionPresets);const initial={current:0},zIndex=ref(0),defaultInitialZIndex=2e3,ZINDEX_INJECTION_KEY=Symbol("elZIndexContextKey"),zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=t=>{const e=getCurrentInstance()?inject(ZINDEX_INJECTION_KEY,initial):initial,n=t||(getCurrentInstance()?inject(zIndexContextKey,void 0):void 0),s=computed(()=>{const o=unref(n);return isNumber$1(o)?o:defaultInitialZIndex}),u=computed(()=>s.value+zIndex.value),l=()=>(e.current++,zIndex.value=e.current,u.value);return!isClient&&inject(ZINDEX_INJECTION_KEY),{initialZIndex:s,currentZIndex:u,nextZIndex:l}};var English={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const buildTranslator=t=>(e,n)=>translate(e,n,unref(t)),translate=(t,e,n)=>get(n,t,t).replace(/\{(\w+)\}/g,(s,u)=>{var l;return`${(l=e?.[u])!=null?l:`{${u}}`}`}),buildLocaleContext=t=>{const e=computed(()=>unref(t).name),n=isRef(t)?t:ref(t);return{lang:e,locale:n,t:buildTranslator(t)}},localeContextKey=Symbol("localeContextKey"),useLocale=t=>{const e=t||inject(localeContextKey,ref());return buildLocaleContext(computed(()=>e.value||English))},epPropKey="__epPropKey",definePropType=t=>t,isEpProp=t=>isObject$2(t)&&!!t[epPropKey],buildProp=(t,e)=>{if(!isObject$2(t)||isEpProp(t))return t;const{values:n,required:s,default:u,type:l,validator:o}=t,g={type:l,required:!!s,validator:n||o?d=>{let r=!1,f=[];if(n&&(f=Array.from(n),hasOwn(t,"default")&&f.push(u),r||(r=f.includes(d))),o&&(r||(r=o(d))),!r&&f.length>0){const L=[...new Set(f)].map(T=>JSON.stringify(T)).join(", ");warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${L}], got value ${JSON.stringify(d)}.`)}return r}:void 0,[epPropKey]:!0};return hasOwn(t,"default")&&(g.default=u),g},buildProps=t=>fromPairs(Object.entries(t).map(([e,n])=>[e,buildProp(n,e)])),componentSizes=["","default","small","large"],useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),SIZE_INJECTION_KEY=Symbol("size"),useGlobalSize=()=>{const t=inject(SIZE_INJECTION_KEY,{});return computed(()=>unref(t.size)||"")},emptyValuesContextKey=Symbol("emptyValuesContextKey"),DEFAULT_EMPTY_VALUES=["",void 0,null],DEFAULT_VALUE_ON_CLEAR=void 0,useEmptyValuesProps=buildProps({emptyValues:Array,valueOnClear:{type:definePropType([String,Number,Boolean,Function]),default:void 0,validator:t=>(t=isFunction$3(t)?t():t,isArray$3(t)?t.every(e=>!e):!t)}}),useEmptyValues=(t,e)=>{const n=getCurrentInstance()?inject(emptyValuesContextKey,ref({})):ref({}),s=computed(()=>t.emptyValues||n.value.emptyValues||DEFAULT_EMPTY_VALUES),u=computed(()=>isFunction$3(t.valueOnClear)?t.valueOnClear():t.valueOnClear!==void 0?t.valueOnClear:isFunction$3(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:DEFAULT_VALUE_ON_CLEAR),l=o=>{let i=!0;return isArray$3(o)?i=s.value.some(g=>isEqual(o,g)):i=s.value.includes(o),i};return l(u.value),{emptyValues:s,valueOnClear:u,isEmptyValue:l}},keysOf=t=>Object.keys(t),getProp=(t,e,n)=>({get value(){return get(t,e,n)},set value(s){set(t,e,s)}}),globalConfig=ref();function useGlobalConfig(t,e=void 0){const n=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return t?computed(()=>{var s,u;return(u=(s=n.value)==null?void 0:s[t])!=null?u:e}):n}function useGlobalComponentSettings(t,e){const n=useGlobalConfig(),s=useNamespace(t,computed(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||defaultNamespace})),u=useLocale(computed(()=>{var i;return(i=n.value)==null?void 0:i.locale})),l=useZIndex(computed(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||defaultInitialZIndex})),o=computed(()=>{var i;return unref(e)||((i=n.value)==null?void 0:i.size)||""});return provideGlobalConfig(computed(()=>unref(n)||{})),{ns:s,locale:u,zIndex:l,size:o}}const provideGlobalConfig=(t,e,n=!1)=>{var s;const u=!!getCurrentInstance(),l=u?useGlobalConfig():void 0,o=(s=void 0)!=null?s:u?provide:void 0;if(!o)return;const i=computed(()=>{const g=unref(t);return l?.value?mergeConfig$2(l.value,g):g});return o(configProviderContextKey,i),o(localeContextKey,computed(()=>i.value.locale)),o(namespaceContextKey,computed(()=>i.value.namespace)),o(zIndexContextKey,computed(()=>i.value.zIndex)),o(SIZE_INJECTION_KEY,{size:computed(()=>i.value.size||"")}),o(emptyValuesContextKey,computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!globalConfig.value)&&(globalConfig.value=i.value),i},mergeConfig$2=(t,e)=>{const n=[...new Set([...keysOf(t),...keysOf(e)])],s={};for(const u of n)s[u]=e[u]!==void 0?e[u]:t[u];return s},UPDATE_MODEL_EVENT="update:modelValue",CHANGE_EVENT="change",INPUT_EVENT="input";var _export_sfc=(t,e)=>{const n=t.__vccOpts||t;for(const[s,u]of e)n[s]=u;return n};const classNameToArray=(t="")=>t.split(" ").filter(e=>!!e.trim()),hasClass=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},addClass=(t,e)=>{!t||!e.trim()||t.classList.add(...classNameToArray(e))},removeClass=(t,e)=>{!t||!e.trim()||t.classList.remove(...classNameToArray(e))},getStyle=(t,e)=>{var n;if(!isClient||!t||!e)return"";let s=camelize(e);s==="float"&&(s="cssFloat");try{const u=t.style[s];if(u)return u;const l=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return l?l[s]:""}catch{return t.style[s]}};function addUnit(t,e="px"){if(!t)return"";if(isNumber$1(t)||isStringNumber(t))return`${t}${e}`;if(isString$2(t))return t}let scrollBarWidth;const getScrollBarWidth=t=>{var e;if(!isClient)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const n=document.createElement("div");n.className=`${t}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const s=n.offsetWidth;n.style.overflow="scroll";const u=document.createElement("div");u.style.width="100%",n.appendChild(u);const l=u.offsetWidth;return(e=n.parentNode)==null||e.removeChild(n),scrollBarWidth=s-l,scrollBarWidth};function scrollIntoView(t,e){if(!isClient)return;if(!e){t.scrollTop=0;return}const n=[];let s=e.offsetParent;for(;s!==null&&t!==s&&t.contains(s);)n.push(s),s=s.offsetParent;const u=e.offsetTop+n.reduce((g,d)=>g+d.offsetTop,0),l=u+e.offsetHeight,o=t.scrollTop,i=o+t.clientHeight;u<o?t.scrollTop=u:l>i&&(t.scrollTop=l-t.clientHeight)}class ElementPlusError extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function throwError(t,e){throw new ElementPlusError(`[${t}] ${e}`)}function debugWarn(t,e){}const withInstall=(t,e)=>{if(t.install=n=>{for(const s of[t,...Object.values(e??{})])n.component(s.name,s)},e)for(const[n,s]of Object.entries(e))t[n]=s;return t},withInstallFunction=(t,e)=>(t.install=n=>{t._context=n._context,n.config.globalProperties[e]=t},t),withNoopInstall=t=>(t.install=NOOP,t),iconProps=buildProps({size:{type:definePropType([Number,String])},color:{type:String}}),__default__$t=defineComponent({name:"ElIcon",inheritAttrs:!1}),_sfc_main$F=defineComponent({...__default__$t,props:iconProps,setup(t){const e=t,n=useNamespace("icon"),s=computed(()=>{const{size:u,color:l}=e;return!u&&!l?{}:{fontSize:isUndefined$1(u)?void 0:addUnit(u),"--color":l}});return(u,l)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(n).b(),style:unref(s)},u.$attrs),[renderSlot(u.$slots,"default")],16))}});var Icon=_export_sfc(_sfc_main$F,[["__file","icon.vue"]]);const ElIcon=withInstall(Icon);function useTimeout(){let t;const e=(s,u)=>{n(),t=window.setTimeout(s,u)},n=()=>window.clearTimeout(t);return tryOnScopeDispose(()=>n()),{registerTimeout:e,cancelTimeout:n}}const useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),useDelayedToggle=({showAfter:t,hideAfter:e,autoClose:n,open:s,close:u})=>{const{registerTimeout:l}=useTimeout(),{registerTimeout:o,cancelTimeout:i}=useTimeout();return{onOpen:(r,f=unref(t))=>{l(()=>{s(r);const L=unref(n);isNumber$1(L)&&L>0&&o(()=>{u(r)},L)},f)},onClose:(r,f=unref(e))=>{i(),l(()=>{u(r)},f)}}};/*! Element Plus Icons Vue v2.3.2 */var _sfc_main6=defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),arrow_down_default=_sfc_main6,_sfc_main10=defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),arrow_right_default=_sfc_main10,_sfc_main12=defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),arrow_up_default=_sfc_main12,_sfc_main49=defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),createBaseVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),circle_check_default=_sfc_main49,_sfc_main50=defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),circle_close_filled_default=_sfc_main50,_sfc_main51=defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),circle_close_default=_sfc_main51,_sfc_main56=defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),close_default=_sfc_main56,_sfc_main91=defineComponent({name:"Download",__name:"download",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),download_default=_sfc_main91,_sfc_main133=defineComponent({name:"Hide",__name:"hide",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),createBaseVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),hide_default=_sfc_main133,_sfc_main143=defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),info_filled_default=_sfc_main143,_sfc_main150=defineComponent({name:"Loading",__name:"loading",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),loading_default=_sfc_main150,_sfc_main169=defineComponent({name:"Minus",__name:"minus",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),minus_default=_sfc_main169,_sfc_main175=defineComponent({name:"More",__name:"more",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),more_default=_sfc_main175,_sfc_main201=defineComponent({name:"Plus",__name:"plus",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),plus_default=_sfc_main201,_sfc_main212=defineComponent({name:"Rank",__name:"rank",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),rank_default=_sfc_main212,_sfc_main217=defineComponent({name:"Refresh",__name:"refresh",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),refresh_default=_sfc_main217,_sfc_main249=defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),success_filled_default=_sfc_main249,_sfc_main283=defineComponent({name:"View",__name:"view",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),view_default=_sfc_main283,_sfc_main287=defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),warning_filled_default=_sfc_main287,_sfc_main292=defineComponent({name:"ZoomIn",__name:"zoom-in",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),zoom_in_default=_sfc_main292,_sfc_main293=defineComponent({name:"ZoomOut",__name:"zoom-out",setup(t){return(e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),zoom_out_default=_sfc_main293;const iconPropType=definePropType([String,Object,Function]),CloseComponents={Close:close_default},TypeComponents={Close:close_default,SuccessFilled:success_filled_default,InfoFilled:info_filled_default,WarningFilled:warning_filled_default,CircleCloseFilled:circle_close_filled_default},TypeComponentsMap={primary:info_filled_default,success:success_filled_default,warning:warning_filled_default,error:circle_close_filled_default,info:info_filled_default},ValidateComponentsMap={validating:loading_default,success:circle_check_default,error:circle_close_default},isFirefox=()=>isClient&&/firefox/i.test(window.navigator.userAgent),isAndroid=()=>isClient&&/android/i.test(window.navigator.userAgent);let hiddenTextarea;const HIDDEN_STYLE={height:"0",visibility:"hidden",overflow:isFirefox()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"];function calculateNodeStyling(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),s=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),u=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(o=>[o,e.getPropertyValue(o)]),paddingSize:s,borderSize:u,boxSizing:n}}function calcTextareaHeight(t,e=1,n){var s,u;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),((s=t.parentNode)!=null?s:document.body).appendChild(hiddenTextarea));const{paddingSize:l,borderSize:o,boxSizing:i,contextStyle:g}=calculateNodeStyling(t);g.forEach(([L,T])=>hiddenTextarea?.style.setProperty(L,T)),Object.entries(HIDDEN_STYLE).forEach(([L,T])=>hiddenTextarea?.style.setProperty(L,T,"important")),hiddenTextarea.value=t.value||t.placeholder||"";let d=hiddenTextarea.scrollHeight;const r={};i==="border-box"?d=d+o:i==="content-box"&&(d=d-l),hiddenTextarea.value="";const f=hiddenTextarea.scrollHeight-l;if(isNumber$1(e)){let L=f*e;i==="border-box"&&(L=L+l+o),d=Math.max(L,d),r.minHeight=`${L}px`}if(isNumber$1(n)){let L=f*n;i==="border-box"&&(L=L+l+o),d=Math.min(L,d)}return r.height=`${d}px`,(u=hiddenTextarea.parentNode)==null||u.removeChild(hiddenTextarea),hiddenTextarea=void 0,r}const mutable=t=>t,ariaProps=buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),useAriaProps=t=>pick(ariaProps,t),inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:definePropType(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:iconPropType,default:circle_close_default},showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...useAriaProps(["ariaLabel"]),inputmode:{type:definePropType(String),default:void 0},name:String}),inputEmits={[UPDATE_MODEL_EVENT]:t=>isString$2(t),input:t=>isString$2(t),change:t=>isString$2(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,s=computed(()=>(n?.value||[]).concat(DEFAULT_EXCLUDE_KEYS)),u=getCurrentInstance();return computed(u?()=>{var l;return fromPairs(Object.entries((l=u.proxy)==null?void 0:l.$attrs).filter(([o])=>!s.value.includes(o)&&!(e&&LISTENER_PREFIX.test(o))))}:()=>({}))},defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useIdInjection=()=>getCurrentInstance()?inject(ID_INJECTION_KEY,defaultIdInjection):defaultIdInjection,useId=t=>{const e=useIdInjection(),n=useGetDerivedNamespace();return computedEager(()=>unref(t)||`${n.value}-id-${e.prefix}-${e.current++}`)},formContextKey=Symbol("formContextKey"),formItemContextKey=Symbol("formItemContextKey"),useFormItem=()=>{const t=inject(formContextKey,void 0),e=inject(formItemContextKey,void 0);return{form:t,formItem:e}},useFormItemInputId=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:s})=>{n||(n=ref(!1)),s||(s=ref(!1));const u=getCurrentInstance(),l=()=>{let d=u?.parent;for(;d;){if(d.type.name==="ElFormItem")return!1;if(d.type.name==="ElLabelWrap")return!0;d=d.parent}return!1},o=ref();let i;const g=computed(()=>{var d;return!!(!(t.label||t.ariaLabel)&&e&&e.inputIds&&((d=e.inputIds)==null?void 0:d.length)<=1)});return onMounted(()=>{i=watch([toRef(t,"id"),n],([d,r])=>{const f=d??(r?void 0:useId().value);f!==o.value&&(e?.removeInputId&&!l()&&(o.value&&e.removeInputId(o.value),!s?.value&&!r&&f&&e.addInputId(f)),o.value=f)},{immediate:!0})}),onUnmounted(()=>{i&&i(),e?.removeInputId&&o.value&&e.removeInputId(o.value)}),{isLabeledByFormItem:g,inputId:o}},useProp=t=>{const e=getCurrentInstance();return computed(()=>{var n,s;return(s=(n=e?.proxy)==null?void 0:n.$props)==null?void 0:s[t]})},useFormSize=(t,e={})=>{const n=ref(void 0),s=e.prop?n:useProp("size"),u=e.global?n:useGlobalSize(),l=e.form?{size:void 0}:inject(formContextKey,void 0),o=e.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>s.value||unref(t)||o?.size||l?.size||u.value||"")},useFormDisabled=t=>{const e=useProp("disabled"),n=inject(formContextKey,void 0);return computed(()=>e.value||unref(t)||n?.disabled||!1)},FOCUSABLE_ELEMENT_SELECTORS='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',isHTMLElement=t=>typeof Element>"u"?!1:t instanceof Element,isVisible=t=>getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,obtainAllFocusableElements$1=t=>Array.from(t.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(e=>isFocusable(e)&&isVisible(e)),isFocusable=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.tabIndex<0||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true")return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function(t,e,...n){let s;e.includes("mouse")||e.includes("click")?s="MouseEvents":e.includes("key")?s="KeyboardEvent":s="HTMLEvents";const u=document.createEvent(s);return u.initEvent(e,...n),t.dispatchEvent(u),t},focusElement=(t,e)=>{if(!t||!t.focus)return;let n=!1;isHTMLElement(t)&&!isFocusable(t)&&!t.getAttribute("tabindex")&&(t.setAttribute("tabindex","-1"),n=!0),t.focus(e),isHTMLElement(t)&&n&&t.removeAttribute("tabindex")};function useFocusController(t,{disabled:e,beforeFocus:n,afterFocus:s,beforeBlur:u,afterBlur:l}={}){const o=getCurrentInstance(),{emit:i}=o,g=shallowRef(),d=ref(!1),r=T=>{const x=isFunction$3(n)?n(T):!1;unref(e)||d.value||x||(d.value=!0,i("focus",T),s?.())},f=T=>{var x;const c=isFunction$3(u)?u(T):!1;unref(e)||T.relatedTarget&&((x=g.value)!=null&&x.contains(T.relatedTarget))||c||(d.value=!1,i("blur",T),l?.())},L=T=>{var x,c;unref(e)||isFocusable(T.target)||(x=g.value)!=null&&x.contains(document.activeElement)&&g.value!==document.activeElement||(c=t.value)==null||c.focus()};return watch([g,()=>unref(e)],([T,x])=>{T&&(x?T.removeAttribute("tabindex"):T.setAttribute("tabindex","-1"))}),useEventListener(g,"focus",r,!0),useEventListener(g,"blur",f,!0),useEventListener(g,"click",L,!0),{isFocused:d,wrapperRef:g,handleFocus:r,handleBlur:f}}const isKorean=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t);function useComposition({afterComposition:t,emit:e}){const n=ref(!1),s=i=>{e?.("compositionstart",i),n.value=!0},u=i=>{var g;e?.("compositionupdate",i);const d=(g=i.target)==null?void 0:g.value,r=d[d.length-1]||"";n.value=!isKorean(r)},l=i=>{e?.("compositionend",i),n.value&&(n.value=!1,nextTick(()=>t(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?l(i):u(i)},handleCompositionStart:s,handleCompositionUpdate:u,handleCompositionEnd:l}}function useCursor(t){let e;function n(){if(t.value==null)return;const{selectionStart:u,selectionEnd:l,value:o}=t.value;if(u==null||l==null)return;const i=o.slice(0,Math.max(0,u)),g=o.slice(Math.max(0,l));e={selectionStart:u,selectionEnd:l,value:o,beforeTxt:i,afterTxt:g}}function s(){if(t.value==null||e==null)return;const{value:u}=t.value,{beforeTxt:l,afterTxt:o,selectionStart:i}=e;if(l==null||o==null||i==null)return;let g=u.length;if(u.endsWith(o))g=u.length-o.length;else if(u.startsWith(l))g=l.length;else{const d=l[i-1],r=u.indexOf(d,i-1);r!==-1&&(g=r+1)}t.value.setSelectionRange(g,g)}return[n,s]}const COMPONENT_NAME$8="ElInput",__default__$s=defineComponent({name:COMPONENT_NAME$8,inheritAttrs:!1}),_sfc_main$E=defineComponent({...__default__$s,props:inputProps,emits:inputEmits,setup(t,{expose:e,emit:n}){const s=t,u=useAttrs$1(),l=useAttrs(),o=useSlots(),i=computed(()=>[s.type==="textarea"?c.b():x.b(),x.m(L.value),x.is("disabled",T.value),x.is("exceed",Ve.value),{[x.b("group")]:o.prepend||o.append,[x.m("prefix")]:o.prefix||s.prefixIcon,[x.m("suffix")]:o.suffix||s.suffixIcon||s.clearable||s.showPassword,[x.bm("suffix","password-clear")]:Ie.value&&Lt.value,[x.b("hidden")]:s.type==="hidden"},u.class]),g=computed(()=>[x.e("wrapper"),x.is("focus",ue.value)]),{form:d,formItem:r}=useFormItem(),{inputId:f}=useFormItemInputId(s,{formItemContext:r}),L=useFormSize(),T=useFormDisabled(),x=useNamespace("input"),c=useNamespace("textarea"),m=shallowRef(),y=shallowRef(),O=ref(!1),b=ref(!1),j=ref(),F=shallowRef(s.inputStyle),k=computed(()=>m.value||y.value),{wrapperRef:_,isFocused:ue,handleFocus:re,handleBlur:de}=useFocusController(k,{disabled:T,afterBlur(){var Tn;s.validateEvent&&((Tn=r?.validate)==null||Tn.call(r,"blur").catch(Pn=>void 0))}}),he=computed(()=>{var Tn;return(Tn=d?.statusIcon)!=null?Tn:!1}),w=computed(()=>r?.validateState||""),le=computed(()=>w.value&&ValidateComponentsMap[w.value]),V=computed(()=>b.value?view_default:hide_default),Ce=computed(()=>[u.style]),_e=computed(()=>[s.inputStyle,F.value,{resize:s.resize}]),D=computed(()=>isNil(s.modelValue)?"":String(s.modelValue)),Ie=computed(()=>s.clearable&&!T.value&&!s.readonly&&!!D.value&&(ue.value||O.value)),Lt=computed(()=>s.showPassword&&!T.value&&!!D.value),At=computed(()=>s.showWordLimit&&!!s.maxlength&&(s.type==="text"||s.type==="textarea")&&!T.value&&!s.readonly&&!s.showPassword),ie=computed(()=>D.value.length),Ve=computed(()=>!!At.value&&ie.value>Number(s.maxlength)),ze=computed(()=>!!o.suffix||!!s.suffixIcon||Ie.value||s.showPassword||At.value||!!w.value&&he.value),[z,Dt]=useCursor(m);useResizeObserver(y,Tn=>{if(Ue(),!At.value||s.resize!=="both")return;const Pn=Tn[0],{width:Rn}=Pn.contentRect;j.value={right:`calc(100% - ${Rn+15+6}px)`}});const v=()=>{const{type:Tn,autosize:Pn}=s;if(!(!isClient||Tn!=="textarea"||!y.value))if(Pn){const Rn=isObject$2(Pn)?Pn.minRows:void 0,In=isObject$2(Pn)?Pn.maxRows:void 0,On=calcTextareaHeight(y.value,Rn,In);F.value={overflowY:"hidden",...On},nextTick(()=>{y.value.offsetHeight,F.value=On})}else F.value={minHeight:calcTextareaHeight(y.value).minHeight}},Ue=(Tn=>{let Pn=!1;return()=>{var Rn;if(Pn||!s.autosize)return;((Rn=y.value)==null?void 0:Rn.offsetParent)===null||(setTimeout(Tn),Pn=!0)}})(v),M=()=>{const Tn=k.value,Pn=s.formatter?s.formatter(D.value):D.value;!Tn||Tn.value===Pn||(Tn.value=Pn)},Pt=async Tn=>{z();let{value:Pn}=Tn.target;if(s.formatter&&s.parser&&(Pn=s.parser(Pn)),!Oe.value){if(Pn===D.value){M();return}n(UPDATE_MODEL_EVENT,Pn),n(INPUT_EVENT,Pn),await nextTick(),M(),Dt()}},hn=Tn=>{let{value:Pn}=Tn.target;s.formatter&&s.parser&&(Pn=s.parser(Pn)),n(CHANGE_EVENT,Pn)},{isComposing:Oe,handleCompositionStart:Fe,handleCompositionUpdate:Et,handleCompositionEnd:oe}=useComposition({emit:n,afterComposition:Pt}),kt=()=>{z(),b.value=!b.value,setTimeout(Dt)},Ne=()=>{var Tn;return(Tn=k.value)==null?void 0:Tn.focus()},_n=()=>{var Tn;return(Tn=k.value)==null?void 0:Tn.blur()},wn=Tn=>{O.value=!1,n("mouseleave",Tn)},bn=Tn=>{O.value=!0,n("mouseenter",Tn)},xn=Tn=>{n("keydown",Tn)},Bn=()=>{var Tn;(Tn=k.value)==null||Tn.select()},Sn=()=>{n(UPDATE_MODEL_EVENT,""),n(CHANGE_EVENT,""),n("clear"),n(INPUT_EVENT,"")};return watch(()=>s.modelValue,()=>{var Tn;nextTick(()=>v()),s.validateEvent&&((Tn=r?.validate)==null||Tn.call(r,"change").catch(Pn=>void 0))}),watch(D,()=>M()),watch(()=>s.type,async()=>{await nextTick(),M(),v()}),onMounted(()=>{!s.formatter&&s.parser,M(),nextTick(v)}),e({input:m,textarea:y,ref:k,textareaStyle:_e,autosize:toRef(s,"autosize"),isComposing:Oe,focus:Ne,blur:_n,select:Bn,clear:Sn,resizeTextarea:v}),(Tn,Pn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(i),{[unref(x).bm("group","append")]:Tn.$slots.append,[unref(x).bm("group","prepend")]:Tn.$slots.prepend}]),style:normalizeStyle(unref(Ce)),onMouseenter:bn,onMouseleave:wn},[createCommentVNode(" input "),Tn.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),Tn.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(x).be("group","prepend"))},[renderSlot(Tn.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref_key:"wrapperRef",ref:_,class:normalizeClass(unref(g))},[createCommentVNode(" prefix slot "),Tn.$slots.prefix||Tn.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(x).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(x).e("prefix-inner"))},[renderSlot(Tn.$slots,"prefix"),Tn.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(x).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Tn.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(f),ref_key:"input",ref:m,class:unref(x).e("inner")},unref(l),{name:Tn.name,minlength:Tn.minlength,maxlength:Tn.maxlength,type:Tn.showPassword?b.value?"text":"password":Tn.type,disabled:unref(T),readonly:Tn.readonly,autocomplete:Tn.autocomplete,tabindex:Tn.tabindex,"aria-label":Tn.ariaLabel,placeholder:Tn.placeholder,style:Tn.inputStyle,form:Tn.form,autofocus:Tn.autofocus,role:Tn.containerRole,inputmode:Tn.inputmode,onCompositionstart:unref(Fe),onCompositionupdate:unref(Et),onCompositionend:unref(oe),onInput:Pt,onChange:hn,onKeydown:xn}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),createCommentVNode(" suffix slot "),unref(ze)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(x).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(x).e("suffix-inner"))},[!unref(Ie)||!unref(Lt)||!unref(At)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(Tn.$slots,"suffix"),Tn.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(x).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Tn.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),unref(Ie)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(x).e("icon"),unref(x).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:Sn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Tn.clearIcon)))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),unref(Lt)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(x).e("icon"),unref(x).e("password")]),onClick:kt},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(V))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(At)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(x).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref(x).e("count-inner"))},toDisplayString(unref(ie))+" / "+toDisplayString(Tn.maxlength),3)],2)):createCommentVNode("v-if",!0),unref(w)&&unref(le)&&unref(he)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(x).e("icon"),unref(x).e("validateIcon"),unref(x).is("loading",unref(w)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(le))))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),Tn.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(x).be("group","append"))},[renderSlot(Tn.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(f),ref_key:"textarea",ref:y,class:[unref(c).e("inner"),unref(x).is("focus",unref(ue))]},unref(l),{minlength:Tn.minlength,maxlength:Tn.maxlength,tabindex:Tn.tabindex,disabled:unref(T),readonly:Tn.readonly,autocomplete:Tn.autocomplete,style:unref(_e),"aria-label":Tn.ariaLabel,placeholder:Tn.placeholder,form:Tn.form,autofocus:Tn.autofocus,rows:Tn.rows,role:Tn.containerRole,onCompositionstart:unref(Fe),onCompositionupdate:unref(Et),onCompositionend:unref(oe),onInput:Pt,onFocus:unref(re),onBlur:unref(de),onChange:hn,onKeydown:xn}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),unref(At)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle(j.value),class:normalizeClass(unref(x).e("count"))},toDisplayString(unref(ie))+" / "+toDisplayString(Tn.maxlength),7)):createCommentVNode("v-if",!0)],64))],38))}});var Input=_export_sfc(_sfc_main$E,[["__file","input.vue"]]);const ElInput=withInstall(Input),GAP=4,BAR_MAP={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},renderThumbStyle=({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}),scrollbarContextKey=Symbol("scrollbarContextKey"),thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),COMPONENT_NAME$7="Thumb",_sfc_main$D=defineComponent({__name:"thumb",props:thumbProps,setup(t){const e=t,n=inject(scrollbarContextKey),s=useNamespace("scrollbar");n||throwError(COMPONENT_NAME$7,"can not inject scrollbar context");const u=ref(),l=ref(),o=ref({}),i=ref(!1);let g=!1,d=!1,r=0,f=0,L=isClient?document.onselectstart:null;const T=computed(()=>BAR_MAP[e.vertical?"vertical":"horizontal"]),x=computed(()=>renderThumbStyle({size:e.size,move:e.move,bar:T.value})),c=computed(()=>u.value[T.value.offset]**2/n.wrapElement[T.value.scrollSize]/e.ratio/l.value[T.value.offset]),m=ue=>{var re;if(ue.stopPropagation(),ue.ctrlKey||[1,2].includes(ue.button))return;(re=window.getSelection())==null||re.removeAllRanges(),O(ue);const de=ue.currentTarget;de&&(o.value[T.value.axis]=de[T.value.offset]-(ue[T.value.client]-de.getBoundingClientRect()[T.value.direction]))},y=ue=>{if(!l.value||!u.value||!n.wrapElement)return;const re=Math.abs(ue.target.getBoundingClientRect()[T.value.direction]-ue[T.value.client]),de=l.value[T.value.offset]/2,he=(re-de)*100*c.value/u.value[T.value.offset];n.wrapElement[T.value.scroll]=he*n.wrapElement[T.value.scrollSize]/100},O=ue=>{ue.stopImmediatePropagation(),g=!0,r=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",b),document.addEventListener("mouseup",j),L=document.onselectstart,document.onselectstart=()=>!1},b=ue=>{if(!u.value||!l.value||g===!1)return;const re=o.value[T.value.axis];if(!re)return;const de=(u.value.getBoundingClientRect()[T.value.direction]-ue[T.value.client])*-1,he=l.value[T.value.offset]-re,w=(de-he)*100*c.value/u.value[T.value.offset];T.value.scroll==="scrollLeft"?n.wrapElement[T.value.scroll]=w*f/100:n.wrapElement[T.value.scroll]=w*r/100},j=()=>{g=!1,o.value[T.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",j),_(),d&&(i.value=!1)},F=()=>{d=!1,i.value=!!e.size},k=()=>{d=!0,i.value=g};onBeforeUnmount(()=>{_(),document.removeEventListener("mouseup",j)});const _=()=>{document.onselectstart!==L&&(document.onselectstart=L)};return useEventListener(toRef(n,"scrollbarElement"),"mousemove",F),useEventListener(toRef(n,"scrollbarElement"),"mouseleave",k),(ue,re)=>(openBlock(),createBlock(Transition,{name:unref(s).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:u,class:normalizeClass([unref(s).e("bar"),unref(s).is(unref(T).key)]),onMousedown:y,onClick:withModifiers(()=>{},["stop"])},[createBaseVNode("div",{ref_key:"thumb",ref:l,class:normalizeClass(unref(s).e("thumb")),style:normalizeStyle(unref(x)),onMousedown:m},null,38)],42,["onClick"]),[[vShow,ue.always||i.value]])]),_:1},8,["name"]))}});var Thumb=_export_sfc(_sfc_main$D,[["__file","thumb.vue"]]);const barProps=buildProps({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),_sfc_main$C=defineComponent({__name:"bar",props:barProps,setup(t,{expose:e}){const n=t,s=inject(scrollbarContextKey),u=ref(0),l=ref(0),o=ref(""),i=ref(""),g=ref(1),d=ref(1);return e({handleScroll:L=>{if(L){const T=L.offsetHeight-GAP,x=L.offsetWidth-GAP;l.value=L.scrollTop*100/T*g.value,u.value=L.scrollLeft*100/x*d.value}},update:()=>{const L=s?.wrapElement;if(!L)return;const T=L.offsetHeight-GAP,x=L.offsetWidth-GAP,c=T**2/L.scrollHeight,m=x**2/L.scrollWidth,y=Math.max(c,n.minSize),O=Math.max(m,n.minSize);g.value=c/(T-c)/(y/(T-y)),d.value=m/(x-m)/(O/(x-O)),i.value=y+GAP<T?`${y}px`:"",o.value=O+GAP<x?`${O}px`:""}}),(L,T)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(Thumb,{move:u.value,ratio:d.value,size:o.value,always:L.always},null,8,["move","ratio","size","always"]),createVNode(Thumb,{move:l.value,ratio:g.value,size:i.value,vertical:"",always:L.always},null,8,["move","ratio","size","always"])],64))}});var Bar=_export_sfc(_sfc_main$C,[["__file","bar.vue"]]);const scrollbarProps=buildProps({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:definePropType([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...useAriaProps(["ariaLabel","ariaOrientation"])}),scrollbarEmits={"end-reached":t=>["left","right","top","bottom"].includes(t),scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(isNumber$1)},COMPONENT_NAME$6="ElScrollbar",__default__$r=defineComponent({name:COMPONENT_NAME$6}),_sfc_main$B=defineComponent({...__default__$r,props:scrollbarProps,emits:scrollbarEmits,setup(t,{expose:e,emit:n}){const s=t,u=useNamespace("scrollbar");let l,o,i,g=0,d=0,r="";const f={bottom:!1,top:!1,right:!1,left:!1},L=ref(),T=ref(),x=ref(),c=ref(),m=computed(()=>{const he={};return s.height&&(he.height=addUnit(s.height)),s.maxHeight&&(he.maxHeight=addUnit(s.maxHeight)),[s.wrapStyle,he]}),y=computed(()=>[s.wrapClass,u.e("wrap"),{[u.em("wrap","hidden-default")]:!s.native}]),O=computed(()=>[u.e("view"),s.viewClass]),b=he=>{var w;return(w=f[he])!=null?w:!1},j={top:"bottom",bottom:"top",left:"right",right:"left"},F=he=>{const w=j[r];if(!w)return;const le=he[r],V=he[w];le&&!f[r]&&(f[r]=!0),!V&&f[w]&&(f[w]=!1)},k=()=>{var he;if(T.value){(he=c.value)==null||he.handleScroll(T.value);const w=g,le=d;g=T.value.scrollTop,d=T.value.scrollLeft;const V={bottom:g+T.value.clientHeight>=T.value.scrollHeight-s.distance,top:g<=s.distance&&w!==0,right:d+T.value.clientWidth>=T.value.scrollWidth-s.distance&&le!==d,left:d<=s.distance&&le!==0};if(n("scroll",{scrollTop:g,scrollLeft:d}),w!==g&&(r=g>w?"bottom":"top"),le!==d&&(r=d>le?"right":"left"),s.distance>0){if(b(r))return;F(V)}V[r]&&n("end-reached",r)}};function _(he,w){isObject$2(he)?T.value.scrollTo(he):isNumber$1(he)&&isNumber$1(w)&&T.value.scrollTo(he,w)}const ue=he=>{isNumber$1(he)&&(T.value.scrollTop=he)},re=he=>{isNumber$1(he)&&(T.value.scrollLeft=he)},de=()=>{var he;(he=c.value)==null||he.update(),f[r]=!1};return watch(()=>s.noresize,he=>{he?(l?.(),o?.(),i?.()):({stop:l}=useResizeObserver(x,de),{stop:o}=useResizeObserver(T,de),i=useEventListener("resize",de))},{immediate:!0}),watch(()=>[s.maxHeight,s.height],()=>{s.native||nextTick(()=>{var he;de(),T.value&&((he=c.value)==null||he.handleScroll(T.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:L,wrapElement:T})),onActivated(()=>{T.value&&(T.value.scrollTop=g,T.value.scrollLeft=d)}),onMounted(()=>{s.native||nextTick(()=>{de()})}),onUpdated(()=>de()),e({wrapRef:T,update:de,scrollTo:_,setScrollTop:ue,setScrollLeft:re,handleScroll:k}),(he,w)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:L,class:normalizeClass(unref(u).b())},[createBaseVNode("div",{ref_key:"wrapRef",ref:T,class:normalizeClass(unref(y)),style:normalizeStyle(unref(m)),tabindex:he.tabindex,onScroll:k},[(openBlock(),createBlock(resolveDynamicComponent(he.tag),{id:he.id,ref_key:"resizeRef",ref:x,class:normalizeClass(unref(O)),style:normalizeStyle(he.viewStyle),role:he.role,"aria-label":he.ariaLabel,"aria-orientation":he.ariaOrientation},{default:withCtx(()=>[renderSlot(he.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),he.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:c,always:he.always,"min-size":he.minSize},null,8,["always","min-size"]))],2))}});var Scrollbar=_export_sfc(_sfc_main$B,[["__file","scrollbar.vue"]]);const ElScrollbar=withInstall(Scrollbar),POPPER_INJECTION_KEY=Symbol("popper"),POPPER_CONTENT_INJECTION_KEY=Symbol("popperContent"),roleTypes=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],popperProps=buildProps({role:{type:String,values:roleTypes,default:"tooltip"}}),__default__$q=defineComponent({name:"ElPopper",inheritAttrs:!1}),_sfc_main$A=defineComponent({...__default__$q,props:popperProps,setup(t,{expose:e}){const n=t,s=ref(),u=ref(),l=ref(),o=ref(),i=computed(()=>n.role),g={triggerRef:s,popperInstanceRef:u,contentRef:l,referenceRef:o,role:i};return e(g),provide(POPPER_INJECTION_KEY,g),(d,r)=>renderSlot(d.$slots,"default")}});var Popper=_export_sfc(_sfc_main$A,[["__file","popper.vue"]]);const __default__$p=defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),_sfc_main$z=defineComponent({...__default__$p,setup(t,{expose:e}){const n=useNamespace("popper"),{arrowRef:s,arrowStyle:u}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return onBeforeUnmount(()=>{s.value=void 0}),e({arrowRef:s}),(l,o)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:s,class:normalizeClass(unref(n).e("arrow")),style:normalizeStyle(unref(u)),"data-popper-arrow":""},null,6))}});var ElPopperArrow=_export_sfc(_sfc_main$z,[["__file","arrow.vue"]]);const popperTriggerProps=buildProps({virtualRef:{type:definePropType(Object)},virtualTriggering:Boolean,onMouseenter:{type:definePropType(Function)},onMouseleave:{type:definePropType(Function)},onClick:{type:definePropType(Function)},onKeydown:{type:definePropType(Function)},onFocus:{type:definePropType(Function)},onBlur:{type:definePropType(Function)},onContextmenu:{type:definePropType(Function)},id:String,open:Boolean}),FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=t=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:n=>{t.value=n}})},useForwardRefDirective=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),NAME="ElOnlyChild",OnlyChild=defineComponent({name:NAME,setup(t,{slots:e,attrs:n}){var s;const u=inject(FORWARD_REF_INJECTION_KEY),l=useForwardRefDirective((s=u?.setForwardRef)!=null?s:NOOP);return()=>{var o;const i=(o=e.default)==null?void 0:o.call(e,n);if(!i)return null;const[g,d]=findFirstLegitChild(i);return g?withDirectives(cloneVNode(g,n),[[l]]):null}}});function findFirstLegitChild(t){if(!t)return[null,0];const e=t,n=e.filter(s=>s.type!==Comment).length;for(const s of e){if(isObject$2(s))switch(s.type){case Comment:continue;case Text:case"svg":return[wrapTextContent(s),n];case Fragment:return findFirstLegitChild(s.children);default:return[s,n]}return[wrapTextContent(s),n]}return[null,0]}function wrapTextContent(t){const e=useNamespace("only-child");return createVNode("span",{class:e.e("content")},[t])}const __default__$o=defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),_sfc_main$y=defineComponent({...__default__$o,props:popperTriggerProps,setup(t,{expose:e}){const n=t,{role:s,triggerRef:u}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef(u);const l=computed(()=>i.value?n.id:void 0),o=computed(()=>{if(s&&s.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=computed(()=>{if(s&&s.value!=="tooltip")return s.value}),g=computed(()=>i.value?`${n.open}`:void 0);let d;const r=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return onMounted(()=>{watch(()=>n.virtualRef,f=>{f&&(u.value=unrefElement(f))},{immediate:!0}),watch(u,(f,L)=>{d?.(),d=void 0,isElement(f)&&(r.forEach(T=>{var x;const c=n[T];c&&(f.addEventListener(T.slice(2).toLowerCase(),c,["onFocus","onBlur"].includes(T)),(x=L?.removeEventListener)==null||x.call(L,T.slice(2).toLowerCase(),c,["onFocus","onBlur"].includes(T)))}),isFocusable(f)&&(d=watch([l,o,i,g],T=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((x,c)=>{isNil(T[c])?f.removeAttribute(x):f.setAttribute(x,T[c])})},{immediate:!0}))),isElement(L)&&isFocusable(L)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(T=>L.removeAttribute(T))},{immediate:!0})}),onBeforeUnmount(()=>{if(d?.(),d=void 0,u.value&&isElement(u.value)){const f=u.value;r.forEach(L=>{const T=n[L];T&&f.removeEventListener(L.slice(2).toLowerCase(),T,["onFocus","onBlur"].includes(L))}),u.value=void 0}}),e({triggerRef:u}),(f,L)=>f.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},f.$attrs,{"aria-controls":unref(l),"aria-describedby":unref(o),"aria-expanded":unref(g),"aria-haspopup":unref(i)}),{default:withCtx(()=>[renderSlot(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ElPopperTrigger=_export_sfc(_sfc_main$y,[["__file","trigger.vue"]]);const FOCUS_AFTER_TRAPPED="focus-trap.focus-after-trapped",FOCUS_AFTER_RELEASED="focus-trap.focus-after-released",FOCUSOUT_PREVENTED="focus-trap.focusout-prevented",FOCUS_AFTER_TRAPPED_OPTS={cancelable:!0,bubbles:!1},FOCUSOUT_PREVENTED_OPTS={cancelable:!0,bubbles:!1},ON_TRAP_FOCUS_EVT="focusAfterTrapped",ON_RELEASE_FOCUS_EVT="focusAfterReleased",FOCUS_TRAP_INJECTION_KEY=Symbol("elFocusTrap"),focusReason=ref(),lastUserFocusTimestamp=ref(0),lastAutomatedFocusTimestamp=ref(0);let focusReasonUserCount=0;const obtainAllFocusableElements=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const u=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||u?NodeFilter.FILTER_SKIP:s.tabIndex>=0||s===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},getVisibleElement=(t,e)=>{for(const n of t)if(!isHidden(n,e))return n},isHidden=(t,e)=>{if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},getEdges=t=>{const e=obtainAllFocusableElements(t),n=getVisibleElement(e,t),s=getVisibleElement(e.reverse(),t);return[n,s]},isSelectable=t=>t instanceof HTMLInputElement&&"select"in t,tryFocus=(t,e)=>{if(t){const n=document.activeElement;focusElement(t,{preventScroll:!0}),lastAutomatedFocusTimestamp.value=window.performance.now(),t!==n&&isSelectable(t)&&e&&t.select()}};function removeFromStack(t,e){const n=[...t],s=t.indexOf(e);return s!==-1&&n.splice(s,1),n}const createFocusableStack=()=>{let t=[];return{push:s=>{const u=t[0];u&&s!==u&&u.pause(),t=removeFromStack(t,s),t.unshift(s)},remove:s=>{var u,l;t=removeFromStack(t,s),(l=(u=t[0])==null?void 0:u.resume)==null||l.call(u)}}},focusFirstDescendant=(t,e=!1)=>{const n=document.activeElement;for(const s of t)if(tryFocus(s,e),document.activeElement!==n)return},focusableStack=createFocusableStack(),isFocusCausedByUserEvent=()=>lastUserFocusTimestamp.value>lastAutomatedFocusTimestamp.value,notifyFocusReasonPointer=()=>{focusReason.value="pointer",lastUserFocusTimestamp.value=window.performance.now()},notifyFocusReasonKeydown=()=>{focusReason.value="keyboard",lastUserFocusTimestamp.value=window.performance.now()},useFocusReason=()=>(onMounted(()=>{focusReasonUserCount===0&&(document.addEventListener("mousedown",notifyFocusReasonPointer),document.addEventListener("touchstart",notifyFocusReasonPointer),document.addEventListener("keydown",notifyFocusReasonKeydown)),focusReasonUserCount++}),onBeforeUnmount(()=>{focusReasonUserCount--,focusReasonUserCount<=0&&(document.removeEventListener("mousedown",notifyFocusReasonPointer),document.removeEventListener("touchstart",notifyFocusReasonPointer),document.removeEventListener("keydown",notifyFocusReasonKeydown))}),{focusReason,lastUserFocusTimestamp,lastAutomatedFocusTimestamp}),createFocusOutPreventedEvent=t=>new CustomEvent(FOCUSOUT_PREVENTED,{...FOCUSOUT_PREVENTED_OPTS,detail:t}),EVENT_CODE={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},composeEventHandlers=(t,e,{checkForDefaultPrevented:n=!0}={})=>u=>{const l=t?.(u);if(n===!1||!l)return e?.(u)},getEventCode=t=>{if(t.code&&t.code!=="Unidentified")return t.code;const e=getEventKey(t);if(e){if(Object.values(EVENT_CODE).includes(e))return e;switch(e){case" ":return EVENT_CODE.space;default:return""}}return""},getEventKey=t=>{let e=t.key&&t.key!=="Unidentified"?t.key:"";if(!e&&t.type==="keyup"&&isAndroid()){const n=t.target;e=n.value.charAt(n.selectionStart-1)}return e};let registeredEscapeHandlers=[];const cachedHandler=t=>{getEventCode(t)===EVENT_CODE.esc&&registeredEscapeHandlers.forEach(n=>n(t))},useEscapeKeydown=t=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient&&registeredEscapeHandlers.push(t)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(e=>e!==t),registeredEscapeHandlers.length===0&&isClient&&document.removeEventListener("keydown",cachedHandler)})},_sfc_main$x=defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ON_TRAP_FOCUS_EVT,ON_RELEASE_FOCUS_EVT,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=ref();let s,u;const{focusReason:l}=useFocusReason();useEscapeKeydown(x=>{t.trapped&&!o.paused&&e("release-requested",x)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=x=>{if(!t.loop&&!t.trapped||o.paused)return;const{altKey:c,ctrlKey:m,metaKey:y,currentTarget:O,shiftKey:b}=x,{loop:j}=t,k=getEventCode(x)===EVENT_CODE.tab&&!c&&!m&&!y,_=document.activeElement;if(k&&_){const ue=O,[re,de]=getEdges(ue);if(re&&de){if(!b&&_===de){const w=createFocusOutPreventedEvent({focusReason:l.value});e("focusout-prevented",w),w.defaultPrevented||(x.preventDefault(),j&&tryFocus(re,!0))}else if(b&&[re,ue].includes(_)){const w=createFocusOutPreventedEvent({focusReason:l.value});e("focusout-prevented",w),w.defaultPrevented||(x.preventDefault(),j&&tryFocus(de,!0))}}else if(_===ue){const w=createFocusOutPreventedEvent({focusReason:l.value});e("focusout-prevented",w),w.defaultPrevented||x.preventDefault()}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:n,onKeydown:i}),watch(()=>t.focusTrapEl,x=>{x&&(n.value=x)},{immediate:!0}),watch([n],([x],[c])=>{x&&(x.addEventListener("keydown",i),x.addEventListener("focusin",r),x.addEventListener("focusout",f)),c&&(c.removeEventListener("keydown",i),c.removeEventListener("focusin",r),c.removeEventListener("focusout",f))});const g=x=>{e(ON_TRAP_FOCUS_EVT,x)},d=x=>e(ON_RELEASE_FOCUS_EVT,x),r=x=>{const c=unref(n);if(!c)return;const m=x.target,y=x.relatedTarget,O=m&&c.contains(m);t.trapped||y&&c.contains(y)||(s=y),O&&e("focusin",x),!o.paused&&t.trapped&&(O?u=m:tryFocus(u,!0))},f=x=>{const c=unref(n);if(!(o.paused||!c))if(t.trapped){const m=x.relatedTarget;!isNil(m)&&!c.contains(m)&&setTimeout(()=>{if(!o.paused&&t.trapped){const y=createFocusOutPreventedEvent({focusReason:l.value});e("focusout-prevented",y),y.defaultPrevented||tryFocus(u,!0)}},0)}else{const m=x.target;m&&c.contains(m)||e("focusout",x)}};async function L(){await nextTick();const x=unref(n);if(x){focusableStack.push(o);const c=x.contains(document.activeElement)?s:document.activeElement;if(s=c,!x.contains(c)){const y=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);x.addEventListener(FOCUS_AFTER_TRAPPED,g),x.dispatchEvent(y),y.defaultPrevented||nextTick(()=>{let O=t.focusStartEl;isString$2(O)||(tryFocus(O),document.activeElement!==O&&(O="first")),O==="first"&&focusFirstDescendant(obtainAllFocusableElements(x),!0),(document.activeElement===c||O==="container")&&tryFocus(x)})}}}function T(){const x=unref(n);if(x){x.removeEventListener(FOCUS_AFTER_TRAPPED,g);const c=new CustomEvent(FOCUS_AFTER_RELEASED,{...FOCUS_AFTER_TRAPPED_OPTS,detail:{focusReason:l.value}});x.addEventListener(FOCUS_AFTER_RELEASED,d),x.dispatchEvent(c),!c.defaultPrevented&&(l.value=="keyboard"||!isFocusCausedByUserEvent()||x.contains(document.activeElement))&&tryFocus(s??document.body),x.removeEventListener(FOCUS_AFTER_RELEASED,d),focusableStack.remove(o),s=null,u=null}}return onMounted(()=>{t.trapped&&L(),watch(()=>t.trapped,x=>{x?L():T()})}),onBeforeUnmount(()=>{t.trapped&&T(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",r),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:i}}});function _sfc_render$5(t,e,n,s,u,l){return renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var ElFocusTrap=_export_sfc(_sfc_main$x,[["render",_sfc_render$5],["__file","focus-trap.vue"]]),E="top",R="bottom",W="right",P="left",me="auto",G$1=[E,R,W,P],U="start",J="end",Xe="clippingParents",je="viewport",K="popper",Ye="reference",De=G$1.reduce(function(t,e){return t.concat([e+"-"+U,e+"-"+J])},[]),Ee=[].concat(G$1,[me]).reduce(function(t,e){return t.concat([e,e+"-"+U,e+"-"+J])},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt];function C(t){return t?(t.nodeName||"").toLowerCase():null}function H(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Q(t){var e=H(t).Element;return t instanceof e||t instanceof Element}function B(t){var e=H(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Pe(t){if(typeof ShadowRoot>"u")return!1;var e=H(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Mt(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var s=e.styles[n]||{},u=e.attributes[n]||{},l=e.elements[n];!B(l)||!C(l)||(Object.assign(l.style,s),Object.keys(u).forEach(function(o){var i=u[o];i===!1?l.removeAttribute(o):l.setAttribute(o,i===!0?"":i)}))})}function Rt(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(s){var u=e.elements[s],l=e.attributes[s]||{},o=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:n[s]),i=o.reduce(function(g,d){return g[d]="",g},{});!B(u)||!C(u)||(Object.assign(u.style,i),Object.keys(l).forEach(function(g){u.removeAttribute(g)}))})}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q(t){return t.split("-")[0]}var X=Math.max,ve=Math.min,Z=Math.round;function ee(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),s=1,u=1;if(B(t)&&e){var l=t.offsetHeight,o=t.offsetWidth;o>0&&(s=Z(n.width)/o||1),l>0&&(u=Z(n.height)/l||1)}return{width:n.width/s,height:n.height/u,top:n.top/u,right:n.right/s,bottom:n.bottom/u,left:n.left/s,x:n.left/s,y:n.top/u}}function ke(t){var e=ee(t),n=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:s}}function it(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Pe(n)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function N(t){return H(t).getComputedStyle(t)}function Wt(t){return["table","td","th"].indexOf(C(t))>=0}function I(t){return((Q(t)?t.ownerDocument:t.document)||window.document).documentElement}function ge(t){return C(t)==="html"?t:t.assignedSlot||t.parentNode||(Pe(t)?t.host:null)||I(t)}function at(t){return!B(t)||N(t).position==="fixed"?null:t.offsetParent}function Bt(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&B(t)){var s=N(t);if(s.position==="fixed")return null}var u=ge(t);for(Pe(u)&&(u=u.host);B(u)&&["html","body"].indexOf(C(u))<0;){var l=N(u);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return u;u=u.parentNode}return null}function se(t){for(var e=H(t),n=at(t);n&&Wt(n)&&N(n).position==="static";)n=at(n);return n&&(C(n)==="html"||C(n)==="body"&&N(n).position==="static")?e:n||Bt(t)||e}function Le(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fe(t,e,n){return X(t,ve(e,n))}function St(t,e,n){var s=fe(t,e,n);return s>n?n:s}function st(){return{top:0,right:0,bottom:0,left:0}}function ft(t){return Object.assign({},st(),t)}function ct(t,e){return e.reduce(function(n,s){return n[s]=t,n},{})}var Tt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,ft(typeof t!="number"?t:ct(t,G$1))};function Ht(t){var e,n=t.state,s=t.name,u=t.options,l=n.elements.arrow,o=n.modifiersData.popperOffsets,i=q(n.placement),g=Le(i),d=[P,W].indexOf(i)>=0,r=d?"height":"width";if(!(!l||!o)){var f=Tt(u.padding,n),L=ke(l),T=g==="y"?E:P,x=g==="y"?R:W,c=n.rects.reference[r]+n.rects.reference[g]-o[g]-n.rects.popper[r],m=o[g]-n.rects.reference[g],y=se(l),O=y?g==="y"?y.clientHeight||0:y.clientWidth||0:0,b=c/2-m/2,j=f[T],F=O-L[r]-f[x],k=O/2-L[r]/2+b,_=fe(j,k,F),ue=g;n.modifiersData[s]=(e={},e[ue]=_,e.centerOffset=_-k,e)}}function Ct(t){var e=t.state,n=t.options,s=n.element,u=s===void 0?"[data-popper-arrow]":s;u!=null&&(typeof u=="string"&&(u=e.elements.popper.querySelector(u),!u)||!it(e.elements.popper,u)||(e.elements.arrow=u))}var pt={name:"arrow",enabled:!0,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(t){return t.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt(t){var e=t.x,n=t.y,s=window,u=s.devicePixelRatio||1;return{x:Z(e*u)/u||0,y:Z(n*u)/u||0}}function ut(t){var e,n=t.popper,s=t.popperRect,u=t.placement,l=t.variation,o=t.offsets,i=t.position,g=t.gpuAcceleration,d=t.adaptive,r=t.roundOffsets,f=t.isFixed,L=o.x,T=L===void 0?0:L,x=o.y,c=x===void 0?0:x,m=typeof r=="function"?r({x:T,y:c}):{x:T,y:c};T=m.x,c=m.y;var y=o.hasOwnProperty("x"),O=o.hasOwnProperty("y"),b=P,j=E,F=window;if(d){var k=se(n),_="clientHeight",ue="clientWidth";if(k===H(n)&&(k=I(n),N(k).position!=="static"&&i==="absolute"&&(_="scrollHeight",ue="scrollWidth")),k=k,u===E||(u===P||u===W)&&l===J){j=R;var re=f&&k===F&&F.visualViewport?F.visualViewport.height:k[_];c-=re-s.height,c*=g?1:-1}if(u===P||(u===E||u===R)&&l===J){b=W;var de=f&&k===F&&F.visualViewport?F.visualViewport.width:k[ue];T-=de-s.width,T*=g?1:-1}}var he=Object.assign({position:i},d&&qt),w=r===!0?Vt({x:T,y:c}):{x:T,y:c};if(T=w.x,c=w.y,g){var le;return Object.assign({},he,(le={},le[j]=O?"0":"",le[b]=y?"0":"",le.transform=(F.devicePixelRatio||1)<=1?"translate("+T+"px, "+c+"px)":"translate3d("+T+"px, "+c+"px, 0)",le))}return Object.assign({},he,(e={},e[j]=O?c+"px":"",e[b]=y?T+"px":"",e.transform="",e))}function Nt(t){var e=t.state,n=t.options,s=n.gpuAcceleration,u=s===void 0?!0:s,l=n.adaptive,o=l===void 0?!0:l,i=n.roundOffsets,g=i===void 0?!0:i,d={placement:q(e.placement),variation:te(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:u,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ut(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:g})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ut(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:g})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt,data:{}},ye={passive:!0};function It(t){var e=t.state,n=t.instance,s=t.options,u=s.scroll,l=u===void 0?!0:u,o=s.resize,i=o===void 0?!0:o,g=H(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&d.forEach(function(r){r.addEventListener("scroll",n.update,ye)}),i&&g.addEventListener("resize",n.update,ye),function(){l&&d.forEach(function(r){r.removeEventListener("scroll",n.update,ye)}),i&&g.removeEventListener("resize",n.update,ye)}}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,function(e){return _t[e]})}var zt={start:"end",end:"start"};function lt(t){return t.replace(/start|end/g,function(e){return zt[e]})}function We(t){var e=H(t),n=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:n,scrollTop:s}}function Be(t){return ee(I(t)).left+We(t).scrollLeft}function Ft(t){var e=H(t),n=I(t),s=e.visualViewport,u=n.clientWidth,l=n.clientHeight,o=0,i=0;return s&&(u=s.width,l=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=s.offsetLeft,i=s.offsetTop)),{width:u,height:l,x:o+Be(t),y:i}}function Ut(t){var e,n=I(t),s=We(t),u=(e=t.ownerDocument)==null?void 0:e.body,l=X(n.scrollWidth,n.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),o=X(n.scrollHeight,n.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),i=-s.scrollLeft+Be(t),g=-s.scrollTop;return N(u||n).direction==="rtl"&&(i+=X(n.clientWidth,u?u.clientWidth:0)-l),{width:l,height:o,x:i,y:g}}function Se(t){var e=N(t),n=e.overflow,s=e.overflowX,u=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+u+s)}function dt(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:B(t)&&Se(t)?t:dt(ge(t))}function ce(t,e){var n;e===void 0&&(e=[]);var s=dt(t),u=s===((n=t.ownerDocument)==null?void 0:n.body),l=H(s),o=u?[l].concat(l.visualViewport||[],Se(s)?s:[]):s,i=e.concat(o);return u?i:i.concat(ce(ge(o)))}function Te(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xt(t){var e=ee(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function ht(t,e){return e===je?Te(Ft(t)):Q(e)?Xt(e):Te(Ut(I(t)))}function Yt(t){var e=ce(ge(t)),n=["absolute","fixed"].indexOf(N(t).position)>=0,s=n&&B(t)?se(t):t;return Q(s)?e.filter(function(u){return Q(u)&&it(u,s)&&C(u)!=="body"}):[]}function Gt(t,e,n){var s=e==="clippingParents"?Yt(t):[].concat(e),u=[].concat(s,[n]),l=u[0],o=u.reduce(function(i,g){var d=ht(t,g);return i.top=X(d.top,i.top),i.right=ve(d.right,i.right),i.bottom=ve(d.bottom,i.bottom),i.left=X(d.left,i.left),i},ht(t,l));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function mt(t){var e=t.reference,n=t.element,s=t.placement,u=s?q(s):null,l=s?te(s):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,g;switch(u){case E:g={x:o,y:e.y-n.height};break;case R:g={x:o,y:e.y+e.height};break;case W:g={x:e.x+e.width,y:i};break;case P:g={x:e.x-n.width,y:i};break;default:g={x:e.x,y:e.y}}var d=u?Le(u):null;if(d!=null){var r=d==="y"?"height":"width";switch(l){case U:g[d]=g[d]-(e[r]/2-n[r]/2);break;case J:g[d]=g[d]+(e[r]/2-n[r]/2);break}}return g}function ne(t,e){e===void 0&&(e={});var n=e,s=n.placement,u=s===void 0?t.placement:s,l=n.boundary,o=l===void 0?Xe:l,i=n.rootBoundary,g=i===void 0?je:i,d=n.elementContext,r=d===void 0?K:d,f=n.altBoundary,L=f===void 0?!1:f,T=n.padding,x=T===void 0?0:T,c=ft(typeof x!="number"?x:ct(x,G$1)),m=r===K?Ye:K,y=t.rects.popper,O=t.elements[L?m:r],b=Gt(Q(O)?O:O.contextElement||I(t.elements.popper),o,g),j=ee(t.elements.reference),F=mt({reference:j,element:y,placement:u}),k=Te(Object.assign({},y,F)),_=r===K?k:j,ue={top:b.top-_.top+c.top,bottom:_.bottom-b.bottom+c.bottom,left:b.left-_.left+c.left,right:_.right-b.right+c.right},re=t.modifiersData.offset;if(r===K&&re){var de=re[u];Object.keys(ue).forEach(function(he){var w=[W,R].indexOf(he)>=0?1:-1,le=[E,R].indexOf(he)>=0?"y":"x";ue[he]+=de[le]*w})}return ue}function Jt(t,e){e===void 0&&(e={});var n=e,s=n.placement,u=n.boundary,l=n.rootBoundary,o=n.padding,i=n.flipVariations,g=n.allowedAutoPlacements,d=g===void 0?Ee:g,r=te(s),f=r?i?De:De.filter(function(x){return te(x)===r}):G$1,L=f.filter(function(x){return d.indexOf(x)>=0});L.length===0&&(L=f);var T=L.reduce(function(x,c){return x[c]=ne(t,{placement:c,boundary:u,rootBoundary:l,padding:o})[q(c)],x},{});return Object.keys(T).sort(function(x,c){return T[x]-T[c]})}function Kt(t){if(q(t)===me)return[];var e=be(t);return[lt(t),e,lt(e)]}function Qt(t){var e=t.state,n=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var u=n.mainAxis,l=u===void 0?!0:u,o=n.altAxis,i=o===void 0?!0:o,g=n.fallbackPlacements,d=n.padding,r=n.boundary,f=n.rootBoundary,L=n.altBoundary,T=n.flipVariations,x=T===void 0?!0:T,c=n.allowedAutoPlacements,m=e.options.placement,y=q(m),O=y===m,b=g||(O||!x?[be(m)]:Kt(m)),j=[m].concat(b).reduce(function(z,Dt){return z.concat(q(Dt)===me?Jt(e,{placement:Dt,boundary:r,rootBoundary:f,padding:d,flipVariations:x,allowedAutoPlacements:c}):Dt)},[]),F=e.rects.reference,k=e.rects.popper,_=new Map,ue=!0,re=j[0],de=0;de<j.length;de++){var he=j[de],w=q(he),le=te(he)===U,V=[E,R].indexOf(w)>=0,Ce=V?"width":"height",_e=ne(e,{placement:he,boundary:r,rootBoundary:f,altBoundary:L,padding:d}),D=V?le?W:P:le?R:E;F[Ce]>k[Ce]&&(D=be(D));var Ie=be(D),Lt=[];if(l&&Lt.push(_e[w]<=0),i&&Lt.push(_e[D]<=0,_e[Ie]<=0),Lt.every(function(z){return z})){re=he,ue=!1;break}_.set(he,Lt)}if(ue)for(var At=x?3:1,ie=function(z){var Dt=j.find(function(v){var S=_.get(v);if(S)return S.slice(0,z).every(function(Ue){return Ue})});if(Dt)return re=Dt,"break"},Ve=At;Ve>0;Ve--){var ze=ie(Ve);if(ze==="break")break}e.placement!==re&&(e.modifiersData[s]._skip=!0,e.placement=re,e.reset=!0)}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function yt(t){return[E,W,R,P].some(function(e){return t[e]>=0})}function Zt(t){var e=t.state,n=t.name,s=e.rects.reference,u=e.rects.popper,l=e.modifiersData.preventOverflow,o=ne(e,{elementContext:"reference"}),i=ne(e,{altBoundary:!0}),g=gt(o,s),d=gt(i,u,l),r=yt(g),f=yt(d);e.modifiersData[n]={referenceClippingOffsets:g,popperEscapeOffsets:d,isReferenceHidden:r,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":f})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en(t,e,n){var s=q(t),u=[P,E].indexOf(s)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=l[0],i=l[1];return o=o||0,i=(i||0)*u,[P,W].indexOf(s)>=0?{x:i,y:o}:{x:o,y:i}}function tn(t){var e=t.state,n=t.options,s=t.name,u=n.offset,l=u===void 0?[0,0]:u,o=Ee.reduce(function(r,f){return r[f]=en(f,e.rects,l),r},{}),i=o[e.placement],g=i.x,d=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=g,e.modifiersData.popperOffsets.y+=d),e.modifiersData[s]=o}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn(t){var e=t.state,n=t.name;e.modifiersData[n]=mt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn(t){return t==="x"?"y":"x"}function on(t){var e=t.state,n=t.options,s=t.name,u=n.mainAxis,l=u===void 0?!0:u,o=n.altAxis,i=o===void 0?!1:o,g=n.boundary,d=n.rootBoundary,r=n.altBoundary,f=n.padding,L=n.tether,T=L===void 0?!0:L,x=n.tetherOffset,c=x===void 0?0:x,m=ne(e,{boundary:g,rootBoundary:d,padding:f,altBoundary:r}),y=q(e.placement),O=te(e.placement),b=!O,j=Le(y),F=rn(j),k=e.modifiersData.popperOffsets,_=e.rects.reference,ue=e.rects.popper,re=typeof c=="function"?c(Object.assign({},e.rects,{placement:e.placement})):c,de=typeof re=="number"?{mainAxis:re,altAxis:re}:Object.assign({mainAxis:0,altAxis:0},re),he=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,w={x:0,y:0};if(k){if(l){var le,V=j==="y"?E:P,Ce=j==="y"?R:W,_e=j==="y"?"height":"width",D=k[j],Ie=D+m[V],Lt=D-m[Ce],At=T?-ue[_e]/2:0,ie=O===U?_[_e]:ue[_e],Ve=O===U?-ue[_e]:-_[_e],ze=e.elements.arrow,z=T&&ze?ke(ze):{width:0,height:0},Dt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:st(),v=Dt[V],S=Dt[Ce],Ue=fe(0,_[_e],z[_e]),M=b?_[_e]/2-At-Ue-v-de.mainAxis:ie-Ue-v-de.mainAxis,Pt=b?-_[_e]/2+At+Ue+S+de.mainAxis:Ve+Ue+S+de.mainAxis,hn=e.elements.arrow&&se(e.elements.arrow),Oe=hn?j==="y"?hn.clientTop||0:hn.clientLeft||0:0,Fe=(le=he?.[j])!=null?le:0,Et=D+M-Fe-Oe,oe=D+Pt-Fe,kt=fe(T?ve(Ie,Et):Ie,D,T?X(Lt,oe):Lt);k[j]=kt,w[j]=kt-D}if(i){var Ne,_n=j==="x"?E:P,wn=j==="x"?R:W,bn=k[F],xn=F==="y"?"height":"width",Bn=bn+m[_n],Sn=bn-m[wn],Tn=[E,P].indexOf(y)!==-1,Pn=(Ne=he?.[F])!=null?Ne:0,Rn=Tn?Bn:bn-_[xn]-ue[xn]-Pn+de.altAxis,In=Tn?bn+_[xn]+ue[xn]-Pn-de.altAxis:Sn,On=T&&Tn?St(Rn,bn,In):fe(T?Rn:Bn,bn,T?In:Sn);k[F]=On,w[F]=On-bn}e.modifiersData[s]=w}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function sn(t){return t===H(t)||!B(t)?We(t):an(t)}function fn(t){var e=t.getBoundingClientRect(),n=Z(e.width)/t.offsetWidth||1,s=Z(e.height)/t.offsetHeight||1;return n!==1||s!==1}function cn(t,e,n){n===void 0&&(n=!1);var s=B(e),u=B(e)&&fn(e),l=I(e),o=ee(t,u),i={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(s||!s&&!n)&&((C(e)!=="body"||Se(l))&&(i=sn(e)),B(e)?(g=ee(e,!0),g.x+=e.clientLeft,g.y+=e.clientTop):l&&(g.x=Be(l))),{x:o.left+i.scrollLeft-g.x,y:o.top+i.scrollTop-g.y,width:o.width,height:o.height}}function pn(t){var e=new Map,n=new Set,s=[];t.forEach(function(l){e.set(l.name,l)});function u(l){n.add(l.name);var o=[].concat(l.requires||[],l.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var g=e.get(i);g&&u(g)}}),s.push(l)}return t.forEach(function(l){n.has(l.name)||u(l)}),s}function un(t){var e=pn(t);return ot.reduce(function(n,s){return n.concat(e.filter(function(u){return u.phase===s}))},[])}function ln(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function dn(t){var e=t.reduce(function(n,s){var u=n[s.name];return n[s.name]=u?Object.assign({},u,s,{options:Object.assign({},u.options,s.options),data:Object.assign({},u.data,s.data)}):s,n},{});return Object.keys(e).map(function(n){return e[n]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function we(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,s=n===void 0?[]:n,u=e.defaultOptions,l=u===void 0?Ot:u;return function(o,i,g){g===void 0&&(g=l);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,l),modifiersData:{},elements:{reference:o,popper:i},attributes:{},styles:{}},r=[],f=!1,L={state:d,setOptions:function(c){var m=typeof c=="function"?c(d.options):c;x(),d.options=Object.assign({},l,d.options,m),d.scrollParents={reference:Q(o)?ce(o):o.contextElement?ce(o.contextElement):[],popper:ce(i)};var y=un(dn([].concat(s,d.options.modifiers)));return d.orderedModifiers=y.filter(function(O){return O.enabled}),T(),L.update()},forceUpdate:function(){if(!f){var c=d.elements,m=c.reference,y=c.popper;if($t(m,y)){d.rects={reference:cn(m,se(y),d.options.strategy==="fixed"),popper:ke(y)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(ue){return d.modifiersData[ue.name]=Object.assign({},ue.data)});for(var O=0;O<d.orderedModifiers.length;O++){if(d.reset===!0){d.reset=!1,O=-1;continue}var b=d.orderedModifiers[O],j=b.fn,F=b.options,k=F===void 0?{}:F,_=b.name;typeof j=="function"&&(d=j({state:d,options:k,name:_,instance:L})||d)}}}},update:ln(function(){return new Promise(function(c){L.forceUpdate(),c(d)})}),destroy:function(){x(),f=!0}};if(!$t(o,i))return L;L.setOptions(g).then(function(c){!f&&g.onFirstUpdate&&g.onFirstUpdate(c)});function T(){d.orderedModifiers.forEach(function(c){var m=c.name,y=c.options,O=y===void 0?{}:y,b=c.effect;if(typeof b=="function"){var j=b({state:d,name:m,instance:L,options:O}),F=function(){};r.push(j||F)}})}function x(){r.forEach(function(c){return c()}),r=[]}return L}}we();var mn=[Re,He,Me,Ae];we({defaultModifiers:mn});var gn=[Re,He,Me,Ae,wt,vt,xt,pt,bt],yn=we({defaultModifiers:gn});const popperArrowProps=buildProps({arrowOffset:{type:Number,default:5}}),POSITIONING_STRATEGIES=["fixed","absolute"],popperCoreConfigProps=buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:definePropType(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ee,default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},strategy:{type:String,values:POSITIONING_STRATEGIES,default:"absolute"}}),popperContentProps=buildProps({...popperCoreConfigProps,...popperArrowProps,id:String,style:{type:definePropType([String,Array,Object])},className:{type:definePropType([String,Array,Object])},effect:{type:definePropType(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:definePropType([String,Array,Object])},popperStyle:{type:definePropType([String,Array,Object])},referenceEl:{type:definePropType(Object)},triggerTargetEl:{type:definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...useAriaProps(["ariaLabel"])}),popperContentEmits={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},usePopperContentFocusTrap=(t,e)=>{const n=ref(!1),s=ref();return{focusStartRef:s,trapped:n,onFocusAfterReleased:d=>{var r;((r=d.detail)==null?void 0:r.focusReason)!=="pointer"&&(s.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:d=>{t.visible&&!n.value&&(d.target&&(s.value=d.target),n.value=!0)},onFocusoutPrevented:d=>{t.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},buildPopperOptions=(t,e=[])=>{const{placement:n,strategy:s,popperOptions:u}=t,l={placement:n,strategy:s,...u,modifiers:[...genModifiers(t),...e]};return deriveExtraModifiers(l,u?.modifiers),l},unwrapMeasurableEl=t=>{if(isClient)return unrefElement(t)};function genModifiers(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:s}=t;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:s}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function deriveExtraModifiers(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const usePopper=(t,e,n={})=>{const s={name:"updateState",enabled:!0,phase:"write",fn:({state:g})=>{const d=deriveState(g);Object.assign(o.value,d)},requires:["computeStyles"]},u=computed(()=>{const{onFirstUpdate:g,placement:d,strategy:r,modifiers:f}=unref(n);return{onFirstUpdate:g,placement:d||"bottom",strategy:r||"absolute",modifiers:[...f||[],s,{name:"applyStyles",enabled:!1}]}}),l=shallowRef(),o=ref({styles:{popper:{position:unref(u).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{l.value&&(l.value.destroy(),l.value=void 0)};return watch(u,g=>{const d=unref(l);d&&d.setOptions(g)},{deep:!0}),watch([t,e],([g,d])=>{i(),!(!g||!d)&&(l.value=yn(g,d,unref(u)))}),onBeforeUnmount(()=>{i()}),{state:computed(()=>{var g;return{...((g=unref(l))==null?void 0:g.state)||{}}}),styles:computed(()=>unref(o).styles),attributes:computed(()=>unref(o).attributes),update:()=>{var g;return(g=unref(l))==null?void 0:g.update()},forceUpdate:()=>{var g;return(g=unref(l))==null?void 0:g.forceUpdate()},instanceRef:computed(()=>unref(l))}};function deriveState(t){const e=Object.keys(t.elements),n=fromPairs(e.map(u=>[u,t.styles[u]||{}])),s=fromPairs(e.map(u=>[u,t.attributes[u]]));return{styles:n,attributes:s}}const DEFAULT_ARROW_OFFSET=0,usePopperContent=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:s,role:u}=inject(POPPER_INJECTION_KEY,void 0),l=ref(),o=computed(()=>t.arrowOffset),i=computed(()=>({name:"eventListeners",enabled:!!t.visible})),g=computed(()=>{var y;const O=unref(l),b=(y=unref(o))!=null?y:DEFAULT_ARROW_OFFSET;return{name:"arrow",enabled:!isUndefined$2(O),options:{element:O,padding:b}}}),d=computed(()=>({onFirstUpdate:()=>{x()},...buildPopperOptions(t,[unref(g),unref(i)])})),r=computed(()=>unwrapMeasurableEl(t.referenceEl)||unref(s)),{attributes:f,state:L,styles:T,update:x,forceUpdate:c,instanceRef:m}=usePopper(r,n,d);return watch(m,y=>e.value=y,{flush:"sync"}),onMounted(()=>{watch(()=>{var y,O;return(O=(y=unref(r))==null?void 0:y.getBoundingClientRect)==null?void 0:O.call(y)},()=>{x()})}),{attributes:f,arrowRef:l,contentRef:n,instanceRef:m,state:L,styles:T,role:u,forceUpdate:c,update:x}},usePopperContentDOM=(t,{attributes:e,styles:n,role:s})=>{const{nextZIndex:u}=useZIndex(),l=useNamespace("popper"),o=computed(()=>unref(e).popper),i=ref(isNumber$1(t.zIndex)?t.zIndex:u()),g=computed(()=>[l.b(),l.is("pure",t.pure),l.is(t.effect),t.popperClass]),d=computed(()=>[{zIndex:unref(i)},unref(n).popper,t.popperStyle||{}]),r=computed(()=>s.value==="dialog"?"false":void 0),f=computed(()=>unref(n).arrow||{});return{ariaModal:r,arrowStyle:f,contentAttrs:o,contentClass:g,contentStyle:d,contentZIndex:i,updateZIndex:()=>{i.value=isNumber$1(t.zIndex)?t.zIndex:u()}}},__default__$n=defineComponent({name:"ElPopperContent"}),_sfc_main$w=defineComponent({...__default__$n,props:popperContentProps,emits:popperContentEmits,setup(t,{expose:e,emit:n}){const s=t,{focusStartRef:u,trapped:l,onFocusAfterReleased:o,onFocusAfterTrapped:i,onFocusInTrap:g,onFocusoutPrevented:d,onReleaseRequested:r}=usePopperContentFocusTrap(s,n),{attributes:f,arrowRef:L,contentRef:T,styles:x,instanceRef:c,role:m,update:y}=usePopperContent(s),{ariaModal:O,arrowStyle:b,contentAttrs:j,contentClass:F,contentStyle:k,updateZIndex:_}=usePopperContentDOM(s,{styles:x,attributes:f,role:m}),ue=inject(formItemContextKey,void 0);provide(POPPER_CONTENT_INJECTION_KEY,{arrowStyle:b,arrowRef:L}),ue&&provide(formItemContextKey,{...ue,addInputId:NOOP,removeInputId:NOOP});let re;const de=(w=!0)=>{y(),w&&_()},he=()=>{de(!1),s.visible&&s.focusOnShow?l.value=!0:s.visible===!1&&(l.value=!1)};return onMounted(()=>{watch(()=>s.triggerTargetEl,(w,le)=>{re?.(),re=void 0;const V=unref(w||T.value),Ce=unref(le||T.value);isElement(V)&&(re=watch([m,()=>s.ariaLabel,O,()=>s.id],_e=>{["role","aria-label","aria-modal","id"].forEach((D,Ie)=>{isNil(_e[Ie])?V.removeAttribute(D):V.setAttribute(D,_e[Ie])})},{immediate:!0})),Ce!==V&&isElement(Ce)&&["role","aria-label","aria-modal","id"].forEach(_e=>{Ce.removeAttribute(_e)})},{immediate:!0}),watch(()=>s.visible,he,{immediate:!0})}),onBeforeUnmount(()=>{re?.(),re=void 0}),e({popperContentRef:T,popperInstanceRef:c,updatePopper:de,contentStyle:k}),(w,le)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:T},unref(j),{style:unref(k),class:unref(F),tabindex:"-1",onMouseenter:V=>w.$emit("mouseenter",V),onMouseleave:V=>w.$emit("mouseleave",V)}),[createVNode(unref(ElFocusTrap),{trapped:unref(l),"trap-on-focus-in":!0,"focus-trap-el":unref(T),"focus-start-el":unref(u),onFocusAfterTrapped:unref(i),onFocusAfterReleased:unref(o),onFocusin:unref(g),onFocusoutPrevented:unref(d),onReleaseRequested:unref(r)},{default:withCtx(()=>[renderSlot(w.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var ElPopperContent=_export_sfc(_sfc_main$w,[["__file","content.vue"]]);const ElPopper=withInstall(Popper),TOOLTIP_INJECTION_KEY=Symbol("elTooltip"),teleportProps=buildProps({to:{type:definePropType([String,Object]),required:!0},disabled:Boolean}),useTooltipContentProps=buildProps({...useDelayedToggleProps,...popperContentProps,appendTo:{type:teleportProps.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...useAriaProps(["ariaLabel"])}),useTooltipTriggerProps=buildProps({...popperTriggerProps,disabled:Boolean,trigger:{type:definePropType([String,Array]),default:"hover"},triggerKeys:{type:definePropType(Array),default:()=>[EVENT_CODE.enter,EVENT_CODE.numpadEnter,EVENT_CODE.space]},focusOnTarget:Boolean}),_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,s=[e],u={[t]:_prop,[n]:_event};return{useModelToggle:({indicator:o,toggleReason:i,shouldHideWhenRouteChanges:g,shouldProceed:d,onShow:r,onHide:f})=>{const L=getCurrentInstance(),{emit:T}=L,x=L.props,c=computed(()=>isFunction$3(x[n])),m=computed(()=>x[t]===null),y=_=>{o.value!==!0&&(o.value=!0,i&&(i.value=_),isFunction$3(r)&&r(_))},O=_=>{o.value!==!1&&(o.value=!1,i&&(i.value=_),isFunction$3(f)&&f(_))},b=_=>{if(x.disabled===!0||isFunction$3(d)&&!d())return;const ue=c.value&&isClient;ue&&T(e,!0),(m.value||!ue)&&y(_)},j=_=>{if(x.disabled===!0||!isClient)return;const ue=c.value&&isClient;ue&&T(e,!1),(m.value||!ue)&&O(_)},F=_=>{isBoolean$1(_)&&(x.disabled&&_?c.value&&T(e,!1):o.value!==_&&(_?y():O()))},k=()=>{o.value?j():b()};return watch(()=>x[t],F),g&&L.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...L.proxy.$route}),()=>{g.value&&o.value&&j()}),onMounted(()=>{F(x[t])}),{hide:j,show:b,toggle:k,hasUpdateHandler:c}},useModelToggleProps:u,useModelToggleEmits:s}},{useModelToggleProps:useTooltipModelToggleProps,useModelToggleEmits:useTooltipModelToggleEmits,useModelToggle:useTooltipModelToggle}=createModelToggleComposable("visible"),useTooltipProps=buildProps({...popperProps,...useTooltipModelToggleProps,...useTooltipContentProps,...useTooltipTriggerProps,...popperArrowProps,showArrow:{type:Boolean,default:!0}}),tooltipEmits=[...useTooltipModelToggleEmits,"before-show","before-hide","show","hide","open","close"],isTriggerType=(t,e)=>isArray$3(t)?t.includes(e):t===e,whenTrigger=(t,e,n)=>s=>{isTriggerType(unref(t),e)&&n(s)},__default__$m=defineComponent({name:"ElTooltipTrigger"}),_sfc_main$v=defineComponent({...__default__$m,props:useTooltipTriggerProps,setup(t,{expose:e}){const n=t,s=useNamespace("tooltip"),{controlled:u,id:l,open:o,onOpen:i,onClose:g,onToggle:d}=inject(TOOLTIP_INJECTION_KEY,void 0),r=ref(null),f=()=>{if(unref(u)||n.disabled)return!0},L=toRef(n,"trigger"),T=composeEventHandlers(f,whenTrigger(L,"hover",j=>{i(j),n.focusOnTarget&&j.target&&nextTick(()=>{focusElement(j.target,{preventScroll:!0})})})),x=composeEventHandlers(f,whenTrigger(L,"hover",g)),c=composeEventHandlers(f,whenTrigger(L,"click",j=>{j.button===0&&d(j)})),m=composeEventHandlers(f,whenTrigger(L,"focus",i)),y=composeEventHandlers(f,whenTrigger(L,"focus",g)),O=composeEventHandlers(f,whenTrigger(L,"contextmenu",j=>{j.preventDefault(),d(j)})),b=composeEventHandlers(f,j=>{const F=getEventCode(j);n.triggerKeys.includes(F)&&(j.preventDefault(),d(j))});return e({triggerRef:r}),(j,F)=>(openBlock(),createBlock(unref(ElPopperTrigger),{id:unref(l),"virtual-ref":j.virtualRef,open:unref(o),"virtual-triggering":j.virtualTriggering,class:normalizeClass(unref(s).e("trigger")),onBlur:unref(y),onClick:unref(c),onContextmenu:unref(O),onFocus:unref(m),onMouseenter:unref(T),onMouseleave:unref(x),onKeydown:unref(b)},{default:withCtx(()=>[renderSlot(j.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ElTooltipTrigger=_export_sfc(_sfc_main$v,[["__file","trigger.vue"]]);const _sfc_main$u=defineComponent({__name:"teleport",props:teleportProps,setup(t){return(e,n)=>e.disabled?renderSlot(e.$slots,"default",{key:0}):(openBlock(),createBlock(Teleport$1,{key:1,to:e.to},[renderSlot(e.$slots,"default")],8,["to"]))}});var Teleport=_export_sfc(_sfc_main$u,[["__file","teleport.vue"]]);const ElTeleport=withInstall(Teleport),usePopperContainerId=()=>{const t=useGetDerivedNamespace(),e=useIdInjection(),n=computed(()=>`${t.value}-popper-container-${e.prefix}`),s=computed(()=>`#${n.value}`);return{id:n,selector:s}},createContainer=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},usePopperContainer=()=>{const{id:t,selector:e}=usePopperContainerId();return onBeforeMount(()=>{isClient&&(document.body.querySelector(e.value)||createContainer(t.value))}),{id:t,selector:e}},castArray=t=>!t&&t!==0?[]:isArray$3(t)?t:[t],__default__$l=defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),_sfc_main$t=defineComponent({...__default__$l,props:useTooltipContentProps,setup(t,{expose:e}){const n=t,{selector:s}=usePopperContainerId(),u=useNamespace("tooltip"),l=ref(),o=computedEager(()=>{var Ie;return(Ie=l.value)==null?void 0:Ie.popperContentRef});let i;const{controlled:g,id:d,open:r,trigger:f,onClose:L,onOpen:T,onShow:x,onHide:c,onBeforeShow:m,onBeforeHide:y}=inject(TOOLTIP_INJECTION_KEY,void 0),O=computed(()=>n.transition||`${u.namespace.value}-fade-in-linear`),b=computed(()=>n.persistent);onBeforeUnmount(()=>{i?.()});const j=computed(()=>unref(b)?!0:unref(r)),F=computed(()=>n.disabled?!1:unref(r)),k=computed(()=>n.appendTo||s.value),_=computed(()=>{var Ie;return(Ie=n.style)!=null?Ie:{}}),ue=ref(!0),re=()=>{c(),D()&&focusElement(document.body,{preventScroll:!0}),ue.value=!0},de=()=>{if(unref(g))return!0},he=composeEventHandlers(de,()=>{n.enterable&&unref(f)==="hover"&&T()}),w=composeEventHandlers(de,()=>{unref(f)==="hover"&&L()}),le=()=>{var Ie,Lt;(Lt=(Ie=l.value)==null?void 0:Ie.updatePopper)==null||Lt.call(Ie),m?.()},V=()=>{y?.()},Ce=()=>{x()},_e=()=>{n.virtualTriggering||L()},D=Ie=>{var Lt;const At=(Lt=l.value)==null?void 0:Lt.popperContentRef,ie=Ie?.relatedTarget||document.activeElement;return At?.contains(ie)};return watch(()=>unref(r),Ie=>{Ie?(ue.value=!1,i=onClickOutside(o,()=>{if(unref(g))return;castArray(unref(f)).every(At=>At!=="hover"&&At!=="focus")&&L()})):i?.()},{flush:"post"}),watch(()=>n.content,()=>{var Ie,Lt;(Lt=(Ie=l.value)==null?void 0:Ie.updatePopper)==null||Lt.call(Ie)}),e({contentRef:l,isFocusInsideContent:D}),(Ie,Lt)=>(openBlock(),createBlock(unref(ElTeleport),{disabled:!Ie.teleported,to:unref(k)},{default:withCtx(()=>[unref(j)||!ue.value?(openBlock(),createBlock(Transition,{key:0,name:unref(O),appear:!unref(b),onAfterLeave:re,onBeforeEnter:le,onAfterEnter:Ce,onBeforeLeave:V,persisted:""},{default:withCtx(()=>[withDirectives(createVNode(unref(ElPopperContent),mergeProps({id:unref(d),ref_key:"contentRef",ref:l},Ie.$attrs,{"aria-label":Ie.ariaLabel,"aria-hidden":ue.value,"boundaries-padding":Ie.boundariesPadding,"fallback-placements":Ie.fallbackPlacements,"gpu-acceleration":Ie.gpuAcceleration,offset:Ie.offset,placement:Ie.placement,"popper-options":Ie.popperOptions,"arrow-offset":Ie.arrowOffset,strategy:Ie.strategy,effect:Ie.effect,enterable:Ie.enterable,pure:Ie.pure,"popper-class":Ie.popperClass,"popper-style":[Ie.popperStyle,unref(_)],"reference-el":Ie.referenceEl,"trigger-target-el":Ie.triggerTargetEl,visible:unref(F),"z-index":Ie.zIndex,onMouseenter:unref(he),onMouseleave:unref(w),onBlur:_e,onClose:unref(L)}),{default:withCtx(()=>[renderSlot(Ie.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"]),[[vShow,unref(F)]])]),_:3},8,["name","appear"])):createCommentVNode("v-if",!0)]),_:3},8,["disabled","to"]))}});var ElTooltipContent=_export_sfc(_sfc_main$t,[["__file","content.vue"]]);const __default__$k=defineComponent({name:"ElTooltip"}),_sfc_main$s=defineComponent({...__default__$k,props:useTooltipProps,emits:tooltipEmits,setup(t,{expose:e,emit:n}){const s=t;usePopperContainer();const u=useNamespace("tooltip"),l=useId(),o=ref(),i=ref(),g=()=>{var b;const j=unref(o);j&&((b=j.popperInstanceRef)==null||b.update())},d=ref(!1),r=ref(),{show:f,hide:L,hasUpdateHandler:T}=useTooltipModelToggle({indicator:d,toggleReason:r}),{onOpen:x,onClose:c}=useDelayedToggle({showAfter:toRef(s,"showAfter"),hideAfter:toRef(s,"hideAfter"),autoClose:toRef(s,"autoClose"),open:f,close:L}),m=computed(()=>isBoolean$1(s.visible)&&!T.value),y=computed(()=>[u.b(),s.popperClass]);provide(TOOLTIP_INJECTION_KEY,{controlled:m,id:l,open:readonly(d),trigger:toRef(s,"trigger"),onOpen:x,onClose:c,onToggle:b=>{unref(d)?c(b):x(b)},onShow:()=>{n("show",r.value)},onHide:()=>{n("hide",r.value)},onBeforeShow:()=>{n("before-show",r.value)},onBeforeHide:()=>{n("before-hide",r.value)},updatePopper:g}),watch(()=>s.disabled,b=>{b&&d.value&&(d.value=!1)});const O=b=>{var j;return(j=i.value)==null?void 0:j.isFocusInsideContent(b)};return onDeactivated(()=>d.value&&L()),e({popperRef:o,contentRef:i,isFocusInsideContent:O,updatePopper:g,onOpen:x,onClose:c,hide:L}),(b,j)=>(openBlock(),createBlock(unref(ElPopper),{ref_key:"popperRef",ref:o,role:b.role},{default:withCtx(()=>[createVNode(ElTooltipTrigger,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering,"focus-on-target":b.focusOnTarget},{default:withCtx(()=>[b.$slots.default?renderSlot(b.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),createVNode(ElTooltipContent,{ref_key:"contentRef",ref:i,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":unref(y),"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,"arrow-offset":b.arrowOffset,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":b.showAfter,strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:withCtx(()=>[renderSlot(b.$slots,"content",{},()=>[b.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:b.content},null,8,["innerHTML"])):(openBlock(),createElementBlock("span",{key:1},toDisplayString(b.content),1))]),b.showArrow?(openBlock(),createBlock(unref(ElPopperArrow),{key:0})):createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Tooltip=_export_sfc(_sfc_main$s,[["__file","tooltip.vue"]]);const ElTooltip=withInstall(Tooltip),badgeProps=buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:definePropType([String,Object,Array])},offset:{type:definePropType(Array),default:[0,0]},badgeClass:{type:String}}),__default__$j=defineComponent({name:"ElBadge"}),_sfc_main$r=defineComponent({...__default__$j,props:badgeProps,setup(t,{expose:e}){const n=t,s=useNamespace("badge"),u=computed(()=>n.isDot?"":isNumber$1(n.value)&&isNumber$1(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),l=computed(()=>{var o,i,g,d,r;return[{backgroundColor:n.color,marginRight:addUnit(-((i=(o=n.offset)==null?void 0:o[0])!=null?i:0)),marginTop:addUnit((d=(g=n.offset)==null?void 0:g[1])!=null?d:0)},(r=n.badgeStyle)!=null?r:{}]});return e({content:u}),(o,i)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(s).b())},[renderSlot(o.$slots,"default"),createVNode(Transition,{name:`${unref(s).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(s).e("content"),unref(s).em("content",o.type),unref(s).is("fixed",!!o.$slots.default),unref(s).is("dot",o.isDot),unref(s).is("hide-zero",!o.showZero&&n.value===0),o.badgeClass]),style:normalizeStyle(unref(l))},[renderSlot(o.$slots,"content",{value:unref(u)},()=>[createTextVNode(toDisplayString(unref(u)),1)])],6),[[vShow,!o.hidden&&(unref(u)||o.isDot||o.$slots.content)]])]),_:3},8,["name"])],2))}});var Badge=_export_sfc(_sfc_main$r,[["__file","badge.vue"]]);const ElBadge=withInstall(Badge),buttonGroupContextKey=Symbol("buttonGroupContextKey"),useDeprecated=({from:t,replacement:e,scope:n,version:s,ref:u,type:l="API"},o)=>{watch(()=>unref(o),i=>{},{immediate:!0})},useButton=(t,e)=>{useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},computed(()=>t.type==="text"));const n=inject(buttonGroupContextKey,void 0),s=useGlobalConfig("button"),{form:u}=useFormItem(),l=useFormSize(computed(()=>n?.size)),o=useFormDisabled(),i=ref(),g=useSlots(),d=computed(()=>{var y;return t.type||n?.type||((y=s.value)==null?void 0:y.type)||""}),r=computed(()=>{var y,O,b;return(b=(O=t.autoInsertSpace)!=null?O:(y=s.value)==null?void 0:y.autoInsertSpace)!=null?b:!1}),f=computed(()=>{var y,O,b;return(b=(O=t.plain)!=null?O:(y=s.value)==null?void 0:y.plain)!=null?b:!1}),L=computed(()=>{var y,O,b;return(b=(O=t.round)!=null?O:(y=s.value)==null?void 0:y.round)!=null?b:!1}),T=computed(()=>{var y,O,b;return(b=(O=t.text)!=null?O:(y=s.value)==null?void 0:y.text)!=null?b:!1}),x=computed(()=>t.tag==="button"?{ariaDisabled:o.value||t.loading,disabled:o.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),c=computed(()=>{var y;const O=(y=g.default)==null?void 0:y.call(g);if(r.value&&O?.length===1){const b=O[0];if(b?.type===Text){const j=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(j.trim())}}return!1});return{_disabled:o,_size:l,_type:d,_ref:i,_props:x,_plain:f,_round:L,_text:T,shouldAddSpace:c,handleClick:y=>{if(o.value||t.loading){y.stopPropagation();return}t.nativeType==="reset"&&u?.resetFields(),e("click",y)}}},buttonTypes=["default","primary","success","warning","info","danger","text",""],buttonNativeTypes=["button","submit","reset"],buttonProps=buildProps({size:useSizeProp,disabled:Boolean,type:{type:String,values:buttonTypes,default:""},icon:{type:iconPropType},nativeType:{type:String,values:buttonNativeTypes,default:"button"},loading:Boolean,loadingIcon:{type:iconPropType,default:()=>loading_default},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:definePropType([String,Object]),default:"button"}}),buttonEmits={click:t=>t instanceof MouseEvent};function bound01(t,e){isOnePointZero(t)&&(t="100%");var n=isPercentage(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function clamp01(t){return Math.min(1,Math.max(0,t))}function isOnePointZero(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function isPercentage(t){return typeof t=="string"&&t.indexOf("%")!==-1}function boundAlpha(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function convertToPercentage(t){return t<=1?"".concat(Number(t)*100,"%"):t}function pad2(t){return t.length===1?"0"+t:String(t)}function rgbToRgb(t,e,n){return{r:bound01(t,255)*255,g:bound01(e,255)*255,b:bound01(n,255)*255}}function rgbToHsl(t,e,n){t=bound01(t,255),e=bound01(e,255),n=bound01(n,255);var s=Math.max(t,e,n),u=Math.min(t,e,n),l=0,o=0,i=(s+u)/2;if(s===u)o=0,l=0;else{var g=s-u;switch(o=i>.5?g/(2-s-u):g/(s+u),s){case t:l=(e-n)/g+(e<n?6:0);break;case e:l=(n-t)/g+2;break;case n:l=(t-e)/g+4;break}l/=6}return{h:l,s:o,l:i}}function hue2rgb(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function hslToRgb(t,e,n){var s,u,l;if(t=bound01(t,360),e=bound01(e,100),n=bound01(n,100),e===0)u=n,l=n,s=n;else{var o=n<.5?n*(1+e):n+e-n*e,i=2*n-o;s=hue2rgb(i,o,t+1/3),u=hue2rgb(i,o,t),l=hue2rgb(i,o,t-1/3)}return{r:s*255,g:u*255,b:l*255}}function rgbToHsv(t,e,n){t=bound01(t,255),e=bound01(e,255),n=bound01(n,255);var s=Math.max(t,e,n),u=Math.min(t,e,n),l=0,o=s,i=s-u,g=s===0?0:i/s;if(s===u)l=0;else{switch(s){case t:l=(e-n)/i+(e<n?6:0);break;case e:l=(n-t)/i+2;break;case n:l=(t-e)/i+4;break}l/=6}return{h:l,s:g,v:o}}function hsvToRgb(t,e,n){t=bound01(t,360)*6,e=bound01(e,100),n=bound01(n,100);var s=Math.floor(t),u=t-s,l=n*(1-e),o=n*(1-u*e),i=n*(1-(1-u)*e),g=s%6,d=[n,o,l,l,i,n][g],r=[i,n,n,o,l,l][g],f=[l,l,i,n,n,o][g];return{r:d*255,g:r*255,b:f*255}}function rgbToHex(t,e,n,s){var u=[pad2(Math.round(t).toString(16)),pad2(Math.round(e).toString(16)),pad2(Math.round(n).toString(16))];return s&&u[0].startsWith(u[0].charAt(1))&&u[1].startsWith(u[1].charAt(1))&&u[2].startsWith(u[2].charAt(1))?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0):u.join("")}function rgbaToHex(t,e,n,s,u){var l=[pad2(Math.round(t).toString(16)),pad2(Math.round(e).toString(16)),pad2(Math.round(n).toString(16)),pad2(convertDecimalToHex(s))];return u&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function convertDecimalToHex(t){return Math.round(parseFloat(t)*255).toString(16)}function convertHexToDecimal(t){return parseIntFromHex(t)/255}function parseIntFromHex(t){return parseInt(t,16)}function numberInputToObject(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(t){var e={r:0,g:0,b:0},n=1,s=null,u=null,l=null,o=!1,i=!1;return typeof t=="string"&&(t=stringInputToObject(t)),typeof t=="object"&&(isValidCSSUnit(t.r)&&isValidCSSUnit(t.g)&&isValidCSSUnit(t.b)?(e=rgbToRgb(t.r,t.g,t.b),o=!0,i=String(t.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(t.h)&&isValidCSSUnit(t.s)&&isValidCSSUnit(t.v)?(s=convertToPercentage(t.s),u=convertToPercentage(t.v),e=hsvToRgb(t.h,s,u),o=!0,i="hsv"):isValidCSSUnit(t.h)&&isValidCSSUnit(t.s)&&isValidCSSUnit(t.l)&&(s=convertToPercentage(t.s),l=convertToPercentage(t.l),e=hslToRgb(t.h,s,l),o=!0,i="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=boundAlpha(n),{ok:o,format:t.format||i,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(names[t])t=names[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=matchers.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=matchers.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=matchers.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=matchers.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=matchers.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=matchers.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=matchers.hex8.exec(t),n?{r:parseIntFromHex(n[1]),g:parseIntFromHex(n[2]),b:parseIntFromHex(n[3]),a:convertHexToDecimal(n[4]),format:e?"name":"hex8"}:(n=matchers.hex6.exec(t),n?{r:parseIntFromHex(n[1]),g:parseIntFromHex(n[2]),b:parseIntFromHex(n[3]),format:e?"name":"hex"}:(n=matchers.hex4.exec(t),n?{r:parseIntFromHex(n[1]+n[1]),g:parseIntFromHex(n[2]+n[2]),b:parseIntFromHex(n[3]+n[3]),a:convertHexToDecimal(n[4]+n[4]),format:e?"name":"hex8"}:(n=matchers.hex3.exec(t),n?{r:parseIntFromHex(n[1]+n[1]),g:parseIntFromHex(n[2]+n[2]),b:parseIntFromHex(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function isValidCSSUnit(t){return!!matchers.CSS_UNIT.exec(String(t))}var TinyColor=(function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var s;if(e instanceof t)return e;typeof e=="number"&&(e=numberInputToObject(e)),this.originalInput=e;var u=inputToRGB(e);this.originalInput=e,this.r=u.r,this.g=u.g,this.b=u.b,this.a=u.a,this.roundA=Math.round(100*this.a)/100,this.format=(s=n.format)!==null&&s!==void 0?s:u.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=u.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,s,u,l=e.r/255,o=e.g/255,i=e.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),i<=.03928?u=i/12.92:u=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*s+.0722*u},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=boundAlpha(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=rgbToHsv(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=rgbToHsv(this.r,this.g,this.b),n=Math.round(e.h*360),s=Math.round(e.s*100),u=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(s,"%, ").concat(u,"%)"):"hsva(".concat(n,", ").concat(s,"%, ").concat(u,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=rgbToHsl(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=rgbToHsl(this.r,this.g,this.b),n=Math.round(e.h*360),s=Math.round(e.s*100),u=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(s,"%, ").concat(u,"%)"):"hsla(".concat(n,", ").concat(s,"%, ").concat(u,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),rgbToHex(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),rgbaToHex(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),s=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(s,")"):"rgba(".concat(e,", ").concat(n,", ").concat(s,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(bound01(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(bound01(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+rgbToHex(this.r,this.g,this.b,!1),n=0,s=Object.entries(names);n<s.length;n++){var u=s[n],l=u[0],o=u[1];if(e===o)return l}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var s=!1,u=this.a<1&&this.a>=0,l=!n&&u&&(e.startsWith("hex")||e==="name");return l?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(s=this.toRgbString()),e==="prgb"&&(s=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(s=this.toHexString()),e==="hex3"&&(s=this.toHexString(!0)),e==="hex4"&&(s=this.toHex8String(!0)),e==="hex8"&&(s=this.toHex8String()),e==="name"&&(s=this.toName()),e==="hsl"&&(s=this.toHslString()),e==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=clamp01(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=clamp01(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=clamp01(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=clamp01(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),s=(n.h+e)%360;return n.h=s<0?360+s:s,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var s=this.toRgb(),u=new t(e).toRgb(),l=n/100,o={r:(u.r-s.r)*l+s.r,g:(u.g-s.g)*l+s.g,b:(u.b-s.b)*l+s.b,a:(u.a-s.a)*l+s.a};return new t(o)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var s=this.toHsl(),u=360/n,l=[this];for(s.h=(s.h-(u*e>>1)+720)%360;--e;)s.h=(s.h+u)%360,l.push(new t(s));return l},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),s=n.h,u=n.s,l=n.v,o=[],i=1/e;e--;)o.push(new t({h:s,s:u,v:l})),l=(l+i)%1;return o},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),s=new t(e).toRgb(),u=n.a+s.a*(1-n.a);return new t({r:(n.r*n.a+s.r*s.a*(1-n.a))/u,g:(n.g*n.a+s.g*s.a*(1-n.a))/u,b:(n.b*n.a+s.b*s.a*(1-n.a))/u,a:u})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),s=n.h,u=[this],l=360/e,o=1;o<e;o++)u.push(new t({h:(s+o*l)%360,s:n.s,l:n.l}));return u},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t})();function darken(t,e=20){return t.mix("#141414",e).toString()}function useButtonCustomStyle(t){const e=useFormDisabled(),n=useNamespace("button");return computed(()=>{let s={},u=t.color;if(u){const l=u.match(/var\((.*?)\)/);l&&(u=window.getComputedStyle(window.document.documentElement).getPropertyValue(l[1]));const o=new TinyColor(u),i=t.dark?o.tint(20).toString():darken(o,20);if(t.plain)s=n.cssVarBlock({"bg-color":t.dark?darken(o,90):o.tint(90).toString(),"text-color":u,"border-color":t.dark?darken(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":u,"hover-border-color":u,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),e.value&&(s[n.cssVarBlockName("disabled-bg-color")]=t.dark?darken(o,90):o.tint(90).toString(),s[n.cssVarBlockName("disabled-text-color")]=t.dark?darken(o,50):o.tint(50).toString(),s[n.cssVarBlockName("disabled-border-color")]=t.dark?darken(o,80):o.tint(80).toString());else{const g=t.dark?darken(o,30):o.tint(30).toString(),d=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(s=n.cssVarBlock({"bg-color":u,"text-color":d,"border-color":u,"hover-bg-color":g,"hover-text-color":d,"hover-border-color":g,"active-bg-color":i,"active-border-color":i}),e.value){const r=t.dark?darken(o,50):o.tint(50).toString();s[n.cssVarBlockName("disabled-bg-color")]=r,s[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,s[n.cssVarBlockName("disabled-border-color")]=r}}}return s})}const __default__$i=defineComponent({name:"ElButton"}),_sfc_main$q=defineComponent({...__default__$i,props:buttonProps,emits:buttonEmits,setup(t,{expose:e,emit:n}){const s=t,u=useButtonCustomStyle(s),l=useNamespace("button"),{_ref:o,_size:i,_type:g,_disabled:d,_props:r,_plain:f,_round:L,_text:T,shouldAddSpace:x,handleClick:c}=useButton(s,n),m=computed(()=>[l.b(),l.m(g.value),l.m(i.value),l.is("disabled",d.value),l.is("loading",s.loading),l.is("plain",f.value),l.is("round",L.value),l.is("circle",s.circle),l.is("text",T.value),l.is("link",s.link),l.is("has-bg",s.bg)]);return e({ref:o,size:i,type:g,disabled:d,shouldAddSpace:x}),(y,O)=>(openBlock(),createBlock(resolveDynamicComponent(y.tag),mergeProps({ref_key:"_ref",ref:o},unref(r),{class:unref(m),style:unref(u),onClick:unref(c)}),{default:withCtx(()=>[y.loading?(openBlock(),createElementBlock(Fragment,{key:0},[y.$slots.loading?renderSlot(y.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(l).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[y.icon?(openBlock(),createBlock(resolveDynamicComponent(y.icon),{key:0})):renderSlot(y.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),y.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(l).em("text","expand")]:unref(x)})},[renderSlot(y.$slots,"default")],2)):createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Button=_export_sfc(_sfc_main$q,[["__file","button.vue"]]);const buttonGroupProps={size:buttonProps.size,type:buttonProps.type},__default__$h=defineComponent({name:"ElButtonGroup"}),_sfc_main$p=defineComponent({...__default__$h,props:buttonGroupProps,setup(t){const e=t;provide(buttonGroupContextKey,reactive({size:toRef(e,"size"),type:toRef(e,"type")}));const n=useNamespace("button");return(s,u)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(n).b("group"))},[renderSlot(s.$slots,"default")],2))}});var ButtonGroup=_export_sfc(_sfc_main$p,[["__file","button-group.vue"]]);const ElButton=withInstall(Button,{ButtonGroup});withNoopInstall(ButtonGroup);var PatchFlags=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(PatchFlags||{});const flattedChildren=t=>{const e=isArray$3(t)?t:[t],n=[];return e.forEach(s=>{var u;isArray$3(s)?n.push(...flattedChildren(s)):isVNode(s)&&((u=s.component)!=null&&u.subTree)?n.push(s,...flattedChildren(s.component.subTree)):isVNode(s)&&isArray$3(s.children)?n.push(...flattedChildren(s.children)):isVNode(s)&&s.shapeFlag===2?n.push(...flattedChildren(s.type())):n.push(s)}),n},checkboxProps={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...useAriaProps(["ariaControls"])},checkboxEmits={[UPDATE_MODEL_EVENT]:t=>isString$2(t)||isNumber$1(t)||isBoolean$1(t),change:t=>isString$2(t)||isNumber$1(t)||isBoolean$1(t)},checkboxGroupContextKey=Symbol("checkboxGroupContextKey"),useCheckboxDisabled=({model:t,isChecked:e})=>{const n=inject(checkboxGroupContextKey,void 0),s=computed(()=>{var l,o;const i=(l=n?.max)==null?void 0:l.value,g=(o=n?.min)==null?void 0:o.value;return!isUndefined$1(i)&&t.value.length>=i&&!e.value||!isUndefined$1(g)&&t.value.length<=g&&e.value});return{isDisabled:useFormDisabled(computed(()=>n?.disabled.value||s.value)),isLimitDisabled:s}},useCheckboxEvent=(t,{model:e,isLimitExceeded:n,hasOwnLabel:s,isDisabled:u,isLabeledByFormItem:l})=>{const o=inject(checkboxGroupContextKey,void 0),{formItem:i}=useFormItem(),{emit:g}=getCurrentInstance();function d(x){var c,m,y,O;return[!0,t.trueValue,t.trueLabel].includes(x)?(m=(c=t.trueValue)!=null?c:t.trueLabel)!=null?m:!0:(O=(y=t.falseValue)!=null?y:t.falseLabel)!=null?O:!1}function r(x,c){g(CHANGE_EVENT,d(x),c)}function f(x){if(n.value)return;const c=x.target;g(CHANGE_EVENT,d(c.checked),x)}async function L(x){n.value||!s.value&&!u.value&&l.value&&(x.composedPath().some(y=>y.tagName==="LABEL")||(e.value=d([!1,t.falseValue,t.falseLabel].includes(e.value)),await nextTick(),r(e.value,x)))}const T=computed(()=>o?.validateEvent||t.validateEvent);return watch(()=>t.modelValue,()=>{T.value&&i?.validate("change").catch(x=>void 0)}),{handleChange:f,onClickRoot:L}},useCheckboxModel=t=>{const e=ref(!1),{emit:n}=getCurrentInstance(),s=inject(checkboxGroupContextKey,void 0),u=computed(()=>isUndefined$1(s)===!1),l=ref(!1),o=computed({get(){var i,g;return u.value?(i=s?.modelValue)==null?void 0:i.value:(g=t.modelValue)!=null?g:e.value},set(i){var g,d;u.value&&isArray$3(i)?(l.value=((g=s?.max)==null?void 0:g.value)!==void 0&&i.length>s?.max.value&&i.length>o.value.length,l.value===!1&&((d=s?.changeEvent)==null||d.call(s,i))):(n(UPDATE_MODEL_EVENT,i),e.value=i)}});return{model:o,isGroup:u,isLimitExceeded:l}},useCheckboxStatus=(t,e,{model:n})=>{const s=inject(checkboxGroupContextKey,void 0),u=ref(!1),l=computed(()=>isPropAbsent(t.value)?t.label:t.value),o=computed(()=>{const r=n.value;return isBoolean$1(r)?r:isArray$3(r)?isObject$2(l.value)?r.map(toRaw).some(f=>isEqual(f,l.value)):r.map(toRaw).includes(l.value):r!=null?r===t.trueValue||r===t.trueLabel:!!r}),i=useFormSize(computed(()=>{var r;return(r=s?.size)==null?void 0:r.value}),{prop:!0}),g=useFormSize(computed(()=>{var r;return(r=s?.size)==null?void 0:r.value})),d=computed(()=>!!e.default||!isPropAbsent(l.value));return{checkboxButtonSize:i,isChecked:o,isFocused:u,checkboxSize:g,hasOwnLabel:d,actualValue:l}},useCheckbox=(t,e)=>{const{formItem:n}=useFormItem(),{model:s,isGroup:u,isLimitExceeded:l}=useCheckboxModel(t),{isFocused:o,isChecked:i,checkboxButtonSize:g,checkboxSize:d,hasOwnLabel:r,actualValue:f}=useCheckboxStatus(t,e,{model:s}),{isDisabled:L}=useCheckboxDisabled({model:s,isChecked:i}),{inputId:T,isLabeledByFormItem:x}=useFormItemInputId(t,{formItemContext:n,disableIdGeneration:r,disableIdManagement:u}),{handleChange:c,onClickRoot:m}=useCheckboxEvent(t,{model:s,isLimitExceeded:l,hasOwnLabel:r,isDisabled:L,isLabeledByFormItem:x});return(()=>{function O(){var b,j;isArray$3(s.value)&&!s.value.includes(f.value)?s.value.push(f.value):s.value=(j=(b=t.trueValue)!=null?b:t.trueLabel)!=null?j:!0}t.checked&&O()})(),useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>u.value&&isPropAbsent(t.value))),useDeprecated({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>!!t.trueLabel)),useDeprecated({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>!!t.falseLabel)),{inputId:T,isLabeledByFormItem:x,isChecked:i,isDisabled:L,isFocused:o,checkboxButtonSize:g,checkboxSize:d,hasOwnLabel:r,model:s,actualValue:f,handleChange:c,onClickRoot:m}},__default__$g=defineComponent({name:"ElCheckbox"}),_sfc_main$o=defineComponent({...__default__$g,props:checkboxProps,emits:checkboxEmits,setup(t){const e=t,n=useSlots(),{inputId:s,isLabeledByFormItem:u,isChecked:l,isDisabled:o,isFocused:i,checkboxSize:g,hasOwnLabel:d,model:r,actualValue:f,handleChange:L,onClickRoot:T}=useCheckbox(e,n),x=computed(()=>{var O,b,j,F;return e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?{"true-value":(b=(O=e.trueValue)!=null?O:e.trueLabel)!=null?b:!0,"false-value":(F=(j=e.falseValue)!=null?j:e.falseLabel)!=null?F:!1}:{value:f.value}}),c=useNamespace("checkbox"),m=computed(()=>[c.b(),c.m(g.value),c.is("disabled",o.value),c.is("bordered",e.border),c.is("checked",l.value)]),y=computed(()=>[c.e("input"),c.is("disabled",o.value),c.is("checked",l.value),c.is("indeterminate",e.indeterminate),c.is("focus",i.value)]);return(O,b)=>(openBlock(),createBlock(resolveDynamicComponent(!unref(d)&&unref(u)?"span":"label"),{class:normalizeClass(unref(m)),"aria-controls":O.indeterminate?O.ariaControls:null,onClick:unref(T)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(y))},[withDirectives(createBaseVNode("input",mergeProps({id:unref(s),"onUpdate:modelValue":j=>isRef(r)?r.value=j:null,class:unref(c).e("original"),type:"checkbox",indeterminate:O.indeterminate,name:O.name,tabindex:O.tabindex,disabled:unref(o)},unref(x),{onChange:unref(L),onFocus:j=>i.value=!0,onBlur:j=>i.value=!1,onClick:withModifiers(()=>{},["stop"])}),null,16,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","onChange","onFocus","onBlur","onClick"]),[[vModelCheckbox,unref(r)]]),createBaseVNode("span",{class:normalizeClass(unref(c).e("inner"))},null,2)],2),unref(d)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(c).e("label"))},[renderSlot(O.$slots,"default"),O.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(O.label),1)],64))],2)):createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Checkbox=_export_sfc(_sfc_main$o,[["__file","checkbox.vue"]]);const __default__$f=defineComponent({name:"ElCheckboxButton"}),_sfc_main$n=defineComponent({...__default__$f,props:checkboxProps,emits:checkboxEmits,setup(t){const e=t,n=useSlots(),{isFocused:s,isChecked:u,isDisabled:l,checkboxButtonSize:o,model:i,actualValue:g,handleChange:d}=useCheckbox(e,n),r=computed(()=>{var c,m,y,O;return e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?{"true-value":(m=(c=e.trueValue)!=null?c:e.trueLabel)!=null?m:!0,"false-value":(O=(y=e.falseValue)!=null?y:e.falseLabel)!=null?O:!1}:{value:g.value}}),f=inject(checkboxGroupContextKey,void 0),L=useNamespace("checkbox"),T=computed(()=>{var c,m,y,O;const b=(m=(c=f?.fill)==null?void 0:c.value)!=null?m:"";return{backgroundColor:b,borderColor:b,color:(O=(y=f?.textColor)==null?void 0:y.value)!=null?O:"",boxShadow:b?`-1px 0 0 0 ${b}`:void 0}}),x=computed(()=>[L.b("button"),L.bm("button",o.value),L.is("disabled",l.value),L.is("checked",u.value),L.is("focus",s.value)]);return(c,m)=>(openBlock(),createElementBlock("label",{class:normalizeClass(unref(x))},[withDirectives(createBaseVNode("input",mergeProps({"onUpdate:modelValue":y=>isRef(i)?i.value=y:null,class:unref(L).be("button","original"),type:"checkbox",name:c.name,tabindex:c.tabindex,disabled:unref(l)},unref(r),{onChange:unref(d),onFocus:y=>s.value=!0,onBlur:y=>s.value=!1,onClick:withModifiers(()=>{},["stop"])}),null,16,["onUpdate:modelValue","name","tabindex","disabled","onChange","onFocus","onBlur","onClick"]),[[vModelCheckbox,unref(i)]]),c.$slots.default||c.label?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(L).be("button","inner")),style:normalizeStyle(unref(u)?unref(T):void 0)},[renderSlot(c.$slots,"default",{},()=>[createTextVNode(toDisplayString(c.label),1)])],6)):createCommentVNode("v-if",!0)],2))}});var CheckboxButton=_export_sfc(_sfc_main$n,[["__file","checkbox-button.vue"]]);const checkboxGroupProps=buildProps({modelValue:{type:definePropType(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:useSizeProp,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:definePropType(Array)},props:{type:definePropType(Object),default:()=>checkboxDefaultProps},...useAriaProps(["ariaLabel"])}),checkboxGroupEmits={[UPDATE_MODEL_EVENT]:t=>isArray$3(t),change:t=>isArray$3(t)},checkboxDefaultProps={label:"label",value:"value",disabled:"disabled"},__default__$e=defineComponent({name:"ElCheckboxGroup"}),_sfc_main$m=defineComponent({...__default__$e,props:checkboxGroupProps,emits:checkboxGroupEmits,setup(t,{emit:e}){const n=t,s=useNamespace("checkbox"),{formItem:u}=useFormItem(),{inputId:l,isLabeledByFormItem:o}=useFormItemInputId(n,{formItemContext:u}),i=async f=>{e(UPDATE_MODEL_EVENT,f),await nextTick(),e(CHANGE_EVENT,f)},g=computed({get(){return n.modelValue},set(f){i(f)}}),d=computed(()=>({...checkboxDefaultProps,...n.props})),r=f=>{const L={label:f[d.value.label],value:f[d.value.value],disabled:f[d.value.disabled]};return{...f,...L}};return provide(checkboxGroupContextKey,{...pick(toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:g,changeEvent:i}),watch(()=>n.modelValue,(f,L)=>{n.validateEvent&&!isEqual(f,L)&&u?.validate("change").catch(T=>void 0)}),(f,L)=>{var T;return openBlock(),createBlock(resolveDynamicComponent(f.tag),{id:unref(l),class:normalizeClass(unref(s).b("group")),role:"group","aria-label":unref(o)?void 0:f.ariaLabel||"checkbox-group","aria-labelledby":unref(o)?(T=unref(u))==null?void 0:T.labelId:void 0},{default:withCtx(()=>[renderSlot(f.$slots,"default",{},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.options,(x,c)=>(openBlock(),createBlock(Checkbox,mergeProps({key:c},r(x)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var CheckboxGroup=_export_sfc(_sfc_main$m,[["__file","checkbox-group.vue"]]);const ElCheckbox=withInstall(Checkbox,{CheckboxButton,CheckboxGroup});withNoopInstall(CheckboxButton);withNoopInstall(CheckboxGroup);const tagProps=buildProps({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:componentSizes},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},__default__$d=defineComponent({name:"ElTag"}),_sfc_main$l=defineComponent({...__default__$d,props:tagProps,emits:tagEmits,setup(t,{emit:e}){const n=t,s=useFormSize(),u=useNamespace("tag"),l=computed(()=>{const{type:d,hit:r,effect:f,closable:L,round:T}=n;return[u.b(),u.is("closable",L),u.m(d||"primary"),u.m(s.value),u.m(f),u.is("hit",r),u.is("round",T)]}),o=d=>{e("close",d)},i=d=>{e("click",d)},g=d=>{var r,f,L;(L=(f=(r=d?.component)==null?void 0:r.subTree)==null?void 0:f.component)!=null&&L.bum&&(d.component.subTree.component.bum=null)};return(d,r)=>d.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(l)),style:normalizeStyle({backgroundColor:d.color}),onClick:i},[createBaseVNode("span",{class:normalizeClass(unref(u).e("content"))},[renderSlot(d.$slots,"default")],2),d.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(u).e("close")),onClick:withModifiers(o,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref(u).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:g},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(l)),style:normalizeStyle({backgroundColor:d.color}),onClick:i},[createBaseVNode("span",{class:normalizeClass(unref(u).e("content"))},[renderSlot(d.$slots,"default")],2),d.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(u).e("close")),onClick:withModifiers(o,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Tag=_export_sfc(_sfc_main$l,[["__file","tag.vue"]]);const ElTag=withInstall(Tag),nodeList=new Map;if(isClient){let t;document.addEventListener("mousedown",e=>t=e),document.addEventListener("mouseup",e=>{if(t){for(const n of nodeList.values())for(const{documentHandler:s}of n)s(e,t);t=void 0}})}function createDocumentHandler(t,e){let n=[];return isArray$3(e.arg)?n=e.arg:isElement(e.arg)&&n.push(e.arg),function(s,u){const l=e.instance.popperRef,o=s.target,i=u?.target,g=!e||!e.instance,d=!o||!i,r=t.contains(o)||t.contains(i),f=t===o,L=n.length&&n.some(x=>x?.contains(o))||n.length&&n.includes(i),T=l&&(l.contains(o)||l.contains(i));g||d||r||f||L||T||e.value(s,u)}}const ClickOutside={beforeMount(t,e){nodeList.has(t)||nodeList.set(t,[]),nodeList.get(t).push({documentHandler:createDocumentHandler(t,e),bindingFn:e.value})},updated(t,e){nodeList.has(t)||nodeList.set(t,[]);const n=nodeList.get(t),s=n.findIndex(l=>l.bindingFn===e.oldValue),u={documentHandler:createDocumentHandler(t,e),bindingFn:e.value};s>=0?n.splice(s,1,u):n.push(u)},unmounted(t){nodeList.delete(t)}},colProps=buildProps({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:definePropType([Number,Object]),default:()=>mutable({})},sm:{type:definePropType([Number,Object]),default:()=>mutable({})},md:{type:definePropType([Number,Object]),default:()=>mutable({})},lg:{type:definePropType([Number,Object]),default:()=>mutable({})},xl:{type:definePropType([Number,Object]),default:()=>mutable({})}}),rowContextKey=Symbol("rowContextKey"),__default__$c=defineComponent({name:"ElCol"}),_sfc_main$k=defineComponent({...__default__$c,props:colProps,setup(t){const e=t,{gutter:n}=inject(rowContextKey,{gutter:computed(()=>0)}),s=useNamespace("col"),u=computed(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),l=computed(()=>{const o=[];return["span","offset","pull","push"].forEach(d=>{const r=e[d];isNumber$1(r)&&(d==="span"?o.push(s.b(`${e[d]}`)):r>0&&o.push(s.b(`${d}-${e[d]}`)))}),["xs","sm","md","lg","xl"].forEach(d=>{isNumber$1(e[d])?o.push(s.b(`${d}-${e[d]}`)):isObject$2(e[d])&&Object.entries(e[d]).forEach(([r,f])=>{o.push(r!=="span"?s.b(`${d}-${r}-${f}`):s.b(`${d}-${f}`))})}),n.value&&o.push(s.is("guttered")),[s.b(),o]});return(o,i)=>(openBlock(),createBlock(resolveDynamicComponent(o.tag),{class:normalizeClass(unref(l)),style:normalizeStyle(unref(u))},{default:withCtx(()=>[renderSlot(o.$slots,"default")]),_:3},8,["class","style"]))}});var Col=_export_sfc(_sfc_main$k,[["__file","col.vue"]]);const ElCol=withInstall(Col),emitChangeFn=t=>isNumber$1(t)||isString$2(t)||isArray$3(t),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])},expandIconPosition:{type:definePropType([String]),default:"right"},beforeCollapse:{type:definePropType(Function)}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},collapseContextKey=Symbol("collapseContextKey"),SCOPE="ElCollapse",useCollapse=(t,e)=>{const n=ref(castArray$1(t.modelValue)),s=o=>{n.value=o;const i=t.accordion?n.value[0]:n.value;e(UPDATE_MODEL_EVENT,i),e(CHANGE_EVENT,i)},u=o=>{if(t.accordion)s([n.value[0]===o?"":o]);else{const i=[...n.value],g=i.indexOf(o);g>-1?i.splice(g,1):i.push(o),s(i)}},l=async o=>{const{beforeCollapse:i}=t;if(!i){u(o);return}const g=i(o);[isPromise(g),isBoolean$1(g)].includes(!0)||throwError(SCOPE,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),isPromise(g)?g.then(r=>{r!==!1&&u(o)}).catch(r=>{}):g&&u(o)};return watch(()=>t.modelValue,()=>n.value=castArray$1(t.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:n,handleItemClick:l}),{activeNames:n,setActiveNames:s}},useCollapseDOM=t=>{const e=useNamespace("collapse");return{rootKls:computed(()=>[e.b(),e.b(`icon-position-${t.expandIconPosition}`)])}},__default__$b=defineComponent({name:"ElCollapse"}),_sfc_main$j=defineComponent({...__default__$b,props:collapseProps,emits:collapseEmits,setup(t,{expose:e,emit:n}){const s=t,{activeNames:u,setActiveNames:l}=useCollapse(s,n),{rootKls:o}=useCollapseDOM(s);return e({activeNames:u,setActiveNames:l}),(i,g)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(o))},[renderSlot(i.$slots,"default")],2))}});var Collapse=_export_sfc(_sfc_main$j,[["__file","collapse.vue"]]);const __default__$a=defineComponent({name:"ElCollapseTransition"}),_sfc_main$i=defineComponent({...__default__$a,setup(t){const e=useNamespace("collapse-transition"),n=u=>{u.style.maxHeight="",u.style.overflow=u.dataset.oldOverflow,u.style.paddingTop=u.dataset.oldPaddingTop,u.style.paddingBottom=u.dataset.oldPaddingBottom},s={beforeEnter(u){u.dataset||(u.dataset={}),u.dataset.oldPaddingTop=u.style.paddingTop,u.dataset.oldPaddingBottom=u.style.paddingBottom,u.style.height&&(u.dataset.elExistsHeight=u.style.height),u.style.maxHeight=0,u.style.paddingTop=0,u.style.paddingBottom=0},enter(u){requestAnimationFrame(()=>{u.dataset.oldOverflow=u.style.overflow,u.dataset.elExistsHeight?u.style.maxHeight=u.dataset.elExistsHeight:u.scrollHeight!==0?u.style.maxHeight=`${u.scrollHeight}px`:u.style.maxHeight=0,u.style.paddingTop=u.dataset.oldPaddingTop,u.style.paddingBottom=u.dataset.oldPaddingBottom,u.style.overflow="hidden"})},afterEnter(u){u.style.maxHeight="",u.style.overflow=u.dataset.oldOverflow},enterCancelled(u){n(u)},beforeLeave(u){u.dataset||(u.dataset={}),u.dataset.oldPaddingTop=u.style.paddingTop,u.dataset.oldPaddingBottom=u.style.paddingBottom,u.dataset.oldOverflow=u.style.overflow,u.style.maxHeight=`${u.scrollHeight}px`,u.style.overflow="hidden"},leave(u){u.scrollHeight!==0&&(u.style.maxHeight=0,u.style.paddingTop=0,u.style.paddingBottom=0)},afterLeave(u){n(u)},leaveCancelled(u){n(u)}};return(u,l)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(e).b()},toHandlers(s)),{default:withCtx(()=>[renderSlot(u.$slots,"default")]),_:3},16,["name"]))}});var CollapseTransition=_export_sfc(_sfc_main$i,[["__file","collapse-transition.vue"]]);const ElCollapseTransition=withInstall(CollapseTransition),collapseItemProps=buildProps({title:{type:String,default:""},name:{type:definePropType([String,Number]),default:void 0},icon:{type:iconPropType,default:arrow_right_default},disabled:Boolean}),useCollapseItem=t=>{const e=inject(collapseContextKey),{namespace:n}=useNamespace("collapse"),s=ref(!1),u=ref(!1),l=useIdInjection(),o=computed(()=>l.current++),i=computed(()=>{var L;return(L=t.name)!=null?L:`${n.value}-id-${l.prefix}-${unref(o)}`}),g=computed(()=>e?.activeNames.value.includes(unref(i)));return{focusing:s,id:o,isActive:g,handleFocus:()=>{setTimeout(()=>{u.value?u.value=!1:s.value=!0},50)},handleHeaderClick:L=>{if(t.disabled)return;const T=L.target;T?.closest("input, textarea, select")||(e?.handleItemClick(unref(i)),s.value=!1,u.value=!0)},handleEnterClick:L=>{const T=L.target;T?.closest("input, textarea, select")||(L.preventDefault(),e?.handleItemClick(unref(i)))}}},useCollapseItemDOM=(t,{focusing:e,isActive:n,id:s})=>{const u=useNamespace("collapse"),l=computed(()=>[u.b("item"),u.is("active",unref(n)),u.is("disabled",t.disabled)]),o=computed(()=>[u.be("item","header"),u.is("active",unref(n)),{focusing:unref(e)&&!t.disabled}]),i=computed(()=>[u.be("item","arrow"),u.is("active",unref(n))]),g=computed(()=>[u.be("item","title")]),d=computed(()=>u.be("item","wrap")),r=computed(()=>u.be("item","content")),f=computed(()=>u.b(`content-${unref(s)}`)),L=computed(()=>u.b(`head-${unref(s)}`));return{itemTitleKls:g,arrowKls:i,headKls:o,rootKls:l,itemWrapperKls:d,itemContentKls:r,scopedContentId:f,scopedHeadId:L}},__default__$9=defineComponent({name:"ElCollapseItem"}),_sfc_main$h=defineComponent({...__default__$9,props:collapseItemProps,setup(t,{expose:e}){const n=t,{focusing:s,id:u,isActive:l,handleFocus:o,handleHeaderClick:i,handleEnterClick:g}=useCollapseItem(n),{arrowKls:d,headKls:r,rootKls:f,itemTitleKls:L,itemWrapperKls:T,itemContentKls:x,scopedContentId:c,scopedHeadId:m}=useCollapseItemDOM(n,{focusing:s,isActive:l,id:u});return e({isActive:l}),(y,O)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(f))},[createBaseVNode("div",{id:unref(m),class:normalizeClass(unref(r)),"aria-expanded":unref(l),"aria-controls":unref(c),"aria-describedby":unref(c),tabindex:y.disabled?-1:0,role:"button",onClick:unref(i),onKeydown:withKeys(withModifiers(unref(g),["stop"]),["space","enter"]),onFocus:unref(o),onBlur:b=>s.value=!1},[createBaseVNode("span",{class:normalizeClass(unref(L))},[renderSlot(y.$slots,"title",{isActive:unref(l)},()=>[createTextVNode(toDisplayString(y.title),1)])],2),renderSlot(y.$slots,"icon",{isActive:unref(l)},()=>[createVNode(unref(ElIcon),{class:normalizeClass(unref(d))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(y.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),createVNode(unref(ElCollapseTransition),null,{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:unref(c),role:"region",class:normalizeClass(unref(T)),"aria-hidden":!unref(l),"aria-labelledby":unref(m)},[createBaseVNode("div",{class:normalizeClass(unref(x))},[renderSlot(y.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[vShow,unref(l)]])]),_:3})],2))}});var CollapseItem=_export_sfc(_sfc_main$h,[["__file","collapse-item.vue"]]);const ElCollapse=withInstall(Collapse,{CollapseItem}),ElCollapseItem=withNoopInstall(CollapseItem),messageConfig={placement:"top"},REPEAT_INTERVAL=100,REPEAT_DELAY=600,vRepeatClick={beforeMount(t,e){const n=e.value,{interval:s=REPEAT_INTERVAL,delay:u=REPEAT_DELAY}=isFunction$3(n)?{}:n;let l,o;const i=()=>isFunction$3(n)?n():n.handler(),g=()=>{o&&(clearTimeout(o),o=void 0),l&&(clearInterval(l),l=void 0)};t.addEventListener("mousedown",d=>{d.button===0&&(g(),i(),document.addEventListener("mouseup",()=>g(),{once:!0}),o=setTimeout(()=>{l=setInterval(()=>{i()},s)},u))})}},useSameTarget=t=>{if(!t)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let e=!1,n=!1;return{onClick:o=>{e&&n&&t(o),e=n=!1},onMousedown:o=>{e=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}},overlayProps=buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:definePropType([String,Array,Object])},zIndex:{type:definePropType([String,Number])}}),overlayEmits={click:t=>t instanceof MouseEvent},BLOCK="overlay";var Overlay=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup(t,{slots:e,emit:n}){const s=useNamespace(BLOCK),u=g=>{n("click",g)},{onClick:l,onMousedown:o,onMouseup:i}=useSameTarget(t.customMaskEvent?void 0:u);return()=>t.mask?createVNode("div",{class:[s.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:l,onMousedown:o,onMouseup:i},[renderSlot(e,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(e,"default")])}});const ElOverlay=Overlay,useDraggable=(t,e,n,s)=>{const u={offsetX:0,offsetY:0},l=ref(!1),o=(L,T)=>{if(t.value){const{offsetX:x,offsetY:c}=u,m=t.value.getBoundingClientRect(),y=m.left,O=m.top,b=m.width,j=m.height,F=document.documentElement.clientWidth,k=document.documentElement.clientHeight,_=-y+x,ue=-O+c,re=F-y-b+x,de=k-O-(j<k?j:0)+c;s?.value||(L=Math.min(Math.max(L,_),re),T=Math.min(Math.max(T,ue),de)),u.offsetX=L,u.offsetY=T,t.value.style.transform=`translate(${addUnit(L)}, ${addUnit(T)})`}},i=L=>{const T=L.clientX,x=L.clientY,{offsetX:c,offsetY:m}=u,y=b=>{l.value||(l.value=!0);const j=c+b.clientX-T,F=m+b.clientY-x;o(j,F)},O=()=>{l.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",O)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",O)},g=()=>{e.value&&t.value&&(e.value.addEventListener("mousedown",i),window.addEventListener("resize",f))},d=()=>{e.value&&t.value&&(e.value.removeEventListener("mousedown",i),window.removeEventListener("resize",f))},r=()=>{u.offsetX=0,u.offsetY=0,t.value&&(t.value.style.transform="")},f=()=>{const{offsetX:L,offsetY:T}=u;o(L,T)};return onMounted(()=>{watchEffect(()=>{n.value?g():d()})}),onBeforeUnmount(()=>{d()}),{isDragging:l,resetPosition:r,updatePosition:f}},useLockscreen=(t,e={})=>{isRef(t)||throwError("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||useNamespace("popup"),s=computed(()=>n.bm("parent","hidden"));if(!isClient||hasClass(document.body,s.value))return;let u=0,l=!1,o="0";const i=()=>{setTimeout(()=>{typeof document>"u"||l&&document&&(document.body.style.width=o,removeClass(document.body,s.value))},200)};watch(t,g=>{if(!g){i();return}l=!hasClass(document.body,s.value),l&&(o=document.body.style.width,addClass(document.body,s.value)),u=getScrollBarWidth(n.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,r=getStyle(document.body,"overflowY");u>0&&(d||r==="scroll")&&l&&(document.body.style.width=`calc(100% - ${u}px)`)}),onScopeDispose(()=>i())},dividerProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:definePropType(String),default:"solid"}}),__default__$8=defineComponent({name:"ElDivider"}),_sfc_main$g=defineComponent({...__default__$8,props:dividerProps,setup(t){const e=t,n=useNamespace("divider"),s=computed(()=>n.cssVar({"border-style":e.borderStyle}));return(u,l)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(n).b(),unref(n).m(u.direction)]),style:normalizeStyle(unref(s)),role:"separator"},[u.$slots.default&&u.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(n).e("text"),unref(n).is(u.contentPosition)])},[renderSlot(u.$slots,"default")],2)):createCommentVNode("v-if",!0)],6))}});var Divider=_export_sfc(_sfc_main$g,[["__file","divider.vue"]]);const ElDivider=withInstall(Divider),formMetaProps=buildProps({size:{type:String,values:componentSizes},disabled:Boolean}),formProps=buildProps({...formMetaProps,model:Object,rules:{type:definePropType(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:definePropType([Object,Boolean]),default:!0}}),formEmits={validate:(t,e,n)=>(isArray$3(t)||isString$2(t))&&isBoolean$1(e)&&isString$2(n)};function useFormLabelWidth(){const t=ref([]),e=computed(()=>{if(!t.value.length)return"0";const l=Math.max(...t.value);return l?`${l}px`:""});function n(l){const o=t.value.indexOf(l);return o===-1&&e.value,o}function s(l,o){if(l&&o){const i=n(o);t.value.splice(i,1,l)}else l&&t.value.push(l)}function u(l){const o=n(l);o>-1&&t.value.splice(o,1)}return{autoLabelWidth:e,registerLabelWidth:s,deregisterLabelWidth:u}}const filterFields=(t,e)=>{const n=castArray$1(e).map(s=>isArray$3(s)?s.join("."):s);return n.length>0?t.filter(s=>s.propString&&n.includes(s.propString)):t},COMPONENT_NAME$5="ElForm",__default__$7=defineComponent({name:COMPONENT_NAME$5}),_sfc_main$f=defineComponent({...__default__$7,props:formProps,emits:formEmits,setup(t,{expose:e,emit:n}){const s=t,u=ref(),l=reactive([]),o=useFormSize(),i=useNamespace("form"),g=computed(()=>{const{labelPosition:j,inline:F}=s;return[i.b(),i.m(o.value||"default"),{[i.m(`label-${j}`)]:j,[i.m("inline")]:F}]}),d=j=>filterFields(l,[j])[0],r=j=>{l.push(j)},f=j=>{j.prop&&l.splice(l.indexOf(j),1)},L=(j=[])=>{s.model&&filterFields(l,j).forEach(F=>F.resetField())},T=(j=[])=>{filterFields(l,j).forEach(F=>F.clearValidate())},x=computed(()=>!!s.model),c=j=>{if(l.length===0)return[];const F=filterFields(l,j);return F.length?F:[]},m=async j=>O(void 0,j),y=async(j=[])=>{if(!x.value)return!1;const F=c(j);if(F.length===0)return!0;let k={};for(const _ of F)try{await _.validate(""),_.validateState==="error"&&!_.error&&_.resetField()}catch(ue){k={...k,...ue}}return Object.keys(k).length===0?!0:Promise.reject(k)},O=async(j=[],F)=>{let k=!1;const _=!isFunction$3(F);try{return k=await y(j),k===!0&&await F?.(k),k}catch(ue){if(ue instanceof Error)throw ue;const re=ue;if(s.scrollToError&&u.value){const de=u.value.querySelector(`.${i.b()}-item.is-error`);de?.scrollIntoView(s.scrollIntoViewOptions)}return!k&&await F?.(!1,re),_&&Promise.reject(re)}},b=j=>{var F;const k=d(j);k&&((F=k.$el)==null||F.scrollIntoView(s.scrollIntoViewOptions))};return watch(()=>s.rules,()=>{s.validateOnRuleChange&&m().catch(j=>void 0)},{deep:!0,flush:"post"}),provide(formContextKey,reactive({...toRefs(s),emit:n,resetFields:L,clearValidate:T,validateField:O,getField:d,addField:r,removeField:f,...useFormLabelWidth()})),e({validate:m,validateField:O,resetFields:L,clearValidate:T,scrollToField:b,getField:d,fields:l}),(j,F)=>(openBlock(),createElementBlock("form",{ref_key:"formRef",ref:u,class:normalizeClass(unref(g))},[renderSlot(j.$slots,"default")],2))}});var Form=_export_sfc(_sfc_main$f,[["__file","form.vue"]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},_extends.apply(this,arguments)}function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_setPrototypeOf(t,e)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf(t)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,u){return s.__proto__=u,s},_setPrototypeOf(t,e)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(t,e,n){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(u,l,o){var i=[null];i.push.apply(i,l);var g=Function.bind.apply(u,i),d=new g;return o&&_setPrototypeOf(d,o.prototype),d},_construct.apply(null,arguments)}function _isNativeFunction(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _wrapNativeSuper(t){var e=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(s){if(s===null||!_isNativeFunction(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(s))return e.get(s);e.set(s,u)}function u(){return _construct(s,arguments,_getPrototypeOf(this).constructor)}return u.prototype=Object.create(s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(u,s)},_wrapNativeSuper(t)}var formatRegExp=/%[sdj%]/g,warning=function t(){};function convertFieldsError(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var s=n.field;e[s]=e[s]||[],e[s].push(n)}),e}function format(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];var u=0,l=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var o=t.replace(formatRegExp,function(i){if(i==="%%")return"%";if(u>=l)return i;switch(i){case"%s":return String(n[u++]);case"%d":return Number(n[u++]);case"%j":try{return JSON.stringify(n[u++])}catch{return"[Circular]"}break;default:return i}});return o}return t}function isNativeStringType(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function isEmptyValue(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||isNativeStringType(e)&&typeof t=="string"&&!t)}function asyncParallelArray(t,e,n){var s=[],u=0,l=t.length;function o(i){s.push.apply(s,i||[]),u++,u===l&&n(s)}t.forEach(function(i){e(i,o)})}function asyncSerialArray(t,e,n){var s=0,u=t.length;function l(o){if(o&&o.length){n(o);return}var i=s;s=s+1,i<u?e(t[i],l):n([])}l([])}function flattenObjArr(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var AsyncValidationError=(function(t){_inheritsLoose(e,t);function e(n,s){var u;return u=t.call(this,"Async Validation Error")||this,u.errors=n,u.fields=s,u}return e})(_wrapNativeSuper(Error));function asyncMap(t,e,n,s,u){if(e.first){var l=new Promise(function(L,T){var x=function(y){return s(y),y.length?T(new AsyncValidationError(y,convertFieldsError(y))):L(u)},c=flattenObjArr(t);asyncSerialArray(c,n,x)});return l.catch(function(L){return L}),l}var o=e.firstFields===!0?Object.keys(t):e.firstFields||[],i=Object.keys(t),g=i.length,d=0,r=[],f=new Promise(function(L,T){var x=function(m){if(r.push.apply(r,m),d++,d===g)return s(r),r.length?T(new AsyncValidationError(r,convertFieldsError(r))):L(u)};i.length||(s(r),L(u)),i.forEach(function(c){var m=t[c];o.indexOf(c)!==-1?asyncSerialArray(m,n,x):asyncParallelArray(m,n,x)})});return f.catch(function(L){return L}),f}function isErrorObj(t){return!!(t&&t.message!==void 0)}function getValue(t,e){for(var n=t,s=0;s<e.length;s++){if(n==null)return n;n=n[e[s]]}return n}function complementError(t,e){return function(n){var s;return t.fullFields?s=getValue(e,t.fullFields):s=e[n.field||t.fullField],isErrorObj(n)?(n.field=n.field||t.fullField,n.fieldValue=s,n):{message:typeof n=="function"?n():n,fieldValue:s,field:n.field||t.fullField}}}function deepMerge(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var s=e[n];typeof s=="object"&&typeof t[n]=="object"?t[n]=_extends({},t[n],s):t[n]=s}}return t}var required$1=function t(e,n,s,u,l,o){e.required&&(!s.hasOwnProperty(e.field)||isEmptyValue(n,o||e.type))&&u.push(format(l.messages.required,e.fullField))},whitespace=function t(e,n,s,u,l){(/^\s+$/.test(n)||n==="")&&u.push(format(l.messages.whitespace,e.fullField))},urlReg,getUrlRegex=(function(){if(urlReg)return urlReg;var t="[a-fA-F\\d:]",e=function(j){return j&&j.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",s="[a-fA-F\\d]{1,4}",u=(`
(?:
(?:`+s+":){7}(?:"+s+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+s+":){6}(?:"+n+"|:"+s+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+s+":){5}(?::"+n+"|(?::"+s+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+s+":){4}(?:(?::"+s+"){0,1}:"+n+"|(?::"+s+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+s+":){3}(?:(?::"+s+"){0,2}:"+n+"|(?::"+s+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+s+":){2}(?:(?::"+s+"){0,3}:"+n+"|(?::"+s+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+s+":){1}(?:(?::"+s+"){0,4}:"+n+"|(?::"+s+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+s+"){0,5}:"+n+"|(?::"+s+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+u+"$)"),o=new RegExp("^"+n+"$"),i=new RegExp("^"+u+"$"),g=function(j){return j&&j.exact?l:new RegExp("(?:"+e(j)+n+e(j)+")|(?:"+e(j)+u+e(j)+")","g")};g.v4=function(b){return b&&b.exact?o:new RegExp(""+e(b)+n+e(b),"g")},g.v6=function(b){return b&&b.exact?i:new RegExp(""+e(b)+u+e(b),"g")};var d="(?:(?:[a-z]+:)?//)",r="(?:\\S+(?::\\S*)?@)?",f=g.v4().source,L=g.v6().source,T="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",x="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",c="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',O="(?:"+d+"|www\\.)"+r+"(?:localhost|"+f+"|"+L+"|"+T+x+c+")"+m+y;return urlReg=new RegExp("(?:^"+O+"$)","i"),urlReg}),pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function t(e){return types.number(e)&&parseInt(e,10)===e},float:function t(e){return types.number(e)&&!types.integer(e)},array:function t(e){return Array.isArray(e)},regexp:function t(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function t(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function t(e){return isNaN(e)?!1:typeof e=="number"},object:function t(e){return typeof e=="object"&&!types.array(e)},method:function t(e){return typeof e=="function"},email:function t(e){return typeof e=="string"&&e.length<=320&&!!e.match(pattern$2.email)},url:function t(e){return typeof e=="string"&&e.length<=2048&&!!e.match(getUrlRegex())},hex:function t(e){return typeof e=="string"&&!!e.match(pattern$2.hex)}},type$1=function t(e,n,s,u,l){if(e.required&&n===void 0){required$1(e,n,s,u,l);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;o.indexOf(i)>-1?types[i](n)||u.push(format(l.messages.types[i],e.fullField,e.type)):i&&typeof n!==e.type&&u.push(format(l.messages.types[i],e.fullField,e.type))},range=function t(e,n,s,u,l){var o=typeof e.len=="number",i=typeof e.min=="number",g=typeof e.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,r=n,f=null,L=typeof n=="number",T=typeof n=="string",x=Array.isArray(n);if(L?f="number":T?f="string":x&&(f="array"),!f)return!1;x&&(r=n.length),T&&(r=n.replace(d,"_").length),o?r!==e.len&&u.push(format(l.messages[f].len,e.fullField,e.len)):i&&!g&&r<e.min?u.push(format(l.messages[f].min,e.fullField,e.min)):g&&!i&&r>e.max?u.push(format(l.messages[f].max,e.fullField,e.max)):i&&g&&(r<e.min||r>e.max)&&u.push(format(l.messages[f].range,e.fullField,e.min,e.max))},ENUM$1="enum",enumerable$1=function t(e,n,s,u,l){e[ENUM$1]=Array.isArray(e[ENUM$1])?e[ENUM$1]:[],e[ENUM$1].indexOf(n)===-1&&u.push(format(l.messages[ENUM$1],e.fullField,e[ENUM$1].join(", ")))},pattern$1=function t(e,n,s,u,l){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||u.push(format(l.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(n)||u.push(format(l.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n,"string")&&!e.required)return s();rules.required(e,n,u,o,l,"string"),isEmptyValue(n,"string")||(rules.type(e,n,u,o,l),rules.range(e,n,u,o,l),rules.pattern(e,n,u,o,l),e.whitespace===!0&&rules.whitespace(e,n,u,o,l))}s(o)},method2=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n)&&!e.required)return s();rules.required(e,n,u,o,l),n!==void 0&&rules.type(e,n,u,o,l)}s(o)},number2=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(n===""&&(n=void 0),isEmptyValue(n)&&!e.required)return s();rules.required(e,n,u,o,l),n!==void 0&&(rules.type(e,n,u,o,l),rules.range(e,n,u,o,l))}s(o)},_boolean=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n)&&!e.required)return s();rules.required(e,n,u,o,l),n!==void 0&&rules.type(e,n,u,o,l)}s(o)},regexp2=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n)&&!e.required)return s();rules.required(e,n,u,o,l),isEmptyValue(n)||rules.type(e,n,u,o,l)}s(o)},integer2=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n)&&!e.required)return s();rules.required(e,n,u,o,l),n!==void 0&&(rules.type(e,n,u,o,l),rules.range(e,n,u,o,l))}s(o)},floatFn=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n)&&!e.required)return s();rules.required(e,n,u,o,l),n!==void 0&&(rules.type(e,n,u,o,l),rules.range(e,n,u,o,l))}s(o)},array2=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(n==null&&!e.required)return s();rules.required(e,n,u,o,l,"array"),n!=null&&(rules.type(e,n,u,o,l),rules.range(e,n,u,o,l))}s(o)},object2=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n)&&!e.required)return s();rules.required(e,n,u,o,l),n!==void 0&&rules.type(e,n,u,o,l)}s(o)},ENUM="enum",enumerable2=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n)&&!e.required)return s();rules.required(e,n,u,o,l),n!==void 0&&rules[ENUM](e,n,u,o,l)}s(o)},pattern2=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n,"string")&&!e.required)return s();rules.required(e,n,u,o,l),isEmptyValue(n,"string")||rules.pattern(e,n,u,o,l)}s(o)},date2=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n,"date")&&!e.required)return s();if(rules.required(e,n,u,o,l),!isEmptyValue(n,"date")){var g;n instanceof Date?g=n:g=new Date(n),rules.type(e,g,u,o,l),g&&rules.range(e,g.getTime(),u,o,l)}}s(o)},required2=function t(e,n,s,u,l){var o=[],i=Array.isArray(n)?"array":typeof n;rules.required(e,n,u,o,l,i),s(o)},type2=function t(e,n,s,u,l){var o=e.type,i=[],g=e.required||!e.required&&u.hasOwnProperty(e.field);if(g){if(isEmptyValue(n,o)&&!e.required)return s();rules.required(e,n,u,i,l,o),isEmptyValue(n,o)||rules.type(e,n,u,i,l)}s(i)},any=function t(e,n,s,u,l){var o=[],i=e.required||!e.required&&u.hasOwnProperty(e.field);if(i){if(isEmptyValue(n)&&!e.required)return s();rules.required(e,n,u,o,l)}s(o)},validators$2={string,method:method2,number:number2,boolean:_boolean,regexp:regexp2,integer:integer2,float:floatFn,array:array2,object:object2,enum:enumerable2,pattern:pattern2,date:date2,url:type2,hex:type2,email:type2,required:required2,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var messages=newMessages(),Schema=(function(){function t(n){this.rules=null,this._messages=messages,this.define(n)}var e=t.prototype;return e.define=function(s){var u=this;if(!s)throw new Error("Cannot configure a schema with no rules");if(typeof s!="object"||Array.isArray(s))throw new Error("Rules must be an object");this.rules={},Object.keys(s).forEach(function(l){var o=s[l];u.rules[l]=Array.isArray(o)?o:[o]})},e.messages=function(s){return s&&(this._messages=deepMerge(newMessages(),s)),this._messages},e.validate=function(s,u,l){var o=this;u===void 0&&(u={}),l===void 0&&(l=function(){});var i=s,g=u,d=l;if(typeof g=="function"&&(d=g,g={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,i),Promise.resolve(i);function r(c){var m=[],y={};function O(j){if(Array.isArray(j)){var F;m=(F=m).concat.apply(F,j)}else m.push(j)}for(var b=0;b<c.length;b++)O(c[b]);m.length?(y=convertFieldsError(m),d(m,y)):d(null,i)}if(g.messages){var f=this.messages();f===messages&&(f=newMessages()),deepMerge(f,g.messages),g.messages=f}else g.messages=this.messages();var L={},T=g.keys||Object.keys(this.rules);T.forEach(function(c){var m=o.rules[c],y=i[c];m.forEach(function(O){var b=O;typeof b.transform=="function"&&(i===s&&(i=_extends({},i)),y=i[c]=b.transform(y)),typeof b=="function"?b={validator:b}:b=_extends({},b),b.validator=o.getValidationMethod(b),b.validator&&(b.field=c,b.fullField=b.fullField||c,b.type=o.getType(b),L[c]=L[c]||[],L[c].push({rule:b,value:y,source:i,field:c}))})});var x={};return asyncMap(L,g,function(c,m){var y=c.rule,O=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");O=O&&(y.required||!y.required&&c.value),y.field=c.field;function b(k,_){return _extends({},_,{fullField:y.fullField+"."+k,fullFields:y.fullFields?[].concat(y.fullFields,[k]):[k]})}function j(k){k===void 0&&(k=[]);var _=Array.isArray(k)?k:[k];!g.suppressWarning&&_.length&&t.warning("async-validator:",_),_.length&&y.message!==void 0&&(_=[].concat(y.message));var ue=_.map(complementError(y,i));if(g.first&&ue.length)return x[y.field]=1,m(ue);if(!O)m(ue);else{if(y.required&&!c.value)return y.message!==void 0?ue=[].concat(y.message).map(complementError(y,i)):g.error&&(ue=[g.error(y,format(g.messages.required,y.field))]),m(ue);var re={};y.defaultField&&Object.keys(c.value).map(function(w){re[w]=y.defaultField}),re=_extends({},re,c.rule.fields);var de={};Object.keys(re).forEach(function(w){var le=re[w],V=Array.isArray(le)?le:[le];de[w]=V.map(b.bind(null,w))});var he=new t(de);he.messages(g.messages),c.rule.options&&(c.rule.options.messages=g.messages,c.rule.options.error=g.error),he.validate(c.value,c.rule.options||g,function(w){var le=[];ue&&ue.length&&le.push.apply(le,ue),w&&w.length&&le.push.apply(le,w),m(le.length?le:null)})}}var F;if(y.asyncValidator)F=y.asyncValidator(y,c.value,j,c.source,g);else if(y.validator){try{F=y.validator(y,c.value,j,c.source,g)}catch(k){console.error?.(k),g.suppressValidatorError||setTimeout(function(){throw k},0),j(k.message)}F===!0?j():F===!1?j(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):F instanceof Array?j(F):F instanceof Error&&j(F.message)}F&&F.then&&F.then(function(){return j()},function(k){return j(k)})},function(c){r(c)},i)},e.getType=function(s){if(s.type===void 0&&s.pattern instanceof RegExp&&(s.type="pattern"),typeof s.validator!="function"&&s.type&&!validators$2.hasOwnProperty(s.type))throw new Error(format("Unknown rule type %s",s.type));return s.type||"string"},e.getValidationMethod=function(s){if(typeof s.validator=="function")return s.validator;var u=Object.keys(s),l=u.indexOf("message");return l!==-1&&u.splice(l,1),u.length===1&&u[0]==="required"?validators$2.required:validators$2[this.getType(s)]||void 0},t})();Schema.register=function t(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators$2[e]=n};Schema.warning=warning;Schema.messages=messages;Schema.validators=validators$2;const formItemValidateStates=["","error","validating","success"],formItemProps=buildProps({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:definePropType([String,Array])},required:{type:Boolean,default:void 0},rules:{type:definePropType([Object,Array])},error:String,validateStatus:{type:String,values:formItemValidateStates},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:componentSizes}}),COMPONENT_NAME$4="ElLabelWrap";var FormLabelWrap=defineComponent({name:COMPONENT_NAME$4,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(t,{slots:e}){const n=inject(formContextKey,void 0),s=inject(formItemContextKey);s||throwError(COMPONENT_NAME$4,"usage: <el-form-item><label-wrap /></el-form-item>");const u=useNamespace("form"),l=ref(),o=ref(0),i=()=>{var r;if((r=l.value)!=null&&r.firstElementChild){const f=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},g=(r="update")=>{nextTick(()=>{e.default&&t.isAutoWidth&&(r==="update"?o.value=i():r==="remove"&&n?.deregisterLabelWidth(o.value))})},d=()=>g("update");return onMounted(()=>{d()}),onBeforeUnmount(()=>{g("remove")}),onUpdated(()=>d()),watch(o,(r,f)=>{t.updateAll&&n?.registerLabelWidth(r,f)}),useResizeObserver(computed(()=>{var r,f;return(f=(r=l.value)==null?void 0:r.firstElementChild)!=null?f:null}),d),()=>{var r,f;if(!e)return null;const{isAutoWidth:L}=t;if(L){const T=n?.autoLabelWidth,x=s?.hasLabel,c={};if(x&&T&&T!=="auto"){const m=Math.max(0,Number.parseInt(T,10)-o.value),O=(s.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";m&&(c[O]=`${m}px`)}return createVNode("div",{ref:l,class:[u.be("item","label-wrap")],style:c},[(r=e.default)==null?void 0:r.call(e)])}else return createVNode(Fragment,{ref:l},[(f=e.default)==null?void 0:f.call(e)])}}});const __default__$6=defineComponent({name:"ElFormItem"}),_sfc_main$e=defineComponent({...__default__$6,props:formItemProps,setup(t,{expose:e}){const n=t,s=useSlots(),u=inject(formContextKey,void 0),l=inject(formItemContextKey,void 0),o=useFormSize(void 0,{formItem:!1}),i=useNamespace("form-item"),g=useId().value,d=ref([]),r=ref(""),f=refDebounced(r,100),L=ref(""),T=ref();let x,c=!1;const m=computed(()=>n.labelPosition||u?.labelPosition),y=computed(()=>{if(m.value==="top")return{};const Ue=addUnit(n.labelWidth||u?.labelWidth||"");return Ue?{width:Ue}:{}}),O=computed(()=>{if(m.value==="top"||u?.inline)return{};if(!n.label&&!n.labelWidth&&de)return{};const Ue=addUnit(n.labelWidth||u?.labelWidth||"");return!n.label&&!s.label?{marginLeft:Ue}:{}}),b=computed(()=>[i.b(),i.m(o.value),i.is("error",r.value==="error"),i.is("validating",r.value==="validating"),i.is("success",r.value==="success"),i.is("required",Ce.value||n.required),i.is("no-asterisk",u?.hideRequiredAsterisk),u?.requireAsteriskPosition==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:u?.statusIcon,[i.m(`label-${m.value}`)]:m.value}]),j=computed(()=>isBoolean$1(n.inlineMessage)?n.inlineMessage:u?.inlineMessage||!1),F=computed(()=>[i.e("error"),{[i.em("error","inline")]:j.value}]),k=computed(()=>n.prop?isArray$3(n.prop)?n.prop.join("."):n.prop:""),_=computed(()=>!!(n.label||s.label)),ue=computed(()=>{var Ue;return(Ue=n.for)!=null?Ue:d.value.length===1?d.value[0]:void 0}),re=computed(()=>!ue.value&&_.value),de=!!l,he=computed(()=>{const Ue=u?.model;if(!(!Ue||!n.prop))return getProp(Ue,n.prop).value}),w=computed(()=>{const{required:Ue}=n,M=[];n.rules&&M.push(...castArray$1(n.rules));const Pt=u?.rules;if(Pt&&n.prop){const hn=getProp(Pt,n.prop).value;hn&&M.push(...castArray$1(hn))}if(Ue!==void 0){const hn=M.map((Oe,Fe)=>[Oe,Fe]).filter(([Oe])=>"required"in Oe);if(hn.length>0)for(const[Oe,Fe]of hn)Oe.required!==Ue&&(M[Fe]={...Oe,required:Ue});else M.push({required:Ue})}return M}),le=computed(()=>w.value.length>0),V=Ue=>w.value.filter(Pt=>!Pt.trigger||!Ue?!0:isArray$3(Pt.trigger)?Pt.trigger.includes(Ue):Pt.trigger===Ue).map(({trigger:Pt,...hn})=>hn),Ce=computed(()=>w.value.some(Ue=>Ue.required)),_e=computed(()=>{var Ue;return f.value==="error"&&n.showMessage&&((Ue=u?.showMessage)!=null?Ue:!0)}),D=computed(()=>`${n.label||""}${u?.labelSuffix||""}`),Ie=Ue=>{r.value=Ue},Lt=Ue=>{var M,Pt;const{errors:hn,fields:Oe}=Ue;(!hn||!Oe)&&console.error(Ue),Ie("error"),L.value=hn?(Pt=(M=hn?.[0])==null?void 0:M.message)!=null?Pt:`${n.prop} is required`:"",u?.emit("validate",n.prop,!1,L.value)},At=()=>{Ie("success"),u?.emit("validate",n.prop,!0,"")},ie=async Ue=>{const M=k.value;return new Schema({[M]:Ue}).validate({[M]:he.value},{firstFields:!0}).then(()=>(At(),!0)).catch(hn=>(Lt(hn),Promise.reject(hn)))},Ve=async(Ue,M)=>{if(c||!n.prop)return!1;const Pt=isFunction$3(M);if(!le.value)return M?.(!1),!1;const hn=V(Ue);return hn.length===0?(M?.(!0),!0):(Ie("validating"),ie(hn).then(()=>(M?.(!0),!0)).catch(Oe=>{const{fields:Fe}=Oe;return M?.(!1,Fe),Pt?!1:Promise.reject(Fe)}))},ze=()=>{Ie(""),L.value="",c=!1},z=async()=>{const Ue=u?.model;if(!Ue||!n.prop)return;const M=getProp(Ue,n.prop);c=!0,M.value=clone(x),await nextTick(),ze(),c=!1},Dt=Ue=>{d.value.includes(Ue)||d.value.push(Ue)},v=Ue=>{d.value=d.value.filter(M=>M!==Ue)};watch(()=>n.error,Ue=>{L.value=Ue||"",Ie(Ue?"error":"")},{immediate:!0}),watch(()=>n.validateStatus,Ue=>Ie(Ue||""));const S=reactive({...toRefs(n),$el:T,size:o,validateMessage:L,validateState:r,labelId:g,inputIds:d,isGroup:re,hasLabel:_,fieldValue:he,addInputId:Dt,removeInputId:v,resetField:z,clearValidate:ze,validate:Ve,propString:k});return provide(formItemContextKey,S),onMounted(()=>{n.prop&&(u?.addField(S),x=clone(he.value))}),onBeforeUnmount(()=>{u?.removeField(S)}),e({size:o,validateMessage:L,validateState:r,validate:Ve,clearValidate:ze,resetField:z}),(Ue,M)=>{var Pt;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:T,class:normalizeClass(unref(b)),role:unref(re)?"group":void 0,"aria-labelledby":unref(re)?unref(g):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(y).width==="auto","update-all":((Pt=unref(u))==null?void 0:Pt.labelWidth)==="auto"},{default:withCtx(()=>[unref(_)?(openBlock(),createBlock(resolveDynamicComponent(unref(ue)?"label":"div"),{key:0,id:unref(g),for:unref(ue),class:normalizeClass(unref(i).e("label")),style:normalizeStyle(unref(y))},{default:withCtx(()=>[renderSlot(Ue.$slots,"label",{label:unref(D)},()=>[createTextVNode(toDisplayString(unref(D)),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(i).e("content")),style:normalizeStyle(unref(O))},[renderSlot(Ue.$slots,"default"),createVNode(TransitionGroup,{name:`${unref(i).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(_e)?renderSlot(Ue.$slots,"error",{key:0,error:L.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(F))},toDisplayString(L.value),3)]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var FormItem=_export_sfc(_sfc_main$e,[["__file","form-item.vue"]]);const ElForm=withInstall(Form,{FormItem}),ElFormItem=withNoopInstall(FormItem),inputNumberProps=buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:Boolean,size:useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:t=>t===null||isNumber$1(t)||["min","max"].includes(t),default:null},name:String,placeholder:String,precision:{type:Number,validator:t=>t>=0&&t===Number.parseInt(`${t}`,10)},validateEvent:{type:Boolean,default:!0},...useAriaProps(["ariaLabel"]),inputmode:{type:definePropType(String),default:void 0},align:{type:definePropType(String),default:"center"},disabledScientific:Boolean}),inputNumberEmits={[CHANGE_EVENT]:(t,e)=>e!==t,blur:t=>t instanceof FocusEvent,focus:t=>t instanceof FocusEvent,[INPUT_EVENT]:t=>isNumber$1(t)||isNil(t),[UPDATE_MODEL_EVENT]:t=>isNumber$1(t)||isNil(t)},__default__$5=defineComponent({name:"ElInputNumber"}),_sfc_main$d=defineComponent({...__default__$5,props:inputNumberProps,emits:inputNumberEmits,setup(t,{expose:e,emit:n}){const s=t,{t:u}=useLocale(),l=useNamespace("input-number"),o=ref(),i=reactive({currentValue:s.modelValue,userInput:null}),{formItem:g}=useFormItem(),d=computed(()=>isNumber$1(s.modelValue)&&s.modelValue<=s.min),r=computed(()=>isNumber$1(s.modelValue)&&s.modelValue>=s.max),f=computed(()=>{const _e=y(s.step);return isUndefined$1(s.precision)?Math.max(y(s.modelValue),_e):(_e>s.precision,s.precision)}),L=computed(()=>s.controls&&s.controlsPosition==="right"),T=useFormSize(),x=useFormDisabled(),c=computed(()=>{if(i.userInput!==null)return i.userInput;let _e=i.currentValue;if(isNil(_e))return"";if(isNumber$1(_e)){if(Number.isNaN(_e))return"";isUndefined$1(s.precision)||(_e=_e.toFixed(s.precision))}return _e}),m=(_e,D)=>{if(isUndefined$1(D)&&(D=f.value),D===0)return Math.round(_e);let Ie=String(_e);const Lt=Ie.indexOf(".");if(Lt===-1||!Ie.replace(".","").split("")[Lt+D])return _e;const Ve=Ie.length;return Ie.charAt(Ve-1)==="5"&&(Ie=`${Ie.slice(0,Math.max(0,Ve-1))}6`),Number.parseFloat(Number(Ie).toFixed(D))},y=_e=>{if(isNil(_e))return 0;const D=_e.toString(),Ie=D.indexOf(".");let Lt=0;return Ie!==-1&&(Lt=D.length-Ie-1),Lt},O=(_e,D=1)=>isNumber$1(_e)?_e>=Number.MAX_SAFE_INTEGER&&D===1||_e<=Number.MIN_SAFE_INTEGER&&D===-1?_e:m(_e+s.step*D):i.currentValue,b=_e=>{const D=getEventCode(_e),Ie=getEventKey(_e);if(s.disabledScientific&&["e","E"].includes(Ie)){_e.preventDefault();return}switch(D){case EVENT_CODE.up:{_e.preventDefault(),j();break}case EVENT_CODE.down:{_e.preventDefault(),F();break}}},j=()=>{if(s.readonly||x.value||r.value)return;const _e=Number(c.value)||0,D=O(_e);_(D),n(INPUT_EVENT,i.currentValue),V()},F=()=>{if(s.readonly||x.value||d.value)return;const _e=Number(c.value)||0,D=O(_e,-1);_(D),n(INPUT_EVENT,i.currentValue),V()},k=(_e,D)=>{const{max:Ie,min:Lt,step:At,precision:ie,stepStrictly:Ve,valueOnClear:ze}=s;Ie<Lt&&throwError("InputNumber","min should not be greater than max.");let z=Number(_e);if(isNil(_e)||Number.isNaN(z))return null;if(_e===""){if(ze===null)return null;z=isString$2(ze)?{min:Lt,max:Ie}[ze]:ze}return Ve&&(z=m(Math.round(z/At)*At,ie),z!==_e&&D&&n(UPDATE_MODEL_EVENT,z)),isUndefined$1(ie)||(z=m(z,ie)),(z>Ie||z<Lt)&&(z=z>Ie?Ie:Lt,D&&n(UPDATE_MODEL_EVENT,z)),z},_=(_e,D=!0)=>{var Ie;const Lt=i.currentValue,At=k(_e);if(!D){n(UPDATE_MODEL_EVENT,At);return}Lt===At&&_e||(i.userInput=null,n(UPDATE_MODEL_EVENT,At),Lt!==At&&n(CHANGE_EVENT,At,Lt),s.validateEvent&&((Ie=g?.validate)==null||Ie.call(g,"change").catch(ie=>void 0)),i.currentValue=At)},ue=_e=>{i.userInput=_e;const D=_e===""?null:Number(_e);n(INPUT_EVENT,D),_(D,!1)},re=_e=>{const D=_e!==""?Number(_e):"";(isNumber$1(D)&&!Number.isNaN(D)||_e==="")&&_(D),V(),i.userInput=null},de=()=>{var _e,D;(D=(_e=o.value)==null?void 0:_e.focus)==null||D.call(_e)},he=()=>{var _e,D;(D=(_e=o.value)==null?void 0:_e.blur)==null||D.call(_e)},w=_e=>{n("focus",_e)},le=_e=>{var D,Ie;i.userInput=null,i.currentValue===null&&((D=o.value)!=null&&D.input)&&(o.value.input.value=""),n("blur",_e),s.validateEvent&&((Ie=g?.validate)==null||Ie.call(g,"blur").catch(Lt=>void 0))},V=()=>{i.currentValue!==s.modelValue&&(i.currentValue=s.modelValue)},Ce=_e=>{document.activeElement===_e.target&&_e.preventDefault()};return watch(()=>s.modelValue,(_e,D)=>{const Ie=k(_e,!0);i.userInput===null&&Ie!==D&&(i.currentValue=Ie)},{immediate:!0}),watch(()=>s.precision,()=>{i.currentValue=k(s.modelValue)}),onMounted(()=>{var _e;const{min:D,max:Ie,modelValue:Lt}=s,At=(_e=o.value)==null?void 0:_e.input;if(At.setAttribute("role","spinbutton"),Number.isFinite(Ie)?At.setAttribute("aria-valuemax",String(Ie)):At.removeAttribute("aria-valuemax"),Number.isFinite(D)?At.setAttribute("aria-valuemin",String(D)):At.removeAttribute("aria-valuemin"),At.setAttribute("aria-valuenow",i.currentValue||i.currentValue===0?String(i.currentValue):""),At.setAttribute("aria-disabled",String(x.value)),!isNumber$1(Lt)&&Lt!=null){let ie=Number(Lt);Number.isNaN(ie)&&(ie=null),n(UPDATE_MODEL_EVENT,ie)}At.addEventListener("wheel",Ce,{passive:!1})}),onUpdated(()=>{var _e,D;const Ie=(_e=o.value)==null?void 0:_e.input;Ie?.setAttribute("aria-valuenow",`${(D=i.currentValue)!=null?D:""}`)}),e({focus:de,blur:he}),(_e,D)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(l).b(),unref(l).m(unref(T)),unref(l).is("disabled",unref(x)),unref(l).is("without-controls",!_e.controls),unref(l).is("controls-right",unref(L)),unref(l).is(_e.align,!!_e.align)]),onDragstart:withModifiers(()=>{},["prevent"])},[_e.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":unref(u)("el.inputNumber.decrease"),class:normalizeClass([unref(l).e("decrease"),unref(l).is("disabled",unref(d))]),onKeydown:withKeys(F,["enter"])},[renderSlot(_e.$slots,"decrease-icon",{},()=>[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(L)?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[unref(vRepeatClick),F]]):createCommentVNode("v-if",!0),_e.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":unref(u)("el.inputNumber.increase"),class:normalizeClass([unref(l).e("increase"),unref(l).is("disabled",unref(r))]),onKeydown:withKeys(j,["enter"])},[renderSlot(_e.$slots,"increase-icon",{},()=>[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(L)?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[unref(vRepeatClick),j]]):createCommentVNode("v-if",!0),createVNode(unref(ElInput),{id:_e.id,ref_key:"input",ref:o,type:"number",step:_e.step,"model-value":unref(c),placeholder:_e.placeholder,readonly:_e.readonly,disabled:unref(x),size:unref(T),max:_e.max,min:_e.min,name:_e.name,"aria-label":_e.ariaLabel,"validate-event":!1,inputmode:_e.inputmode,onKeyup:b,onBlur:le,onFocus:w,onInput:ue,onChange:re},createSlots({_:2},[_e.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(_e.$slots,"prefix")])}:void 0,_e.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(_e.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],42,["onDragstart"]))}});var InputNumber=_export_sfc(_sfc_main$d,[["__file","input-number.vue"]]);const ElInputNumber=withInstall(InputNumber),MINIMUM_INPUT_WIDTH=11,BORDER_HORIZONTAL_WIDTH=2;function useCalcInputWidth(){const t=shallowRef(),e=ref(0),n=computed(()=>({minWidth:`${Math.max(e.value,MINIMUM_INPUT_WIDTH)}px`}));return useResizeObserver(t,()=>{var u,l;e.value=(l=(u=t.value)==null?void 0:u.getBoundingClientRect().width)!=null?l:0}),{calculatorRef:t,calculatorWidth:e,inputStyle:n}}let SubMenu$1=class{constructor(e,n){this.parent=e,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",s=>{const u=getEventCode(s);let l=!1;switch(u){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),l=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),l=!0;break}case EVENT_CODE.tab:{triggerEvent(e,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:case EVENT_CODE.space:{l=!0,s.currentTarget.click();break}}return l&&(s.preventDefault(),s.stopPropagation()),!1})})}},MenuItem$1=class{constructor(e,n){this.domNode=e,this.submenu=null,this.submenu=null,this.init(n)}init(e){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${e}-menu`);n&&(this.submenu=new SubMenu$1(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const n=getEventCode(e);let s=!1;switch(n){case EVENT_CODE.down:{triggerEvent(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),s=!0;break}case EVENT_CODE.up:{triggerEvent(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),s=!0;break}case EVENT_CODE.tab:{triggerEvent(e.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:case EVENT_CODE.space:{s=!0,e.currentTarget.click();break}}s&&e.preventDefault()})}},Menu$1=class{constructor(e,n){this.domNode=e,this.init(n)}init(e){const n=this.domNode.childNodes;Array.from(n).forEach(s=>{s.nodeType===1&&new MenuItem$1(s,e)})}};const __default__$4=defineComponent({name:"ElMenuCollapseTransition"}),_sfc_main$c=defineComponent({...__default__$4,setup(t){const e=useNamespace("menu"),n={onBeforeEnter:s=>s.style.opacity="0.2",onEnter(s,u){addClass(s,`${e.namespace.value}-opacity-transition`),s.style.opacity="1",u()},onAfterEnter(s){removeClass(s,`${e.namespace.value}-opacity-transition`),s.style.opacity=""},onBeforeLeave(s){s.dataset||(s.dataset={}),hasClass(s,e.m("collapse"))?(removeClass(s,e.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),addClass(s,e.m("collapse"))):(addClass(s,e.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),removeClass(s,e.m("collapse"))),s.style.width=`${s.scrollWidth}px`,s.style.overflow="hidden"},onLeave(s){addClass(s,"horizontal-collapse-transition"),s.style.width=`${s.dataset.scrollWidth}px`}};return(s,u)=>(openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},unref(n)),{default:withCtx(()=>[renderSlot(s.$slots,"default")]),_:3},16))}});var ElMenuCollapseTransition=_export_sfc(_sfc_main$c,[["__file","menu-collapse-transition.vue"]]);function useMenu(t,e){const n=computed(()=>{let u=t.parent;const l=[e.value];for(;u.type.name!=="ElMenu";)u.props.index&&l.unshift(u.props.index),u=u.parent;return l});return{parentMenu:computed(()=>{let u=t.parent;for(;u&&!["ElMenu","ElSubMenu"].includes(u.type.name);)u=u.parent;return u}),indexPath:n}}function useMenuColor(t){return computed(()=>{const n=t.backgroundColor;return n?new TinyColor(n).shade(20).toString():""})}const useMenuCssVar=(t,e)=>{const n=useNamespace("menu");return computed(()=>n.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":useMenuColor(t).value||"","active-color":t.activeTextColor||"",level:`${e}`}))},MENU_INJECTION_KEY="rootMenu",SUB_MENU_INJECTION_KEY="subMenu:",subMenuProps=buildProps({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:iconPropType},expandOpenIcon:{type:iconPropType},collapseCloseIcon:{type:iconPropType},collapseOpenIcon:{type:iconPropType}}),COMPONENT_NAME$3="ElSubMenu";var SubMenu=defineComponent({name:COMPONENT_NAME$3,props:subMenuProps,setup(t,{slots:e,expose:n}){const s=getCurrentInstance(),{indexPath:u,parentMenu:l}=useMenu(s,computed(()=>t.index)),o=useNamespace("menu"),i=useNamespace("sub-menu"),g=inject(MENU_INJECTION_KEY);g||throwError(COMPONENT_NAME$3,"can not inject root menu");const d=inject(`${SUB_MENU_INJECTION_KEY}${l.value.uid}`);d||throwError(COMPONENT_NAME$3,"can not inject sub menu");const r=ref({}),f=ref({});let L;const T=ref(!1),x=ref(),c=ref(),m=computed(()=>d.level===0),y=computed(()=>ue.value==="horizontal"&&m.value?"bottom-start":"right-start"),O=computed(()=>ue.value==="horizontal"&&m.value||ue.value==="vertical"&&!g.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?k.value?t.expandOpenIcon:t.expandCloseIcon:arrow_down_default:t.collapseCloseIcon&&t.collapseOpenIcon?k.value?t.collapseOpenIcon:t.collapseCloseIcon:arrow_right_default),b=computed(()=>{const ie=t.teleported;return isUndefined$1(ie)?m.value:ie}),j=computed(()=>g.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),F=computed(()=>ue.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),k=computed(()=>g.openedMenus.includes(t.index)),_=computed(()=>[...Object.values(r.value),...Object.values(f.value)].some(({active:ie})=>ie)),ue=computed(()=>g.props.mode),re=computed(()=>g.props.persistent),de=reactive({index:t.index,indexPath:u,active:_}),he=useMenuCssVar(g.props,d.level+1),w=computed(()=>{var ie;return(ie=t.popperOffset)!=null?ie:g.props.popperOffset}),le=computed(()=>{var ie;return(ie=t.popperClass)!=null?ie:g.props.popperClass}),V=computed(()=>{var ie;return(ie=t.showTimeout)!=null?ie:g.props.showTimeout}),Ce=computed(()=>{var ie;return(ie=t.hideTimeout)!=null?ie:g.props.hideTimeout}),_e=()=>{var ie,Ve,ze;return(ze=(Ve=(ie=c.value)==null?void 0:ie.popperRef)==null?void 0:Ve.popperInstanceRef)==null?void 0:ze.destroy()},D=ie=>{ie||_e()},Ie=()=>{g.props.menuTrigger==="hover"&&g.props.mode==="horizontal"||g.props.collapse&&g.props.mode==="vertical"||t.disabled||g.handleSubMenuClick({index:t.index,indexPath:u.value,active:_.value})},Lt=(ie,Ve=V.value)=>{var ze;if(ie.type!=="focus"){if(g.props.menuTrigger==="click"&&g.props.mode==="horizontal"||!g.props.collapse&&g.props.mode==="vertical"||t.disabled){d.mouseInChild.value=!0;return}d.mouseInChild.value=!0,L?.(),{stop:L}=useTimeoutFn(()=>{g.openMenu(t.index,u.value)},Ve),b.value&&((ze=l.value.vnode.el)==null||ze.dispatchEvent(new MouseEvent("mouseenter"))),ie.type==="mouseenter"&&ie.target&&nextTick(()=>{focusElement(ie.target,{preventScroll:!0})})}},At=(ie=!1)=>{var Ve;if(g.props.menuTrigger==="click"&&g.props.mode==="horizontal"||!g.props.collapse&&g.props.mode==="vertical"){d.mouseInChild.value=!1;return}L?.(),d.mouseInChild.value=!1,{stop:L}=useTimeoutFn(()=>!T.value&&g.closeMenu(t.index,u.value),Ce.value),b.value&&ie&&((Ve=d.handleMouseleave)==null||Ve.call(d,!0))};watch(()=>g.props.collapse,ie=>D(!!ie));{const ie=ze=>{f.value[ze.index]=ze},Ve=ze=>{delete f.value[ze.index]};provide(`${SUB_MENU_INJECTION_KEY}${s.uid}`,{addSubMenu:ie,removeSubMenu:Ve,handleMouseleave:At,mouseInChild:T,level:d.level+1})}return n({opened:k}),onMounted(()=>{g.addSubMenu(de),d.addSubMenu(de)}),onBeforeUnmount(()=>{d.removeSubMenu(de),g.removeSubMenu(de)}),()=>{var ie;const Ve=[(ie=e.title)==null?void 0:ie.call(e),h(ElIcon,{class:i.e("icon-arrow"),style:{transform:k.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&g.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>isString$2(O.value)?h(s.appContext.components[O.value]):h(O.value)})],ze=g.isMenuPopup?h(ElTooltip,{ref:c,visible:k.value,effect:"light",pure:!0,offset:w.value,showArrow:!1,persistent:re.value,popperClass:le.value,placement:y.value,teleported:b.value,fallbackPlacements:F.value,transition:j.value,gpuAcceleration:!1},{content:()=>{var z;return h("div",{class:[o.m(ue.value),o.m("popup-container"),le.value],onMouseenter:Dt=>Lt(Dt,100),onMouseleave:()=>At(!0),onFocus:Dt=>Lt(Dt,100)},[h("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${y.value}`)],style:he.value},[(z=e.default)==null?void 0:z.call(e)])])},default:()=>h("div",{class:i.e("title"),onClick:Ie},Ve)}):h(Fragment,{},[h("div",{class:i.e("title"),ref:x,onClick:Ie},Ve),h(ElCollapseTransition,{},{default:()=>{var z;return withDirectives(h("ul",{role:"menu",class:[o.b(),o.m("inline")],style:he.value},[(z=e.default)==null?void 0:z.call(e)]),[[vShow,k.value]])}})]);return h("li",{class:[i.b(),i.is("active",_.value),i.is("opened",k.value),i.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:k.value,onMouseenter:Lt,onMouseleave:()=>At(),onFocus:Lt},[ze])}}});const menuProps=buildProps({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:definePropType(Array),default:()=>mutable([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:iconPropType,default:()=>more_default},popperEffect:{type:definePropType(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),checkIndexPath=t=>isArray$3(t)&&t.every(e=>isString$2(e)),menuEmits={close:(t,e)=>isString$2(t)&&checkIndexPath(e),open:(t,e)=>isString$2(t)&&checkIndexPath(e),select:(t,e,n,s)=>isString$2(t)&&checkIndexPath(e)&&isObject$2(n)&&(isUndefined$1(s)||s instanceof Promise)};var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup(t,{emit:e,slots:n,expose:s}){const u=getCurrentInstance(),l=u.appContext.config.globalProperties.$router,o=ref(),i=ref(),g=useNamespace("menu"),d=useNamespace("sub-menu");let r=64;const f=ref(-1),L=ref(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),T=ref(t.defaultActive),x=ref({}),c=ref({}),m=computed(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),y=()=>{const D=T.value&&x.value[T.value];if(!D||t.mode==="horizontal"||t.collapse)return;D.indexPath.forEach(Lt=>{const At=c.value[Lt];At&&O(Lt,At.indexPath)})},O=(D,Ie)=>{L.value.includes(D)||(t.uniqueOpened&&(L.value=L.value.filter(Lt=>Ie.includes(Lt))),L.value.push(D),e("open",D,Ie))},b=D=>{const Ie=L.value.indexOf(D);Ie!==-1&&L.value.splice(Ie,1)},j=(D,Ie)=>{b(D),e("close",D,Ie)},F=({index:D,indexPath:Ie})=>{L.value.includes(D)?j(D,Ie):O(D,Ie)},k=D=>{(t.mode==="horizontal"||t.collapse)&&(L.value=[]);const{index:Ie,indexPath:Lt}=D;if(!(isNil(Ie)||isNil(Lt)))if(t.router&&l){const At=D.route||Ie,ie=l.push(At).then(Ve=>(Ve||(T.value=Ie),Ve));e("select",Ie,Lt,{index:Ie,indexPath:Lt,route:At},ie)}else T.value=Ie,e("select",Ie,Lt,{index:Ie,indexPath:Lt})},_=D=>{var Ie;const Lt=x.value,At=Lt[D]||T.value&&Lt[T.value]||Lt[t.defaultActive];T.value=(Ie=At?.index)!=null?Ie:D},ue=D=>{const Ie=getComputedStyle(D),Lt=Number.parseInt(Ie.marginLeft,10),At=Number.parseInt(Ie.marginRight,10);return D.offsetWidth+Lt+At||0},re=()=>{var D,Ie;if(!o.value)return-1;const Lt=Array.from((Ie=(D=o.value)==null?void 0:D.childNodes)!=null?Ie:[]).filter(v=>v.nodeName!=="#comment"&&(v.nodeName!=="#text"||v.nodeValue)),At=getComputedStyle(o.value),ie=Number.parseInt(At.paddingLeft,10),Ve=Number.parseInt(At.paddingRight,10),ze=o.value.clientWidth-ie-Ve;let z=0,Dt=0;return Lt.forEach((v,S)=>{z+=ue(v),z<=ze-r&&(Dt=S+1)}),Dt===Lt.length?-1:Dt},de=D=>c.value[D].indexPath,he=(D,Ie=33.34)=>{let Lt;return()=>{Lt&&clearTimeout(Lt),Lt=setTimeout(()=>{D()},Ie)}};let w=!0;const le=()=>{const D=unrefElement(i);if(D&&(r=ue(D)||64),f.value===re())return;const Ie=()=>{f.value=-1,nextTick(()=>{f.value=re()})};w?Ie():he(Ie)(),w=!1};watch(()=>t.defaultActive,D=>{x.value[D]||(T.value=""),_(D)}),watch(()=>t.collapse,D=>{D&&(L.value=[])}),watch(x.value,y);let V;watchEffect(()=>{t.mode==="horizontal"&&t.ellipsis?V=useResizeObserver(o,le).stop:V?.()});const Ce=ref(!1);{const D=ie=>{c.value[ie.index]=ie},Ie=ie=>{delete c.value[ie.index]};provide(MENU_INJECTION_KEY,reactive({props:t,openedMenus:L,items:x,subMenus:c,activeIndex:T,isMenuPopup:m,addMenuItem:ie=>{x.value[ie.index]=ie},removeMenuItem:ie=>{delete x.value[ie.index]},addSubMenu:D,removeSubMenu:Ie,openMenu:O,closeMenu:j,handleMenuItemClick:k,handleSubMenuClick:F})),provide(`${SUB_MENU_INJECTION_KEY}${u.uid}`,{addSubMenu:D,removeSubMenu:Ie,mouseInChild:Ce,level:0})}onMounted(()=>{t.mode==="horizontal"&&new Menu$1(u.vnode.el,g.namespace.value)}),s({open:Ie=>{const{indexPath:Lt}=c.value[Ie];Lt.forEach(At=>O(At,Lt))},close:b,updateActiveIndex:_,handleResize:le});const _e=useMenuCssVar(t,0);return()=>{var D,Ie;let Lt=(Ie=(D=n.default)==null?void 0:D.call(n))!=null?Ie:[];const At=[];if(t.mode==="horizontal"&&o.value){const ze=flattedChildren(Lt).filter(v=>v?.shapeFlag!==8),z=f.value===-1?ze:ze.slice(0,f.value),Dt=f.value===-1?[]:ze.slice(f.value);Dt?.length&&t.ellipsis&&(Lt=z,At.push(h(SubMenu,{ref:i,index:"sub-menu-more",class:d.e("hide-arrow"),popperOffset:t.popperOffset},{title:()=>h(ElIcon,{class:d.e("icon-more")},{default:()=>h(t.ellipsisIcon)}),default:()=>Dt})))}const ie=t.closeOnClickOutside?[[ClickOutside,()=>{L.value.length&&(Ce.value||(L.value.forEach(ze=>e("close",ze,de(ze))),L.value=[]))}]]:[],Ve=withDirectives(h("ul",{key:String(t.collapse),role:"menubar",ref:o,style:_e.value,class:{[g.b()]:!0,[g.m(t.mode)]:!0,[g.m("collapse")]:t.collapse}},[...Lt,...At]),ie);return t.collapseTransition&&t.mode==="vertical"?h(ElMenuCollapseTransition,()=>Ve):Ve}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:t=>isString$2(t.index)&&isArray$3(t.indexPath)},COMPONENT_NAME$2="ElMenuItem",__default__$3=defineComponent({name:COMPONENT_NAME$2}),_sfc_main$b=defineComponent({...__default__$3,props:menuItemProps,emits:menuItemEmits,setup(t,{expose:e,emit:n}){const s=t;isPropAbsent(s.index)&&void 0;const u=getCurrentInstance(),l=inject(MENU_INJECTION_KEY),o=useNamespace("menu"),i=useNamespace("menu-item");l||throwError(COMPONENT_NAME$2,"can not inject root menu");const{parentMenu:g,indexPath:d}=useMenu(u,toRef(s,"index")),r=inject(`${SUB_MENU_INJECTION_KEY}${g.value.uid}`);r||throwError(COMPONENT_NAME$2,"can not inject sub menu");const f=computed(()=>s.index===l.activeIndex),L=reactive({index:s.index,indexPath:d,active:f}),T=()=>{s.disabled||(l.handleMenuItemClick({index:s.index,indexPath:d.value,route:s.route}),n("click",L))};return onMounted(()=>{r.addSubMenu(L),l.addMenuItem(L)}),onBeforeUnmount(()=>{r.removeSubMenu(L),l.removeMenuItem(L)}),e({parentMenu:g,rootMenu:l,active:f,nsMenu:o,nsMenuItem:i,handleClick:T}),(x,c)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref(i).b(),unref(i).is("active",unref(f)),unref(i).is("disabled",x.disabled)]),role:"menuitem",tabindex:"-1",onClick:T},[unref(g).type.name==="ElMenu"&&unref(l).props.collapse&&x.$slots.title?(openBlock(),createBlock(unref(ElTooltip),{key:0,effect:unref(l).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:unref(l).props.persistent,"focus-on-target":""},{content:withCtx(()=>[renderSlot(x.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(o).be("tooltip","trigger"))},[renderSlot(x.$slots,"default")],2)]),_:3},8,["effect","persistent"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot(x.$slots,"default"),renderSlot(x.$slots,"title")],64))],2))}});var MenuItem=_export_sfc(_sfc_main$b,[["__file","menu-item.vue"]]);const menuItemGroupProps={title:String},__default__$2=defineComponent({name:"ElMenuItemGroup"}),_sfc_main$a=defineComponent({...__default__$2,props:menuItemGroupProps,setup(t){const e=useNamespace("menu-item-group");return(n,s)=>(openBlock(),createElementBlock("li",{class:normalizeClass(unref(e).b())},[createBaseVNode("div",{class:normalizeClass(unref(e).e("title"))},[n.$slots.title?renderSlot(n.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(n.title),1)],64))],2),createBaseVNode("ul",null,[renderSlot(n.$slots,"default")])],2))}});var MenuItemGroup=_export_sfc(_sfc_main$a,[["__file","menu-item-group.vue"]]);const ElMenu=withInstall(Menu,{MenuItem,MenuItemGroup,SubMenu}),ElMenuItem=withNoopInstall(MenuItem);withNoopInstall(MenuItemGroup);withNoopInstall(SubMenu);const defaultProps={label:"label",value:"value",disabled:"disabled",options:"options"};function useProps(t){const e=computed(()=>({...defaultProps,...t.props}));return{aliasProps:e,getLabel:o=>get(o,e.value.label),getValue:o=>get(o,e.value.value),getDisabled:o=>get(o,e.value.disabled),getOptions:o=>get(o,e.value.options)}}const selectGroupKey=Symbol("ElSelectGroup"),selectKey=Symbol("ElSelect"),COMPONENT_NAME$1="ElOption",optionProps=buildProps({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),escapeStringRegexp=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");function useOption(t,e){const n=inject(selectKey);n||throwError(COMPONENT_NAME$1,"usage: <el-select><el-option /></el-select/>");const s=inject(selectGroupKey,{disabled:!1}),u=computed(()=>r(castArray$1(n.props.modelValue),t.value)),l=computed(()=>{var T;if(n.props.multiple){const x=castArray$1((T=n.props.modelValue)!=null?T:[]);return!u.value&&x.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),o=computed(()=>{var T;return(T=t.label)!=null?T:isObject$2(t.value)?"":t.value}),i=computed(()=>t.value||t.label||""),g=computed(()=>t.disabled||e.groupDisabled||l.value),d=getCurrentInstance(),r=(T=[],x)=>{if(isObject$2(t.value)){const c=n.props.valueKey;return T&&T.some(m=>toRaw(get(m,c))===get(x,c))}else return T&&T.includes(x)},f=()=>{!t.disabled&&!s.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(d.proxy))},L=T=>{const x=new RegExp(escapeStringRegexp(T),"i");e.visible=x.test(String(o.value))||t.created};return watch(()=>o.value,()=>{!t.created&&!n.props.remote&&n.setSelected()}),watch(()=>t.value,(T,x)=>{const{remote:c,valueKey:m}=n.props;if((c?T!==x:!isEqual(T,x))&&(n.onOptionDestroy(x,d.proxy),n.onOptionCreate(d.proxy)),!t.created&&!c){if(m&&isObject$2(T)&&isObject$2(x)&&T[m]===x[m])return;n.setSelected()}}),watch(()=>s.disabled,()=>{e.groupDisabled=s.disabled},{immediate:!0}),{select:n,currentLabel:o,currentValue:i,itemSelected:u,isDisabled:g,hoverItem:f,updateOption:L}}const _sfc_main$9=defineComponent({name:COMPONENT_NAME$1,componentName:COMPONENT_NAME$1,props:optionProps,setup(t){const e=useNamespace("select"),n=useId(),s=computed(()=>[e.be("dropdown","item"),e.is("disabled",unref(i)),e.is("selected",unref(o)),e.is("hovering",unref(L))]),u=reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:l,itemSelected:o,isDisabled:i,select:g,hoverItem:d,updateOption:r}=useOption(t,u),{visible:f,hover:L}=toRefs(u),T=getCurrentInstance().proxy;g.onOptionCreate(T),onBeforeUnmount(()=>{const c=T.value;nextTick(()=>{const{selected:m}=g.states,y=m.some(O=>O.value===T.value);g.states.cachedOptions.get(c)===T&&!y&&g.states.cachedOptions.delete(c)}),g.onOptionDestroy(c,T)});function x(){i.value||g.handleOptionSelect(T)}return{ns:e,id:n,containerKls:s,currentLabel:l,itemSelected:o,isDisabled:i,select:g,visible:f,hover:L,states:u,hoverItem:d,updateOption:r,selectOptionClick:x}}});function _sfc_render$4(t,e){return withDirectives((openBlock(),createElementBlock("li",{id:t.id,class:normalizeClass(t.containerKls),role:"option","aria-disabled":t.isDisabled||void 0,"aria-selected":t.itemSelected,onMousemove:t.hoverItem,onClick:withModifiers(t.selectOptionClick,["stop"])},[renderSlot(t.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString(t.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[vShow,t.visible]])}var Option=_export_sfc(_sfc_main$9,[["render",_sfc_render$4],["__file","option.vue"]]);const _sfc_main$8=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=inject(selectKey),e=useNamespace("select"),n=computed(()=>t.props.popperClass),s=computed(()=>t.props.multiple),u=computed(()=>t.props.fitInputWidth),l=ref("");function o(){var i;const g=(i=t.selectRef)==null?void 0:i.offsetWidth;g?l.value=`${g-BORDER_HORIZONTAL_WIDTH}px`:l.value=""}return onMounted(()=>{o(),useResizeObserver(t.selectRef,o)}),{ns:e,minWidth:l,popperClass:n,isMultiple:s,isFitInputWidth:u}}});function _sfc_render$3(t,e,n,s,u,l){return openBlock(),createElementBlock("div",{class:normalizeClass([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:normalizeStyle({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[t.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.ns.be("dropdown","header"))},[renderSlot(t.$slots,"header")],2)):createCommentVNode("v-if",!0),renderSlot(t.$slots,"default"),t.$slots.footer?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.ns.be("dropdown","footer"))},[renderSlot(t.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6)}var ElSelectMenu=_export_sfc(_sfc_main$8,[["render",_sfc_render$3],["__file","select-dropdown.vue"]]);const useSelect=(t,e)=>{const{t:n}=useLocale(),s=useId(),u=useNamespace("select"),l=useNamespace("input"),o=reactive({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),i=ref(),g=ref(),d=ref(),r=ref(),f=ref(),L=ref(),T=ref(),x=ref(),c=ref(),m=ref(),y=ref(),O=ref(!1),b=ref(),{form:j,formItem:F}=useFormItem(),{inputId:k}=useFormItemInputId(t,{formItemContext:F}),{valueOnClear:_,isEmptyValue:ue}=useEmptyValues(t),{isComposing:re,handleCompositionStart:de,handleCompositionUpdate:he,handleCompositionEnd:w}=useComposition({afterComposition:Ln=>On(Ln)}),le=computed(()=>t.disabled||!!j?.disabled),{wrapperRef:V,isFocused:Ce,handleBlur:_e}=useFocusController(f,{disabled:le,afterFocus(){t.automaticDropdown&&!O.value&&(O.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(Ln){var $n,Fn;return(($n=d.value)==null?void 0:$n.isFocusInsideContent(Ln))||((Fn=r.value)==null?void 0:Fn.isFocusInsideContent(Ln))},afterBlur(){var Ln;O.value=!1,o.menuVisibleOnFocus=!1,t.validateEvent&&((Ln=F?.validate)==null||Ln.call(F,"blur").catch($n=>void 0))}}),D=computed(()=>isArray$3(t.modelValue)?t.modelValue.length>0:!ue(t.modelValue)),Ie=computed(()=>{var Ln;return(Ln=j?.statusIcon)!=null?Ln:!1}),Lt=computed(()=>t.clearable&&!le.value&&D.value&&(Ce.value||o.inputHovering)),At=computed(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),ie=computed(()=>u.is("reverse",!!(At.value&&O.value))),Ve=computed(()=>F?.validateState||""),ze=computed(()=>Ve.value&&ValidateComponentsMap[Ve.value]),z=computed(()=>t.remote?300:0),Dt=computed(()=>t.remote&&!o.inputValue&&o.options.size===0),v=computed(()=>t.loading?t.loadingText||n("el.select.loading"):t.filterable&&o.inputValue&&o.options.size>0&&S.value===0?t.noMatchText||n("el.select.noMatch"):o.options.size===0?t.noDataText||n("el.select.noData"):null),S=computed(()=>Ue.value.filter(Ln=>Ln.visible).length),Ue=computed(()=>{const Ln=Array.from(o.options.values()),$n=[];return o.optionValues.forEach(Fn=>{const Kn=Ln.findIndex(jn=>jn.value===Fn);Kn>-1&&$n.push(Ln[Kn])}),$n.length>=Ln.length?$n:Ln}),M=computed(()=>Array.from(o.cachedOptions.values())),Pt=computed(()=>{const Ln=Ue.value.filter($n=>!$n.created).some($n=>$n.currentLabel===o.inputValue);return t.filterable&&t.allowCreate&&o.inputValue!==""&&!Ln}),hn=()=>{t.filterable&&isFunction$3(t.filterMethod)||t.filterable&&t.remote&&isFunction$3(t.remoteMethod)||Ue.value.forEach(Ln=>{var $n;($n=Ln.updateOption)==null||$n.call(Ln,o.inputValue)})},Oe=useFormSize(),Fe=computed(()=>["small"].includes(Oe.value)?"small":"default"),Et=computed({get(){return O.value&&!Dt.value},set(Ln){O.value=Ln}}),oe=computed(()=>{if(t.multiple&&!isUndefined$1(t.modelValue))return castArray$1(t.modelValue).length===0&&!o.inputValue;const Ln=isArray$3(t.modelValue)?t.modelValue[0]:t.modelValue;return t.filterable||isUndefined$1(Ln)?!o.inputValue:!0}),kt=computed(()=>{var Ln;const $n=(Ln=t.placeholder)!=null?Ln:n("el.select.placeholder");return t.multiple||!D.value?$n:o.selectedLabel}),Ne=computed(()=>isIOS?null:"mouseenter");watch(()=>t.modelValue,(Ln,$n)=>{t.multiple&&t.filterable&&!t.reserveKeyword&&(o.inputValue="",_n("")),bn(),!isEqual(Ln,$n)&&t.validateEvent&&F?.validate("change").catch(Fn=>void 0)},{flush:"post",deep:!0}),watch(()=>O.value,Ln=>{Ln?_n(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0),e("visible-change",Ln)}),watch(()=>o.options.entries(),()=>{isClient&&(bn(),t.defaultFirstOption&&(t.filterable||t.remote)&&S.value&&wn())},{flush:"post"}),watch([()=>o.hoveringIndex,Ue],([Ln])=>{isNumber$1(Ln)&&Ln>-1?b.value=Ue.value[Ln]||{}:b.value={},Ue.value.forEach($n=>{$n.hover=b.value===$n})}),watchEffect(()=>{o.isBeforeHide||hn()});const _n=Ln=>{o.previousQuery===Ln||re.value||(o.previousQuery=Ln,t.filterable&&isFunction$3(t.filterMethod)?t.filterMethod(Ln):t.filterable&&t.remote&&isFunction$3(t.remoteMethod)&&t.remoteMethod(Ln),t.defaultFirstOption&&(t.filterable||t.remote)&&S.value?nextTick(wn):nextTick(Bn))},wn=()=>{const Ln=Ue.value.filter(jn=>jn.visible&&!jn.disabled&&!jn.states.groupDisabled),$n=Ln.find(jn=>jn.created),Fn=Ln[0],Kn=Ue.value.map(jn=>jn.value);o.hoveringIndex=Zn(Kn,$n||Fn)},bn=()=>{if(t.multiple)o.selectedLabel="";else{const $n=isArray$3(t.modelValue)?t.modelValue[0]:t.modelValue,Fn=xn($n);o.selectedLabel=Fn.currentLabel,o.selected=[Fn];return}const Ln=[];isUndefined$1(t.modelValue)||castArray$1(t.modelValue).forEach($n=>{Ln.push(xn($n))}),o.selected=Ln},xn=Ln=>{let $n;const Fn=isPlainObject$1(Ln);for(let nl=o.cachedOptions.size-1;nl>=0;nl--){const An=M.value[nl];if(Fn?get(An.value,t.valueKey)===get(Ln,t.valueKey):An.value===Ln){$n={index:Ue.value.filter(ll=>!ll.created).indexOf(An),value:Ln,currentLabel:An.currentLabel,get isDisabled(){return An.isDisabled}};break}}if($n)return $n;const Kn=Fn?Ln.label:Ln??"";return{index:-1,value:Ln,currentLabel:Kn}},Bn=()=>{o.hoveringIndex=Ue.value.findIndex(Ln=>o.selected.some($n=>ul($n)===ul(Ln)))},Sn=()=>{o.selectionWidth=Number.parseFloat(window.getComputedStyle(g.value).width)},Tn=()=>{o.collapseItemWidth=m.value.getBoundingClientRect().width},Pn=()=>{var Ln,$n;($n=(Ln=d.value)==null?void 0:Ln.updatePopper)==null||$n.call(Ln)},Rn=()=>{var Ln,$n;($n=(Ln=r.value)==null?void 0:Ln.updatePopper)==null||$n.call(Ln)},In=()=>{o.inputValue.length>0&&!O.value&&(O.value=!0),_n(o.inputValue)},On=Ln=>{if(o.inputValue=Ln.target.value,t.remote)Xn();else return In()},Xn=debounce(()=>{In()},z.value),Wn=Ln=>{isEqual(t.modelValue,Ln)||e(CHANGE_EVENT,Ln)},zn=Ln=>findLastIndex(Ln,$n=>{const Fn=o.cachedOptions.get($n);return Fn&&!Fn.disabled&&!Fn.states.groupDisabled}),Cn=Ln=>{const $n=getEventCode(Ln);if(t.multiple&&$n!==EVENT_CODE.delete&&Ln.target.value.length<=0){const Fn=castArray$1(t.modelValue).slice(),Kn=zn(Fn);if(Kn<0)return;const jn=Fn[Kn];Fn.splice(Kn,1),e(UPDATE_MODEL_EVENT,Fn),Wn(Fn),e("remove-tag",jn)}},Dn=(Ln,$n)=>{const Fn=o.selected.indexOf($n);if(Fn>-1&&!le.value){const Kn=castArray$1(t.modelValue).slice();Kn.splice(Fn,1),e(UPDATE_MODEL_EVENT,Kn),Wn(Kn),e("remove-tag",$n.value)}Ln.stopPropagation(),hl()},Gn=Ln=>{Ln.stopPropagation();const $n=t.multiple?[]:_.value;if(t.multiple)for(const Fn of o.selected)Fn.isDisabled&&$n.push(Fn.value);e(UPDATE_MODEL_EVENT,$n),Wn($n),o.hoveringIndex=-1,O.value=!1,e("clear"),hl()},qn=Ln=>{var $n;if(t.multiple){const Fn=castArray$1(($n=t.modelValue)!=null?$n:[]).slice(),Kn=Zn(Fn,Ln);Kn>-1?Fn.splice(Kn,1):(t.multipleLimit<=0||Fn.length<t.multipleLimit)&&Fn.push(Ln.value),e(UPDATE_MODEL_EVENT,Fn),Wn(Fn),Ln.created&&_n(""),t.filterable&&!t.reserveKeyword&&(o.inputValue="")}else!isEqual(t.modelValue,Ln.value)&&e(UPDATE_MODEL_EVENT,Ln.value),Wn(Ln.value),O.value=!1;hl(),!O.value&&nextTick(()=>{el(Ln)})},Zn=(Ln,$n)=>isUndefined$1($n)?-1:isObject$2($n.value)?Ln.findIndex(Fn=>isEqual(get(Fn,t.valueKey),ul($n))):Ln.indexOf($n.value),el=Ln=>{var $n,Fn,Kn,jn,nl;const An=isArray$3(Ln)?Ln[0]:Ln;let il=null;if(An?.value){const ll=Ue.value.filter(Rl=>Rl.value===An.value);ll.length>0&&(il=ll[0].$el)}if(d.value&&il){const ll=(jn=(Kn=(Fn=($n=d.value)==null?void 0:$n.popperRef)==null?void 0:Fn.contentRef)==null?void 0:Kn.querySelector)==null?void 0:jn.call(Kn,`.${u.be("dropdown","wrap")}`);ll&&scrollIntoView(ll,il)}(nl=y.value)==null||nl.handleScroll()},sl=Ln=>{o.options.set(Ln.value,Ln),o.cachedOptions.set(Ln.value,Ln)},fl=(Ln,$n)=>{o.options.get(Ln)===$n&&o.options.delete(Ln)},Tl=computed(()=>{var Ln,$n;return($n=(Ln=d.value)==null?void 0:Ln.popperRef)==null?void 0:$n.contentRef}),vl=()=>{o.isBeforeHide=!1,nextTick(()=>{var Ln;(Ln=y.value)==null||Ln.update(),el(o.selected)})},hl=()=>{var Ln;(Ln=f.value)==null||Ln.focus()},ml=()=>{var Ln;if(O.value){O.value=!1,nextTick(()=>{var $n;return($n=f.value)==null?void 0:$n.blur()});return}(Ln=f.value)==null||Ln.blur()},Ll=Ln=>{Gn(Ln)},bl=Ln=>{if(O.value=!1,Ce.value){const $n=new FocusEvent("blur",Ln);nextTick(()=>_e($n))}},_l=()=>{o.inputValue.length>0?o.inputValue="":O.value=!1},xl=()=>{le.value||(isIOS&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:O.value=!O.value)},yl=()=>{if(!O.value)xl();else{const Ln=Ue.value[o.hoveringIndex];Ln&&!Ln.isDisabled&&qn(Ln)}},ul=Ln=>isObject$2(Ln.value)?get(Ln.value,t.valueKey):Ln.value,wl=computed(()=>Ue.value.filter(Ln=>Ln.visible).every(Ln=>Ln.isDisabled)),Cl=computed(()=>t.multiple?t.collapseTags?o.selected.slice(0,t.maxCollapseTags):o.selected:[]),al=computed(()=>t.multiple?t.collapseTags?o.selected.slice(t.maxCollapseTags):[]:[]),cl=Ln=>{if(!O.value){O.value=!0;return}if(!(o.options.size===0||S.value===0||re.value)&&!wl.value){Ln==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):Ln==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const $n=Ue.value[o.hoveringIndex];($n.isDisabled||!$n.visible)&&cl(Ln),nextTick(()=>el(b.value))}},Sl=()=>{if(!g.value)return 0;const Ln=window.getComputedStyle(g.value);return Number.parseFloat(Ln.gap||"6px")},El=computed(()=>{const Ln=Sl(),$n=t.filterable?Ln+MINIMUM_INPUT_WIDTH:0;return{maxWidth:`${m.value&&t.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-Ln-$n:o.selectionWidth-$n}px`}}),Bl=computed(()=>({maxWidth:`${o.selectionWidth}px`})),Pl=Ln=>{e("popup-scroll",Ln)};useResizeObserver(g,Sn),useResizeObserver(V,Pn),useResizeObserver(c,Rn),useResizeObserver(m,Tn);let ol;return watch(()=>Et.value,Ln=>{Ln?ol=useResizeObserver(x,Pn).stop:(ol?.(),ol=void 0)}),onMounted(()=>{bn()}),{inputId:k,contentId:s,nsSelect:u,nsInput:l,states:o,isFocused:Ce,expanded:O,optionsArray:Ue,hoverOption:b,selectSize:Oe,filteredOptionsCount:S,updateTooltip:Pn,updateTagTooltip:Rn,debouncedOnInputChange:Xn,onInput:On,deletePrevTag:Cn,deleteTag:Dn,deleteSelected:Gn,handleOptionSelect:qn,scrollToOption:el,hasModelValue:D,shouldShowPlaceholder:oe,currentPlaceholder:kt,mouseEnterEventName:Ne,needStatusIcon:Ie,showClearBtn:Lt,iconComponent:At,iconReverse:ie,validateState:Ve,validateIcon:ze,showNewOption:Pt,updateOptions:hn,collapseTagSize:Fe,setSelected:bn,selectDisabled:le,emptyText:v,handleCompositionStart:de,handleCompositionUpdate:he,handleCompositionEnd:w,onOptionCreate:sl,onOptionDestroy:fl,handleMenuEnter:vl,focus:hl,blur:ml,handleClearClick:Ll,handleClickOutside:bl,handleEsc:_l,toggleMenu:xl,selectOption:yl,getValueKey:ul,navigateOptions:cl,dropdownMenuVisible:Et,showTagList:Cl,collapseTagList:al,popupScroll:Pl,getOption:xn,tagStyle:El,collapseTagStyle:Bl,popperRef:Tl,inputRef:f,tooltipRef:d,tagTooltipRef:r,prefixRef:L,suffixRef:T,selectRef:i,wrapperRef:V,selectionRef:g,scrollbarRef:y,menuRef:x,tagMenuRef:c,collapseItemRef:m}};var ElOptions=defineComponent({name:"ElOptions",setup(t,{slots:e}){const n=inject(selectKey);let s=[];return()=>{var u,l;const o=(u=e.default)==null?void 0:u.call(e),i=[];function g(d){isArray$3(d)&&d.forEach(r=>{var f,L,T,x;const c=(f=r?.type||{})==null?void 0:f.name;c==="ElOptionGroup"?g(!isString$2(r.children)&&!isArray$3(r.children)&&isFunction$3((L=r.children)==null?void 0:L.default)?(T=r.children)==null?void 0:T.default():r.children):c==="ElOption"?i.push((x=r.props)==null?void 0:x.value):isArray$3(r.children)&&g(r.children)})}return o.length&&g((l=o[0])==null?void 0:l.children),isEqual(i,s)||(s=i,n&&(n.states.optionValues=i)),o}}});const selectProps=buildProps({name:String,id:String,modelValue:{type:definePropType([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:useSizeProp,effect:{type:definePropType(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:definePropType([String,Object])},popperOptions:{type:definePropType(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:definePropType(Function)},filterMethod:{type:definePropType(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:iconPropType,default:circle_close_default},fitInputWidth:Boolean,suffixIcon:{type:iconPropType,default:arrow_down_default},tagType:{...tagProps.type,default:"info"},tagEffect:{...tagProps.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:definePropType(String),values:Ee,default:"bottom-start"},fallbackPlacements:{type:definePropType(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:useTooltipContentProps.appendTo,options:{type:definePropType(Array)},props:{type:definePropType(Object),default:()=>defaultProps},...useEmptyValuesProps,...useAriaProps(["ariaLabel"])});scrollbarEmits.scroll;const _sfc_main$7=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const e=useNamespace("select"),n=ref(),s=getCurrentInstance(),u=ref([]);provide(selectGroupKey,reactive({...toRefs(t)}));const l=computed(()=>u.value.some(d=>d.visible===!0)),o=d=>{var r;return d.type.name==="ElOption"&&!!((r=d.component)!=null&&r.proxy)},i=d=>{const r=castArray$1(d),f=[];return r.forEach(L=>{var T;isVNode(L)&&(o(L)?f.push(L.component.proxy):isArray$3(L.children)&&L.children.length?f.push(...i(L.children)):(T=L.component)!=null&&T.subTree&&f.push(...i(L.component.subTree)))}),f},g=()=>{u.value=i(s.subTree)};return onMounted(()=>{g()}),useMutationObserver(n,g,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:l,ns:e}}});function _sfc_render$2(t,e,n,s,u,l){return withDirectives((openBlock(),createElementBlock("ul",{ref:"groupRef",class:normalizeClass(t.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass(t.ns.be("group","title"))},toDisplayString(t.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass(t.ns.b("group"))},[renderSlot(t.$slots,"default")],2)])],2)),[[vShow,t.visible]])}var OptionGroup=_export_sfc(_sfc_main$7,[["render",_sfc_render$2],["__file","option-group.vue"]]);const COMPONENT_NAME="ElSelect",_sfc_main$6=defineComponent({name:COMPONENT_NAME,componentName:COMPONENT_NAME,components:{ElSelectMenu,ElOption:Option,ElOptions,ElOptionGroup:OptionGroup,ElTag,ElScrollbar,ElTooltip,ElIcon},directives:{ClickOutside},props:selectProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(t,{emit:e,slots:n}){const s=getCurrentInstance();s.appContext.config.warnHandler=(...y)=>{!y[0]||y[0].includes('Slot "default" invoked outside of the render function')||console.warn(...y)};const u=computed(()=>{const{modelValue:y,multiple:O}=t,b=O?[]:void 0;return isArray$3(y)?O?y:b:O?b:y}),l=reactive({...toRefs(t),modelValue:u}),o=useSelect(l,e),{calculatorRef:i,inputStyle:g}=useCalcInputWidth(),{getLabel:d,getValue:r,getOptions:f,getDisabled:L}=useProps(t),T=y=>({label:d(y),value:r(y),disabled:L(y)}),x=y=>y.reduce((O,b)=>(O.push(b),b.children&&b.children.length>0&&O.push(...x(b.children)),O),[]),c=y=>{flattedChildren(y||[]).forEach(b=>{var j;if(isObject$2(b)&&(b.type.name==="ElOption"||b.type.name==="ElTree")){const F=b.type.name;if(F==="ElTree"){const k=((j=b.props)==null?void 0:j.data)||[];x(k).forEach(ue=>{ue.currentLabel=ue.label||(isObject$2(ue.value)?"":ue.value),o.onOptionCreate(ue)})}else if(F==="ElOption"){const k={...b.props};k.currentLabel=k.label||(isObject$2(k.value)?"":k.value),o.onOptionCreate(k)}}})};watch(()=>{var y;return(y=n.default)==null?void 0:y.call(n)},y=>{t.persistent||c(y)},{immediate:!0}),provide(selectKey,reactive({props:l,states:o.states,selectRef:o.selectRef,optionsArray:o.optionsArray,setSelected:o.setSelected,handleOptionSelect:o.handleOptionSelect,onOptionCreate:o.onOptionCreate,onOptionDestroy:o.onOptionDestroy}));const m=computed(()=>t.multiple?o.states.selected.map(y=>y.currentLabel):o.states.selectedLabel);return onBeforeUnmount(()=>{s.appContext.config.warnHandler=void 0}),{...o,modelValue:u,selectedLabel:m,calculatorRef:i,inputStyle:g,getLabel:d,getValue:r,getOptions:f,getDisabled:L,getOptionProps:T}}});function _sfc_render$1(t,e){const n=resolveComponent("el-tag"),s=resolveComponent("el-tooltip"),u=resolveComponent("el-icon"),l=resolveComponent("el-option"),o=resolveComponent("el-option-group"),i=resolveComponent("el-options"),g=resolveComponent("el-scrollbar"),d=resolveComponent("el-select-menu"),r=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([t.nsSelect.b(),t.nsSelect.m(t.selectSize)]),[toHandlerKey(t.mouseEnterEventName)]:f=>t.states.inputHovering=!0,onMouseleave:f=>t.states.inputHovering=!1},[createVNode(s,{ref:"tooltipRef",visible:t.dropdownMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-style":t.popperStyle,"popper-options":t.popperOptions,"fallback-placements":t.fallbackPlacements,effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,"append-to":t.appendTo,"show-arrow":t.showArrow,offset:t.offset,onBeforeShow:t.handleMenuEnter,onHide:f=>t.states.isBeforeHide=!1},{default:withCtx(()=>{var f;return[createBaseVNode("div",{ref:"wrapperRef",class:normalizeClass([t.nsSelect.e("wrapper"),t.nsSelect.is("focused",t.isFocused),t.nsSelect.is("hovering",t.states.inputHovering),t.nsSelect.is("filterable",t.filterable),t.nsSelect.is("disabled",t.selectDisabled)]),onClick:withModifiers(t.toggleMenu,["prevent"])},[t.$slots.prefix?(openBlock(),createElementBlock("div",{key:0,ref:"prefixRef",class:normalizeClass(t.nsSelect.e("prefix"))},[renderSlot(t.$slots,"prefix")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([t.nsSelect.e("selection"),t.nsSelect.is("near",t.multiple&&!t.$slots.prefix&&!!t.states.selected.length)])},[t.multiple?renderSlot(t.$slots,"tag",{key:0,data:t.states.selected,deleteTag:t.deleteTag,selectDisabled:t.selectDisabled},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.showTagList,L=>(openBlock(),createElementBlock("div",{key:t.getValueKey(L),class:normalizeClass(t.nsSelect.e("selected-item"))},[createVNode(n,{closable:!t.selectDisabled&&!L.isDisabled,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":"",style:normalizeStyle(t.tagStyle),onClose:T=>t.deleteTag(T,L)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text"))},[renderSlot(t.$slots,"label",{index:L.index,label:L.currentLabel,value:L.value},()=>[createTextVNode(toDisplayString(L.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),t.collapseTags&&t.states.selected.length>t.maxCollapseTags?(openBlock(),createBlock(s,{key:0,ref:"tagTooltipRef",disabled:t.dropdownMenuVisible||!t.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom","popper-class":t.popperClass,"popper-style":t.popperStyle,teleported:t.teleported},{default:withCtx(()=>[createBaseVNode("div",{ref:"collapseItemRef",class:normalizeClass(t.nsSelect.e("selected-item"))},[createVNode(n,{closable:!1,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":"",style:normalizeStyle(t.collapseTagStyle)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text"))}," + "+toDisplayString(t.states.selected.length-t.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:withCtx(()=>[createBaseVNode("div",{ref:"tagMenuRef",class:normalizeClass(t.nsSelect.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.collapseTagList,L=>(openBlock(),createElementBlock("div",{key:t.getValueKey(L),class:normalizeClass(t.nsSelect.e("selected-item"))},[createVNode(n,{class:"in-tooltip",closable:!t.selectDisabled&&!L.isDisabled,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":"",onClose:T=>t.deleteTag(T,L)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text"))},[renderSlot(t.$slots,"label",{index:L.index,label:L.currentLabel,value:L.value},()=>[createTextVNode(toDisplayString(L.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):createCommentVNode("v-if",!0)]):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([t.nsSelect.e("selected-item"),t.nsSelect.e("input-wrapper"),t.nsSelect.is("hidden",!t.filterable)])},[withDirectives(createBaseVNode("input",{id:t.inputId,ref:"inputRef","onUpdate:modelValue":L=>t.states.inputValue=L,type:"text",name:t.name,class:normalizeClass([t.nsSelect.e("input"),t.nsSelect.is(t.selectSize)]),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:normalizeStyle(t.inputStyle),tabindex:t.tabindex,role:"combobox",readonly:!t.filterable,spellcheck:"false","aria-activedescendant":((f=t.hoverOption)==null?void 0:f.id)||"","aria-controls":t.contentId,"aria-expanded":t.dropdownMenuVisible,"aria-label":t.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[withKeys(withModifiers(L=>t.navigateOptions("next"),["stop","prevent"]),["down"]),withKeys(withModifiers(L=>t.navigateOptions("prev"),["stop","prevent"]),["up"]),withKeys(withModifiers(t.handleEsc,["stop","prevent"]),["esc"]),withKeys(withModifiers(t.selectOption,["stop","prevent"]),["enter"]),withKeys(withModifiers(t.deletePrevTag,["stop"]),["delete"])],onCompositionstart:t.handleCompositionStart,onCompositionupdate:t.handleCompositionUpdate,onCompositionend:t.handleCompositionEnd,onInput:t.onInput,onClick:withModifiers(t.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[vModelText,t.states.inputValue]]),t.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass(t.nsSelect.e("input-calculator")),textContent:toDisplayString(t.states.inputValue)},null,10,["textContent"])):createCommentVNode("v-if",!0)],2),t.shouldShowPlaceholder?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([t.nsSelect.e("selected-item"),t.nsSelect.e("placeholder"),t.nsSelect.is("transparent",!t.hasModelValue||t.expanded&&!t.states.inputValue)])},[t.hasModelValue?renderSlot(t.$slots,"label",{key:0,index:t.getOption(t.modelValue).index,label:t.currentPlaceholder,value:t.modelValue},()=>[createBaseVNode("span",null,toDisplayString(t.currentPlaceholder),1)]):(openBlock(),createElementBlock("span",{key:1},toDisplayString(t.currentPlaceholder),1))],2)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{ref:"suffixRef",class:normalizeClass(t.nsSelect.e("suffix"))},[t.iconComponent&&!t.showClearBtn?(openBlock(),createBlock(u,{key:0,class:normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),t.showClearBtn&&t.clearIcon?(openBlock(),createBlock(u,{key:1,class:normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.nsSelect.e("clear")]),onClick:t.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),t.validateState&&t.validateIcon&&t.needStatusIcon?(openBlock(),createBlock(u,{key:2,class:normalizeClass([t.nsInput.e("icon"),t.nsInput.e("validateIcon"),t.nsInput.is("loading",t.validateState==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:withCtx(()=>[createVNode(d,{ref:"menuRef"},{default:withCtx(()=>[t.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.nsSelect.be("dropdown","header")),onClick:withModifiers(()=>{},["stop"])},[renderSlot(t.$slots,"header")],10,["onClick"])):createCommentVNode("v-if",!0),withDirectives(createVNode(g,{id:t.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:normalizeClass([t.nsSelect.is("empty",t.filteredOptionsCount===0)]),role:"listbox","aria-label":t.ariaLabel,"aria-orientation":"vertical",onScroll:t.popupScroll},{default:withCtx(()=>[t.showNewOption?(openBlock(),createBlock(l,{key:0,value:t.states.inputValue,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),createVNode(i,null,{default:withCtx(()=>[renderSlot(t.$slots,"default",{},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.options,(f,L)=>{var T;return openBlock(),createElementBlock(Fragment,{key:L},[(T=t.getOptions(f))!=null&&T.length?(openBlock(),createBlock(o,{key:0,label:t.getLabel(f),disabled:t.getDisabled(f)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.getOptions(f),x=>(openBlock(),createBlock(l,mergeProps({key:t.getValue(x)},t.getOptionProps(x)),null,16))),128))]),_:2},1032,["label","disabled"])):(openBlock(),createBlock(l,normalizeProps(mergeProps({key:1},t.getOptionProps(f))),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[vShow,t.states.options.size>0&&!t.loading]]),t.$slots.loading&&t.loading?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.nsSelect.be("dropdown","loading"))},[renderSlot(t.$slots,"loading")],2)):t.loading||t.filteredOptionsCount===0?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(t.nsSelect.be("dropdown","empty"))},[renderSlot(t.$slots,"empty",{},()=>[createBaseVNode("span",null,toDisplayString(t.emptyText),1)])],2)):createCommentVNode("v-if",!0),t.$slots.footer?(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(t.nsSelect.be("dropdown","footer")),onClick:withModifiers(()=>{},["stop"])},[renderSlot(t.$slots,"footer")],10,["onClick"])):createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[r,t.handleClickOutside,t.popperRef]])}var Select=_export_sfc(_sfc_main$6,[["render",_sfc_render$1],["__file","select.vue"]]);const ElSelect=withInstall(Select,{Option,OptionGroup}),ElOption=withNoopInstall(Option);withNoopInstall(OptionGroup);const RowJustify=["start","center","end","space-around","space-between","space-evenly"],RowAlign=["top","middle","bottom"],rowProps=buildProps({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:RowJustify,default:"start"},align:{type:String,values:RowAlign}}),__default__$1=defineComponent({name:"ElRow"}),_sfc_main$5=defineComponent({...__default__$1,props:rowProps,setup(t){const e=t,n=useNamespace("row"),s=computed(()=>e.gutter);provide(rowContextKey,{gutter:s});const u=computed(()=>{const o={};return e.gutter&&(o.marginRight=o.marginLeft=`-${e.gutter/2}px`),o}),l=computed(()=>[n.b(),n.is(`justify-${e.justify}`,e.justify!=="start"),n.is(`align-${e.align}`,!!e.align)]);return(o,i)=>(openBlock(),createBlock(resolveDynamicComponent(o.tag),{class:normalizeClass(unref(l)),style:normalizeStyle(unref(u))},{default:withCtx(()=>[renderSlot(o.$slots,"default")]),_:3},8,["class","style"]))}});var Row=_export_sfc(_sfc_main$5,[["__file","row.vue"]]);const ElRow=withInstall(Row),isValidComponentSize=t=>["",...componentSizes].includes(t);function createLoadingComponent(t,e){let n;const s=ref(!1),u=reactive({...t,originalPosition:"",originalOverflow:"",visible:!1});function l(T){u.text=T}function o(){const T=u.parent,x=L.ns;if(!T.vLoadingAddClassList){let c=T.getAttribute("loading-number");c=Number.parseInt(c)-1,c?T.setAttribute("loading-number",c.toString()):(removeClass(T,x.bm("parent","relative")),T.removeAttribute("loading-number")),removeClass(T,x.bm("parent","hidden"))}i(),f.unmount()}function i(){var T,x;(x=(T=L.$el)==null?void 0:T.parentNode)==null||x.removeChild(L.$el)}function g(){var T;t.beforeClose&&!t.beforeClose()||(s.value=!0,clearTimeout(n),n=setTimeout(d,400),u.visible=!1,(T=t.closed)==null||T.call(t))}function d(){if(!s.value)return;const T=u.parent;s.value=!1,T.vLoadingAddClassList=void 0,o()}const f=createApp(defineComponent({name:"ElLoading",setup(T,{expose:x}){const{ns:c,zIndex:m}=useGlobalComponentSettings("loading");return x({ns:c,zIndex:m}),()=>{const y=u.spinner||u.svg,O=h("svg",{class:"circular",viewBox:u.svgViewBox?u.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=u.text?h("p",{class:c.b("text")},[u.text]):void 0;return h(Transition,{name:c.b("fade"),onAfterLeave:d},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:u.background||""},class:[c.b("mask"),u.customClass,u.fullscreen?"is-fullscreen":""]},[h("div",{class:c.b("spinner")},[O,b])]),[[vShow,u.visible]])])})}}}));Object.assign(f._context,e??{});const L=f.mount(document.createElement("div"));return{...toRefs(u),setText:l,removeElLoadingChild:i,close:g,handleAfterLeave:d,vm:L,get $el(){return L.$el}}}let fullscreenInstance;const Loading=function(t={},e){if(!isClient)return;const n=resolveOptions(t);if(n.fullscreen&&fullscreenInstance)return fullscreenInstance;const s=createLoadingComponent({...n,closed:()=>{var l;(l=n.closed)==null||l.call(n),n.fullscreen&&(fullscreenInstance=void 0)}},e??Loading._context);addStyle(n,n.parent,s),addClassList(n,n.parent,s),n.parent.vLoadingAddClassList=()=>addClassList(n,n.parent,s);let u=n.parent.getAttribute("loading-number");return u?u=`${Number.parseInt(u)+1}`:u="1",n.parent.setAttribute("loading-number",u),n.parent.appendChild(s.$el),nextTick(()=>s.visible.value=n.visible),n.fullscreen&&(fullscreenInstance=s),s},resolveOptions=t=>{var e,n,s,u;let l;return isString$2(t.target)?l=(e=document.querySelector(t.target))!=null?e:document.body:l=t.target||document.body,{parent:l===document.body||t.body?document.body:l,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:l===document.body&&((n=t.fullscreen)!=null?n:!0),lock:(s=t.lock)!=null?s:!1,customClass:t.customClass||"",visible:(u=t.visible)!=null?u:!0,beforeClose:t.beforeClose,closed:t.closed,target:l}},addStyle=async(t,e,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,u={};if(t.fullscreen)n.originalPosition.value=getStyle(document.body,"position"),n.originalOverflow.value=getStyle(document.body,"overflow"),u.zIndex=s();else if(t.parent===document.body){n.originalPosition.value=getStyle(document.body,"position"),await nextTick();for(const l of["top","left"]){const o=l==="top"?"scrollTop":"scrollLeft";u[l]=`${t.target.getBoundingClientRect()[l]+document.body[o]+document.documentElement[o]-Number.parseInt(getStyle(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])u[l]=`${t.target.getBoundingClientRect()[l]}px`}else n.originalPosition.value=getStyle(e,"position");for(const[l,o]of Object.entries(u))n.$el.style[l]=o},addClassList=(t,e,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?removeClass(e,s.bm("parent","relative")):addClass(e,s.bm("parent","relative")),t.fullscreen&&t.lock?addClass(e,s.bm("parent","hidden")):removeClass(e,s.bm("parent","hidden"))};Loading._context=null;const INSTANCE_KEY=Symbol("ElLoading"),getAttributeName=t=>`element-loading-${hyphenate(t)}`,createInstance$1=(t,e)=>{var n,s,u,l;const o=e.instance,i=T=>isObject$2(e.value)?e.value[T]:void 0,g=T=>{const x=isString$2(T)&&o?.[T]||T;return ref(x)},d=T=>g(i(T)||t.getAttribute(getAttributeName(T))),r=(n=i("fullscreen"))!=null?n:e.modifiers.fullscreen,f={text:d("text"),svg:d("svg"),svgViewBox:d("svgViewBox"),spinner:d("spinner"),background:d("background"),customClass:d("customClass"),fullscreen:r,target:(s=i("target"))!=null?s:r?void 0:t,body:(u=i("body"))!=null?u:e.modifiers.body,lock:(l=i("lock"))!=null?l:e.modifiers.lock},L=Loading(f);L._context=vLoading._context,t[INSTANCE_KEY]={options:f,instance:L}},updateOptions=(t,e)=>{for(const n of Object.keys(t))isRef(t[n])&&(t[n].value=e[n])},vLoading={mounted(t,e){e.value&&createInstance$1(t,e)},updated(t,e){const n=t[INSTANCE_KEY];if(!e.value){n?.instance.close(),t[INSTANCE_KEY]=null;return}n?updateOptions(n.options,isObject$2(e.value)?e.value:{text:t.getAttribute(getAttributeName("text")),svg:t.getAttribute(getAttributeName("svg")),svgViewBox:t.getAttribute(getAttributeName("svgViewBox")),spinner:t.getAttribute(getAttributeName("spinner")),background:t.getAttribute(getAttributeName("background")),customClass:t.getAttribute(getAttributeName("customClass"))}):createInstance$1(t,e)},unmounted(t){var e;(e=t[INSTANCE_KEY])==null||e.instance.close(),t[INSTANCE_KEY]=null}};vLoading._context=null;const ElLoading={install(t){Loading._context=t._context,vLoading._context=t._context,t.directive("loading",vLoading),t.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes=["primary","success","info","warning","error"],messagePlacement=["top","top-left","top-right","bottom","bottom-left","bottom-right"],MESSAGE_DEFAULT_PLACEMENT="top",messageDefaults=mutable({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient?document.body:void 0}),messageProps=buildProps({customClass:{type:String,default:messageDefaults.customClass},dangerouslyUseHTMLString:{type:Boolean,default:messageDefaults.dangerouslyUseHTMLString},duration:{type:Number,default:messageDefaults.duration},icon:{type:iconPropType,default:messageDefaults.icon},id:{type:String,default:messageDefaults.id},message:{type:definePropType([String,Object,Function]),default:messageDefaults.message},onClose:{type:definePropType(Function),default:messageDefaults.onClose},showClose:{type:Boolean,default:messageDefaults.showClose},type:{type:String,values:messageTypes,default:messageDefaults.type},plain:{type:Boolean,default:messageDefaults.plain},offset:{type:Number,default:messageDefaults.offset},placement:{type:String,values:messagePlacement,default:messageDefaults.placement},zIndex:{type:Number,default:messageDefaults.zIndex},grouping:{type:Boolean,default:messageDefaults.grouping},repeatNum:{type:Number,default:messageDefaults.repeatNum}}),messageEmits={destroy:()=>!0},placementInstances=shallowReactive({}),getOrCreatePlacementInstances=t=>(placementInstances[t]||(placementInstances[t]=shallowReactive([])),placementInstances[t]),getInstance=(t,e)=>{const n=placementInstances[e]||[],s=n.findIndex(o=>o.id===t),u=n[s];let l;return s>0&&(l=n[s-1]),{current:u,prev:l}},getLastOffset=(t,e)=>{const{prev:n}=getInstance(t,e);return n?n.vm.exposed.bottom.value:0},getOffsetOrSpace=(t,e,n)=>(placementInstances[n]||[]).findIndex(l=>l.id===t)>0?16:e,__default__=defineComponent({name:"ElMessage"}),_sfc_main$4=defineComponent({...__default__,props:messageProps,emits:messageEmits,setup(t,{expose:e,emit:n}){const s=t,{Close:u}=TypeComponents,l=ref(!1),{ns:o,zIndex:i}=useGlobalComponentSettings("message"),{currentZIndex:g,nextZIndex:d}=i,r=ref(),f=ref(!1),L=ref(0);let T;const x=computed(()=>s.type?s.type==="error"?"danger":s.type:"info"),c=computed(()=>{const w=s.type;return{[o.bm("icon",w)]:w&&TypeComponentsMap[w]}}),m=computed(()=>s.icon||TypeComponentsMap[s.type]||""),y=computed(()=>s.placement||MESSAGE_DEFAULT_PLACEMENT),O=computed(()=>getLastOffset(s.id,y.value)),b=computed(()=>getOffsetOrSpace(s.id,s.offset,y.value)+O.value),j=computed(()=>L.value+b.value),F=computed(()=>y.value.includes("left")?o.is("left"):y.value.includes("right")?o.is("right"):o.is("center")),k=computed(()=>y.value.startsWith("top")?"top":"bottom"),_=computed(()=>({[k.value]:`${b.value}px`,zIndex:g.value}));function ue(){s.duration!==0&&({stop:T}=useTimeoutFn(()=>{de()},s.duration))}function re(){T?.()}function de(){f.value=!1,nextTick(()=>{var w;l.value||((w=s.onClose)==null||w.call(s),n("destroy"))})}function he(w){getEventCode(w)===EVENT_CODE.esc&&de()}return onMounted(()=>{ue(),d(),f.value=!0}),watch(()=>s.repeatNum,()=>{re(),ue()}),useEventListener(document,"keydown",he),useResizeObserver(r,()=>{L.value=r.value.getBoundingClientRect().height}),e({visible:f,bottom:j,close:de}),(w,le)=>(openBlock(),createBlock(Transition,{name:unref(o).b("fade"),onBeforeEnter:V=>l.value=!0,onBeforeLeave:w.onClose,onAfterLeave:V=>w.$emit("destroy"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:w.id,ref_key:"messageRef",ref:r,class:normalizeClass([unref(o).b(),{[unref(o).m(w.type)]:w.type},unref(o).is("closable",w.showClose),unref(o).is("plain",w.plain),unref(o).is("bottom",unref(k)==="bottom"),unref(F),w.customClass]),style:normalizeStyle(unref(_)),role:"alert",onMouseenter:re,onMouseleave:ue},[w.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:w.repeatNum,type:unref(x),class:normalizeClass(unref(o).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),unref(m)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(o).e("icon"),unref(c)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(m))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{class:normalizeClass(unref(o).e("content")),innerHTML:w.message},null,10,["innerHTML"])],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(o).e("content"))},toDisplayString(w.message),3))]),w.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(o).e("closeBtn")),onClick:withModifiers(de,["stop"])},{default:withCtx(()=>[createVNode(unref(u))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,["id"]),[[vShow,f.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var MessageConstructor=_export_sfc(_sfc_main$4,[["__file","message.vue"]]);let seed=1;const normalizeAppendTo=t=>{if(!t.appendTo)t.appendTo=document.body;else if(isString$2(t.appendTo)){let n=document.querySelector(t.appendTo);isElement(n)||(n=document.body),t.appendTo=n}},normalizePlacement=t=>{!t.placement&&isString$2(messageConfig.placement)&&messageConfig.placement&&(t.placement=messageConfig.placement),t.placement||(t.placement=MESSAGE_DEFAULT_PLACEMENT),messagePlacement.includes(t.placement)||(t.placement=MESSAGE_DEFAULT_PLACEMENT)},normalizeOptions=t=>{const e=!t||isString$2(t)||isVNode(t)||isFunction$3(t)?{message:t}:t,n={...messageDefaults,...e};return normalizeAppendTo(n),normalizePlacement(n),isBoolean$1(messageConfig.grouping)&&!n.grouping&&(n.grouping=messageConfig.grouping),isNumber$1(messageConfig.duration)&&n.duration===3e3&&(n.duration=messageConfig.duration),isNumber$1(messageConfig.offset)&&n.offset===16&&(n.offset=messageConfig.offset),isBoolean$1(messageConfig.showClose)&&!n.showClose&&(n.showClose=messageConfig.showClose),isBoolean$1(messageConfig.plain)&&!n.plain&&(n.plain=messageConfig.plain),n},closeMessage=t=>{const e=t.props.placement||MESSAGE_DEFAULT_PLACEMENT,n=placementInstances[e],s=n.indexOf(t);if(s===-1)return;n.splice(s,1);const{handler:u}=t;u.close()},createMessage=({appendTo:t,...e},n)=>{const s=`message_${seed++}`,u=e.onClose,l=document.createElement("div"),o={...e,id:s,onClose:()=>{u?.(),closeMessage(r)},onDestroy:()=>{render(null,l)}},i=createVNode(MessageConstructor,o,isFunction$3(o.message)||isVNode(o.message)?{default:isFunction$3(o.message)?o.message:()=>o.message}:null);i.appContext=n||message._context,render(i,l),t.appendChild(l.firstElementChild);const g=i.component,r={id:s,vnode:i,vm:g,handler:{close:()=>{g.exposed.close()}},props:i.component.props};return r},message=(t={},e)=>{if(!isClient)return{close:()=>{}};const n=normalizeOptions(t),s=getOrCreatePlacementInstances(n.placement||MESSAGE_DEFAULT_PLACEMENT);if(n.grouping&&s.length){const l=s.find(({vnode:o})=>{var i;return((i=o.props)==null?void 0:i.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(isNumber$1(messageConfig.max)&&s.length>=messageConfig.max)return{close:()=>{}};const u=createMessage(n,e);return s.push(u),u.handler};messageTypes.forEach(t=>{message[t]=(e={},n)=>{const s=normalizeOptions(e);return message({...s,type:t},n)}});function closeAll(t){for(const e in placementInstances)if(hasOwn(placementInstances,e)){const n=[...placementInstances[e]];for(const s of n)(!t||t===s.props.type)&&s.handler.close()}}function closeAllByPlacement(t){if(!placementInstances[t])return;[...placementInstances[t]].forEach(n=>n.handler.close())}message.closeAll=closeAll;message.closeAllByPlacement=closeAllByPlacement;message._context=null;const ElMessage=withInstallFunction(message,"$message"),FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=t=>{if(FOCUS_STACK.length===0)return;const e=getEventCode(t),n=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(n.length>0&&e===EVENT_CODE.tab){if(n.length===1){t.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const s=t.shiftKey,u=t.target===n[0],l=t.target===n[n.length-1];u&&s&&(t.preventDefault(),n[n.length-1].focus()),l&&!s&&(t.preventDefault(),n[0].focus())}},TrapFocus={beforeMount(t){t[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(t),FOCUS_STACK.push(t),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated(t){nextTick(()=>{t[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(t)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}},_sfc_main$3=defineComponent({name:"ElMessageBox",directives:{TrapFocus},components:{ElButton,ElFocusTrap,ElInput,ElOverlay,ElIcon,...TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:isValidComponentSize},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(t,{emit:e}){const{locale:n,zIndex:s,ns:u,size:l}=useGlobalComponentSettings("message-box",computed(()=>t.buttonSize)),{t:o}=n,{nextZIndex:i}=s,g=ref(!1),d=reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:markRaw(loading_default),cancelButtonLoadingIcon:markRaw(loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),r=computed(()=>{const D=d.type;return{[u.bm("icon",D)]:D&&TypeComponentsMap[D]}}),f=useId(),L=useId(),T=computed(()=>{const D=d.type;return d.icon||D&&TypeComponentsMap[D]||""}),x=computed(()=>!!d.message),c=ref(),m=ref(),y=ref(),O=ref(),b=ref(),j=computed(()=>d.confirmButtonClass);watch(()=>d.inputValue,async D=>{await nextTick(),t.boxType==="prompt"&&D&&le()},{immediate:!0}),watch(()=>g.value,D=>{var Ie,Lt;D&&(t.boxType!=="prompt"&&(d.autofocus?y.value=(Lt=(Ie=b.value)==null?void 0:Ie.$el)!=null?Lt:c.value:y.value=c.value),d.zIndex=i()),t.boxType==="prompt"&&(D?nextTick().then(()=>{var At;O.value&&O.value.$el&&(d.autofocus?y.value=(At=V())!=null?At:c.value:y.value=c.value)}):(d.editorErrorMessage="",d.validateError=!1))});const F=computed(()=>t.draggable),k=computed(()=>t.overflow),{isDragging:_}=useDraggable(c,m,F,k);onMounted(async()=>{await nextTick(),t.closeOnHashChange&&window.addEventListener("hashchange",ue)}),onBeforeUnmount(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",ue)});function ue(){g.value&&(g.value=!1,nextTick(()=>{d.action&&e("action",d.action)}))}const re=()=>{t.closeOnClickModal&&w(d.distinguishCancelAndClose?"close":"cancel")},de=useSameTarget(re),he=D=>{if(d.inputType!=="textarea")return D.preventDefault(),w("confirm")},w=D=>{var Ie;t.boxType==="prompt"&&D==="confirm"&&!le()||(d.action=D,d.beforeClose?(Ie=d.beforeClose)==null||Ie.call(d,D,d,ue):ue())},le=()=>{if(t.boxType==="prompt"){const D=d.inputPattern;if(D&&!D.test(d.inputValue||""))return d.editorErrorMessage=d.inputErrorMessage||o("el.messagebox.error"),d.validateError=!0,!1;const Ie=d.inputValidator;if(isFunction$3(Ie)){const Lt=Ie(d.inputValue);if(Lt===!1)return d.editorErrorMessage=d.inputErrorMessage||o("el.messagebox.error"),d.validateError=!0,!1;if(isString$2(Lt))return d.editorErrorMessage=Lt,d.validateError=!0,!1}}return d.editorErrorMessage="",d.validateError=!1,!0},V=()=>{var D,Ie;const Lt=(D=O.value)==null?void 0:D.$refs;return(Ie=Lt?.input)!=null?Ie:Lt?.textarea},Ce=()=>{w("close")},_e=()=>{t.closeOnPressEscape&&Ce()};return t.lockScroll&&useLockscreen(g),{...toRefs(d),ns:u,overlayEvent:de,visible:g,hasMessage:x,typeClass:r,contentId:f,inputId:L,btnSize:l,iconComponent:T,confirmButtonClasses:j,rootRef:c,focusStartRef:y,headerRef:m,inputRef:O,isDragging:_,confirmRef:b,doClose:ue,handleClose:Ce,onCloseRequested:_e,handleWrapperClick:re,handleInputEnter:he,handleAction:w,t:o}}});function _sfc_render(t,e,n,s,u,l){const o=resolveComponent("el-icon"),i=resolveComponent("el-input"),g=resolveComponent("el-button"),d=resolveComponent("el-focus-trap"),r=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:f=>t.$emit("vanish"),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(r,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:normalizeClass(`${t.ns.namespace.value}-overlay-message-box`),onClick:t.overlayEvent.onClick,onMousedown:t.overlayEvent.onMousedown,onMouseup:t.overlayEvent.onMouseup},[createVNode(d,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),t.ns.is("dragging",t.isDragging),{[t.ns.m("center")]:t.center}]),style:normalizeStyle(t.customStyle),tabindex:"-1",onClick:withModifiers(()=>{},["stop"])},[t.title!==null&&t.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass([t.ns.e("header"),{"show-close":t.showClose}])},[createBaseVNode("div",{class:normalizeClass(t.ns.e("title"))},[t.iconComponent&&t.center?(openBlock(),createBlock(o,{key:0,class:normalizeClass([t.ns.e("status"),t.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString(t.title),1)],2),t.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:f=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),onKeydown:withKeys(withModifiers(f=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[createVNode(o,{class:normalizeClass(t.ns.e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:t.contentId,class:normalizeClass(t.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(openBlock(),createBlock(o,{key:0,class:normalizeClass([t.ns.e("status"),t.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),t.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.ns.e("message"))},[renderSlot(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0,textContent:toDisplayString(t.message)},null,8,["for","textContent"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(t.ns.e("input"))},[createVNode(i,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":f=>t.inputValue=f,type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:normalizeClass({invalid:t.validateError}),onKeydown:withKeys(t.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass(t.ns.e("errormsg")),style:normalizeStyle({visibility:t.editorErrorMessage?"visible":"hidden"})},toDisplayString(t.editorErrorMessage),7)],2),[[vShow,t.showInput]])],10,["id"]),createBaseVNode("div",{class:normalizeClass(t.ns.e("btns"))},[t.showCancelButton?(openBlock(),createBlock(g,{key:0,loading:t.cancelButtonLoading,"loading-icon":t.cancelButtonLoadingIcon,class:normalizeClass([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:f=>t.handleAction("cancel"),onKeydown:withKeys(withModifiers(f=>t.handleAction("cancel"),["prevent"]),["enter"])},{default:withCtx(()=>[createTextVNode(toDisplayString(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):createCommentVNode("v-if",!0),withDirectives(createVNode(g,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,"loading-icon":t.confirmButtonLoadingIcon,class:normalizeClass([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:f=>t.handleAction("confirm"),onKeydown:withKeys(withModifiers(f=>t.handleAction("confirm"),["prevent"]),["enter"])},{default:withCtx(()=>[createTextVNode(toDisplayString(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[vShow,t.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,t.visible]])]),_:3},8,["onAfterLeave"])}var MessageBoxConstructor=_export_sfc(_sfc_main$3,[["render",_sfc_render],["__file","index.vue"]]);const messageInstance=new Map,getAppendToElement=t=>{let e=document.body;return t.appendTo&&(isString$2(t.appendTo)&&(e=document.querySelector(t.appendTo)),isElement(t.appendTo)&&(e=t.appendTo),isElement(e)||(e=document.body)),e},initInstance=(t,e,n=null)=>{const s=createVNode(MessageBoxConstructor,t,isFunction$3(t.message)||isVNode(t.message)?{default:isFunction$3(t.message)?t.message:()=>t.message}:null);return s.appContext=n,render(s,e),getAppendToElement(t).appendChild(e.firstElementChild),s.component},genContainer=()=>document.createElement("div"),showMessage=(t,e)=>{const n=genContainer();t.onVanish=()=>{render(null,n),messageInstance.delete(u)},t.onAction=l=>{const o=messageInstance.get(u);let i;t.showInput?i={value:u.inputValue,action:l}:i=l,t.callback?t.callback(i,s.proxy):l==="cancel"||l==="close"?t.distinguishCancelAndClose&&l!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(i)};const s=initInstance(t,n,e),u=s.proxy;for(const l in t)hasOwn(t,l)&&!hasOwn(u.$props,l)&&(l==="closeIcon"&&isObject$2(t[l])?u[l]=markRaw(t[l]):u[l]=t[l]);return u.visible=!0,u};function MessageBox(t,e=null){if(!isClient)return Promise.reject();let n;return isString$2(t)||isVNode(t)?t={message:t}:n=t.callback,new Promise((s,u)=>{const l=showMessage(t,e??MessageBox._context);messageInstance.set(l,{options:t,callback:n,resolve:s,reject:u})})}const MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"],MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};MESSAGE_BOX_VARIANTS.forEach(t=>{MessageBox[t]=messageBoxFactory(t)});function messageBoxFactory(t){return(e,n,s,u)=>{let l="";return isObject$2(n)?(s=n,l=""):isUndefined$1(n)?l="":l=n,MessageBox(Object.assign({title:l,message:e,type:"",...MESSAGE_BOX_DEFAULT_OPTS[t]},s,{boxType:t}),u)}}MessageBox.close=()=>{messageInstance.forEach((t,e)=>{e.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=t=>{_MessageBox._context=t._context,t.config.globalProperties.$msgbox=_MessageBox,t.config.globalProperties.$messageBox=_MessageBox,t.config.globalProperties.$alert=_MessageBox.alert,t.config.globalProperties.$confirm=_MessageBox.confirm,t.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox;function mitt(t){return{all:t=t||new Map,on:function(e,n){var s=t.get(e);s?s.push(n):t.set(e,[n])},off:function(e,n){var s=t.get(e);s&&(n?s.splice(s.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var s=t.get(e);s&&s.slice().map(function(u){u(n)}),(s=t.get("*"))&&s.slice().map(function(u){u(e,n)})}}}const EXPORT_EVENTS={SVG:"exportSVG",PDF:"exportPDF"},exportFileBus=mitt(),BASE_LENGTH=120,BASE_WIDTH=60,BASE_HEIGHT=160,BASE_THICKNESS=.5,BASE_MATERIAL="白卡纸350克",BASE_SIZE_TYPE="制造尺寸",BASE_BLEEDING_SPACE=2,BASE_ADVANCED_PARAMS={},DEFAULT_BOX_PARAMS=Object.freeze({boxLength:BASE_LENGTH,boxWidth:BASE_WIDTH,boxHeight:BASE_HEIGHT,thickness:BASE_THICKNESS,bleedingSpace:BASE_BLEEDING_SPACE,material:BASE_MATERIAL,sizeType:BASE_SIZE_TYPE,advancedParams:BASE_ADVANCED_PARAMS}),TRACKER_KEY=Symbol("tracker"),FINISHED_PRODUCT_UNFOLDED_SIZE_KEY=Symbol("finishedProductUnfoldedSize"),IS_HANDBAG_MODE_KEY=Symbol("isHandbagMode"),useBoxParamsState=t=>{const e=reactive(JSON.parse(JSON.stringify(DEFAULT_BOX_PARAMS))),n=ref(e.thickness),s=ref(),u=()=>{if(!Number.isFinite(e.thickness)||e.thickness<.1||e.thickness>4){e.thickness=n.value>0?n.value:.5,s.value?.focus();return}const m=e.thickness.toString().split(".");m.length>1&&m[1].length>2?e.thickness=+`${m[0]}.${m[1].substring(0,2)}`:e.thickness=Number(e.thickness.toFixed(2)),n.value=e.thickness},l=ref({tempLength:e.boxLength,tempWidth:e.boxWidth,tempHeight:e.boxHeight,tempThickness:e.thickness,tempAdvancedParams:JSON.parse(JSON.stringify(e.advancedParams))}),o=ref({boxLength:0,boxWidth:0,boxHeight:0,thickness:0,material:"Custom",sizeType:"制造尺寸",bleedingSpace:2,advancedParams:{}});function i(){const m=x.value;if(m.length){if(T.value){e.material=m[0],c(e.material),l.value.tempThickness=e.thickness;return}L.includes(e.material)&&(e.material=f[0],c(e.material),l.value.tempThickness=e.thickness)}}const g=()=>{Object.assign(e,o.value),e.advancedParams=JSON.parse(JSON.stringify(o.value.advancedParams)),l.value.tempLength=o.value.boxLength,l.value.tempWidth=o.value.boxWidth,l.value.tempHeight=o.value.boxHeight,l.value.tempThickness=o.value.thickness,l.value.tempAdvancedParams=JSON.parse(JSON.stringify(o.value.advancedParams)),i()},d=m=>{Object.assign(o.value,m),g()},r=ref("");provide(FINISHED_PRODUCT_UNFOLDED_SIZE_KEY,{finishedProductUnfoldedSize:readonly(r),updateFinishedProductUnfoldedSize:m=>r.value=m});const f=["白卡纸250克","白卡纸300克","白卡纸350克","白卡纸400克"],L=["250克白卡对裱250克白卡","300克白卡对裱300克白卡"],T=computed(()=>{const m=t?.boxTypeRef?.value??"";return m?findBox(m)?.group==="duplex":!1}),x=computed(()=>T.value?L:f),c=m=>{if(T.value){m==="250克白卡对裱250克白卡"?e.thickness=.8:m==="300克白卡对裱300克白卡"?e.thickness=1:e.thickness=.8,n.value=e.thickness;return}m==="白卡纸250克"?e.thickness=.3:m==="白卡纸300克"?e.thickness=.4:m==="白卡纸350克"?e.thickness=.5:m==="白卡纸400克"?e.thickness=.6:e.thickness=.5,n.value=e.thickness};return watch(()=>t?.boxTypeRef?.value,()=>{i()},{immediate:!0}),{boxParams:e,defaultSize:o,defaultInit:d,finishedProductUnfoldedSize:r,materials:x,materialToThickness:c,resetDefault:g,tempParams:l,thicknessInput:s,validateThickness:u}},FIELD_TO_TEMP_MAP={boxLength:"tempLength",boxWidth:"tempWidth",boxHeight:"tempHeight",thickness:"tempThickness"},resetTempSize=(t,e,n)=>{let s;FIELD_TO_TEMP_MAP[t]?(s=FIELD_TO_TEMP_MAP[t],s&&n[s]&&(n[s]=e)):n.tempAdvancedParams[t].value=e},commitSize=(t,e,n,s,u,l,o=0)=>{if(o>3)return!0;let i;if(FIELD_TO_TEMP_MAP[t]){const r=FIELD_TO_TEMP_MAP[t];i=Number(n[r])}else i=Number(n.tempAdvancedParams?.[t].value);if(i===e[t])return!0;if(!Number.isFinite(i)||i<=0)return resetTempSize(t,u[t],n),commitSize(t,e,n,s,u,l,o+1);const g={boxLength:n.tempLength,boxWidth:n.tempWidth,boxHeight:n.tempHeight,thickness:n.tempThickness,advancedParams:n.tempAdvancedParams},d=l?l(t,i,g,getBox(s).pathApi):{validVal:!0,msg:"success",syncType:""};if(d.validVal)e[t]?e[t]=i:e.advancedParams[t].value=i;else if(typeof ElMessage<"u"&&ElMessage.error(d.msg||"尺寸不合法！"),d.syncType){const r=d.syncType,f=d.syncSize??i;resetTempSize(r,f,n),commitSize(r,e,n,s,u,l,o+1),commitSize(t,e,n,s,u,l,o+1)}return!1},useCommitSize=t=>{const e=new Map,n=50,s=new Map,u=300,l=(d,r)=>{const f=r||t.boxTypeValue.value,L=findBox(f)?.rules;commitSize(d,t.boxParams,t.tempParams.value,f,t.defaultSize.value,L)||t.tracker.track({appId:"dplate",eventType:"input",eventName:"调整尺寸",eventId:"dplate-002",props:{changeField:d,boxLength:t.tempParams.value.tempLength,boxWidth:t.tempParams.value.tempWidth,boxHeight:t.tempParams.value.tempHeight,thickness:t.tempParams.value.tempThickness,advancedParams:t.tempParams.value.tempAdvancedParams}})},o=(d,r)=>{const f=`${r||t.boxTypeValue.value}:${d}`,L=e.get(f);L&&window.clearTimeout(L),e.set(f,window.setTimeout(()=>{e.delete(f),l(d,r)},n))};return{commitSize:o,commitSizeFromBlur:(d,r)=>{const f=s.get(d)||0;Date.now()-f<u||o(d,r)},commitSizeFromEnter:(d,r)=>{s.set(d,Date.now()),o(d,r)}}},useSvgViewport=()=>{const t=ref(),e=ref(null),n=ref(.5),s=ref(0),u=ref(0),l=ref(!1),o=ref(!1),i=ref(!1),g=ref(0),d=ref(0),r=computed(()=>o.value||i.value),f=()=>{i.value=!i.value,i.value||(l.value=!1,e.value&&(e.value.style.transition=""))},L=F=>{!o.value&&!i.value||(F.preventDefault(),l.value=!0,g.value=F.clientX,d.value=F.clientY)},T=F=>{if(!o.value&&!i.value||!l.value)return;const k=F.clientX-g.value,_=F.clientY-d.value;g.value=F.clientX,d.value=F.clientY,s.value+=k,u.value+=_},x=()=>{l.value&&(l.value=!1)},c=F=>{if(F.preventDefault(),!t.value)return;const k=t.value.getBoundingClientRect(),_=k.width,ue=k.height,re=F.clientX-k.left,de=F.clientY-k.top,he=re-_/2,w=de-ue/2,le=F.deltaY>0?.9:1.1,V=Math.max(.1,Math.min(5,n.value*le)),Ce=V/n.value;s.value=s.value*Ce+he*(1-Ce),u.value=u.value*Ce+w*(1-Ce),n.value=V},m=()=>{n.value=.5,s.value=0,u.value=0},y=()=>{m()},O=F=>{F.target?.addEventListener("dblclick",k,{once:!0});function k(_){_.stopPropagation()}n.value=Math.min(5,n.value+.1)},b=F=>{F.target?.addEventListener("dblclick",k,{once:!0});function k(_){_.stopPropagation()}n.value=Math.max(.1,n.value-.1)},j=computed(()=>n.value>.8?.5/n.value:.8*n.value);return onMounted(()=>{const F=_=>{_.key===" "?(o.value=!0,_.preventDefault()):_.key==="-"||_.key==="_"?n.value=Math.max(.1,n.value-.1):(_.key==="+"||_.key==="=")&&(n.value=Math.min(5,n.value+.1))},k=_=>{_.key===" "&&(o.value=!1,l.value=!1)};window.addEventListener("keydown",F),window.addEventListener("keyup",k),onUnmounted(()=>{window.removeEventListener("keydown",F),window.removeEventListener("keyup",k)})}),{dragMode:i,handleDoubleClick:y,handleWheel:c,isDragModeActive:r,onDrag:T,onDragEnd:x,onDragStart:L,resetView:m,scale:n,strokeWidth:j,svgContainer:t,svgEl:e,toggleDragMode:f,translateX:s,translateY:u,zoomIn:O,zoomOut:b}},LEVEL_PRIORITY={debug:10,info:20,warn:30,error:40},MIN_LEVEL="warn",shouldLog=t=>LEVEL_PRIORITY[t]>=LEVEL_PRIORITY[MIN_LEVEL],log=(t,...e)=>{if(!shouldLog(t))return;(console[t]??console.log)(...e)},logger={debug:(...t)=>log("debug",...t),info:(...t)=>log("info",...t),warn:(...t)=>log("warn",...t),error:(...t)=>log("error",...t)},STORAGE_KEY="dplate:selectedBoxType";function useBoxTypePersistence(t){const{boxTypeRef:e,isValid:n}=t,s=()=>{try{const l=localStorage.getItem(STORAGE_KEY);if(l&&n(l))return l}catch(l){logger.warn("读取持久化盒型失败",l)}return""},u=l=>{if(l)try{localStorage.setItem(STORAGE_KEY,l)}catch(o){logger.warn("写入持久化盒型失败",o)}};return watch(e,l=>{l&&u(l)}),{loadPersistedBoxType:s,persistBoxType:u}}function useHandbagMode(t){const{routePath:e,hasHandbagQuery:n,boxTypeRef:s,visiableStatus:u}=t,l=computed(()=>e.value==="/handbag"||n.value?"bag":"card"),o=computed(()=>{const r=s.value;if(!r)return l.value;for(const f of TREE_DATA)if(flattenTreeData([f]).some(L=>L.value===r))return f.id;return l.value}),i=computed(()=>o.value==="bag"),g=computed(()=>i.value?5:1),d=computed(()=>i.value);return watch(()=>i.value,r=>{if(r){u.bleedingVisiable=!1,u.baseVisiable=!1;return}u.bleedingVisiable=!0},{immediate:!0}),provide(IS_HANDBAG_MODE_KEY,{isHandbagMode:readonly(i)}),{defaultGroupId:l,currentGroupId:o,isHandbagMode:i,mainNumberStep:g,shouldHideMaterialSetting:d}}/*!
  * vue-router v4.5.1
  * (c) 2025 Eduardo San Martin Morote
  * @license MIT
  */const isBrowser=typeof document<"u";function isRouteComponent(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function isESModule(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&isRouteComponent(t.default)}const assign=Object.assign;function applyToParams(t,e){const n={};for(const s in e){const u=e[s];n[s]=isArray$1(u)?u.map(t):t(u)}return n}const noop$1=()=>{},isArray$1=Array.isArray,HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(t){return encodeURI(""+t).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(t){return commonEncode(t).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(t){return commonEncode(t).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(t){return encodeQueryValue(t).replace(EQUAL_RE,"%3D")}function encodePath(t){return commonEncode(t).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(t){return t==null?"":encodePath(t).replace(SLASH_RE,"%2F")}function decode(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=t=>t.replace(TRAILING_SLASH_RE,"");function parseURL(t,e,n="/"){let s,u={},l="",o="";const i=e.indexOf("#");let g=e.indexOf("?");return i<g&&i>=0&&(g=-1),g>-1&&(s=e.slice(0,g),l=e.slice(g+1,i>-1?i:e.length),u=t(l)),i>-1&&(s=s||e.slice(0,i),o=e.slice(i,e.length)),s=resolveRelativePath(s??e,n),{fullPath:s+(l&&"?")+l+o,path:s,query:u,hash:decode(o)}}function stringifyURL(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function stripBase(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function isSameRouteLocation(t,e,n){const s=e.matched.length-1,u=n.matched.length-1;return s>-1&&s===u&&isSameRouteRecord(e.matched[s],n.matched[u])&&isSameRouteLocationParams(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function isSameRouteRecord(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function isSameRouteLocationParams(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!isSameRouteLocationParamsValue(t[n],e[n]))return!1;return!0}function isSameRouteLocationParamsValue(t,e){return isArray$1(t)?isEquivalentArray(t,e):isArray$1(e)?isEquivalentArray(e,t):t===e}function isEquivalentArray(t,e){return isArray$1(e)?t.length===e.length&&t.every((n,s)=>n===e[s]):t.length===1&&t[0]===e}function resolveRelativePath(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),s=t.split("/"),u=s[s.length-1];(u===".."||u===".")&&s.push("");let l=n.length-1,o,i;for(o=0;o<s.length;o++)if(i=s[o],i!==".")if(i==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+s.slice(o).join("/")}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var NavigationType;(function(t){t.pop="pop",t.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(t){t.back="back",t.forward="forward",t.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(t){if(!t)if(isBrowser){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),removeTrailingSlash(t)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(t,e){return t.replace(BEFORE_HASH_RE,"#")+e}function getElementPosition(t,e){const n=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-n.left-(e.left||0),top:s.top-n.top-(e.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(t){let e;if("el"in t){const n=t.el,s=typeof n=="string"&&n.startsWith("#"),u=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!u)return;e=getElementPosition(u,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function getScrollKey(t,e){return(history.state?history.state.position-e:-1)+t}const scrollPositions=new Map;function saveScrollPosition(t,e){scrollPositions.set(t,e)}function getSavedScrollPosition(t){const e=scrollPositions.get(t);return scrollPositions.delete(t),e}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(t,e){const{pathname:n,search:s,hash:u}=e,l=t.indexOf("#");if(l>-1){let i=u.includes(t.slice(l))?t.slice(l).length:1,g=u.slice(i);return g[0]!=="/"&&(g="/"+g),stripBase(g,"")}return stripBase(n,t)+s+u}function useHistoryListeners(t,e,n,s){let u=[],l=[],o=null;const i=({state:L})=>{const T=createCurrentLocation(t,location),x=n.value,c=e.value;let m=0;if(L){if(n.value=T,e.value=L,o&&o===x){o=null;return}m=c?L.position-c.position:0}else s(T);u.forEach(y=>{y(n.value,x,{delta:m,type:NavigationType.pop,direction:m?m>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function g(){o=n.value}function d(L){u.push(L);const T=()=>{const x=u.indexOf(L);x>-1&&u.splice(x,1)};return l.push(T),T}function r(){const{history:L}=window;L.state&&L.replaceState(assign({},L.state,{scroll:computeScrollPosition()}),"")}function f(){for(const L of l)L();l=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",r)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",r,{passive:!0}),{pauseListeners:g,listen:d,destroy:f}}function buildState(t,e,n,s=!1,u=!1){return{back:t,current:e,forward:n,replaced:s,position:window.history.length,scroll:u?computeScrollPosition():null}}function useHistoryStateNavigation(t){const{history:e,location:n}=window,s={value:createCurrentLocation(t,n)},u={value:e.state};u.value||l(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function l(g,d,r){const f=t.indexOf("#"),L=f>-1?(n.host&&document.querySelector("base")?t:t.slice(f))+g:createBaseLocation()+t+g;try{e[r?"replaceState":"pushState"](d,"",L),u.value=d}catch(T){console.error(T),n[r?"replace":"assign"](L)}}function o(g,d){const r=assign({},e.state,buildState(u.value.back,g,u.value.forward,!0),d,{position:u.value.position});l(g,r,!0),s.value=g}function i(g,d){const r=assign({},u.value,e.state,{forward:g,scroll:computeScrollPosition()});l(r.current,r,!0);const f=assign({},buildState(s.value,g,null),{position:r.position+1},d);l(g,f,!1),s.value=g}return{location:s,state:u,push:i,replace:o}}function createWebHistory(t){t=normalizeBase(t);const e=useHistoryStateNavigation(t),n=useHistoryListeners(t,e.state,e.location,e.replace);function s(l,o=!0){o||n.pauseListeners(),history.go(l)}const u=assign({location:"",base:t,go:s,createHref:createHref.bind(null,t)},e,n);return Object.defineProperty(u,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(u,"state",{enumerable:!0,get:()=>e.state.value}),u}function isRouteLocation(t){return typeof t=="string"||t&&typeof t=="object"}function isRouteName(t){return typeof t=="string"||typeof t=="symbol"}const NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(t,e){return assign(new Error,{type:t,[NavigationFailureSymbol]:!0},e)}function isNavigationFailure(t,e){return t instanceof Error&&NavigationFailureSymbol in t&&(e==null||!!(t.type&e))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(t,e){const n=assign({},BASE_PATH_PARSER_OPTIONS,e),s=[];let u=n.start?"^":"";const l=[];for(const d of t){const r=d.length?[]:[90];n.strict&&!d.length&&(u+="/");for(let f=0;f<d.length;f++){const L=d[f];let T=40+(n.sensitive?.25:0);if(L.type===0)f||(u+="/"),u+=L.value.replace(REGEX_CHARS_RE,"\\$&"),T+=40;else if(L.type===1){const{value:x,repeatable:c,optional:m,regexp:y}=L;l.push({name:x,repeatable:c,optional:m});const O=y||BASE_PARAM_PATTERN;if(O!==BASE_PARAM_PATTERN){T+=10;try{new RegExp(`(${O})`)}catch(j){throw new Error(`Invalid custom RegExp for param "${x}" (${O}): `+j.message)}}let b=c?`((?:${O})(?:/(?:${O}))*)`:`(${O})`;f||(b=m&&d.length<2?`(?:/${b})`:"/"+b),m&&(b+="?"),u+=b,T+=20,m&&(T+=-8),c&&(T+=-20),O===".*"&&(T+=-50)}r.push(T)}s.push(r)}if(n.strict&&n.end){const d=s.length-1;s[d][s[d].length-1]+=.7000000000000001}n.strict||(u+="/?"),n.end?u+="$":n.strict&&!u.endsWith("/")&&(u+="(?:/|$)");const o=new RegExp(u,n.sensitive?"":"i");function i(d){const r=d.match(o),f={};if(!r)return null;for(let L=1;L<r.length;L++){const T=r[L]||"",x=l[L-1];f[x.name]=T&&x.repeatable?T.split("/"):T}return f}function g(d){let r="",f=!1;for(const L of t){(!f||!r.endsWith("/"))&&(r+="/"),f=!1;for(const T of L)if(T.type===0)r+=T.value;else if(T.type===1){const{value:x,repeatable:c,optional:m}=T,y=x in d?d[x]:"";if(isArray$1(y)&&!c)throw new Error(`Provided param "${x}" is an array but it is not repeatable (* or + modifiers)`);const O=isArray$1(y)?y.join("/"):y;if(!O)if(m)L.length<2&&(r.endsWith("/")?r=r.slice(0,-1):f=!0);else throw new Error(`Missing required param "${x}"`);r+=O}}return r||"/"}return{re:o,score:s,keys:l,parse:i,stringify:g}}function compareScoreArray(t,e){let n=0;for(;n<t.length&&n<e.length;){const s=e[n]-t[n];if(s)return s;n++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function comparePathParserScore(t,e){let n=0;const s=t.score,u=e.score;for(;n<s.length&&n<u.length;){const l=compareScoreArray(s[n],u[n]);if(l)return l;n++}if(Math.abs(u.length-s.length)===1){if(isLastScoreNegative(s))return 1;if(isLastScoreNegative(u))return-1}return u.length-s.length}function isLastScoreNegative(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(t){if(!t)return[[]];if(t==="/")return[[ROOT_TOKEN]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(T){throw new Error(`ERR (${n})/"${d}": ${T}`)}let n=0,s=n;const u=[];let l;function o(){l&&u.push(l),l=[]}let i=0,g,d="",r="";function f(){d&&(n===0?l.push({type:0,value:d}):n===1||n===2||n===3?(l.length>1&&(g==="*"||g==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:d,regexp:r,repeatable:g==="*"||g==="+",optional:g==="*"||g==="?"})):e("Invalid state to consume buffer"),d="")}function L(){d+=g}for(;i<t.length;){if(g=t[i++],g==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:g==="/"?(d&&f(),o()):g===":"?(f(),n=1):L();break;case 4:L(),n=s;break;case 1:g==="("?n=2:VALID_PARAM_RE.test(g)?L():(f(),n=0,g!=="*"&&g!=="?"&&g!=="+"&&i--);break;case 2:g===")"?r[r.length-1]=="\\"?r=r.slice(0,-1)+g:n=3:r+=g;break;case 3:f(),n=0,g!=="*"&&g!=="?"&&g!=="+"&&i--,r="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${d}"`),f(),o(),u}function createRouteRecordMatcher(t,e,n){const s=tokensToParser(tokenizePath(t.path),n),u=assign(s,{record:t,parent:e,children:[],alias:[]});return e&&!u.record.aliasOf==!e.record.aliasOf&&e.children.push(u),u}function createRouterMatcher(t,e){const n=[],s=new Map;e=mergeOptions({strict:!1,end:!0,sensitive:!1},e);function u(f){return s.get(f)}function l(f,L,T){const x=!T,c=normalizeRouteRecord(f);c.aliasOf=T&&T.record;const m=mergeOptions(e,f),y=[c];if("alias"in f){const j=typeof f.alias=="string"?[f.alias]:f.alias;for(const F of j)y.push(normalizeRouteRecord(assign({},c,{components:T?T.record.components:c.components,path:F,aliasOf:T?T.record:c})))}let O,b;for(const j of y){const{path:F}=j;if(L&&F[0]!=="/"){const k=L.record.path,_=k[k.length-1]==="/"?"":"/";j.path=L.record.path+(F&&_+F)}if(O=createRouteRecordMatcher(j,L,m),T?T.alias.push(O):(b=b||O,b!==O&&b.alias.push(O),x&&f.name&&!isAliasRecord(O)&&o(f.name)),isMatchable(O)&&g(O),c.children){const k=c.children;for(let _=0;_<k.length;_++)l(k[_],O,T&&T.children[_])}T=T||O}return b?()=>{o(b)}:noop$1}function o(f){if(isRouteName(f)){const L=s.get(f);L&&(s.delete(f),n.splice(n.indexOf(L),1),L.children.forEach(o),L.alias.forEach(o))}else{const L=n.indexOf(f);L>-1&&(n.splice(L,1),f.record.name&&s.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function i(){return n}function g(f){const L=findInsertionIndex(f,n);n.splice(L,0,f),f.record.name&&!isAliasRecord(f)&&s.set(f.record.name,f)}function d(f,L){let T,x={},c,m;if("name"in f&&f.name){if(T=s.get(f.name),!T)throw createRouterError(1,{location:f});m=T.record.name,x=assign(paramsFromLocation(L.params,T.keys.filter(b=>!b.optional).concat(T.parent?T.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&paramsFromLocation(f.params,T.keys.map(b=>b.name))),c=T.stringify(x)}else if(f.path!=null)c=f.path,T=n.find(b=>b.re.test(c)),T&&(x=T.parse(c),m=T.record.name);else{if(T=L.name?s.get(L.name):n.find(b=>b.re.test(L.path)),!T)throw createRouterError(1,{location:f,currentLocation:L});m=T.record.name,x=assign({},L.params,f.params),c=T.stringify(x)}const y=[];let O=T;for(;O;)y.unshift(O.record),O=O.parent;return{name:m,path:c,params:x,matched:y,meta:mergeMetaFields(y)}}t.forEach(f=>l(f));function r(){n.length=0,s.clear()}return{addRoute:l,resolve:d,removeRoute:o,clearRoutes:r,getRoutes:i,getRecordMatcher:u}}function paramsFromLocation(t,e){const n={};for(const s of e)s in t&&(n[s]=t[s]);return n}function normalizeRouteRecord(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:normalizeRecordProps(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function normalizeRecordProps(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const s in t.components)e[s]=typeof n=="object"?n[s]:n;return e}function isAliasRecord(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function mergeMetaFields(t){return t.reduce((e,n)=>assign(e,n.meta),{})}function mergeOptions(t,e){const n={};for(const s in t)n[s]=s in e?e[s]:t[s];return n}function findInsertionIndex(t,e){let n=0,s=e.length;for(;n!==s;){const l=n+s>>1;comparePathParserScore(t,e[l])<0?s=l:n=l+1}const u=getInsertionAncestor(t);return u&&(s=e.lastIndexOf(u,s-1)),s}function getInsertionAncestor(t){let e=t;for(;e=e.parent;)if(isMatchable(e)&&comparePathParserScore(t,e)===0)return e}function isMatchable({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function parseQuery(t){const e={};if(t===""||t==="?")return e;const s=(t[0]==="?"?t.slice(1):t).split("&");for(let u=0;u<s.length;++u){const l=s[u].replace(PLUS_RE," "),o=l.indexOf("="),i=decode(o<0?l:l.slice(0,o)),g=o<0?null:decode(l.slice(o+1));if(i in e){let d=e[i];isArray$1(d)||(d=e[i]=[d]),d.push(g)}else e[i]=g}return e}function stringifyQuery(t){let e="";for(let n in t){const s=t[n];if(n=encodeQueryKey(n),s==null){s!==void 0&&(e+=(e.length?"&":"")+n);continue}(isArray$1(s)?s.map(l=>l&&encodeQueryValue(l)):[s&&encodeQueryValue(s)]).forEach(l=>{l!==void 0&&(e+=(e.length?"&":"")+n,l!=null&&(e+="="+l))})}return e}function normalizeQuery(t){const e={};for(const n in t){const s=t[n];s!==void 0&&(e[n]=isArray$1(s)?s.map(u=>u==null?null:""+u):s==null?s:""+s)}return e}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let t=[];function e(s){return t.push(s),()=>{const u=t.indexOf(s);u>-1&&t.splice(u,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function guardToPromiseFn(t,e,n,s,u,l=o=>o()){const o=s&&(s.enterCallbacks[u]=s.enterCallbacks[u]||[]);return()=>new Promise((i,g)=>{const d=L=>{L===!1?g(createRouterError(4,{from:n,to:e})):L instanceof Error?g(L):isRouteLocation(L)?g(createRouterError(2,{from:e,to:L})):(o&&s.enterCallbacks[u]===o&&typeof L=="function"&&o.push(L),i())},r=l(()=>t.call(s&&s.instances[u],e,n,d));let f=Promise.resolve(r);t.length<3&&(f=f.then(d)),f.catch(L=>g(L))})}function extractComponentsGuards(t,e,n,s,u=l=>l()){const l=[];for(const o of t)for(const i in o.components){let g=o.components[i];if(!(e!=="beforeRouteEnter"&&!o.instances[i]))if(isRouteComponent(g)){const r=(g.__vccOpts||g)[e];r&&l.push(guardToPromiseFn(r,n,s,o,i,u))}else{let d=g();l.push(()=>d.then(r=>{if(!r)throw new Error(`Couldn't resolve component "${i}" at "${o.path}"`);const f=isESModule(r)?r.default:r;o.mods[i]=r,o.components[i]=f;const T=(f.__vccOpts||f)[e];return T&&guardToPromiseFn(T,n,s,o,i,u)()}))}}return l}function useLink(t){const e=inject(routerKey),n=inject(routeLocationKey),s=computed(()=>{const g=unref(t.to);return e.resolve(g)}),u=computed(()=>{const{matched:g}=s.value,{length:d}=g,r=g[d-1],f=n.matched;if(!r||!f.length)return-1;const L=f.findIndex(isSameRouteRecord.bind(null,r));if(L>-1)return L;const T=getOriginalPath(g[d-2]);return d>1&&getOriginalPath(r)===T&&f[f.length-1].path!==T?f.findIndex(isSameRouteRecord.bind(null,g[d-2])):L}),l=computed(()=>u.value>-1&&includesParams(n.params,s.value.params)),o=computed(()=>u.value>-1&&u.value===n.matched.length-1&&isSameRouteLocationParams(n.params,s.value.params));function i(g={}){if(guardEvent(g)){const d=e[unref(t.replace)?"replace":"push"](unref(t.to)).catch(noop$1);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:computed(()=>s.value.href),isActive:l,isExactActive:o,navigate:i}}function preferSingleVNode(t){return t.length===1?t[0]:t}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink,setup(t,{slots:e}){const n=reactive(useLink(t)),{options:s}=inject(routerKey),u=computed(()=>({[getLinkClass(t.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[getLinkClass(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=e.default&&preferSingleVNode(e.default(n));return t.custom?l:h("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:u.value},l)}}}),RouterLink=RouterLinkImpl;function guardEvent(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function includesParams(t,e){for(const n in e){const s=e[n],u=t[n];if(typeof s=="string"){if(s!==u)return!1}else if(!isArray$1(u)||u.length!==s.length||s.some((l,o)=>l!==u[o]))return!1}return!0}function getOriginalPath(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const getLinkClass=(t,e,n)=>t??e??n,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const s=inject(routerViewLocationKey),u=computed(()=>t.route||s.value),l=inject(viewDepthKey,0),o=computed(()=>{let d=unref(l);const{matched:r}=u.value;let f;for(;(f=r[d])&&!f.components;)d++;return d}),i=computed(()=>u.value.matched[o.value]);provide(viewDepthKey,computed(()=>o.value+1)),provide(matchedRouteKey,i),provide(routerViewLocationKey,u);const g=ref();return watch(()=>[g.value,i.value,t.name],([d,r,f],[L,T,x])=>{r&&(r.instances[f]=d,T&&T!==r&&d&&d===L&&(r.leaveGuards.size||(r.leaveGuards=T.leaveGuards),r.updateGuards.size||(r.updateGuards=T.updateGuards))),d&&r&&(!T||!isSameRouteRecord(r,T)||!L)&&(r.enterCallbacks[f]||[]).forEach(c=>c(d))},{flush:"post"}),()=>{const d=u.value,r=t.name,f=i.value,L=f&&f.components[r];if(!L)return normalizeSlot(n.default,{Component:L,route:d});const T=f.props[r],x=T?T===!0?d.params:typeof T=="function"?T(d):T:null,m=h(L,assign({},x,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[r]=null)},ref:g}));return normalizeSlot(n.default,{Component:m,route:d})||m}}});function normalizeSlot(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const RouterView=RouterViewImpl;function createRouter(t){const e=createRouterMatcher(t.routes,t),n=t.parseQuery||parseQuery,s=t.stringifyQuery||stringifyQuery,u=t.history,l=useCallbacks(),o=useCallbacks(),i=useCallbacks(),g=shallowRef(START_LOCATION_NORMALIZED);let d=START_LOCATION_NORMALIZED;isBrowser&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const r=applyToParams.bind(null,S=>""+S),f=applyToParams.bind(null,encodeParam),L=applyToParams.bind(null,decode);function T(S,Ue){let M,Pt;return isRouteName(S)?(M=e.getRecordMatcher(S),Pt=Ue):Pt=S,e.addRoute(Pt,M)}function x(S){const Ue=e.getRecordMatcher(S);Ue&&e.removeRoute(Ue)}function c(){return e.getRoutes().map(S=>S.record)}function m(S){return!!e.getRecordMatcher(S)}function y(S,Ue){if(Ue=assign({},Ue||g.value),typeof S=="string"){const Et=parseURL(n,S,Ue.path),oe=e.resolve({path:Et.path},Ue),kt=u.createHref(Et.fullPath);return assign(Et,oe,{params:L(oe.params),hash:decode(Et.hash),redirectedFrom:void 0,href:kt})}let M;if(S.path!=null)M=assign({},S,{path:parseURL(n,S.path,Ue.path).path});else{const Et=assign({},S.params);for(const oe in Et)Et[oe]==null&&delete Et[oe];M=assign({},S,{params:f(Et)}),Ue.params=f(Ue.params)}const Pt=e.resolve(M,Ue),hn=S.hash||"";Pt.params=r(L(Pt.params));const Oe=stringifyURL(s,assign({},S,{hash:encodeHash(hn),path:Pt.path})),Fe=u.createHref(Oe);return assign({fullPath:Oe,hash:hn,query:s===stringifyQuery?normalizeQuery(S.query):S.query||{}},Pt,{redirectedFrom:void 0,href:Fe})}function O(S){return typeof S=="string"?parseURL(n,S,g.value.path):assign({},S)}function b(S,Ue){if(d!==S)return createRouterError(8,{from:Ue,to:S})}function j(S){return _(S)}function F(S){return j(assign(O(S),{replace:!0}))}function k(S){const Ue=S.matched[S.matched.length-1];if(Ue&&Ue.redirect){const{redirect:M}=Ue;let Pt=typeof M=="function"?M(S):M;return typeof Pt=="string"&&(Pt=Pt.includes("?")||Pt.includes("#")?Pt=O(Pt):{path:Pt},Pt.params={}),assign({query:S.query,hash:S.hash,params:Pt.path!=null?{}:S.params},Pt)}}function _(S,Ue){const M=d=y(S),Pt=g.value,hn=S.state,Oe=S.force,Fe=S.replace===!0,Et=k(M);if(Et)return _(assign(O(Et),{state:typeof Et=="object"?assign({},hn,Et.state):hn,force:Oe,replace:Fe}),Ue||M);const oe=M;oe.redirectedFrom=Ue;let kt;return!Oe&&isSameRouteLocation(s,Pt,M)&&(kt=createRouterError(16,{to:oe,from:Pt}),ie(Pt,Pt,!0,!1)),(kt?Promise.resolve(kt):de(oe,Pt)).catch(Ne=>isNavigationFailure(Ne)?isNavigationFailure(Ne,2)?Ne:At(Ne):Ie(Ne,oe,Pt)).then(Ne=>{if(Ne){if(isNavigationFailure(Ne,2))return _(assign({replace:Fe},O(Ne.to),{state:typeof Ne.to=="object"?assign({},hn,Ne.to.state):hn,force:Oe}),Ue||oe)}else Ne=w(oe,Pt,!0,Fe,hn);return he(oe,Pt,Ne),Ne})}function ue(S,Ue){const M=b(S,Ue);return M?Promise.reject(M):Promise.resolve()}function re(S){const Ue=z.values().next().value;return Ue&&typeof Ue.runWithContext=="function"?Ue.runWithContext(S):S()}function de(S,Ue){let M;const[Pt,hn,Oe]=extractChangingRecords(S,Ue);M=extractComponentsGuards(Pt.reverse(),"beforeRouteLeave",S,Ue);for(const Et of Pt)Et.leaveGuards.forEach(oe=>{M.push(guardToPromiseFn(oe,S,Ue))});const Fe=ue.bind(null,S,Ue);return M.push(Fe),v(M).then(()=>{M=[];for(const Et of l.list())M.push(guardToPromiseFn(Et,S,Ue));return M.push(Fe),v(M)}).then(()=>{M=extractComponentsGuards(hn,"beforeRouteUpdate",S,Ue);for(const Et of hn)Et.updateGuards.forEach(oe=>{M.push(guardToPromiseFn(oe,S,Ue))});return M.push(Fe),v(M)}).then(()=>{M=[];for(const Et of Oe)if(Et.beforeEnter)if(isArray$1(Et.beforeEnter))for(const oe of Et.beforeEnter)M.push(guardToPromiseFn(oe,S,Ue));else M.push(guardToPromiseFn(Et.beforeEnter,S,Ue));return M.push(Fe),v(M)}).then(()=>(S.matched.forEach(Et=>Et.enterCallbacks={}),M=extractComponentsGuards(Oe,"beforeRouteEnter",S,Ue,re),M.push(Fe),v(M))).then(()=>{M=[];for(const Et of o.list())M.push(guardToPromiseFn(Et,S,Ue));return M.push(Fe),v(M)}).catch(Et=>isNavigationFailure(Et,8)?Et:Promise.reject(Et))}function he(S,Ue,M){i.list().forEach(Pt=>re(()=>Pt(S,Ue,M)))}function w(S,Ue,M,Pt,hn){const Oe=b(S,Ue);if(Oe)return Oe;const Fe=Ue===START_LOCATION_NORMALIZED,Et=isBrowser?history.state:{};M&&(Pt||Fe?u.replace(S.fullPath,assign({scroll:Fe&&Et&&Et.scroll},hn)):u.push(S.fullPath,hn)),g.value=S,ie(S,Ue,M,Fe),At()}let le;function V(){le||(le=u.listen((S,Ue,M)=>{if(!Dt.listening)return;const Pt=y(S),hn=k(Pt);if(hn){_(assign(hn,{replace:!0,force:!0}),Pt).catch(noop$1);return}d=Pt;const Oe=g.value;isBrowser&&saveScrollPosition(getScrollKey(Oe.fullPath,M.delta),computeScrollPosition()),de(Pt,Oe).catch(Fe=>isNavigationFailure(Fe,12)?Fe:isNavigationFailure(Fe,2)?(_(assign(O(Fe.to),{force:!0}),Pt).then(Et=>{isNavigationFailure(Et,20)&&!M.delta&&M.type===NavigationType.pop&&u.go(-1,!1)}).catch(noop$1),Promise.reject()):(M.delta&&u.go(-M.delta,!1),Ie(Fe,Pt,Oe))).then(Fe=>{Fe=Fe||w(Pt,Oe,!1),Fe&&(M.delta&&!isNavigationFailure(Fe,8)?u.go(-M.delta,!1):M.type===NavigationType.pop&&isNavigationFailure(Fe,20)&&u.go(-1,!1)),he(Pt,Oe,Fe)}).catch(noop$1)}))}let Ce=useCallbacks(),_e=useCallbacks(),D;function Ie(S,Ue,M){At(S);const Pt=_e.list();return Pt.length?Pt.forEach(hn=>hn(S,Ue,M)):console.error(S),Promise.reject(S)}function Lt(){return D&&g.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((S,Ue)=>{Ce.add([S,Ue])})}function At(S){return D||(D=!S,V(),Ce.list().forEach(([Ue,M])=>S?M(S):Ue()),Ce.reset()),S}function ie(S,Ue,M,Pt){const{scrollBehavior:hn}=t;if(!isBrowser||!hn)return Promise.resolve();const Oe=!M&&getSavedScrollPosition(getScrollKey(S.fullPath,0))||(Pt||!M)&&history.state&&history.state.scroll||null;return nextTick().then(()=>hn(S,Ue,Oe)).then(Fe=>Fe&&scrollToPosition(Fe)).catch(Fe=>Ie(Fe,S,Ue))}const Ve=S=>u.go(S);let ze;const z=new Set,Dt={currentRoute:g,listening:!0,addRoute:T,removeRoute:x,clearRoutes:e.clearRoutes,hasRoute:m,getRoutes:c,resolve:y,options:t,push:j,replace:F,go:Ve,back:()=>Ve(-1),forward:()=>Ve(1),beforeEach:l.add,beforeResolve:o.add,afterEach:i.add,onError:_e.add,isReady:Lt,install(S){const Ue=this;S.component("RouterLink",RouterLink),S.component("RouterView",RouterView),S.config.globalProperties.$router=Ue,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(g)}),isBrowser&&!ze&&g.value===START_LOCATION_NORMALIZED&&(ze=!0,j(u.location).catch(hn=>{}));const M={};for(const hn in START_LOCATION_NORMALIZED)Object.defineProperty(M,hn,{get:()=>g.value[hn],enumerable:!0});S.provide(routerKey,Ue),S.provide(routeLocationKey,shallowReactive(M)),S.provide(routerViewLocationKey,g);const Pt=S.unmount;z.add(S),S.unmount=function(){z.delete(S),z.size<1&&(d=START_LOCATION_NORMALIZED,le&&le(),le=null,g.value=START_LOCATION_NORMALIZED,ze=!1,D=!1),Pt()}}};function v(S){return S.reduce((Ue,M)=>Ue.then(()=>re(M)),Promise.resolve())}return Dt}function extractChangingRecords(t,e){const n=[],s=[],u=[],l=Math.max(e.matched.length,t.matched.length);for(let o=0;o<l;o++){const i=e.matched[o];i&&(t.matched.find(d=>isSameRouteRecord(d,i))?s.push(i):n.push(i));const g=t.matched[o];g&&(e.matched.find(d=>isSameRouteRecord(d,g))||u.push(g))}return[n,s,u]}function useRoute(t){return inject(routeLocationKey)}const _hoisted_1$2={class:"dieline-generator"},_hoisted_2$2={class:"left-panel"},_hoisted_3$2={class:"panel-content"},_hoisted_4$2={class:"section"},_hoisted_5$1={class:"current-box-card"},_hoisted_6$1={style:{display:"flex"}},_hoisted_7$1={class:"box-icon-placeholder"},_hoisted_8$1={key:0,class:"box-icon-skeleton"},_hoisted_9$1=["src"],_hoisted_10$1={class:"box-info"},_hoisted_11$1={class:"box-name"},_hoisted_12$1={class:"box-id"},_hoisted_13={class:"section"},_hoisted_14={key:0,class:"section"},_hoisted_15={key:1,class:"panel-section"},_hoisted_16={class:"form-item"},_hoisted_17={class:"form-item"},_hoisted_18={class:"panel-section"},_hoisted_19={class:"dieline-group"},_hoisted_20={class:"section action-section"},_hoisted_21={class:"preview-container"},_hoisted_22={class:"data-panel","aria-label":"尺寸说明",role:"group"},_hoisted_23={class:"size-list"},_hoisted_24={class:"size-row"},_hoisted_25={class:"info-value"},_hoisted_26={class:"size-row"},_hoisted_27={class:"info-value"},_hoisted_28={class:"svg-container"},_hoisted_29={class:"canvas-toolbar"},_hoisted_30={class:"zoom-level"},_sfc_main$2=defineComponent({name:"HomeView",__name:"index",setup(t){const e=inject(TRACKER_KEY),n="production",s=useRoute(),u=ref(""),l=kt=>{u.value=kt;const Ne=o.find(_n=>_n.value===kt);hn.value=!1,oe.value="basic",e.track({appId:"dplate",eventType:"click",eventName:"选择盒型",eventId:"dplate-001",props:{boxType:Ne?.label||kt}})},o=BOX_TYPE_OPTIONS,{boxParams:i,defaultSize:g,defaultInit:d,finishedProductUnfoldedSize:r,materials:f,materialToThickness:L,resetDefault:T,tempParams:x,thicknessInput:c,validateThickness:m}=useBoxParamsState({boxTypeRef:u}),y=COMPONENTS_MAP,O=reactive({cuttingVisiable:!0,bleedingVisiable:!0,foldVisiable:!0,baseVisiable:!1}),{commitSize:b,commitSizeFromBlur:j,commitSizeFromEnter:F}=useCommitSize({boxParams:i,tempParams:x,defaultSize:g,boxTypeValue:u,tracker:e}),{loadPersistedBoxType:k}=useBoxTypePersistence({boxTypeRef:u,isValid:kt=>o.some(Ne=>Ne.value===kt)}),{defaultGroupId:_,isHandbagMode:ue,mainNumberStep:re,shouldHideMaterialSetting:de}=useHandbagMode({routePath:computed(()=>s.path),hasHandbagQuery:computed(()=>s.query.handbag!=null),boxTypeRef:u,visiableStatus:O}),he=computed(()=>ue.value?`${i.boxHeight} × ${i.boxWidth} × ${i.boxLength} mm`:`${i.boxLength} × ${i.boxWidth} × ${i.boxHeight} mm`),{handleDoubleClick:w,handleWheel:le,isDragModeActive:V,onDrag:Ce,onDragEnd:_e,onDragStart:D,resetView:Ie,scale:Lt,strokeWidth:At,svgContainer:ie,svgEl:Ve,toggleDragMode:ze,translateX:z,translateY:Dt,zoomIn:v,zoomOut:S}=useSvgViewport(),Ue=ref();watch(u,kt=>{kt&&(Ue.value=ElLoading.service({text:"Loading",background:"rgba(0, 0, 0, 0.7)"}))}),watch(()=>Ve.value,kt=>{kt&&Ue.value&&Ue.value.close()});const M=()=>{exportFileBus.emit(EXPORT_EVENTS.PDF)},Pt=()=>{exportFileBus.emit(EXPORT_EVENTS.SVG)};onMounted(()=>{const kt=k();kt?(u.value=kt,hn.value=!1):hn.value=!0});const hn=ref(!1);ref(!0);const Oe=ref(["advanced"]),Fe=kt=>flattenTreeData(TREE_DATA).find(Ne=>Ne.value===kt)?.imgSrc||"",Et=computed(()=>Object.keys(x.value.tempAdvancedParams).length>0),oe=ref("basic");return(kt,Ne)=>{const _n=ElButton,wn=ElInputNumber,bn=ElFormItem,xn=ElCol,Bn=ElRow,Sn=ElForm,Tn=ElOption,Pn=ElSelect,Rn=ElCollapseItem,In=ElCollapse,On=ElCheckbox,Xn=ElTooltip,Wn=ElDivider,zn=__unplugin_components_13;return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$2,[createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",_hoisted_3$2,[createBaseVNode("div",_hoisted_4$2,[Ne[41]||(Ne[41]=createBaseVNode("h3",{class:"section-title"},"当前盒型",-1)),createBaseVNode("div",_hoisted_5$1,[createBaseVNode("div",_hoisted_6$1,[createBaseVNode("div",_hoisted_7$1,[unref(u)?(openBlock(),createElementBlock("img",{key:1,src:Fe(unref(u)),style:{width:"100%",height:"100%","object-fit":"contain"}},null,8,_hoisted_9$1)):(openBlock(),createElementBlock("div",_hoisted_8$1))]),createBaseVNode("div",_hoisted_10$1,[createBaseVNode("span",_hoisted_11$1,toDisplayString(unref(BOX_TYPE_OPTIONS).find(Cn=>Cn.value===unref(u))?.label||unref(u)),1),createBaseVNode("span",_hoisted_12$1,"ID: "+toDisplayString(unref(BOX_TYPE_OPTIONS).find(Cn=>Cn.value===unref(u))?.Index||unref(u)),1)])]),createVNode(_n,{type:"primary",color:"#333333",onClick:Ne[0]||(Ne[0]=Cn=>hn.value=!unref(hn)),style:{height:"32px",padding:"6px 12px","font-weight":"500"}},{default:withCtx(()=>[...Ne[40]||(Ne[40]=[createTextVNode(" 切换盒型 ",-1)])]),_:1})])]),createBaseVNode("div",_hoisted_13,[Ne[42]||(Ne[42]=createBaseVNode("h3",{class:"section-title"},"自定义尺寸 (mm)",-1)),createVNode(Sn,{"label-position":"top",size:"default"},{default:withCtx(()=>[unref(ue)?(openBlock(),createBlock(Bn,{key:0,gutter:12},{default:withCtx(()=>[createVNode(xn,{span:8},{default:withCtx(()=>[createVNode(bn,{label:"高"},{default:withCtx(()=>[createVNode(wn,{modelValue:unref(x).tempHeight,"onUpdate:modelValue":Ne[1]||(Ne[1]=Cn=>unref(x).tempHeight=Cn),modelModifiers:{number:!0},onChange:Ne[2]||(Ne[2]=Cn=>unref(b)("boxHeight",unref(u))),onBlur:Ne[3]||(Ne[3]=Cn=>unref(j)("boxHeight",unref(u))),onKeydown:Ne[4]||(Ne[4]=withKeys(withModifiers(Cn=>unref(F)("boxHeight",unref(u)),["prevent"]),["enter"])),"controls-position":"right",style:{width:"100%"},precision:0,step:unref(re)},null,8,["modelValue","step"])]),_:1})]),_:1}),createVNode(xn,{span:8},{default:withCtx(()=>[createVNode(bn,{label:"宽"},{default:withCtx(()=>[createVNode(wn,{modelValue:unref(x).tempWidth,"onUpdate:modelValue":Ne[5]||(Ne[5]=Cn=>unref(x).tempWidth=Cn),modelModifiers:{number:!0},onChange:Ne[6]||(Ne[6]=Cn=>unref(b)("boxWidth",unref(u))),onBlur:Ne[7]||(Ne[7]=Cn=>unref(j)("boxWidth",unref(u))),onKeydown:Ne[8]||(Ne[8]=withKeys(withModifiers(Cn=>unref(F)("boxWidth",unref(u)),["prevent"]),["enter"])),"controls-position":"right",style:{width:"100%"},precision:0,step:unref(re)},null,8,["modelValue","step"])]),_:1})]),_:1}),createVNode(xn,{span:8},{default:withCtx(()=>[createVNode(bn,{label:"厚"},{default:withCtx(()=>[createVNode(wn,{modelValue:unref(x).tempLength,"onUpdate:modelValue":Ne[9]||(Ne[9]=Cn=>unref(x).tempLength=Cn),modelModifiers:{number:!0},onChange:Ne[10]||(Ne[10]=Cn=>unref(b)("boxLength",unref(u))),onBlur:Ne[11]||(Ne[11]=Cn=>unref(j)("boxLength",unref(u))),onKeydown:Ne[12]||(Ne[12]=withKeys(withModifiers(Cn=>unref(F)("boxLength",unref(u)),["prevent"]),["enter"])),"controls-position":"right",style:{width:"100%"},precision:0,step:unref(re)},null,8,["modelValue","step"])]),_:1})]),_:1})]),_:1})):(openBlock(),createBlock(Bn,{key:1,gutter:12},{default:withCtx(()=>[createVNode(xn,{span:8},{default:withCtx(()=>[createVNode(bn,{label:"长 (L)"},{default:withCtx(()=>[createVNode(wn,{modelValue:unref(x).tempLength,"onUpdate:modelValue":Ne[13]||(Ne[13]=Cn=>unref(x).tempLength=Cn),modelModifiers:{number:!0},onChange:Ne[14]||(Ne[14]=Cn=>unref(b)("boxLength",unref(u))),onBlur:Ne[15]||(Ne[15]=Cn=>unref(j)("boxLength",unref(u))),onKeydown:Ne[16]||(Ne[16]=withKeys(withModifiers(Cn=>unref(F)("boxLength",unref(u)),["prevent"]),["enter"])),"controls-position":"right",style:{width:"100%"},precision:0,step:unref(re)},null,8,["modelValue","step"])]),_:1})]),_:1}),createVNode(xn,{span:8},{default:withCtx(()=>[createVNode(bn,{label:"宽 (W)"},{default:withCtx(()=>[createVNode(wn,{modelValue:unref(x).tempWidth,"onUpdate:modelValue":Ne[17]||(Ne[17]=Cn=>unref(x).tempWidth=Cn),modelModifiers:{number:!0},onChange:Ne[18]||(Ne[18]=Cn=>unref(b)("boxWidth",unref(u))),onBlur:Ne[19]||(Ne[19]=Cn=>unref(j)("boxWidth",unref(u))),onKeydown:Ne[20]||(Ne[20]=withKeys(withModifiers(Cn=>unref(F)("boxWidth",unref(u)),["prevent"]),["enter"])),"controls-position":"right",style:{width:"100%"},precision:0,step:unref(re)},null,8,["modelValue","step"])]),_:1})]),_:1}),createVNode(xn,{span:8},{default:withCtx(()=>[createVNode(bn,{label:"高 (H)"},{default:withCtx(()=>[createVNode(wn,{modelValue:unref(x).tempHeight,"onUpdate:modelValue":Ne[21]||(Ne[21]=Cn=>unref(x).tempHeight=Cn),modelModifiers:{number:!0},onChange:Ne[22]||(Ne[22]=Cn=>unref(b)("boxHeight",unref(u))),onBlur:Ne[23]||(Ne[23]=Cn=>unref(j)("boxHeight",unref(u))),onKeydown:Ne[24]||(Ne[24]=withKeys(withModifiers(Cn=>unref(F)("boxHeight",unref(u)),["prevent"]),["enter"])),"controls-position":"right",style:{width:"100%"},precision:0,step:unref(re)},null,8,["modelValue","step"])]),_:1})]),_:1})]),_:1}))]),_:1})]),unref(Et)?(openBlock(),createElementBlock("div",_hoisted_14,[createVNode(In,{modelValue:unref(Oe),"onUpdate:modelValue":Ne[25]||(Ne[25]=Cn=>isRef(Oe)?Oe.value=Cn:null),class:"custom-collapse",style:{"margin-bottom":"8px"}},{default:withCtx(()=>[createVNode(Rn,{name:"advanced"},{title:withCtx(()=>[...Ne[43]||(Ne[43]=[createBaseVNode("h3",{class:"section-title"},"高级参数",-1)])]),default:withCtx(()=>[createVNode(Sn,{"label-position":"top"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(i).advancedParams,Cn=>(openBlock(),createBlock(bn,{key:Cn.key,label:Cn.label},{default:withCtx(()=>[Cn.displayType==="select"?(openBlock(),createBlock(Pn,{key:0,class:"advanced-select","popper-class":"advanced-select-popper",disabled:Cn.disabled,modelValue:unref(x).tempAdvancedParams[Cn.key].value,"onUpdate:modelValue":Dn=>unref(x).tempAdvancedParams[Cn.key].value=Dn,onChange:Dn=>unref(b)(Cn.key,unref(u)),style:{width:"100%"}},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Cn.options||[],Dn=>(openBlock(),createBlock(Tn,{key:`${Cn.key}-${Dn.value}`,label:Dn.label,value:Dn.value},null,8,["label","value"]))),128))]),_:2},1032,["disabled","modelValue","onUpdate:modelValue","onChange"])):(openBlock(),createBlock(wn,{key:1,disabled:Cn.disabled,modelValue:unref(x).tempAdvancedParams[Cn.key].value,"onUpdate:modelValue":Dn=>unref(x).tempAdvancedParams[Cn.key].value=Dn,modelModifiers:{number:!0},onChange:Dn=>unref(b)(Cn.key,unref(u)),onBlur:Dn=>unref(j)(Cn.key,unref(u)),onKeydown:withKeys(withModifiers(Dn=>unref(F)(Cn.key,unref(u)),["prevent"]),["enter"]),min:1,step:1,"controls-position":"right",style:{width:"100%"}},null,8,["disabled","modelValue","onUpdate:modelValue","onChange","onBlur","onKeydown"]))]),_:2},1032,["label"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"])])):createCommentVNode("",!0),unref(de)?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_15,[Ne[46]||(Ne[46]=createBaseVNode("div",{class:"section-title"},"材质设置",-1)),createBaseVNode("div",_hoisted_16,[Ne[44]||(Ne[44]=createBaseVNode("div",{class:"label"},"材质选择",-1)),createVNode(Pn,{modelValue:unref(i).material,"onUpdate:modelValue":Ne[26]||(Ne[26]=Cn=>unref(i).material=Cn),onChange:Ne[27]||(Ne[27]=Cn=>unref(L)(unref(i).material))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(f),Cn=>(openBlock(),createBlock(Tn,{key:Cn,label:Cn,value:Cn},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),createBaseVNode("div",_hoisted_17,[Ne[45]||(Ne[45]=createBaseVNode("div",{class:"label"},"纸张厚度 (mm)",-1)),createVNode(wn,{modelValue:unref(i).thickness,"onUpdate:modelValue":Ne[28]||(Ne[28]=Cn=>unref(i).thickness=Cn),modelModifiers:{number:!0},min:.1,step:.1,"controls-position":"right",style:{width:"100%"},onChange:unref(m),ref_key:"thicknessInput",ref:c,disabled:unref(n)!="development"},null,8,["modelValue","onChange","disabled"])])])),createBaseVNode("div",_hoisted_18,[Ne[51]||(Ne[51]=createBaseVNode("div",{class:"section-title"},"刀线显示",-1)),createBaseVNode("div",_hoisted_19,[unref(ue)?createCommentVNode("",!0):(openBlock(),createBlock(On,{key:0,label:"bleed",modelValue:unref(O).bleedingVisiable,"onUpdate:modelValue":Ne[29]||(Ne[29]=Cn=>unref(O).bleedingVisiable=Cn)},{default:withCtx(()=>[...Ne[47]||(Ne[47]=[createTextVNode("出血线",-1)])]),_:1},8,["modelValue"])),createVNode(On,{label:"cut",modelValue:unref(O).cuttingVisiable,"onUpdate:modelValue":Ne[30]||(Ne[30]=Cn=>unref(O).cuttingVisiable=Cn)},{default:withCtx(()=>[...Ne[48]||(Ne[48]=[createTextVNode("割线",-1)])]),_:1},8,["modelValue"]),createVNode(On,{label:"fold",modelValue:unref(O).foldVisiable,"onUpdate:modelValue":Ne[31]||(Ne[31]=Cn=>unref(O).foldVisiable=Cn)},{default:withCtx(()=>[...Ne[49]||(Ne[49]=[createTextVNode("折线",-1)])]),_:1},8,["modelValue"]),unref(ue)?createCommentVNode("",!0):(openBlock(),createBlock(On,{key:1,label:"bottom",modelValue:unref(O).baseVisiable,"onUpdate:modelValue":Ne[32]||(Ne[32]=Cn=>unref(O).baseVisiable=Cn)},{default:withCtx(()=>[...Ne[50]||(Ne[50]=[createTextVNode("底面",-1)])]),_:1},8,["modelValue"]))])]),createBaseVNode("div",_hoisted_20,[createVNode(_n,{type:"primary",color:"#DDDDDD",style:{width:"100%","font-weight":"bold"},onClick:unref(T)},{default:withCtx(()=>[...Ne[52]||(Ne[52]=[createTextVNode("重置",-1)])]),_:1},8,["onClick"])])])]),createBaseVNode("div",_hoisted_21,[createBaseVNode("div",{class:normalizeClass(["box-preview",{"drag-mode":unref(V)}]),ref_key:"svgContainer",ref:ie,onWheel:Ne[33]||(Ne[33]=(...Cn)=>unref(le)&&unref(le)(...Cn)),onDblclick:Ne[34]||(Ne[34]=(...Cn)=>unref(w)&&unref(w)(...Cn)),onMousedown:Ne[35]||(Ne[35]=(...Cn)=>unref(D)&&unref(D)(...Cn)),onMousemove:Ne[36]||(Ne[36]=(...Cn)=>unref(Ce)&&unref(Ce)(...Cn)),onMouseup:Ne[37]||(Ne[37]=(...Cn)=>unref(_e)&&unref(_e)(...Cn)),onMouseleave:Ne[38]||(Ne[38]=(...Cn)=>unref(_e)&&unref(_e)(...Cn))},[createBaseVNode("div",_hoisted_22,[Ne[55]||(Ne[55]=createStaticVNode('<div class="legend" data-v-c5320759><span class="legend-item" data-v-c5320759><i class="legend-line bleed" data-v-c5320759></i>出血线</span><span class="legend-item" data-v-c5320759><i class="legend-line cut" data-v-c5320759></i>割线</span><span class="legend-item" data-v-c5320759><i class="legend-line fold" data-v-c5320759></i>折线</span></div>',1)),createBaseVNode("div",_hoisted_23,[createBaseVNode("div",_hoisted_24,[Ne[53]||(Ne[53]=createBaseVNode("span",null,"制造尺寸",-1)),createBaseVNode("span",_hoisted_25,toDisplayString(unref(he)),1)]),createBaseVNode("div",_hoisted_26,[Ne[54]||(Ne[54]=createBaseVNode("span",null,"成品展开尺寸",-1)),createBaseVNode("span",_hoisted_27,toDisplayString(unref(r)),1)])])]),createBaseVNode("div",_hoisted_28,[(openBlock(),createBlock(resolveDynamicComponent(unref(y)[unref(u)]),{ref_key:"svgEl",ref:Ve,style:normalizeStyle({transform:`translate(${unref(z)}px, ${unref(Dt)}px) scale(${unref(Lt)})`}),boxParams:unref(i),visiableStatus:unref(O),strokeWidth:unref(At),onEmitDefault:unref(d)},null,40,["style","boxParams","visiableStatus","strokeWidth","onEmitDefault"]))]),createBaseVNode("div",_hoisted_29,[createVNode(Xn,{content:"抓手(空格)",placement:"top"},{default:withCtx(()=>[createVNode(_n,{circle:"",icon:unref(rank_default),class:normalizeClass({active:unref(V)}),onClick:unref(ze)},null,8,["icon","class","onClick"])]),_:1}),createVNode(Wn,{direction:"vertical"}),createVNode(Xn,{content:"缩小(-)",placement:"top"},{default:withCtx(()=>[createVNode(_n,{circle:"",icon:unref(zoom_out_default),onClick:unref(S)},null,8,["icon","onClick"])]),_:1}),createBaseVNode("span",_hoisted_30,toDisplayString(Math.round(unref(Lt)*100))+"%",1),createVNode(Xn,{content:"放大(+)",placement:"top"},{default:withCtx(()=>[createVNode(_n,{circle:"",icon:unref(zoom_in_default),onClick:unref(v)},null,8,["icon","onClick"])]),_:1}),createVNode(Xn,{content:"重置缩放(50%)",placement:"top"},{default:withCtx(()=>[createVNode(_n,{circle:"",icon:unref(refresh_default),onClick:unref(Ie)},null,8,["icon","onClick"])]),_:1}),Ne[56]||(Ne[56]=createBaseVNode("div",{class:"divider"},null,-1)),createVNode(Xn,{content:"导出刀版图",placement:"top"},{default:withCtx(()=>[createVNode(_n,{type:"primary",circle:"",color:"#333333",icon:unref(download_default),style:{"font-weight":"bold",border:"1px solid #ccc"},onClick:M},null,8,["icon"]),createVNode(_n,{type:"primary",circle:"",icon:unref(download_default),onClick:M},null,8,["icon"])]),_:1}),unref(n)=="development"?(openBlock(),createBlock(Xn,{key:0,content:"导出SVG",placement:"top"},{default:withCtx(()=>[createVNode(_n,{type:"primary",circle:"",icon:unref(download_default),color:"#FFEC5A",onClick:Pt},null,8,["icon"])]),_:1})):createCommentVNode("",!0)])],34)])]),createVNode(Transition,{name:"fade"},{default:withCtx(()=>[unref(hn)?(openBlock(),createBlock(zn,{key:0,visible:unref(hn),currentBoxType:unref(u),defaultGroupId:unref(_),onClose:Ne[39]||(Ne[39]=Cn=>hn.value=!1),onSelect:l},null,8,["visible","currentBoxType","defaultGroupId"])):createCommentVNode("",!0)]),_:1})],64)}}}),Dplate=_export_sfc$1(_sfc_main$2,[["__scopeId","data-v-c5320759"]]),_hoisted_1$1={class:"test"},_hoisted_2$1={class:"svg-box"},_hoisted_3$1={viewBox:"0 0 1200 1200"},_hoisted_4$1=["d"],_hoisted_5=["d"],_hoisted_6=["d"],_hoisted_7=["d"],_hoisted_8=["d"],_hoisted_9=["d"],_hoisted_10=["d"],_hoisted_11=["d"],_hoisted_12=["d"],_sfc_main$1=defineComponent({__name:"index",setup(t){function e(r){const L=r/196.5,T=408,x=199,m=[[408,199],[321,199],[291,169],[408,2.5],[408,199]].map(([k,_])=>[T+(k-T)*L,x+(_-x)*L]),[y,O,b,j,F]=m;return[`M${y[0].toFixed(3)},${y[1].toFixed(3)}`,`L${O[0].toFixed(3)},${O[1].toFixed(3)}`,`A${(30*L).toFixed(3)},${(30*L).toFixed(3)} 0 0,1 ${b[0].toFixed(3)},${b[1].toFixed(3)}`,`A${(117*L).toFixed(3)},${(166.5*L).toFixed(3)} 0 0,1 ${j[0].toFixed(3)},${j[1].toFixed(3)}`,`L${F[0].toFixed(3)},${F[1].toFixed(3)}`,"Z"].join(" ")}function n(r,f){const x=r/312,c=f/197.5,m=408,y=2.5,O=[[408,2.5],[410.5,0],[717.5,0],[720,2.5],[720,199],[717.5,199],[716.5,200],[411.5,200],[410.5,199],[408,199]].map(([D,Ie])=>[m+(D-m)*x,y+(Ie-y)*c]),b=1*x,j=1*c,F=1*x,k=1*c,[_,ue,re,de,he,w,le,V,Ce,_e]=O.map(D=>`${D[0].toFixed(3)},${D[1].toFixed(3)}`);return[`M${_}`,`L${ue}`,`L${re}`,`L${de}`,`L${he}`,`L${w}`,`A${b},${j} 0 0 0 ${le}`,`L${V}`,`A${F},${k} 0 0 0 ${Ce}`,`L${_e}`,"Z"].join(" ")}function s(r){const L=r/196.5,x=[[720,199],[720,2.5],[837,169],[807,199]].map(([k,_])=>[720+(k-720)*L,_]),c=117*L,m=166.5,y=30*L,[O,b,j,F]=x.map(k=>`${k[0].toFixed(3)},${k[1].toFixed(3)}`);return`M${O} L${b} A${c.toFixed(3)},${m.toFixed(3)} 0 0,1 ${j} A${y.toFixed(3)},30 0 0,1 ${F} L${O} Z`}function u(r){const L=r/204,T=411.5,x=[[411.5,403.5],[410.4883522316857,402.081722136601],[320.61647768314265,371.13635407143295],[310.5,356.9535754374432],[310.5,248.31441804134664],[320.36969785011496,234.219028729558],[410.5130302149885,201.40953893117884],[411.5,199.99999999999997]].map(([re,de])=>[T+(re-T)*L,de]),c=1.5*L,m=15*L,[y,O,b,j,F,k,_,ue]=x.map(re=>`${re[0].toFixed(3)},${re[1].toFixed(3)}`);return`M${y} A${c.toFixed(3)},1.5 0 0,0 ${O} L${b} A${m.toFixed(3)},15 0 0,1 ${j} L${F} A${m.toFixed(3)},15 0 0,1 ${k} L${_} A${c.toFixed(3)},1.5 0 0,0 ${ue} L${y} Z`}function l(r,f){const x=r/305,c=f/203.5,m=411.5,y=200,O=[[m,y],[m+305*x,y],[m+305*x,y+203.5*c],[m,y+203.5*c]].map(b=>`${b[0].toFixed(3)},${b[1].toFixed(3)}`);return`M${O[0]} L${O[1]} L${O[2]} L${O[3]} L${O[0]} Z`}function o(r){const L=r/204,T=716.5,x=[[716.5,403.5],[716.5,199.99999999999997],[717.4869697850115,201.40953893117884],[807.630302149885,234.219028729558],[817.5,248.31441804134664],[817.5,356.9535754374432],[807.3835223168574,371.13635407143295],[717.5116477683143,402.081722136601]].map(([re,de])=>[T+(re-T)*L,de]),c=1.5*L,m=15*L,[y,O,b,j,F,k,_,ue]=x.map(re=>`${re[0].toFixed(3)},${re[1].toFixed(3)}`);return`M${y} L${O} A${c.toFixed(3)},1.5 0 0,0 ${b} L${j} A${m.toFixed(3)},15 0 0,1 ${F} L${k} A${m.toFixed(3)},15 0 0,1 ${_} L${ue} A${c.toFixed(3)},1.5 0 0,0 ${ue} Z`}function i(r,f){const x=Math.min(r/81),c=Math.min(f/197.5),m=327,y=404.5,O=[[408,602],[406.5,600.5],[405,600.5],[327,600.5],[327,404.5],[408,404.5]].map(([de,he])=>[m+(de-m)*x,y+(he-y)*c]),[b,j,F,k,_,ue]=O.map(de=>`${de[0].toFixed(3)},${de[1].toFixed(3)}`),re=(1.5*c).toFixed(3);return`M${b} A${re},${re} 0 0,0 ${j} L${F} L${k} L${_} L${ue} L${b} Z`}function g(r,f){const x=Math.min(r/315),c=Math.min(f/200),m=406.5,y=403.5,O=[[406.5,603.5],[408,602],[408,404.5],[410.5,404.5],[411.5,403.5],[716.5,403.5],[717.5,404.5],[720,404.5],[720,602],[721.5,603.5]].map(([Ce,_e])=>[m+(Ce-m)*x,y+(_e-y)*c]),[b,j,F,k,_,ue,re,de,he,w]=O.map(Ce=>`${Ce[0].toFixed(3)},${Ce[1].toFixed(3)}`),le=1.5,V=1;return`M${b} A${le},${le} 0 0,0 ${j} L${F} L${k} A${V},${V} 0 0,0 ${_} L${ue} A${V},${V} 0 0,0 ${re} L${de} L${he} A${le},${le} 0 0,0 ${w} Z`}function d(r,f){const x=Math.min(r/81,f/197.5),c=720,m=404.5,y=[[720,602],[720,404.5],[801,404.5],[801,600.5],[723,600.5],[721.5,600.5]].map(([re,de])=>[c+(re-c)*x,m+(de-m)*x]),[O,b,j,F,k,_]=y.map(re=>`${re[0].toFixed(3)},${re[1].toFixed(3)}`),ue=(1.5*x).toFixed(3);return`M${O} L${b} L${j} L${F} L${k} L${_} A${ue},${ue} 0 0,0 ${O} Z`}return(r,f)=>(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[(openBlock(),createElementBlock("svg",_hoisted_3$1,[createBaseVNode("path",{id:"knifeFace_FTL","stroke-width":"1.5",fill:"#ffffff",d:e(196)},null,8,_hoisted_4$1),createBaseVNode("path",{id:"knifeFace_FT","stroke-width":"1.5",fill:"#ffffff",d:n(312,196.5)},null,8,_hoisted_5),createBaseVNode("path",{id:"knifeFace_FTR","stroke-width":"1.5",fill:"#ffffff",d:s(196)},null,8,_hoisted_6),createBaseVNode("path",{id:"knifeFace_FL","stroke-width":"1.5",fill:"#ffffff",d:u(204)},null,8,_hoisted_7),createBaseVNode("path",{id:"knifeFace_F","stroke-width":"1.5",fill:"#ffffff",d:l(305,203.5)},null,8,_hoisted_8),createBaseVNode("path",{id:"knifeFace_FR","stroke-width":"1.5",fill:"#ffffff",d:o(204)},null,8,_hoisted_9),createBaseVNode("path",{id:"knifeFace_FBL","stroke-width":"1.5",fill:"#ffffff",d:i(81,197.5)},null,8,_hoisted_10),createBaseVNode("path",{id:"knifeFace_FB","stroke-width":"1.5",fill:"#ffffff",d:g(315,200)},null,8,_hoisted_11),createBaseVNode("path",{id:"knifeFace_FBR","stroke-width":"1.5",fill:"#ffffff",d:d(81,197.5)},null,8,_hoisted_12)]))])]))}}),Test=_export_sfc$1(_sfc_main$1,[["__scopeId","data-v-84e4d2f9"]]),_imports_0="/assets/logo-DEYNtxj7.svg";function bind(t,e){return function(){return t.apply(e,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,{iterator,toStringTag}=Symbol,hasOwnProperty=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),hasOwnInPrototypeChain=(t,e)=>{let n=t;const s=[];for(;n!=null&&n!==Object.prototype;){if(s.indexOf(n)!==-1)return!1;if(s.push(n),hasOwnProperty(n,e))return!0;n=getPrototypeOf(n)}return!1},getSafeProp=(t,e)=>t!=null&&hasOwnInPrototypeChain(t,e)?t[e]:void 0,kindOf=(t=>e=>{const n=toString.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=t=>(t=t.toLowerCase(),e=>kindOf(e)===t),typeOfTest=t=>e=>typeof e===t,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&isFunction$1(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&isArrayBuffer(t.buffer),e}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=t=>t!==null&&typeof t=="object",isBoolean=t=>t===!0||t===!1,isPlainObject=t=>{if(!isObject(t))return!1;const e=getPrototypeOf(t);return(e===null||e===Object.prototype||getPrototypeOf(e)===null)&&!hasOwnInPrototypeChain(t,toStringTag)&&!hasOwnInPrototypeChain(t,iterator)},isEmptyObject=t=>{if(!isObject(t)||isBuffer(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isReactNativeBlob=t=>!!(t&&typeof t.uri<"u"),isReactNative=t=>t&&typeof t.getParts<"u",isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=t=>isObject(t)&&isFunction$1(t.pipe);function getGlobal(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const G=getGlobal(),FormDataCtor=typeof G.FormData<"u"?G.FormData:void 0,isFormData=t=>{if(!t)return!1;if(FormDataCtor&&t instanceof FormDataCtor)return!0;const e=getPrototypeOf(t);if(!e||e===Object.prototype||!isFunction$1(t.append))return!1;const n=kindOf(t);return n==="formdata"||n==="object"&&isFunction$1(t.toString)&&t.toString()==="[object FormData]"},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,u;if(typeof t!="object"&&(t=[t]),isArray(t))for(s=0,u=t.length;s<u;s++)e.call(null,t[s],s,t);else{if(isBuffer(t))return;const l=n?Object.getOwnPropertyNames(t):Object.keys(t),o=l.length;let i;for(s=0;s<o;s++)i=l[s],e.call(null,t[i],i,t)}}function findKey(t,e){if(isBuffer(t))return null;e=e.toLowerCase();const n=Object.keys(t);let s=n.length,u;for(;s-- >0;)if(u=n[s],e===u.toLowerCase())return u;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=t=>!isUndefined(t)&&t!==_global;function merge(...t){const{caseless:e,skipUndefined:n}=isContextDefined(this)&&this||{},s={},u=(l,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const i=e&&typeof o=="string"&&findKey(s,o)||o,g=hasOwnProperty(s,i)?s[i]:void 0;isPlainObject(g)&&isPlainObject(l)?s[i]=merge(g,l):isPlainObject(l)?s[i]=merge({},l):isArray(l)?s[i]=l.slice():(!n||!isUndefined(l))&&(s[i]=l)};for(let l=0,o=t.length;l<o;l++){const i=t[l];if(!i||isBuffer(i)||(forEach(i,u),typeof i!="object"||isArray(i)))continue;const g=Object.getOwnPropertySymbols(i);for(let d=0;d<g.length;d++){const r=g[d];propertyIsEnumerable.call(i,r)&&u(i[r],r)}}return s}const extend=(t,e,n,{allOwnKeys:s}={})=>(forEach(e,(u,l)=>{n&&isFunction$1(u)?Object.defineProperty(t,l,{__proto__:null,value:bind(u,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,l,{__proto__:null,value:u,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),t),stripBOM=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),inherits=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject=(t,e,n,s)=>{let u,l,o;const i={};if(e=e||{},t==null)return e;do{for(u=Object.getOwnPropertyNames(t),l=u.length;l-- >0;)o=u[l],(!s||s(o,t,e))&&!i[o]&&(e[o]=t[o],i[o]=!0);t=n!==!1&&getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},endsWith=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},toArray=t=>{if(!t)return null;if(isArray(t))return t;let e=t.length;if(!isNumber(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},isTypedArray=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(t,e)=>{const s=(t&&t[iterator]).call(t);let u;for(;(u=s.next())&&!u.done;){const l=u.value;e.call(t,l[0],l[1])}},matchAll=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,u){return s.toUpperCase()+u}),{propertyIsEnumerable}=Object.prototype,isRegExp=kindOfTest("RegExp"),reduceDescriptors=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};forEach(n,(u,l)=>{let o;(o=e(u,l,t))!==!1&&(s[l]=o||u)}),Object.defineProperties(t,s)},freezeMethods=t=>{reduceDescriptors(t,(e,n)=>{if(isFunction$1(t)&&["arguments","caller","callee"].includes(n))return!1;const s=t[n];if(isFunction$1(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet=(t,e)=>{const n={},s=u=>{u.forEach(l=>{n[l]=!0})};return isArray(t)?s(t):s(String(t).split(e)),n},noop=()=>{},toFiniteNumber=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function isSpecCompliantForm(t){return!!(t&&isFunction$1(t.append)&&t[toStringTag]==="FormData"&&t[iterator])}const toJSONObject=t=>{const e=new WeakSet,n=s=>{if(isObject(s)){if(e.has(s))return;if(isBuffer(s))return s;if(!("toJSON"in s)){e.add(s);const u=isArray(s)?[]:{};return forEach(s,(l,o)=>{const i=n(l);!isUndefined(i)&&(u[o]=i)}),e.delete(s),u}}return s};return n(t)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=t=>t&&(isObject(t)||isFunction$1(t))&&isFunction$1(t.then)&&isFunction$1(t.catch),_setImmediate=((t,e)=>t?setImmediate:e?((n,s)=>(_global.addEventListener("message",({source:u,data:l})=>{u===_global&&l===n&&s.length&&s.shift()()},!1),u=>{s.push(u),_global.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable=t=>t!=null&&isFunction$1(t[iterator]),isSafeIterable=t=>t!=null&&hasOwnInPrototypeChain(t,iterator)&&isIterable(t),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isReactNativeBlob,isReactNative,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,hasOwnInPrototypeChain,getSafeProp,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable,isSafeIterable},ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=t=>{const e={};let n,s,u;return t&&t.split(`
`).forEach(function(o){u=o.indexOf(":"),n=o.substring(0,u).trim().toLowerCase(),s=o.substring(u+1).trim(),!(!n||e[n]&&ignoreDuplicateOf[n])&&(n==="set-cookie"?e[n]?e[n].push(s):e[n]=[s]:e[n]=e[n]?e[n]+", "+s:s)}),e};function trimSPorHTAB(t){let e=0,n=t.length;for(;e<n;){const s=t.charCodeAt(e);if(s!==9&&s!==32)break;e+=1}for(;n>e;){const s=t.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const INVALID_UNICODE_HEADER_VALUE_CHARS=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),INVALID_BYTE_STRING_HEADER_VALUE_CHARS=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function sanitizeValue(t,e){return utils$1.isArray(t)?t.map(n=>sanitizeValue(n,e)):trimSPorHTAB(String(t).replace(e,""))}const sanitizeHeaderValue=t=>sanitizeValue(t,INVALID_UNICODE_HEADER_VALUE_CHARS),sanitizeByteStringHeaderValue=t=>sanitizeValue(t,INVALID_BYTE_STRING_HEADER_VALUE_CHARS);function toByteStringHeaderObject(t){const e=Object.create(null);return utils$1.forEach(t.toJSON(),(n,s)=>{e[s]=sanitizeByteStringHeaderValue(n)}),e}const $internals=Symbol("internals");function normalizeHeader(t){return t&&String(t).trim().toLowerCase()}function normalizeValue(t){return t===!1||t==null?t:utils$1.isArray(t)?t.map(normalizeValue):sanitizeHeaderValue(String(t))}function parseTokens(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(t);)e[s[1]]=s[2];return e}const isValidHeaderName=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function matchHeaderValue(t,e,n,s,u){if(utils$1.isFunction(s))return s.call(this,e,n);if(u&&(e=n),!!utils$1.isString(e)){if(utils$1.isString(s))return e.indexOf(s)!==-1;if(utils$1.isRegExp(s))return s.test(e)}}function formatHeader(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,s)=>n.toUpperCase()+s)}function buildAccessors(t,e){const n=utils$1.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+n,{__proto__:null,value:function(u,l,o){return this[s].call(this,e,u,l,o)},configurable:!0})})}let AxiosHeaders$1=class{constructor(e){e&&this.set(e)}set(e,n,s){const u=this;function l(i,g,d){const r=normalizeHeader(g);if(!r)return;const f=utils$1.findKey(u,r);(!f||u[f]===void 0||d===!0||d===void 0&&u[f]!==!1)&&(u[f||g]=normalizeValue(i))}const o=(i,g)=>utils$1.forEach(i,(d,r)=>l(d,r,g));if(utils$1.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(utils$1.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))o(parseHeaders(e),n);else if(utils$1.isObject(e)&&utils$1.isSafeIterable(e)){let i=Object.create(null),g,d;for(const r of e){if(!utils$1.isArray(r))throw new TypeError("Object iterator must return a key-value pair");d=r[0],utils$1.hasOwnProp(i,d)?(g=i[d],i[d]=utils$1.isArray(g)?[...g,r[1]]:[g,r[1]]):i[d]=r[1]}o(i,n)}else e!=null&&l(n,e,s);return this}get(e,n){if(e=normalizeHeader(e),e){const s=utils$1.findKey(this,e);if(s){const u=this[s];if(!n)return u;if(n===!0)return parseTokens(u);if(utils$1.isFunction(n))return n.call(this,u,s);if(utils$1.isRegExp(n))return n.exec(u);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=normalizeHeader(e),e){const s=utils$1.findKey(this,e);return!!(s&&this[s]!==void 0&&(!n||matchHeaderValue(this,this[s],s,n)))}return!1}delete(e,n){const s=this;let u=!1;function l(o){if(o=normalizeHeader(o),o){const i=utils$1.findKey(s,o);i&&(!n||matchHeaderValue(s,s[i],i,n))&&(delete s[i],u=!0)}}return utils$1.isArray(e)?e.forEach(l):l(e),u}clear(e){const n=Object.keys(this);let s=n.length,u=!1;for(;s--;){const l=n[s];(!e||matchHeaderValue(this,this[l],l,e,!0))&&(delete this[l],u=!0)}return u}normalize(e){const n=this,s={};return utils$1.forEach(this,(u,l)=>{const o=utils$1.findKey(s,l);if(o){n[o]=normalizeValue(u),delete n[l];return}const i=e?formatHeader(l):String(l).trim();i!==l&&delete n[l],n[i]=normalizeValue(u),s[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return utils$1.forEach(this,(s,u)=>{s!=null&&s!==!1&&(n[u]=e&&utils$1.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const s=new this(e);return n.forEach(u=>s.set(u)),s}static accessor(e){const s=(this[$internals]=this[$internals]={accessors:{}}).accessors,u=this.prototype;function l(o){const i=normalizeHeader(o);s[i]||(buildAccessors(u,o),s[i]=!0)}return utils$1.isArray(e)?e.forEach(l):l(e),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders$1.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(s){this[n]=s}}});utils$1.freezeMethods(AxiosHeaders$1);const REDACTED="[REDACTED ****]";function hasOwnOrPrototypeToJSON(t){if(utils$1.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(utils$1.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function redactConfig(t,e){const n=new Set(e.map(l=>String(l).toLowerCase())),s=[],u=l=>{if(l===null||typeof l!="object"||utils$1.isBuffer(l))return l;if(s.indexOf(l)!==-1)return;l instanceof AxiosHeaders$1&&(l=l.toJSON()),s.push(l);let o;if(utils$1.isArray(l))o=[],l.forEach((i,g)=>{const d=u(i);utils$1.isUndefined(d)||(o[g]=d)});else{if(!utils$1.isPlainObject(l)&&hasOwnOrPrototypeToJSON(l))return s.pop(),l;o=Object.create(null);for(const[i,g]of Object.entries(l)){const d=n.has(i.toLowerCase())?REDACTED:u(g);utils$1.isUndefined(d)||(o[i]=d)}}return s.pop(),o};return u(t)}let AxiosError$1=class Il extends Error{static from(e,n,s,u,l,o){const i=new Il(e.message,n||e.code,s,u,l);return Object.defineProperty(i,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),i.name=e.name,e.status!=null&&i.status==null&&(i.status=e.status),o&&Object.assign(i,o),i}constructor(e,n,s,u,l){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),u&&(this.request=u),l&&(this.response=l,this.status=l.status)}toJSON(){const e=this.config,n=e&&utils$1.hasOwnProp(e,"redact")?e.redact:void 0,s=utils$1.isArray(n)&&n.length>0?redactConfig(e,n):utils$1.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};AxiosError$1.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";AxiosError$1.ERR_BAD_OPTION="ERR_BAD_OPTION";AxiosError$1.ECONNABORTED="ECONNABORTED";AxiosError$1.ETIMEDOUT="ETIMEDOUT";AxiosError$1.ECONNREFUSED="ECONNREFUSED";AxiosError$1.ERR_NETWORK="ERR_NETWORK";AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";AxiosError$1.ERR_DEPRECATED="ERR_DEPRECATED";AxiosError$1.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";AxiosError$1.ERR_BAD_REQUEST="ERR_BAD_REQUEST";AxiosError$1.ERR_CANCELED="ERR_CANCELED";AxiosError$1.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";AxiosError$1.ERR_INVALID_URL="ERR_INVALID_URL";AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const httpAdapter=null,DEFAULT_FORM_DATA_MAX_DEPTH=100;function isVisitable(t){return utils$1.isPlainObject(t)||utils$1.isArray(t)}function removeBrackets(t){return utils$1.endsWith(t,"[]")?t.slice(0,-2):t}function renderKey(t,e,n){return t?t.concat(e).map(function(u,l){return u=removeBrackets(u),!n&&l?"["+u+"]":u}).join(n?".":""):e}function isFlatArray(t){return utils$1.isArray(t)&&!t.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function t(e){return/^is[A-Z]/.test(e)});function toFormData$1(t,e,n){if(!utils$1.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=utils$1.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(O,b){return!utils$1.isUndefined(b[O])});const s=n.metaTokens,u=n.visitor||x,l=n.dots,o=n.indexes,i=n.Blob||typeof Blob<"u"&&Blob,g=n.maxDepth===void 0?DEFAULT_FORM_DATA_MAX_DEPTH:n.maxDepth,d=i&&utils$1.isSpecCompliantForm(e),r=[];if(!utils$1.isFunction(u))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(utils$1.isDate(y))return y.toISOString();if(utils$1.isBoolean(y))return y.toString();if(!d&&utils$1.isBlob(y))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");if(utils$1.isArrayBuffer(y)||utils$1.isTypedArray(y)){if(d&&typeof i=="function")return new i([y]);if(typeof Buffer<"u")return Buffer.from(y);throw new AxiosError$1("Blob is not supported. Use a Buffer instead.",AxiosError$1.ERR_NOT_SUPPORT)}return y}function L(y){if(y>g)throw new AxiosError$1("Object is too deeply nested ("+y+" levels). Max depth: "+g,AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED)}function T(y,O){if(g===1/0)return JSON.stringify(y);const b=[];return JSON.stringify(y,function(F,k){if(!utils$1.isObject(k))return k;for(;b.length&&b[b.length-1]!==this;)b.pop();return b.push(k),L(O+b.length-1),k})}function x(y,O,b){let j=y;if(utils$1.isReactNative(e)&&utils$1.isReactNativeBlob(y))return e.append(renderKey(b,O,l),f(y)),!1;if(y&&!b&&typeof y=="object"){if(utils$1.endsWith(O,"{}"))O=s?O:O.slice(0,-2),y=T(y,1);else if(utils$1.isArray(y)&&isFlatArray(y)||(utils$1.isFileList(y)||utils$1.endsWith(O,"[]"))&&(j=utils$1.toArray(y)))return O=removeBrackets(O),j.forEach(function(k,_){!(utils$1.isUndefined(k)||k===null)&&e.append(o===!0?renderKey([O],_,l):o===null?O:O+"[]",f(k))}),!1}return isVisitable(y)?!0:(e.append(renderKey(b,O,l),f(y)),!1)}const c=Object.assign(predicates,{defaultVisitor:x,convertValue:f,isVisitable});function m(y,O,b=0){if(!utils$1.isUndefined(y)){if(L(b),r.indexOf(y)!==-1)throw new Error("Circular reference detected in "+O.join("."));r.push(y),utils$1.forEach(y,function(F,k){(!(utils$1.isUndefined(F)||F===null)&&u.call(e,F,utils$1.isString(k)?k.trim():k,O,c))===!0&&m(F,O?O.concat(k):[k],b+1)}),r.pop()}}if(!utils$1.isObject(t))throw new TypeError("data must be an object");return m(t),e}function encode$1(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(s){return e[s]})}function AxiosURLSearchParams(t,e){this._pairs=[],t&&toFormData$1(t,this,e)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function t(e,n){this._pairs.push([e,n])};prototype.toString=function t(e){const n=e?s=>e.call(this,s,encode$1):encode$1;return this._pairs.map(function(u){return n(u[0])+"="+n(u[1])},"").join("&")};function encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(t,e,n){if(!e)return t;t=t||"";const s=utils$1.isFunction(n)?{serialize:n}:n,u=utils$1.getSafeProp(s,"encode")||encode,l=utils$1.getSafeProp(s,"serialize");let o;if(l?o=l(e,s):o=utils$1.isURLSearchParams(e)?e.toString():new AxiosURLSearchParams(e,s).toString(u),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class InterceptorManager{constructor(){this.handlers=[]}use(e,n,s){return this.handlers.push({fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1.forEach(this.handlers,function(s){s!==null&&e(s)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(t,e){return toFormData$1(t,new platform.classes.URLSearchParams,{visitor:function(n,s,u,l){return platform.isNode&&utils$1.isBuffer(n)?(this.append(s,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...e})}const MAX_DEPTH=DEFAULT_FORM_DATA_MAX_DEPTH;function throwIfDepthExceeded(t){if(t>MAX_DEPTH)throw new AxiosError$1("FormData field is too deeply nested ("+t+" levels). Max depth: "+MAX_DEPTH,AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED)}function parsePropPath(t){const e=[],n=/\w+|\[(\w*)]/g;let s;for(;(s=n.exec(t))!==null;)throwIfDepthExceeded(e.length),e.push(s[0]==="[]"?"":s[1]||s[0]);return e}function arrayToObject(t){const e={},n=Object.keys(t);let s;const u=n.length;let l;for(s=0;s<u;s++)l=n[s],e[l]=t[l];return e}function formDataToJSON(t){function e(n,s,u,l){throwIfDepthExceeded(l);let o=n[l++];if(o==="__proto__")return!0;const i=Number.isFinite(+o),g=l>=n.length;return o=!o&&utils$1.isArray(u)?u.length:o,g?(utils$1.hasOwnProp(u,o)?u[o]=utils$1.isArray(u[o])?u[o].concat(s):[u[o],s]:u[o]=s,!i):((!utils$1.hasOwnProp(u,o)||!utils$1.isObject(u[o]))&&(u[o]=[]),e(n,s,u[o],l)&&utils$1.isArray(u[o])&&(u[o]=arrayToObject(u[o])),!i)}if(utils$1.isFormData(t)&&utils$1.isFunction(t.entries)){const n={};return utils$1.forEachEntry(t,(s,u)=>{e(parsePropPath(s),u,n,0)}),n}return null}const own=(t,e)=>t!=null&&utils$1.hasOwnProp(t,e)?t[e]:void 0;function stringifySafely(t,e,n){if(utils$1.isString(t))try{return(e||JSON.parse)(t),utils$1.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function t(e,n){const s=n.getContentType()||"",u=s.indexOf("application/json")>-1,l=utils$1.isObject(e);if(l&&utils$1.isHTMLForm(e)&&(e=new FormData(e)),utils$1.isFormData(e))return u?JSON.stringify(formDataToJSON(e)):e;if(utils$1.isArrayBuffer(e)||utils$1.isBuffer(e)||utils$1.isStream(e)||utils$1.isFile(e)||utils$1.isBlob(e)||utils$1.isReadableStream(e))return e;if(utils$1.isArrayBufferView(e))return e.buffer;if(utils$1.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(l){const g=own(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,g).toString();if((i=utils$1.isFileList(e))||s.indexOf("multipart/form-data")>-1){const d=own(this,"env"),r=d&&d.FormData;return toFormData$1(i?{"files[]":e}:e,r&&new r,g)}}return l||u?(n.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function t(e){const n=own(this,"transitional")||defaults.transitional,s=n&&n.forcedJSONParsing,u=own(this,"responseType"),l=u==="json";if(utils$1.isResponse(e)||utils$1.isReadableStream(e))return e;if(e&&utils$1.isString(e)&&(s&&!u||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(e,own(this,"parseReviver"))}catch(g){if(i)throw g.name==="SyntaxError"?AxiosError$1.from(g,AxiosError$1.ERR_BAD_RESPONSE,this,null,own(this,"response")):g}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function t(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch","query"],t=>{defaults.headers[t]={}});function transformData(t,e){const n=this||defaults,s=e||n,u=AxiosHeaders$1.from(s.headers);let l=s.data;return utils$1.forEach(t,function(i){l=i.call(n,l,u.normalize(),e?e.status:void 0)}),u.normalize(),l}function isCancel$1(t){return!!(t&&t.__CANCEL__)}let CanceledError$1=class extends AxiosError$1{constructor(e,n,s){super(e??"canceled",AxiosError$1.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function settle(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new AxiosError$1("Request failed with status code "+n.status,n.status>=400&&n.status<500?AxiosError$1.ERR_BAD_REQUEST:AxiosError$1.ERR_BAD_RESPONSE,n.config,n.request,n))}function parseProtocol(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function speedometer(t,e){t=t||10;const n=new Array(t),s=new Array(t);let u=0,l=0,o;return e=e!==void 0?e:1e3,function(g){const d=Date.now(),r=s[l];o||(o=d),n[u]=g,s[u]=d;let f=l,L=0;for(;f!==u;)L+=n[f++],f=f%t;if(u=(u+1)%t,u===l&&(l=(l+1)%t),d-o<e)return;const T=r&&d-r;return T?Math.round(L*1e3/T):void 0}}function throttle(t,e){let n=0,s=1e3/e,u,l;const o=(d,r=Date.now())=>{n=r,u=null,l&&(clearTimeout(l),l=null),t(...d)};return[(...d)=>{const r=Date.now(),f=r-n;f>=s?o(d,r):(u=d,l||(l=setTimeout(()=>{l=null,o(u)},s-f)))},()=>u&&o(u)]}const progressEventReducer=(t,e,n=3)=>{let s=0;const u=speedometer(50,250);return throttle(l=>{if(!l||typeof l.loaded!="number")return;const o=l.loaded,i=l.lengthComputable?l.total:void 0,g=i!=null?Math.min(o,i):o,d=Math.max(0,g-s),r=u(d);s=Math.max(s,g);const f={loaded:g,total:i,progress:i?g/i:void 0,bytes:d,rate:r||void 0,estimated:r&&i?(i-g)/r:void 0,event:l,lengthComputable:i!=null,[e?"download":"upload"]:!0};t(f)},n)},progressEventDecorator=(t,e)=>{const n=t!=null;return[s=>e[0]({lengthComputable:n,total:t,loaded:s}),e[1]]},asyncDecorator=t=>(...e)=>utils$1.asap(()=>t(...e)),isURLSameOrigin=platform.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,platform.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(t,e,n,s,u,l,o){if(typeof document>"u")return;const i=[`${t}=${encodeURIComponent(e)}`];utils$1.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),utils$1.isString(s)&&i.push(`path=${s}`),utils$1.isString(u)&&i.push(`domain=${u}`),l===!0&&i.push("secure"),utils$1.isString(o)&&i.push(`SameSite=${o}`),document.cookie=i.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const s=e[n].replace(/^\s+/,""),u=s.indexOf("=");if(u!==-1&&s.slice(0,u)===t)try{return decodeURIComponent(s.slice(u+1))}catch{return s.slice(u+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function combineURLs(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}const malformedHttpProtocol=/^https?:(?!\/\/)/i,httpProtocolControlCharacters=/[\t\n\r]/g;function stripLeadingC0ControlOrSpace(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function normalizeURLForProtocolCheck(t){return stripLeadingC0ControlOrSpace(t).replace(httpProtocolControlCharacters,"")}function assertValidHttpProtocolURL(t,e){if(typeof t=="string"&&malformedHttpProtocol.test(normalizeURLForProtocolCheck(t)))throw new AxiosError$1('Invalid URL: missing "//" after protocol',AxiosError$1.ERR_INVALID_URL,e)}function buildFullPath(t,e,n,s){assertValidHttpProtocolURL(e,s);let u=!isAbsoluteURL(e);return t&&(u||n===!1)?(assertValidHttpProtocolURL(t,s),combineURLs(t,e)):e}const headersToObject=t=>t instanceof AxiosHeaders$1?{...t}:t;function mergeConfig$1(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(r,f,L,T){return utils$1.isPlainObject(r)&&utils$1.isPlainObject(f)?utils$1.merge.call({caseless:T},r,f):utils$1.isPlainObject(f)?utils$1.merge({},f):utils$1.isArray(f)?f.slice():f}function u(r,f,L,T){if(utils$1.isUndefined(f)){if(!utils$1.isUndefined(r))return s(void 0,r,L,T)}else return s(r,f,L,T)}function l(r,f){if(!utils$1.isUndefined(f))return s(void 0,f)}function o(r,f){if(utils$1.isUndefined(f)){if(!utils$1.isUndefined(r))return s(void 0,r)}else return s(void 0,f)}function i(r){const f=utils$1.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!utils$1.isUndefined(f))if(utils$1.isPlainObject(f)){if(utils$1.hasOwnProp(f,r))return f[r]}else return;const L=utils$1.hasOwnProp(t,"transitional")?t.transitional:void 0;if(utils$1.isPlainObject(L)&&utils$1.hasOwnProp(L,r))return L[r]}function g(r,f,L){if(utils$1.hasOwnProp(e,L))return s(r,f);if(utils$1.hasOwnProp(t,L))return s(void 0,r)}const d={url:l,method:l,data:l,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:g,headers:(r,f,L)=>u(headersToObject(r),headersToObject(f),L,!0)};return utils$1.forEach(Object.keys({...t,...e}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const L=utils$1.hasOwnProp(d,f)?d[f]:u,T=utils$1.hasOwnProp(t,f)?t[f]:void 0,x=utils$1.hasOwnProp(e,f)?e[f]:void 0,c=L(T,x,f);utils$1.isUndefined(c)&&L!==g||(n[f]=c)}),utils$1.hasOwnProp(e,"validateStatus")&&utils$1.isUndefined(e.validateStatus)&&i("validateStatusUndefinedResolves")===!1&&(utils$1.hasOwnProp(t,"validateStatus")?n.validateStatus=s(void 0,t.validateStatus):delete n.validateStatus),n}const FORM_DATA_CONTENT_HEADERS=["content-type","content-length"];function setFormDataHeaders(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([s,u])=>{FORM_DATA_CONTENT_HEADERS.includes(s.toLowerCase())&&t.set(s,u)})}const encodeUTF8$1=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function resolveConfig(t){const e=mergeConfig$1({},t),n=L=>utils$1.hasOwnProp(e,L)?e[L]:void 0,s=n("data");let u=n("withXSRFToken");const l=n("xsrfHeaderName"),o=n("xsrfCookieName");let i=n("headers");const g=n("auth"),d=n("baseURL"),r=n("allowAbsoluteUrls"),f=n("url");if(e.headers=i=AxiosHeaders$1.from(i),e.url=buildURL(buildFullPath(d,f,r,e),n("params"),n("paramsSerializer")),g){const L=utils$1.getSafeProp(g,"username")||"",T=utils$1.getSafeProp(g,"password")||"";try{i.set("Authorization","Basic "+btoa(L+":"+(T?encodeUTF8$1(T):"")))}catch(x){throw AxiosError$1.from(x,AxiosError$1.ERR_BAD_OPTION_VALUE,t)}}if(utils$1.isFormData(s)&&(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv||utils$1.isReactNative(s)?i.setContentType(void 0):utils$1.isFunction(s.getHeaders)&&setFormDataHeaders(i,s.getHeaders(),n("formDataHeaderPolicy"))),platform.hasStandardBrowserEnv&&(utils$1.isFunction(u)&&(u=u(e)),u===!0||u==null&&isURLSameOrigin(e.url))){const T=l&&o&&cookies.read(o);T&&i.set(l,T)}return e}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(t){return new Promise(function(n,s){const u=resolveConfig(t);let l=u.data;const o=AxiosHeaders$1.from(u.headers).normalize();let{responseType:i,onUploadProgress:g,onDownloadProgress:d}=u,r,f,L,T,x;function c(){T&&T(),x&&x(),u.cancelToken&&u.cancelToken.unsubscribe(r),u.signal&&u.signal.removeEventListener("abort",r)}let m=new XMLHttpRequest;m.open(u.method.toUpperCase(),u.url,!0),m.timeout=u.timeout;function y(){if(!m)return;const b=AxiosHeaders$1.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),F={data:!i||i==="text"||i==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:t,request:m};settle(function(_){n(_),c()},function(_){s(_),c()},F),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(y)},m.onabort=function(){m&&(s(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,t,m)),c(),m=null)},m.onerror=function(j){const F=j&&j.message?j.message:"Network Error",k=new AxiosError$1(F,AxiosError$1.ERR_NETWORK,t,m);k.event=j||null,s(k),c(),m=null},m.ontimeout=function(){let j=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const F=u.transitional||transitionalDefaults;u.timeoutErrorMessage&&(j=u.timeoutErrorMessage),s(new AxiosError$1(j,F.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,t,m)),c(),m=null},l===void 0&&o.setContentType(null),"setRequestHeader"in m&&utils$1.forEach(toByteStringHeaderObject(o),function(j,F){m.setRequestHeader(F,j)}),utils$1.isUndefined(u.withCredentials)||(m.withCredentials=!!u.withCredentials),i&&i!=="json"&&(m.responseType=u.responseType),d&&([L,x]=progressEventReducer(d,!0),m.addEventListener("progress",L)),g&&m.upload&&([f,T]=progressEventReducer(g),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",T)),(u.cancelToken||u.signal)&&(r=b=>{m&&(s(!b||b.type?new CanceledError$1(null,t,m):b),m.abort(),c(),m=null)},u.cancelToken&&u.cancelToken.subscribe(r),u.signal&&(u.signal.aborted?r():u.signal.addEventListener("abort",r)));const O=parseProtocol(u.url);if(O&&!platform.protocols.includes(O)){s(new AxiosError$1("Unsupported protocol "+O+":",AxiosError$1.ERR_BAD_REQUEST,t)),c();return}m.send(l||null)})},composeSignals=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let s=!1;const u=function(g){if(!s){s=!0,o();const d=g instanceof Error?g:this.reason;n.abort(d instanceof AxiosError$1?d:new CanceledError$1(d instanceof Error?d.message:d))}};let l=e&&setTimeout(()=>{l=null,u(new AxiosError$1(`timeout of ${e}ms exceeded`,AxiosError$1.ETIMEDOUT))},e);const o=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(g=>{g.unsubscribe?g.unsubscribe(u):g.removeEventListener("abort",u)}),t=null)};t.forEach(g=>g.addEventListener("abort",u,{once:!0}));const{signal:i}=n;return i.unsubscribe=()=>utils$1.asap(o),i},streamChunk=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let s=0,u;for(;s<n;)u=s+e,yield t.slice(s,u),s=u},readBytes=async function*(t,e){for await(const n of readStream(t))yield*streamChunk(n,e)},readStream=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:s}=await e.read();if(n)break;yield s}}finally{await e.cancel()}},trackStream=(t,e,n,s)=>{const u=readBytes(t,e);let l=0,o,i=g=>{o||(o=!0,s&&s(g))};return new ReadableStream({async pull(g){try{const{done:d,value:r}=await u.next();if(d){i(),g.close();return}let f=r.byteLength;if(n){let L=l+=f;n(L)}g.enqueue(new Uint8Array(r))}catch(d){throw i(d),d}},cancel(g){return i(g),u.return()}},{highWaterMark:2})},isHexDigit=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,isPercentEncodedByte=(t,e,n)=>e+2<n&&isHexDigit(t.charCodeAt(e+1))&&isHexDigit(t.charCodeAt(e+2));function estimateDataURLDecodedBytes(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),s=t.slice(e+1);if(/;base64/i.test(n)){let o=s.length;const i=s.length;for(let T=0;T<i;T++)if(s.charCodeAt(T)===37&&T+2<i){const x=s.charCodeAt(T+1),c=s.charCodeAt(T+2);isHexDigit(x)&&isHexDigit(c)&&(o-=2,T+=2)}let g=0,d=i-1;const r=T=>T>=2&&s.charCodeAt(T-2)===37&&s.charCodeAt(T-1)===51&&(s.charCodeAt(T)===68||s.charCodeAt(T)===100);d>=0&&(s.charCodeAt(d)===61?(g++,d--):r(d)&&(g++,d-=3)),g===1&&d>=0&&(s.charCodeAt(d)===61||r(d))&&g++;const L=Math.floor(o/4)*3-(g||0);return L>0?L:0}let l=0;for(let o=0,i=s.length;o<i;o++){const g=s.charCodeAt(o);if(g===37&&isPercentEncodedByte(s,o,i))l+=1,o+=2;else if(g<128)l+=1;else if(g<2048)l+=2;else if(g>=55296&&g<=56319&&o+1<i){const d=s.charCodeAt(o+1);d>=56320&&d<=57343?(l+=4,o++):l+=3}else l+=3}return l}const VERSION$1="1.18.1",DEFAULT_CHUNK_SIZE=64*1024,{isFunction}=utils$1,encodeUTF8=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),decodeURIComponentSafe=t=>{if(!utils$1.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},test=(t,...e)=>{try{return!!t(...e)}catch{return!1}},maybeWithAuthCredentials=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},factory=t=>{const e=utils$1.global!==void 0&&utils$1.global!==null?utils$1.global:globalThis,{ReadableStream:n,TextEncoder:s}=e;t=utils$1.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:u,Request:l,Response:o}=t,i=u?isFunction(u):typeof fetch=="function",g=isFunction(l),d=isFunction(o);if(!i)return!1;const r=i&&isFunction(n),f=i&&(typeof s=="function"?(y=>O=>y.encode(O))(new s):async y=>new Uint8Array(await new l(y).arrayBuffer())),L=g&&r&&test(()=>{let y=!1;const O=new l(platform.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),b=O.headers.has("Content-Type");return O.body!=null&&O.body.cancel(),y&&!b}),T=d&&r&&test(()=>utils$1.isReadableStream(new o("").body)),x={stream:T&&(y=>y.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!x[y]&&(x[y]=(O,b)=>{let j=O&&O[y];if(j)return j.call(O);throw new AxiosError$1(`Response type '${y}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,b)})});const c=async y=>{if(y==null)return 0;if(utils$1.isBlob(y))return y.size;if(utils$1.isSpecCompliantForm(y))return(await new l(platform.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(y)||utils$1.isArrayBuffer(y))return y.byteLength;if(utils$1.isURLSearchParams(y)&&(y=y+""),utils$1.isString(y))return(await f(y)).byteLength},m=async(y,O)=>{const b=utils$1.toFiniteNumber(y.getContentLength());return b??c(O)};return async y=>{let{url:O,method:b,data:j,signal:F,cancelToken:k,timeout:_,onDownloadProgress:ue,onUploadProgress:re,responseType:de,headers:he,withCredentials:w="same-origin",fetchOptions:le,maxContentLength:V,maxBodyLength:Ce}=resolveConfig(y);const _e=utils$1.isNumber(V)&&V>-1,D=utils$1.isNumber(Ce)&&Ce>-1,Ie=v=>utils$1.hasOwnProp(y,v)?y[v]:void 0;let Lt=u||fetch;de=de?(de+"").toLowerCase():"text";let At=composeSignals([F,k&&k.toAbortSignal()],_),ie=null;const Ve=At&&At.unsubscribe&&(()=>{At.unsubscribe()});let ze,z=null;const Dt=()=>new AxiosError$1("Request body larger than maxBodyLength limit",AxiosError$1.ERR_BAD_REQUEST,y,ie);try{let v;const S=Ie("auth");if(S){const kt=utils$1.getSafeProp(S,"username")||"",Ne=utils$1.getSafeProp(S,"password")||"";v={username:kt,password:Ne}}if(maybeWithAuthCredentials(O)){const kt=new URL(O,platform.origin);if(!v&&(kt.username||kt.password)){const Ne=decodeURIComponentSafe(kt.username),_n=decodeURIComponentSafe(kt.password);v={username:Ne,password:_n}}(kt.username||kt.password)&&(kt.username="",kt.password="",O=kt.href)}if(v&&(he.delete("authorization"),he.set("Authorization","Basic "+btoa(encodeUTF8((v.username||"")+":"+(v.password||""))))),_e&&typeof O=="string"&&O.startsWith("data:")&&estimateDataURLDecodedBytes(O)>V)throw new AxiosError$1("maxContentLength size of "+V+" exceeded",AxiosError$1.ERR_BAD_RESPONSE,y,ie);if(D&&b!=="get"&&b!=="head"){const kt=await c(j);if(typeof kt=="number"&&isFinite(kt)&&(ze=kt,kt>Ce))throw Dt()}const Ue=D&&(utils$1.isReadableStream(j)||utils$1.isStream(j)),M=(kt,Ne,_n)=>trackStream(kt,DEFAULT_CHUNK_SIZE,wn=>{if(D&&wn>Ce)throw z=Dt();Ne&&Ne(wn)},_n);if(L&&b!=="get"&&b!=="head"&&(re||Ue)){if(ze=ze??await m(he,j),ze!==0||Ue){let kt=new l(O,{method:"POST",body:j,duplex:"half"}),Ne;if(utils$1.isFormData(j)&&(Ne=kt.headers.get("content-type"))&&he.setContentType(Ne),kt.body){const[_n,wn]=re&&progressEventDecorator(ze,progressEventReducer(asyncDecorator(re)))||[];j=M(kt.body,_n,wn)}}}else if(Ue&&!g&&r&&b!=="get"&&b!=="head")j=M(j);else if(Ue&&g&&!L&&b!=="get"&&b!=="head")throw new AxiosError$1("Stream request bodies are not supported by the current fetch implementation",AxiosError$1.ERR_NOT_SUPPORT,y,ie);utils$1.isString(w)||(w=w?"include":"omit");const Pt=g&&"credentials"in l.prototype;if(utils$1.isFormData(j)){const kt=he.getContentType();kt&&/^multipart\/form-data/i.test(kt)&&!/boundary=/i.test(kt)&&he.delete("content-type")}he.set("User-Agent","axios/"+VERSION$1,!1);const hn={...le,signal:At,method:b.toUpperCase(),headers:toByteStringHeaderObject(he.normalize()),body:j,duplex:"half",credentials:Pt?w:void 0};ie=g&&new l(O,hn);let Oe=await(g?Lt(ie,le):Lt(O,hn));const Fe=AxiosHeaders$1.from(Oe.headers);if(_e){const kt=utils$1.toFiniteNumber(Fe.getContentLength());if(kt!=null&&kt>V)throw new AxiosError$1("maxContentLength size of "+V+" exceeded",AxiosError$1.ERR_BAD_RESPONSE,y,ie)}const Et=T&&(de==="stream"||de==="response");if(T&&Oe.body&&(ue||_e||Et&&Ve)){const kt={};["status","statusText","headers"].forEach(Bn=>{kt[Bn]=Oe[Bn]});const Ne=utils$1.toFiniteNumber(Fe.getContentLength()),[_n,wn]=ue&&progressEventDecorator(Ne,progressEventReducer(asyncDecorator(ue),!0))||[];let bn=0;const xn=Bn=>{if(_e&&(bn=Bn,bn>V))throw new AxiosError$1("maxContentLength size of "+V+" exceeded",AxiosError$1.ERR_BAD_RESPONSE,y,ie);_n&&_n(Bn)};Oe=new o(trackStream(Oe.body,DEFAULT_CHUNK_SIZE,xn,()=>{wn&&wn(),Ve&&Ve()}),kt)}de=de||"text";let oe=await x[utils$1.findKey(x,de)||"text"](Oe,y);if(_e&&!T&&!Et){let kt;if(oe!=null&&(typeof oe.byteLength=="number"?kt=oe.byteLength:typeof oe.size=="number"?kt=oe.size:typeof oe=="string"&&(kt=typeof s=="function"?new s().encode(oe).byteLength:oe.length)),typeof kt=="number"&&kt>V)throw new AxiosError$1("maxContentLength size of "+V+" exceeded",AxiosError$1.ERR_BAD_RESPONSE,y,ie)}return!Et&&Ve&&Ve(),await new Promise((kt,Ne)=>{settle(kt,Ne,{data:oe,headers:AxiosHeaders$1.from(Oe.headers),status:Oe.status,statusText:Oe.statusText,config:y,request:ie})})}catch(v){if(Ve&&Ve(),At&&At.aborted&&At.reason instanceof AxiosError$1){const S=At.reason;throw S.config=y,ie&&(S.request=ie),v!==S&&Object.defineProperty(S,"cause",{__proto__:null,value:v,writable:!0,enumerable:!1,configurable:!0}),S}if(z)throw ie&&!z.request&&(z.request=ie),z;if(v instanceof AxiosError$1)throw ie&&!v.request&&(v.request=ie),v;if(v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)){const S=new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,y,ie,v&&v.response);throw Object.defineProperty(S,"cause",{__proto__:null,value:v.cause||v,writable:!0,enumerable:!1,configurable:!0}),S}throw AxiosError$1.from(v,v&&v.code,y,ie,v&&v.response)}}},seedCache=new Map,getFetch=t=>{let e=t&&t.env||{};const{fetch:n,Request:s,Response:u}=e,l=[s,u,n];let o=l.length,i=o,g,d,r=seedCache;for(;i--;)g=l[i],d=r.get(g),d===void 0&&r.set(g,d=i?new Map:factory(e)),r=d;return d};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const renderReason=t=>`- ${t}`,isResolvedHandle=t=>utils$1.isFunction(t)||t===null||t===!1;function getAdapter$1(t,e){t=utils$1.isArray(t)?t:[t];const{length:n}=t;let s,u;const l={};for(let o=0;o<n;o++){s=t[o];let i;if(u=s,!isResolvedHandle(s)&&(u=knownAdapters[(i=String(s)).toLowerCase()],u===void 0))throw new AxiosError$1(`Unknown adapter '${i}'`);if(u&&(utils$1.isFunction(u)||(u=u.get(e))))break;l[i||"#"+o]=u}if(!u){const o=Object.entries(l).map(([g,d])=>`adapter ${g} `+(d===!1?"is not supported by the environment":"is not available in the build"));let i=n?o.length>1?`since :
`+o.map(renderReason).join(`
`):" "+renderReason(o[0]):"as no adapter specified";throw new AxiosError$1("There is no suitable adapter to dispatch the request "+i,AxiosError$1.ERR_NOT_SUPPORT)}return u}const adapters={getAdapter:getAdapter$1,adapters:knownAdapters};function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new CanceledError$1(null,t)}function dispatchRequest(t){return throwIfCancellationRequested(t),t.headers=AxiosHeaders$1.from(t.headers),t.data=transformData.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(t.adapter||defaults.adapter,t)(t).then(function(s){throwIfCancellationRequested(t),t.response=s;try{s.data=transformData.call(t,t.transformResponse,s)}finally{delete t.response}return s.headers=AxiosHeaders$1.from(s.headers),s},function(s){if(!isCancel$1(s)&&(throwIfCancellationRequested(t),s&&s.response)){t.response=s.response;try{s.response.data=transformData.call(t,t.transformResponse,s.response)}finally{delete t.response}s.response.headers=AxiosHeaders$1.from(s.response.headers)}return Promise.reject(s)})}const validators$1={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{validators$1[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const deprecatedWarnings={};validators$1.transitional=function t(e,n,s){function u(l,o){return"[Axios v"+VERSION$1+"] Transitional option '"+l+"'"+o+(s?". "+s:"")}return(l,o,i)=>{if(e===!1)throw new AxiosError$1(u(o," has been removed"+(n?" in "+n:"")),AxiosError$1.ERR_DEPRECATED);return n&&!deprecatedWarnings[o]&&(deprecatedWarnings[o]=!0,console.warn(u(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(l,o,i):!0}};validators$1.spelling=function t(e){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};function assertOptions(t,e,n){if(typeof t!="object"||t===null)throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let u=s.length;for(;u-- >0;){const l=s[u],o=Object.prototype.hasOwnProperty.call(e,l)?e[l]:void 0;if(o){const i=t[l],g=i===void 0||o(i,l,t);if(g!==!0)throw new AxiosError$1("option "+l+" must be "+g,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new AxiosError$1("Unknown option "+l,AxiosError$1.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(e,n){try{return await this._request(e,n)}catch(s){if(s instanceof Error){let u={};Error.captureStackTrace?Error.captureStackTrace(u):u=new Error;const l=(()=>{if(!u.stack)return"";const o=u.stack.indexOf(`
`);return o===-1?"":u.stack.slice(o+1)})();try{if(!s.stack)s.stack=l;else if(l){const o=l.indexOf(`
`),i=o===-1?-1:l.indexOf(`
`,o+1),g=i===-1?"":l.slice(i+1);String(s.stack).endsWith(g)||(s.stack+=`
`+l)}}catch{}}throw s}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=mergeConfig$1(this.defaults,n);const{transitional:s,paramsSerializer:u,headers:l}=n;s!==void 0&&validator.assertOptions(s,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean),legacyInterceptorReqResOrdering:validators.transitional(validators.boolean),advertiseZstdAcceptEncoding:validators.transitional(validators.boolean),validateStatusUndefinedResolves:validators.transitional(validators.boolean)},!1),u!=null&&(utils$1.isFunction(u)?n.paramsSerializer={serialize:u}:validator.assertOptions(u,{encode:validators.function,serialize:validators.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),validator.assertOptions(n,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=l&&utils$1.merge(l.common,l[n.method]);l&&utils$1.forEach(["delete","get","head","post","put","patch","query","common"],x=>{delete l[x]}),n.headers=AxiosHeaders$1.concat(o,l);const i=[];let g=!0;this.interceptors.request.forEach(function(c){if(typeof c.runWhen=="function"&&c.runWhen(n)===!1)return;g=g&&c.synchronous;const m=n.transitional||transitionalDefaults;m&&m.legacyInterceptorReqResOrdering?i.unshift(c.fulfilled,c.rejected):i.push(c.fulfilled,c.rejected)});const d=[];this.interceptors.response.forEach(function(c){d.push(c.fulfilled,c.rejected)});let r,f=0,L;if(!g){const x=[dispatchRequest.bind(this),void 0];for(x.unshift(...i),x.push(...d),L=x.length,r=Promise.resolve(n);f<L;)r=r.then(x[f++],x[f++]);return r}L=i.length;let T=n;for(;f<L;){const x=i[f++],c=i[f++];try{T=x(T)}catch(m){c.call(this,m);break}}try{r=dispatchRequest.call(this,T)}catch(x){return Promise.reject(x)}for(f=0,L=d.length;f<L;)r=r.then(d[f++],d[f++]);return r}getUri(e){e=mergeConfig$1(this.defaults,e);const n=buildFullPath(e.baseURL,e.url,e.allowAbsoluteUrls,e);return buildURL(n,e.params,e.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function t(e){Axios$1.prototype[e]=function(n,s){return this.request(mergeConfig$1(s||{},{method:e,url:n,data:s&&utils$1.hasOwnProp(s,"data")?s.data:void 0}))}});utils$1.forEach(["post","put","patch","query"],function t(e){function n(s){return function(l,o,i){return this.request(mergeConfig$1(i||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:o}))}}Axios$1.prototype[e]=n(),e!=="query"&&(Axios$1.prototype[e+"Form"]=n(!0))});let CancelToken$1=class $l{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const s=this;this.promise.then(u=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](u);s._listeners=null}),this.promise.then=u=>{let l;const o=new Promise(i=>{s.subscribe(i),l=i}).then(u);return o.cancel=function(){s.unsubscribe(l)},o},e(function(l,o,i){s.reason||(s.reason=new CanceledError$1(l,o,i),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=s=>{e.abort(s)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new $l(function(u){e=u}),cancel:e}}};function spread$1(t){return function(n){return t.apply(null,n)}}function isAxiosError$1(t){return utils$1.isObject(t)&&t.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HttpStatusCode$1).forEach(([t,e])=>{HttpStatusCode$1[e]=t});function createInstance(t){const e=new Axios$1(t),n=bind(Axios$1.prototype.request,e);return utils$1.extend(n,Axios$1.prototype,e,{allOwnKeys:!0}),utils$1.extend(n,e,null,{allOwnKeys:!0}),n.create=function(u){return createInstance(mergeConfig$1(t,u))},n}const axios=createInstance(defaults);axios.Axios=Axios$1;axios.CanceledError=CanceledError$1;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel$1;axios.VERSION=VERSION$1;axios.toFormData=toFormData$1;axios.AxiosError=AxiosError$1;axios.Cancel=axios.CanceledError;axios.all=function t(e){return Promise.all(e)};axios.spread=spread$1;axios.isAxiosError=isAxiosError$1;axios.mergeConfig=mergeConfig$1;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=t=>formDataToJSON(utils$1.isHTMLForm(t)?new FormData(t):t);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig,create}=axios,instance=axios.create({baseURL:"https://ldesignapi.sd2000.com",timeout:1e4,withCredentials:!0,headers:{"Content-Type":"application/json"}});instance.interceptors.request.use(t=>t,t=>(logger.error("请求拦截器错误:",t),Promise.reject(t)));instance.interceptors.response.use(t=>{const{data:e,status:n}=t;if(n===200||n===201)return e;if(n===401)return Promise.reject(new Error("登录已过期"));{const s=e.message||"请求失败";return Promise.reject(new Error(s))}},t=>{let e="网络错误，请稍后重试";if(logger.debug("响应错误:",t),t.response){const n=t.response.status;switch(n){case 400:e="请求参数错误";break;case 401:e="未授权，请登录",localStorage.removeItem("token"),loginJudge();break;case 403:e="拒绝访问";break;case 404:e="请求地址不存在";break;case 500:e="服务器内部错误";break;case 502:e="网关错误";break;case 503:e="服务不可用";break;case 504:e="网关超时";break;default:e=`连接错误${n}`}}else t.request?e="网络连接异常，请检查网络":e=t.message||"请求失败";return logger.error("响应拦截器错误:",e),Promise.reject(new Error(e))});class Request{get(e,n){return instance.get(e,n)}post(e,n,s){return instance.post(e,n,s)}put(e,n,s){return instance.put(e,n,s)}delete(e,n){return instance.delete(e,n)}patch(e,n,s){return instance.patch(e,n,s)}download(e,n,s){return instance.get(e,{...s,responseType:"blob"}).then(u=>{const l=new Blob([u.data]),o=window.URL.createObjectURL(l),i=document.createElement("a");i.href=o,i.download=n||"download",document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(o)})}}const request=new Request,basePre="/api",getCurrentUser=()=>request.get(basePre+"/account/current-user"),loginJudge=()=>{ElMessageBox.confirm("请登录后再操作","警告",{closeOnClickModal:!1,confirmButtonText:"去登录",cancelButtonText:"已登录",showClose:!1,type:"warning",beforeClose:(t,e,n)=>{t==="confirm"?window.open("https://www.sd2000.com/Login","_blank"):(ElMessage({type:"info",message:"正在验证登录信息"}),getCurrentUser().then(s=>{ElMessage.success("登录成功")}).catch(s=>{ElMessage.error("用户未登录")}),n())}})},_hoisted_1={class:"app-layout"},_hoisted_2={class:"header"},_hoisted_3={class:"header-center"},_hoisted_4={class:"main-content"},_sfc_main=defineComponent({__name:"Layout",setup(t){const e=useRoute(),n=ref(!1);onMounted(()=>{logger.info("正在验证登录信息"),getCurrentUser().then(g=>{logger.debug("登录校验返回",g)}).catch(g=>{logger.warn("登录校验失败",g)})});const s=ref(!1);s.value=!1,computed(()=>e.name==="Dplate");const u=[{index:"/home",label:"标准官网首页",action:function(){window.open("https://www.sd2000.com/","_blank")}},{index:"/dplate",label:"标准包装盒刀版"},{index:"/preview",label:"标准印品预览",disabled:!1,action:function(){window.open("https://www.sd2000.com/three/form/","_blank")}},{index:"/download",label:"标准素材下载",disabled:!1,action:function(){window.open("https://www.sd2000.com/template/center/","_blank")}}],l=ref("/dplate"),o=g=>{g.action?g.action():logger.debug("menu click",g.index),i.value.updateActiveIndex("/dplate")},i=ref(null);return(g,d)=>{const r=ElMenuItem,f=ElMenu,L=resolveComponent("router-view"),T=vLoading;return withDirectives((openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("header",_hoisted_2,[d[0]||(d[0]=createBaseVNode("div",{class:"header-left"},[createBaseVNode("div",{class:"logo"},[createBaseVNode("img",{class:"logo-icon",src:_imports_0,alt:""}),createBaseVNode("span",{class:"logo-text"},"标准印前工具")])],-1)),createBaseVNode("div",_hoisted_3,[createVNode(f,{mode:"horizontal",class:"nav-menu",ellipsis:!1,"default-active":unref(l),ref_key:"navMenu",ref:i},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(u,x=>createVNode(r,{key:x.index,index:x.index,onClick:c=>o(x),disabled:x.disabled},{default:withCtx(()=>[createTextVNode(toDisplayString(x.label),1)]),_:2},1032,["index","onClick","disabled"])),64))]),_:1},8,["default-active"])])]),createBaseVNode("main",_hoisted_4,[createVNode(L)])])),[[T,unref(n)]])}}}),Layout=_export_sfc$1(_sfc_main,[["__scopeId","data-v-7eb1e00b"]])
root.JianglaiShengdaBoxEngine = Object.freeze({
  getBox,
  defaultParams:Object.freeze({ ...DEFAULT_BOX_PARAMS }),
  sourceSha256:"5712e31e9ea77965f3cba5e859d48183e61162e2d895c3c7d61714f8da512c06"
});
})(typeof globalThis !== "undefined" ? globalThis : window);
