bundle.js 476 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381
  1. !(function(t) {
  2. var e = this.webpackHotUpdate;
  3. this.webpackHotUpdate = function(t, i) {
  4. !(function(t, e) {
  5. if (!v[t] || !y[t]) return;
  6. for (var i in ((y[t] = !1), e)) Object.prototype.hasOwnProperty.call(e, i) && (c[i] = e[i]);
  7. 0 == --p && 0 === d && _();
  8. })(t, i),
  9. e && e(t, i);
  10. };
  11. var i,
  12. n = !0,
  13. g = "6ebc6af84dfdad10b153",
  14. A = {},
  15. r = [],
  16. o = [];
  17. function C(t) {
  18. var e = P[t];
  19. if (!e) return O;
  20. var n = function(n) {
  21. return (
  22. e.hot.active
  23. ? (P[n] ? -1 === P[n].parents.indexOf(t) && P[n].parents.push(t) : ((r = [t]), (i = n)), -1 === e.children.indexOf(n) && e.children.push(n))
  24. : (console.warn("[HMR] unexpected require(" + n + ") from disposed module " + t), (r = [])),
  25. O(n)
  26. );
  27. },
  28. g = function(t) {
  29. return {
  30. configurable: !0,
  31. enumerable: !0,
  32. get: function() {
  33. return O[t];
  34. },
  35. set: function(e) {
  36. O[t] = e;
  37. },
  38. };
  39. };
  40. for (var A in O) Object.prototype.hasOwnProperty.call(O, A) && "e" !== A && "t" !== A && Object.defineProperty(n, A, g(A));
  41. return (
  42. (n.e = function(t) {
  43. return (
  44. "ready" === a && l("prepare"),
  45. d++,
  46. O.e(t).then(e, function(t) {
  47. throw (e(), t);
  48. })
  49. );
  50. function e() {
  51. d--, "prepare" === a && (f[t] || x(t), 0 === d && 0 === p && _());
  52. }
  53. }),
  54. (n.t = function(t, e) {
  55. return 1 & e && (t = n(t)), O.t(t, -2 & e);
  56. }),
  57. n
  58. );
  59. }
  60. function I(t) {
  61. var e = {
  62. _acceptedDependencies: {},
  63. _declinedDependencies: {},
  64. _selfAccepted: !1,
  65. _selfDeclined: !1,
  66. _disposeHandlers: [],
  67. _main: i !== t,
  68. active: !0,
  69. accept: function(t, i) {
  70. if (void 0 === t) e._selfAccepted = !0;
  71. else if ("function" == typeof t) e._selfAccepted = t;
  72. else if ("object" == typeof t) for (var n = 0; n < t.length; n++) e._acceptedDependencies[t[n]] = i || function() {};
  73. else e._acceptedDependencies[t] = i || function() {};
  74. },
  75. decline: function(t) {
  76. if (void 0 === t) e._selfDeclined = !0;
  77. else if ("object" == typeof t) for (var i = 0; i < t.length; i++) e._declinedDependencies[t[i]] = !0;
  78. else e._declinedDependencies[t] = !0;
  79. },
  80. dispose: function(t) {
  81. e._disposeHandlers.push(t);
  82. },
  83. addDisposeHandler: function(t) {
  84. e._disposeHandlers.push(t);
  85. },
  86. removeDisposeHandler: function(t) {
  87. var i = e._disposeHandlers.indexOf(t);
  88. i >= 0 && e._disposeHandlers.splice(i, 1);
  89. },
  90. check: b,
  91. apply: w,
  92. status: function(t) {
  93. if (!t) return a;
  94. s.push(t);
  95. },
  96. addStatusHandler: function(t) {
  97. s.push(t);
  98. },
  99. removeStatusHandler: function(t) {
  100. var e = s.indexOf(t);
  101. e >= 0 && s.splice(e, 1);
  102. },
  103. data: A[t],
  104. };
  105. return (i = void 0), e;
  106. }
  107. var s = [],
  108. a = "idle";
  109. function l(t) {
  110. a = t;
  111. for (var e = 0; e < s.length; e++) s[e].call(null, t);
  112. }
  113. var u,
  114. c,
  115. h,
  116. p = 0,
  117. d = 0,
  118. f = {},
  119. y = {},
  120. v = {};
  121. function m(t) {
  122. return +t + "" === t ? +t : t;
  123. }
  124. function b(t) {
  125. if ("idle" !== a) throw new Error("check() is only allowed in idle status");
  126. return (
  127. (n = t),
  128. l("check"),
  129. ((e = 1e4),
  130. (e = e || 1e4),
  131. new Promise(function(t, i) {
  132. if ("undefined" == typeof XMLHttpRequest) return i(new Error("No browser support"));
  133. try {
  134. var n = new XMLHttpRequest(),
  135. A = O.p + "" + g + ".hot-update.json";
  136. n.open("GET", A, !0), (n.timeout = e), n.send(null);
  137. } catch (t) {
  138. return i(t);
  139. }
  140. n.onreadystatechange = function() {
  141. if (4 === n.readyState)
  142. if (0 === n.status) i(new Error("Manifest request to " + A + " timed out."));
  143. else if (404 === n.status) t();
  144. else if (200 !== n.status && 304 !== n.status) i(new Error("Manifest request to " + A + " failed."));
  145. else {
  146. try {
  147. var e = JSON.parse(n.responseText);
  148. } catch (t) {
  149. return void i(t);
  150. }
  151. t(e);
  152. }
  153. };
  154. })).then(function(t) {
  155. if (!t) return l("idle"), null;
  156. (y = {}), (f = {}), (v = t.c), (h = t.h), l("prepare");
  157. var e = new Promise(function(t, e) {
  158. u = { resolve: t, reject: e };
  159. });
  160. c = {};
  161. return x(0), "prepare" === a && 0 === d && 0 === p && _(), e;
  162. })
  163. );
  164. var e;
  165. }
  166. function x(t) {
  167. v[t]
  168. ? ((y[t] = !0),
  169. p++,
  170. (function(t) {
  171. var e = document.createElement("script");
  172. (e.charset = "utf-8"), (e.src = O.p + "" + t + "." + g + ".hot-update.js"), document.head.appendChild(e);
  173. })(t))
  174. : (f[t] = !0);
  175. }
  176. function _() {
  177. l("ready");
  178. var t = u;
  179. if (((u = null), t))
  180. if (n)
  181. Promise.resolve()
  182. .then(function() {
  183. return w(n);
  184. })
  185. .then(
  186. function(e) {
  187. t.resolve(e);
  188. },
  189. function(e) {
  190. t.reject(e);
  191. }
  192. );
  193. else {
  194. var e = [];
  195. for (var i in c) Object.prototype.hasOwnProperty.call(c, i) && e.push(m(i));
  196. t.resolve(e);
  197. }
  198. }
  199. function w(e) {
  200. if ("ready" !== a) throw new Error("apply() is only allowed in ready status");
  201. var i, n, o, C, I;
  202. function s(t) {
  203. for (
  204. var e = [t],
  205. i = {},
  206. n = e.map(function(t) {
  207. return { chain: [t], id: t };
  208. });
  209. n.length > 0;
  210. ) {
  211. var g = n.pop(),
  212. A = g.id,
  213. r = g.chain;
  214. if ((C = P[A]) && !C.hot._selfAccepted) {
  215. if (C.hot._selfDeclined) return { type: "self-declined", chain: r, moduleId: A };
  216. if (C.hot._main) return { type: "unaccepted", chain: r, moduleId: A };
  217. for (var o = 0; o < C.parents.length; o++) {
  218. var I = C.parents[o],
  219. s = P[I];
  220. if (s) {
  221. if (s.hot._declinedDependencies[A]) return { type: "declined", chain: r.concat([I]), moduleId: A, parentId: I };
  222. -1 === e.indexOf(I) &&
  223. (s.hot._acceptedDependencies[A] ? (i[I] || (i[I] = []), u(i[I], [A])) : (delete i[I], e.push(I), n.push({ chain: r.concat([I]), id: I })));
  224. }
  225. }
  226. }
  227. }
  228. return { type: "accepted", moduleId: t, outdatedModules: e, outdatedDependencies: i };
  229. }
  230. function u(t, e) {
  231. for (var i = 0; i < e.length; i++) {
  232. var n = e[i];
  233. -1 === t.indexOf(n) && t.push(n);
  234. }
  235. }
  236. e = e || {};
  237. var p = {},
  238. d = [],
  239. f = {},
  240. y = function() {
  241. console.warn("[HMR] unexpected require(" + x.moduleId + ") to disposed module");
  242. };
  243. for (var b in c)
  244. if (Object.prototype.hasOwnProperty.call(c, b)) {
  245. var x;
  246. I = m(b);
  247. var _ = !1,
  248. w = !1,
  249. S = !1,
  250. E = "";
  251. switch (((x = c[b] ? s(I) : { type: "disposed", moduleId: b }).chain && (E = "\nUpdate propagation: " + x.chain.join(" -> ")), x.type)) {
  252. case "self-declined":
  253. e.onDeclined && e.onDeclined(x), e.ignoreDeclined || (_ = new Error("Aborted because of self decline: " + x.moduleId + E));
  254. break;
  255. case "declined":
  256. e.onDeclined && e.onDeclined(x),
  257. e.ignoreDeclined || (_ = new Error("Aborted because of declined dependency: " + x.moduleId + " in " + x.parentId + E));
  258. break;
  259. case "unaccepted":
  260. e.onUnaccepted && e.onUnaccepted(x), e.ignoreUnaccepted || (_ = new Error("Aborted because " + I + " is not accepted" + E));
  261. break;
  262. case "accepted":
  263. e.onAccepted && e.onAccepted(x), (w = !0);
  264. break;
  265. case "disposed":
  266. e.onDisposed && e.onDisposed(x), (S = !0);
  267. break;
  268. default:
  269. throw new Error("Unexception type " + x.type);
  270. }
  271. if (_) return l("abort"), Promise.reject(_);
  272. if (w)
  273. for (I in ((f[I] = c[I]), u(d, x.outdatedModules), x.outdatedDependencies))
  274. Object.prototype.hasOwnProperty.call(x.outdatedDependencies, I) && (p[I] || (p[I] = []), u(p[I], x.outdatedDependencies[I]));
  275. S && (u(d, [x.moduleId]), (f[I] = y));
  276. }
  277. var D,
  278. k = [];
  279. for (n = 0; n < d.length; n++) (I = d[n]), P[I] && P[I].hot._selfAccepted && f[I] !== y && k.push({ module: I, errorHandler: P[I].hot._selfAccepted });
  280. l("dispose"),
  281. Object.keys(v).forEach(function(t) {
  282. !1 === v[t] &&
  283. (function(t) {
  284. delete installedChunks[t];
  285. })(t);
  286. });
  287. for (var M, L, N = d.slice(); N.length > 0; )
  288. if (((I = N.pop()), (C = P[I]))) {
  289. var j = {},
  290. R = C.hot._disposeHandlers;
  291. for (o = 0; o < R.length; o++) (i = R[o])(j);
  292. for (A[I] = j, C.hot.active = !1, delete P[I], delete p[I], o = 0; o < C.children.length; o++) {
  293. var G = P[C.children[o]];
  294. G && (D = G.parents.indexOf(I)) >= 0 && G.parents.splice(D, 1);
  295. }
  296. }
  297. for (I in p)
  298. if (Object.prototype.hasOwnProperty.call(p, I) && (C = P[I]))
  299. for (L = p[I], o = 0; o < L.length; o++) (M = L[o]), (D = C.children.indexOf(M)) >= 0 && C.children.splice(D, 1);
  300. for (I in (l("apply"), (g = h), f)) Object.prototype.hasOwnProperty.call(f, I) && (t[I] = f[I]);
  301. var T = null;
  302. for (I in p)
  303. if (Object.prototype.hasOwnProperty.call(p, I) && (C = P[I])) {
  304. L = p[I];
  305. var V = [];
  306. for (n = 0; n < L.length; n++)
  307. if (((M = L[n]), (i = C.hot._acceptedDependencies[M]))) {
  308. if (-1 !== V.indexOf(i)) continue;
  309. V.push(i);
  310. }
  311. for (n = 0; n < V.length; n++) {
  312. i = V[n];
  313. try {
  314. i(L);
  315. } catch (t) {
  316. e.onErrored && e.onErrored({ type: "accept-errored", moduleId: I, dependencyId: L[n], error: t }), e.ignoreErrored || T || (T = t);
  317. }
  318. }
  319. }
  320. for (n = 0; n < k.length; n++) {
  321. var U = k[n];
  322. (I = U.module), (r = [I]);
  323. try {
  324. O(I);
  325. } catch (t) {
  326. if ("function" == typeof U.errorHandler)
  327. try {
  328. U.errorHandler(t);
  329. } catch (i) {
  330. e.onErrored && e.onErrored({ type: "self-accept-error-handler-errored", moduleId: I, error: i, originalError: t }),
  331. e.ignoreErrored || T || (T = i),
  332. T || (T = t);
  333. }
  334. else e.onErrored && e.onErrored({ type: "self-accept-errored", moduleId: I, error: t }), e.ignoreErrored || T || (T = t);
  335. }
  336. }
  337. return T
  338. ? (l("fail"), Promise.reject(T))
  339. : (l("idle"),
  340. new Promise(function(t) {
  341. t(d);
  342. }));
  343. }
  344. var P = {};
  345. function O(e) {
  346. if (P[e]) return P[e].exports;
  347. var i = (P[e] = { i: e, l: !1, exports: {}, hot: I(e), parents: ((o = r), (r = []), o), children: [] });
  348. return t[e].call(i.exports, i, i.exports, C(e)), (i.l = !0), i.exports;
  349. }
  350. (O.m = t),
  351. (O.c = P),
  352. (O.d = function(t, e, i) {
  353. O.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: i });
  354. }),
  355. (O.r = function(t) {
  356. "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }),
  357. Object.defineProperty(t, "__esModule", { value: !0 });
  358. }),
  359. (O.t = function(t, e) {
  360. if ((1 & e && (t = O(t)), 8 & e)) return t;
  361. if (4 & e && "object" == typeof t && t && t.__esModule) return t;
  362. var i = Object.create(null);
  363. if ((O.r(i), Object.defineProperty(i, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t))
  364. for (var n in t)
  365. O.d(
  366. i,
  367. n,
  368. function(e) {
  369. return t[e];
  370. }.bind(null, n)
  371. );
  372. return i;
  373. }),
  374. (O.n = function(t) {
  375. var e =
  376. t && t.__esModule
  377. ? function() {
  378. return t.default;
  379. }
  380. : function() {
  381. return t;
  382. };
  383. return O.d(e, "a", e), e;
  384. }),
  385. (O.o = function(t, e) {
  386. return Object.prototype.hasOwnProperty.call(t, e);
  387. }),
  388. (O.p = ""),
  389. (O.h = function() {
  390. return g;
  391. }),
  392. C(24)((O.s = 24));
  393. })([
  394. function(t, e, i) {
  395. "use strict";
  396. var n =
  397. (this && this.__assign) ||
  398. function() {
  399. return (n =
  400. Object.assign ||
  401. function(t) {
  402. for (var e, i = 1, n = arguments.length; i < n; i++) for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  403. return t;
  404. }).apply(this, arguments);
  405. };
  406. Object.defineProperty(e, "__esModule", { value: !0 });
  407. var g = i(3);
  408. (e.calcVector = function(t) {
  409. var e = 1 / ((t = n({}, t)).x * t.y < 0 ? Math.abs(t.x - t.y) : t.x + t.y);
  410. return (t.x = t.x * e), (t.y = t.y * e), t;
  411. }),
  412. (e.strictLineVector = function(t) {
  413. var i = t.points[1].x - t.points[0].x,
  414. n = t.points[1].y - t.points[0].y,
  415. g = Math.abs(i / 1),
  416. A = Math.abs(n / 1),
  417. r = g > A ? g : A,
  418. o = { x: i / r, y: n / r };
  419. return e.calcVector(o);
  420. }),
  421. (e.lineVector = function(t, i) {
  422. void 0 === i && (i = 0.001);
  423. var n = e.strictLineVector(t);
  424. return Math.abs(n.x) < i && (n.x = 0), Math.abs(n.y) < i && (n.y = 0), n;
  425. }),
  426. (e.verticalLine = function(t) {
  427. var i = e.lineVector(t),
  428. n = i.x,
  429. g = i.y;
  430. if (n - g != 0) {
  431. var A = { x: g / (g - n), y: n / (n - g) };
  432. return e.calcVector(A);
  433. }
  434. return { x: n, y: g };
  435. }),
  436. (e.lineDis = function(t) {
  437. return Number(Math.sqrt(Math.pow(t.points[0].x - t.points[1].x, 2) + Math.pow(t.points[0].y - t.points[1].y, 2)).toFixed(4));
  438. }),
  439. (e.lineCenter = function(t) {
  440. return { x: (t.points[0].x + t.points[1].x) / 2, y: (t.points[0].y + t.points[1].y) / 2 };
  441. }),
  442. (e.segmentsIntr = function(t, i) {
  443. var n = t.points,
  444. g = n[0],
  445. A = n[1],
  446. r = i.points,
  447. o = r[0],
  448. C = r[1],
  449. I = (A.y - g.y) * (C.x - o.x) - (g.x - A.x) * (o.y - C.y);
  450. if (0 == I) return !1;
  451. var s = ((A.x - g.x) * (C.x - o.x) * (o.y - g.y) + (A.y - g.y) * (C.x - o.x) * g.x - (C.y - o.y) * (A.x - g.x) * o.x) / I,
  452. a = -((A.y - g.y) * (C.y - o.y) * (o.x - g.x) + (A.x - g.x) * (C.y - o.y) * g.y - (C.x - o.x) * (A.y - g.y) * o.y) / I;
  453. return !(!e.isContainPoint(t, { x: s, y: a }) || !e.isContainPoint(i, { x: s, y: a })) && { x: s, y: a };
  454. }),
  455. (e.segmentsIntrFine = function(t, e) {
  456. var i = t.points,
  457. n = i[0],
  458. g = i[1],
  459. A = e.points,
  460. r = A[0],
  461. o = A[1],
  462. C = (g.y - n.y) * (o.x - r.x) - (n.x - g.x) * (r.y - o.y);
  463. if (0 == C) return !1;
  464. var I = ((g.x - n.x) * (o.x - r.x) * (r.y - n.y) + (g.y - n.y) * (o.x - r.x) * n.x - (o.y - r.y) * (g.x - n.x) * r.x) / C,
  465. s = -((g.y - n.y) * (o.y - r.y) * (r.x - n.x) + (g.x - n.x) * (o.y - r.y) * n.y - (o.x - r.x) * (g.y - n.y) * r.y) / C;
  466. return !isNaN(I) && !isNaN(s) && { x: I, y: s };
  467. }),
  468. (e.pointLineDis = function(t, e) {
  469. var i = 0,
  470. n = t.points[1].x - t.points[0].x,
  471. g = e.x - t.points[0].x,
  472. A = e.x - t.points[1].x,
  473. r = t.points[1].y - t.points[0].y,
  474. o = e.y - t.points[0].y,
  475. C = e.y - t.points[1].y,
  476. I = n * g + r * o,
  477. s = n * n + r * r;
  478. if (I <= 0) i = Math.sqrt(g * g + o * o);
  479. else if (I >= s) i = Math.sqrt(A * A + C * C);
  480. else {
  481. var a = I / s,
  482. l = t.points[0].x + n * a,
  483. u = t.points[0].y + r * a;
  484. i = Math.sqrt((e.x - l) * (e.x - l) + (u - e.y) * (u - e.y));
  485. }
  486. return i;
  487. }),
  488. (e.isContainPoint = function(t, i) {
  489. return !Math.abs(e.pointLineDis(t, i)) || Math.abs(e.pointLineDis(t, i)) < 0.01;
  490. }),
  491. (e.getVerLinePoint = function(t, i) {
  492. return e.getVectorPosPoint(e.verticalLine(t), t.points[0], i);
  493. }),
  494. (e.getVectorPosPoint = function(t, i, n) {
  495. var g = { points: [i, { x: i.x + 1e4 * t.x, y: i.y + 1e4 * t.y }] };
  496. return e.getLinePoint(g, n);
  497. }),
  498. (e.getLinePoint = function(t, i) {
  499. var n,
  500. A = i;
  501. if (g.type.isNumber(A.x) && g.type.isNumber(A.y)) {
  502. var r = e.lineVector(t),
  503. o = r.x,
  504. C = r.y,
  505. I = Math.abs(o) > Math.abs(C) ? "x" : "y";
  506. ((n = {})[I] = A[I]), (A = n);
  507. }
  508. var s = e.lineVector(t, 1e-4),
  509. a = s.y / s.x,
  510. l = t.points[0].y - a * t.points[0].x;
  511. return a > 100 || a < -100
  512. ? { x: t.points[0].x, y: A.y }
  513. : g.type.isNumber(A.x)
  514. ? { x: A.x, y: a * A.x + l }
  515. : g.type.isNumber(A.y)
  516. ? { x: (A.y - l) / a, y: A.y }
  517. : { x: 0, y: 0 };
  518. }),
  519. (e.getFlexLinePoint = function(t, i) {
  520. var n = e.strictLineVector(t),
  521. g = n.x,
  522. A = n.y,
  523. r = (g = Math.abs(g)) > (A = Math.abs(A)) ? { x: i.x } : { y: i.y };
  524. return e.getLinePoint(t, r);
  525. }),
  526. (e.getDisVectorPoints = function(t, e, i) {
  527. var n = Math.atan(t.y / t.x);
  528. return [
  529. { x: e.x + i * Math.cos(n), y: e.y + i * Math.sin(n) },
  530. { x: e.x + -i * Math.cos(n), y: e.y + -i * Math.sin(n) },
  531. ];
  532. }),
  533. (e.getDisPointLinePoints = function(t, i, n) {
  534. return e.getDisVectorPoints(e.lineVector(t), i, n);
  535. }),
  536. (e.getLineDisPoint = function(t, i) {
  537. var n = e.getDisPointLinePoints(t, t.points[0], i),
  538. g = n[0],
  539. A = n[1],
  540. r = e.lineVector(t),
  541. o = e.lineVector({ points: [t.points[0], g] });
  542. return r.x * o.x >= 0 && r.y * o.y >= 0 ? g : A;
  543. }),
  544. (e.getLineDisSelectPoint = function(t, i, n) {
  545. var g = e.getDisPointLinePoints(t, i, n),
  546. A = g[0],
  547. r = g[1];
  548. return e.pointLineDis(t, A) < e.pointLineDis(t, r) ? A : r;
  549. }),
  550. (e.getDisVerticalLinePoints = function(t, i, n) {
  551. return e.getDisVectorPoints(e.verticalLine(t), i, n);
  552. }),
  553. (e.getLineVerticalChangePoint = function(t, i, n) {
  554. var g = e.segmentsIntrFine(t, i);
  555. return g ? e.getLineVerticalPoint(t, g, e.lineVector(i), n) : g;
  556. }),
  557. (e.getLineVerticalPoint = function(t, i, n, g) {
  558. var A = e.getDisVerticalLinePoints(t, i, g),
  559. r = A[0],
  560. o = A[1],
  561. C = e.lineVector({ points: [i, r] }),
  562. I = e.lineVector({ points: [i, o] }),
  563. s = n.x * C.x,
  564. a = n.y * C.y,
  565. l = n.x * I.x,
  566. u = n.x * I.y;
  567. return s >= 0 && a >= 0 ? r : (l >= 0 && u >= 0) || (s < a ? s : a) < (l < u ? l : u) ? o : r;
  568. }),
  569. (e.getPointCoordinate = function(t) {
  570. return t.x >= 0 && t.y >= 0 ? 1 : t.x >= 0 && t.y <= 0 ? 2 : t.x <= 0 && t.y <= 0 ? 3 : t.x <= 0 && t.y >= 0 ? 4 : 0;
  571. }),
  572. (e.getLineCoordinate = function(t) {
  573. var e = t.points[1].x - t.points[0].x,
  574. i = t.points[1].y - t.points[0].y;
  575. return e >= 0 && i >= 0 ? 1 : e >= 0 && i <= 0 ? 4 : e <= 0 && i <= 0 ? 3 : 2;
  576. }),
  577. (e.getPointCoordDistance = function(t, i) {
  578. return e.getPointCoordinate(t) - e.getPointCoordinate(i);
  579. }),
  580. (e.faceArea = function(t) {
  581. var e = t.length;
  582. if (e < 3) return 0;
  583. for (var i = t[0].y * (t[e - 1].x - t[1].x), n = 1; n < e; ++n) i += t[n].y * (t[n - 1].x - t[(n + 1) % e].x);
  584. return Math.abs(i / 2);
  585. }),
  586. (e.pointInside = function(t, e) {
  587. for (var i = !1, n = e.x, g = e.y, A = 0, r = t.length - 1; A < t.length; r = A++) {
  588. var o = t[A].x,
  589. C = t[A].y,
  590. I = t[r].x,
  591. s = t[r].y;
  592. C > g != s > g && n <= ((I - o) * (g - C)) / (s - C) + o && (i = !i);
  593. }
  594. return i;
  595. }),
  596. (e.isPointInPoly = function(t, e) {
  597. for (var i = e.x, n = e.y, g = !1, A = 0, r = t.length - 1; A < t.length; r = A++) {
  598. var o = t[A],
  599. C = t[r],
  600. I = o.x,
  601. s = o.y,
  602. a = C.x,
  603. l = C.y;
  604. s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g);
  605. }
  606. return g;
  607. }),
  608. (e.pointInsideBorder = function(t, i) {
  609. for (var n = 0; n < t.length; n++) {
  610. var g = { points: [t[n], t[n === t.length - 1 ? 0 : n + 1]] };
  611. if (e.isContainPoint(g, i)) return !0;
  612. }
  613. return !1;
  614. }),
  615. (e.isClockWise = function(t, e) {
  616. var i, n, g;
  617. void 0 === e && (e = !0);
  618. var A,
  619. r = 0,
  620. o = e ? -1 : 1;
  621. if (null == t || t.length < 3) return !1;
  622. var C = t.length;
  623. for (i = 0; i < C; i++)
  624. (g = (i + 2) % C),
  625. (A = (t[(n = (i + 1) % C)].x - t[i].x) * (t[g].y * o - t[n].y * o)),
  626. (A -= (t[n].y * o - t[i].y * o) * (t[g].x - t[n].x)) < 0 ? r-- : A > 0 && r++;
  627. return r > 0;
  628. }),
  629. (e.isLineIntersect = function(t, e) {
  630. var i = t.points[1].y - t.points[0].y,
  631. n = t.points[0].x - t.points[1].x,
  632. g = i * t.points[0].x + n * t.points[0].y,
  633. A = e.points[1].y - e.points[0].y,
  634. r = e.points[0].x - e.points[1].x,
  635. o = A * e.points[0].x + r * e.points[0].y,
  636. C = i * r - A * n;
  637. if (0 == C) return !1;
  638. var I = (r * g - n * o) / C,
  639. s = (i * o - A * g) / C;
  640. if (
  641. (a(t.points[0].x, I, t.points[1].x) || a(t.points[0].y, s, t.points[1].y)) &&
  642. (a(e.points[0].x, I, e.points[1].x) || a(e.points[0].y, s, e.points[1].y))
  643. )
  644. return !0;
  645. function a(t, e, i) {
  646. return !(Math.abs(t - e) < 1e-6 || Math.abs(e - i) < 1e-6) && ((t <= e && e <= i) || (i <= e && e <= t));
  647. }
  648. return !1;
  649. }),
  650. (e.isFaceIntersect = function(t, i) {
  651. for (var n = 0; n < t.length; n++)
  652. for (var g = n + 1 === t.length ? 0 : n + 1, A = { points: [t[n], t[g]] }, r = 0; r < i.length; r++) {
  653. g = r + 1 === i.length ? 0 : r + 1;
  654. var o = { points: [i[r], i[g]] },
  655. C = e.isLineIntersect(o, A),
  656. I = e.isLineIntersect(A, o);
  657. if (C && I) return !0;
  658. }
  659. return !1;
  660. }),
  661. (e.isFaceContain = function(t, i) {
  662. return (
  663. i.every(function(i) {
  664. return e.pointInside(t, i);
  665. }) && !e.isFaceIntersect(t, i)
  666. );
  667. }),
  668. (e.isFaceChild = function(t, i) {
  669. return (
  670. i.every(function(i) {
  671. return e.pointInside(t, i) || e.pointInsideBorder(t, i);
  672. }) && !e.isFaceIntersect(t, i)
  673. );
  674. }),
  675. (e.faceCenter = function(t) {
  676. for (var e = 0, i = 0, n = 0; n < t.length; n++) (e += t[n].x), (i += t[n].y);
  677. return { x: (e /= t.length), y: (i /= t.length) };
  678. }),
  679. (e.faceRotate = function(t, i) {
  680. var n = window.THREE,
  681. g = e.faceCenter(t),
  682. A = new n.Matrix3().translate(-g.x, -g.y),
  683. r = new n.Matrix3().rotate(n.Math.degToRad(i)),
  684. o = new n.Matrix3().translate(g.x, g.y),
  685. C = new n.Matrix3();
  686. return (
  687. C.premultiply(A),
  688. C.premultiply(r),
  689. C.premultiply(o),
  690. t.map(function(t) {
  691. var e = new n.Vector2(t.x, t.y);
  692. return e.applyMatrix3(C), { x: e.x, y: e.y };
  693. })
  694. );
  695. }),
  696. (e.lineStretch = function(t, i) {
  697. t = n(n({}, t), {
  698. points: t.points.map(function(t) {
  699. return { x: t.x, y: t.y };
  700. }),
  701. });
  702. var g = e.lineCenter(t),
  703. A = e.getDisPointLinePoints(t, g, i / 2),
  704. r = A[0],
  705. o = A[1];
  706. return (
  707. e.lineDis({ points: [t.points[0], r] }) > e.lineDis({ points: [t.points[0], o] })
  708. ? ((t.points[0].x = o.x), (t.points[0].y = o.y), (t.points[1].x = r.x), (t.points[1].y = r.y))
  709. : ((t.points[0].x = r.x), (t.points[0].y = r.y), (t.points[1].x = o.x), (t.points[1].y = o.y)),
  710. t
  711. );
  712. }),
  713. (e.lineDeg = function(t) {
  714. return (180 * Math.atan2(t.points[1].y - t.points[0].y, t.points[1].x - t.points[0].x)) / Math.PI;
  715. }),
  716. (e.getAngle = function(t, e) {
  717. var i, n, g, A;
  718. ~(A = t.points.indexOf(e.points[0]))
  719. ? ((i = t.points[A]), (n = e.points[1]), (g = t.points[Number(!A)]))
  720. : ~(A = t.points.indexOf(e.points[1])) && ((i = t.points[A]), (n = e.points[0]), (g = t.points[Number(!A)]));
  721. var r,
  722. o,
  723. C = 0,
  724. I = n.x - i.x,
  725. s = n.y - i.y,
  726. a = g.x - i.x,
  727. l = g.y - i.y;
  728. return (
  729. (C = I * a + s * l),
  730. (o = (I * I + s * s) * (a * a + l * l)),
  731. (C /= Math.sqrt(o)) >= 1 ? 0 : C <= -1 ? 180 : (180 * (r = Math.acos(C))) / Math.PI < 180 ? (180 * r) / Math.PI : 360 - (180 * r) / Math.PI
  732. );
  733. }),
  734. (e.rotatePoint = function(t, e, i) {
  735. var n = t.x - i.x,
  736. g = t.y - i.y,
  737. A = Math.cos(e) * n - Math.sin(e) * g,
  738. r = Math.sin(e) * n + Math.cos(e) * g;
  739. return { x: A + i.x, y: r + i.y };
  740. }),
  741. (e.rotateData = function(t, i, n) {
  742. try {
  743. var g = ["furnColumn", "furnFlue", "column"];
  744. return (
  745. (t = JSON.parse(JSON.stringify(t))).vertex.forEach(function(t) {
  746. var g = e.rotatePoint(t, i, n);
  747. (t.x = g.x), (t.y = g.y);
  748. }),
  749. t.tagging.forEach(function(t) {
  750. var g = e.rotatePoint({ x: t.pos[0], y: t.pos[1] }, i, n);
  751. (t.pos[0] = g.x), (t.pos[1] = g.y);
  752. }),
  753. ["window", "door", "slideDoor", "groundCase", "bayCase", "doubleDoor"].concat(g).forEach(function(g) {
  754. t[g].forEach(function(t) {
  755. var g = e.rotatePoint({ x: t.pos[0], y: t.pos[1] }, i, n),
  756. A = e.rotatePoint({ x: t.pos[2], y: t.pos[3] }, i, n);
  757. (t.pos[0] = g.x), (t.pos[1] = g.y), (t.pos[2] = A.x), (t.pos[3] = A.y);
  758. });
  759. }),
  760. g.forEach(function(g) {
  761. t[g].forEach(function(t) {
  762. var g = e.rotatePoint({ x: t.pos[4], y: t.pos[5] }, i, n),
  763. A = e.rotatePoint({ x: t.pos[6], y: t.pos[7] }, i, n);
  764. (t.pos[4] = g.x), (t.pos[5] = g.y), (t.pos[6] = A.x), (t.pos[7] = A.y);
  765. });
  766. }),
  767. t
  768. );
  769. } catch (e) {
  770. return t;
  771. }
  772. });
  773. },
  774. function(t, e, i) {
  775. "use strict";
  776. var n, g;
  777. Object.defineProperty(e, "__esModule", { value: !0 });
  778. var A = i(9);
  779. (e.SVGURI = "http://www.w3.org/2000/svg"),
  780. (e.SVGPATH = "http://www.w3.org/1999/xlink"),
  781. (e.STATE_CHILD = "__state"),
  782. (e.POINT = "point"),
  783. (e.DOOR = "door"),
  784. (e.DOUBLEDOOR = "double_door"),
  785. (e.COLUMN = "column"),
  786. (e.CASEMENT = "casement"),
  787. (e.SLIDEDOOR = "slideDoor"),
  788. (e.TAGGING = "tagging"),
  789. (e.GROUNDCASE = "groundCase"),
  790. (e.BAYCASE = "bayCase"),
  791. (e.FURNCOLUMN = "furnColumn"),
  792. (e.FURNFLUE = "furnFlue"),
  793. (e.LINE = "line"),
  794. (e.SEFTLINE = "seftline"),
  795. (e.ARCH =
  796. (((n = {})[e.POINT] = A.i18n.t("modules.model.point")),
  797. (n[e.DOOR] = A.i18n.t("modules.model.door")),
  798. (n[e.DOUBLEDOOR] = A.i18n.t("modules.model.double_door")),
  799. (n[e.COLUMN] = A.i18n.t("modules.model.column")),
  800. (n[e.CASEMENT] = A.i18n.t("modules.model.casement")),
  801. (n[e.SLIDEDOOR] = A.i18n.t("modules.model.slideDoor")),
  802. (n[e.TAGGING] = A.i18n.t("modules.model.tagging")),
  803. (n[e.GROUNDCASE] = A.i18n.t("modules.model.groundCase")),
  804. (n[e.BAYCASE] = A.i18n.t("modules.model.bayCase")),
  805. (n[e.FURNCOLUMN] = A.i18n.t("modules.model.furnColumn")),
  806. (n[e.FURNFLUE] = A.i18n.t("modules.model.furnFlue")),
  807. (n[e.LINE] = A.i18n.t("modules.model.line")),
  808. (n[e.SEFTLINE] = A.i18n.t("modules.model.line")),
  809. n)),
  810. (e.DEFAULT =
  811. (((g = {})[e.DOOR] = { width: 0.8, height: 2 }),
  812. (g[e.DOUBLEDOOR] = { width: 1.6, height: 2 }),
  813. (g[e.SLIDEDOOR] = { width: 1.5, height: 2 }),
  814. (g[e.CASEMENT] = { width: 0.8, height: 1.2 }),
  815. (g[e.BAYCASE] = { width: 1.5, height: 1.2 }),
  816. (g[e.GROUNDCASE] = { width: 1.5, height: 2 }),
  817. (g[e.COLUMN] = { width: 0.65, tick: 0.65 }),
  818. (g[e.FURNCOLUMN] = { width: 0.65, tick: 0.65 }),
  819. (g[e.FURNFLUE] = { width: 0.65, tick: 0.65 }),
  820. (g[e.LINE] = { width: 0.5 }),
  821. g));
  822. },
  823. function(t, e, i) {
  824. "use strict";
  825. var n =
  826. (this && this.__assign) ||
  827. function() {
  828. return (n =
  829. Object.assign ||
  830. function(t) {
  831. for (var e, i = 1, n = arguments.length; i < n; i++) for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  832. return t;
  833. }).apply(this, arguments);
  834. };
  835. Object.defineProperty(e, "__esModule", { value: !0 });
  836. var g = i(29),
  837. A = i(1),
  838. r = i(3),
  839. o = 0,
  840. C = { enter: "mouseenter", leave: "mouseleave", click: "click", drag: "mousedown" },
  841. I = (function() {
  842. function t(e) {
  843. var i = this;
  844. (this.zIndex = 0),
  845. (this.render = e.renderer),
  846. (this.id = ++o),
  847. (this.__state = new g.State(n(n({}, e), { select: !1 }), {
  848. afferent: this,
  849. notice: function() {
  850. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  851. i.notice && i.notice.apply(i, t), i.update && i.update();
  852. var n = Object.keys(t[0].args);
  853. if ((~n.indexOf("x") || ~n.indexOf("y")) && i.wallPos)
  854. try {
  855. i.wallPos();
  856. } catch (t) {}
  857. ~n.indexOf("select") && i.wallSelect && i.wallSelect();
  858. },
  859. childAttr: A.STATE_CHILD,
  860. intercept:
  861. this.intercept &&
  862. function() {
  863. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  864. return i.intercept.apply(i, t);
  865. },
  866. })),
  867. this.__state.bindDataChange(),
  868. g.getter(this, this.__state),
  869. g.setter(this, this.__state),
  870. Object.defineProperties(this, {
  871. multiple: {
  872. get: function() {
  873. return i.renderer.props.multiple / i.renderer.props.scale;
  874. },
  875. },
  876. }),
  877. t.examples.get(this.renderer).push(this),
  878. this.grentNode &&
  879. ((this.real = this.grentNode()),
  880. this.setHoverStyle &&
  881. this.setUnHoverStyle &&
  882. ((this.enter = function() {
  883. (i.real.style.cursor = "pointer"), i.setHoverStyle();
  884. }),
  885. (this.leave = function() {
  886. i.select || (i.setUnHoverStyle(), (i.real.style.cursor = "inherit"));
  887. }),
  888. (this.wallSelect = function() {
  889. i.select ? ((i.real.style.cursor = "pointer"), i.setHoverStyle()) : ((i.real.style.cursor = "inherit"), i.setUnHoverStyle());
  890. })),
  891. this.listen()),
  892. (this.real.id = "ele" + o.toString()),
  893. this.nextTick(function() {
  894. try {
  895. i.update();
  896. } catch (t) {}
  897. });
  898. }
  899. return (
  900. (t.prototype.intercept = function(t, e, i, n) {
  901. return e;
  902. }),
  903. (t.prototype.changeSelect = function(e) {
  904. var i = this;
  905. this.select !== e &&
  906. ((this.select = e),
  907. this.wallSelect && this.wallSelect(),
  908. this.update && this.update(),
  909. e &&
  910. t.examples.get(this.renderer).forEach(function(t) {
  911. t !== i && t.select && t.changeSelect(!1);
  912. }));
  913. }),
  914. (t.prototype.click = function(t) {
  915. var e = this;
  916. this.changeSelect(!0),
  917. this.renderer.processing.attrs.forEach(function(t) {
  918. var i = e.renderer.processing[t].find(function(t) {
  919. return t.ele === e;
  920. });
  921. i && console.log(i);
  922. }),
  923. t.stopPropagation();
  924. }),
  925. (t.prototype.nextTick = function(t) {
  926. this.__state.nextTick(t);
  927. }),
  928. (t.prototype.nextChange = function(t) {
  929. this.__state.nextChange(t);
  930. }),
  931. (t.prototype.listen = function() {
  932. (this.__draging = !1), this.bindEvent("enter"), this.bindEvent("leave"), this.bindEvent("click"), this.bindEvent("drag");
  933. }),
  934. (t.prototype.unEvent = function() {
  935. this.unbindEvent("enter"), this.unbindEvent("leave"), this.unbindEvent("click"), this.unbindEvent("drag");
  936. }),
  937. (t.prototype.destroy = function() {
  938. (this.__destroy = !0), this.unEvent();
  939. var e = t.examples.get(this.renderer);
  940. ~e.indexOf(this) && (e.splice(e.indexOf(this), 1), this.renderer.remove(this));
  941. }),
  942. (t.prototype.bindDrag = function(t) {
  943. var e = this,
  944. i = { x: t.offsetX, y: t.offsetY };
  945. this.dragStart && this.dragStart(t, i);
  946. var n = r.throttle(function(t) {
  947. var n = { x: t.offsetX, y: t.offsetY };
  948. (e.__draging = !0), e.drag({ x: n.x - i.x, y: n.y - i.y }, n, i), t.preventDefault();
  949. }, 10),
  950. g = function(t) {
  951. document.documentElement.removeEventListener("mousemove", n, !1),
  952. document.documentElement.removeEventListener("mouseup", g, !1),
  953. (e.__draging = !1),
  954. e.dragEnd && e.dragEnd({ x: t.offsetX, y: t.offsetY }),
  955. e.__leave && e.leave();
  956. };
  957. document.documentElement.addEventListener("mousemove", n, !1), document.documentElement.addEventListener("mouseup", g, !1), t.preventDefault();
  958. }),
  959. (t.prototype.bindEvent = function(e) {
  960. var i = this;
  961. if (this[e]) {
  962. var n = "__bind_" + e;
  963. this[n] && this.unbindEvent(e);
  964. var g =
  965. "drag" === e
  966. ? this.bindDrag.bind(this)
  967. : function(n) {
  968. var g = t.examples.get(i.renderer);
  969. ("enter" === e &&
  970. g.some(function(t) {
  971. return t.__draging;
  972. })) ||
  973. (!i.__draging || ("enter" !== e && "leave" !== e) ? i[e](n) : (i.__leave = "leave" === e));
  974. };
  975. this.real.addEventListener(C[e], g, !1), (this[n] = g);
  976. }
  977. }),
  978. (t.prototype.unbindEvent = function(t) {
  979. this["__bind_" + t] && this.real.removeEventListener(C[t], this["__bind_" + t], !1);
  980. }),
  981. (t.examples = new Map()),
  982. (t.multiples = new Map()),
  983. (t.update = function(e, i) {
  984. void 0 === i && (i = []);
  985. var n = t.examples.get(e).concat(i);
  986. (n = Array.from(new Set(n))).forEach(function(t) {
  987. t.update && t.update();
  988. });
  989. }),
  990. (t.init = function(e) {
  991. t.examples.set(e, []);
  992. }),
  993. t
  994. );
  995. })();
  996. e.CADElement = I;
  997. },
  998. function(t, e, i) {
  999. "use strict";
  1000. Object.defineProperty(e, "__esModule", { value: !0 }),
  1001. (e.getRange = function(t) {
  1002. var e = Math.abs(Math.min.apply(Math, t)),
  1003. i = Math.abs(Math.max.apply(Math, t));
  1004. return Math.ceil(e + i);
  1005. }),
  1006. (e.getMapMultipleWH = function(t, e, i, n) {
  1007. void 0 === n && (n = 10);
  1008. var g = Math.abs(
  1009. Math.min.apply(
  1010. Math,
  1011. i.vertex.map(function(t) {
  1012. return t.x;
  1013. })
  1014. )
  1015. ),
  1016. A = Math.abs(
  1017. Math.max.apply(
  1018. Math,
  1019. i.vertex.map(function(t) {
  1020. return t.x;
  1021. })
  1022. )
  1023. ),
  1024. r = Math.abs(
  1025. Math.min.apply(
  1026. Math,
  1027. i.vertex.map(function(t) {
  1028. return t.y;
  1029. })
  1030. )
  1031. ),
  1032. o = Math.abs(
  1033. Math.max.apply(
  1034. Math,
  1035. i.vertex.map(function(t) {
  1036. return t.y;
  1037. })
  1038. )
  1039. ),
  1040. C = Math.ceil(g + A) / t,
  1041. I = Math.ceil(r + o) / e,
  1042. s = C > I ? C : I,
  1043. a = t * s,
  1044. l = e * s;
  1045. return { width: a, height: l, multiple: s, left: (g / (g + A)) * a, top: (r / (r + o)) * l, scale: 1 - (2 * n * s) / a };
  1046. }),
  1047. (e.debounce = function(t, e, i, n) {
  1048. void 0 === e && (e = 16);
  1049. var g = null,
  1050. A = [],
  1051. r = 0;
  1052. return function() {
  1053. for (var o = [], C = 0; C < arguments.length; C++) o[C] = arguments[C];
  1054. r || (n && n()),
  1055. r++,
  1056. A.push(o),
  1057. clearTimeout(g),
  1058. (g = setTimeout(function() {
  1059. i ? (t(i(A)), (A = [])) : t.apply(void 0, o), (r = 0);
  1060. }, e));
  1061. };
  1062. }),
  1063. (e.throttle = function(t, e) {
  1064. var i = null;
  1065. return function() {
  1066. for (var n = [], g = 0; g < arguments.length; g++) n[g] = arguments[g];
  1067. var A = +new Date();
  1068. (A - i > e || !i) && (t.apply(void 0, n), (i = A));
  1069. };
  1070. }),
  1071. (e.getType = function(t) {
  1072. return Object.prototype.toString.call(t).slice(8, -1);
  1073. }),
  1074. (e.type = {});
  1075. ["String", "Number", "Boolean", "Undefined", "Null", "Object", "Function", "Array", "Date", "RegExp"].forEach(function(t) {
  1076. return (e.type["is" + t] = function(i) {
  1077. return e.getType(i) === t;
  1078. });
  1079. }),
  1080. (e.convertBase64UrlToBlob = function(t) {
  1081. for (var e = t.split(","), i = e[0].match(/:(.*?);/)[1], n = atob(e[1]), g = n.length, A = new Uint8Array(g); g--; ) A[g] = n.charCodeAt(g);
  1082. return new Blob([A], { type: i });
  1083. }),
  1084. (e.strEascpeLen = function(t) {
  1085. for (var e = t, i = e.length, n = 0; n < i; n++) {
  1086. ~escape(e.substr(n, 1)).indexOf("%u") && i++;
  1087. }
  1088. return i;
  1089. });
  1090. },
  1091. function(t, e, i) {
  1092. "use strict";
  1093. var n,
  1094. g =
  1095. (this && this.__extends) ||
  1096. ((n = function(t, e) {
  1097. return (n =
  1098. Object.setPrototypeOf ||
  1099. ({ __proto__: [] } instanceof Array &&
  1100. function(t, e) {
  1101. t.__proto__ = e;
  1102. }) ||
  1103. function(t, e) {
  1104. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  1105. })(t, e);
  1106. }),
  1107. function(t, e) {
  1108. function i() {
  1109. this.constructor = t;
  1110. }
  1111. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  1112. }),
  1113. A =
  1114. (this && this.__assign) ||
  1115. function() {
  1116. return (A =
  1117. Object.assign ||
  1118. function(t) {
  1119. for (var e, i = 1, n = arguments.length; i < n; i++)
  1120. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1121. return t;
  1122. }).apply(this, arguments);
  1123. },
  1124. r =
  1125. (this && this.__rest) ||
  1126. function(t, e) {
  1127. var i = {};
  1128. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  1129. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  1130. var g = 0;
  1131. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1132. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  1133. }
  1134. return i;
  1135. },
  1136. o =
  1137. (this && this.__spreadArrays) ||
  1138. function() {
  1139. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  1140. var n = Array(t),
  1141. g = 0;
  1142. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  1143. return n;
  1144. },
  1145. C =
  1146. (this && this.__importDefault) ||
  1147. function(t) {
  1148. return t && t.__esModule ? t : { default: t };
  1149. };
  1150. Object.defineProperty(e, "__esModule", { value: !0 });
  1151. var I = i(2),
  1152. s = C(i(32)),
  1153. a = i(0),
  1154. l = i(3),
  1155. u = (function(t) {
  1156. function e(i) {
  1157. var n = i.minWidth,
  1158. g = void 0 === n ? 0.1 : n,
  1159. o = i.deleteWidth,
  1160. C = void 0 === o ? 0.05 : o,
  1161. I = i.show,
  1162. a = void 0 === I || I,
  1163. l = r(i, ["minWidth", "deleteWidth", "show"]),
  1164. u = t.call(this, A(A({}, l), { show: a })) || this;
  1165. return (
  1166. (u.zIndex = 1),
  1167. (u.linePoints = u.linePoints.map(function(t) {
  1168. var e = new s.default(A(A({}, t), { renderer: u.renderer }), u.attachment);
  1169. return (
  1170. (e.click = function() {
  1171. return u.changeSelect(!0);
  1172. }),
  1173. e
  1174. );
  1175. })),
  1176. (u.minWidth = g),
  1177. (u.deleteWidth = C),
  1178. u.real.setAttribute("class", "variable"),
  1179. e.attaArch.get(u.attachment) ? e.attaArch.get(u.attachment).push(u) : e.attaArch.set(u.attachment, [u]),
  1180. u.attachment.update(),
  1181. u
  1182. );
  1183. }
  1184. return (
  1185. g(e, t),
  1186. (e.prototype.setAttachment = function(t) {
  1187. if ((void 0 === t && (t = this.attachment), console.error("set new attach"), this.attachment !== t)) {
  1188. var i = e.attaArch.get(this.attachment),
  1189. n = e.attaArch.get(t) || e.attaArch.set(t, []).get(t);
  1190. i.splice(i.indexOf(this), 1),
  1191. n.push(this),
  1192. this.linePoints.forEach(function(e) {
  1193. e.line = t;
  1194. }),
  1195. (this.attachment = t);
  1196. }
  1197. }),
  1198. (e.prototype.checkPointBorder = function(t, e) {
  1199. return (
  1200. void 0 === e && (e = this.attachment), a.lineDis({ points: [e.points[0], t] }) < 0.08 || a.lineDis({ points: [e.points[1], t] }) < 0.08 || void 0
  1201. );
  1202. }),
  1203. (e.prototype.checkPoint = function(t, e) {
  1204. return void 0 === e && (e = this.attachment), !a.isContainPoint(e, t);
  1205. }),
  1206. (e.prototype.checkWidth = function(t) {
  1207. return void 0 === t && (t = this.linePoints), a.lineDis({ points: t }) < this.minWidth;
  1208. }),
  1209. (e.prototype.checkPointOverlapAttaArch = function(t) {
  1210. return (
  1211. void 0 === t && (t = e.attaArch.get(this.attachment)),
  1212. !(t.length <= 1) &&
  1213. t.some(function(e) {
  1214. return t.some(function(t) {
  1215. return (
  1216. e !== t && (a.isContainPoint({ points: t.linePoints }, e.linePoints[0]) || a.isContainPoint({ points: t.linePoints }, e.linePoints[1]))
  1217. );
  1218. });
  1219. })
  1220. );
  1221. }),
  1222. (e.prototype.checkLineAllPoint = function(t, i) {
  1223. return (
  1224. void 0 === t && (t = e.attaArch.get(this.attachment)),
  1225. void 0 === i && (i = this.attachment),
  1226. 0 !== t.length &&
  1227. t.some(function(t) {
  1228. return !a.isContainPoint(i, t.linePoints[0]) || !a.isContainPoint(i, t.linePoints[1]);
  1229. })
  1230. );
  1231. }),
  1232. (e.prototype.getLineNewAll = function(t, i) {
  1233. void 0 === t && (t = this.linePoints), void 0 === i && (i = this);
  1234. var n = o(e.attaArch.get(this.attachment));
  1235. return n.splice(n.indexOf(i), 1, { linePoints: t }), n;
  1236. }),
  1237. (e.prototype.qualified = function(t, e) {
  1238. return (
  1239. void 0 === t && (t = this.linePoints),
  1240. void 0 === e && (e = this.attachment),
  1241. !(this.checkPointBorder(t[0], e) || this.checkPointBorder(t[0], e) || this.checkPoint(t[0], e) || this.checkPoint(t[1], e) || this.checkWidth(t))
  1242. );
  1243. }),
  1244. (e.prototype.lineChange = function(t, e) {
  1245. var i = this;
  1246. void 0 === t && (t = this.attachment.points[0]), void 0 === e && (e = t);
  1247. var n = e.x,
  1248. g = e.y,
  1249. r = this.attachment.points.findIndex(function(e) {
  1250. return e === t;
  1251. }),
  1252. o = { points: 0 === r ? [{ x: n, y: g }, this.attachment.points[1]] : [this.attachment.points[0], { x: n, y: g }] },
  1253. C = a.lineDis({ points: [o.points[r], this.linePoints[0]] }),
  1254. I = a.getDisPointLinePoints(o, o.points[r], C),
  1255. l = I[0],
  1256. u = I[1],
  1257. c = a.lineDis({ points: [l, this.linePoints[0]] }) > a.lineDis({ points: [u, this.linePoints[0]] }) ? u : l,
  1258. h = a.lineDis({ points: [o.points[r], this.linePoints[1]] }),
  1259. p = a.getDisPointLinePoints(o, o.points[r], h),
  1260. d = p[0],
  1261. f = p[1],
  1262. y = a.lineDis({ points: [d, this.linePoints[1]] }) > a.lineDis({ points: [f, this.linePoints[1]] }) ? f : d,
  1263. v = (a.lineDis({ points: [this.linePoints[0], c] }) < a.lineDis({ points: [this.linePoints[0], y] }) ? [c, y] : [y, c]).map(function(t) {
  1264. var e = s.default.prototype.getLineInsertPoint.call(A(A({}, i.linePoints[0]), { line: o }), t);
  1265. return a.pointLineDis(i.attachment, e) > 0.1
  1266. ? a.lineDis({ points: [i.attachment.points[0], e] }) < a.lineDis({ points: [i.attachment.points[1], e] })
  1267. ? { x: i.attachment.points[0].x, y: i.attachment.points[0].y }
  1268. : { x: i.attachment.points[1].x, y: i.attachment.points[1].y }
  1269. : e;
  1270. });
  1271. return { line: o, points: v };
  1272. }),
  1273. (e.prototype.pointChange = function(t, e) {
  1274. var i = e.x,
  1275. n = e.y;
  1276. return 0 ===
  1277. this.linePoints.findIndex(function(e) {
  1278. return e === t;
  1279. })
  1280. ? [{ x: i, y: n }, this.linePoints[1]]
  1281. : [this.linePoints[0], { x: i, y: n }];
  1282. }),
  1283. (e.prototype.lineChangeCheck = function(t, e, i) {
  1284. return this.qualified(t, e) && !this.checkLineAllPoint(i, e) && !this.checkPointOverlapAttaArch(i);
  1285. }),
  1286. (e.prototype.intercept = function(t, i, n) {
  1287. var g,
  1288. A = this,
  1289. r = i.x,
  1290. o = i.y;
  1291. if (l.type.isUndefined(r) || l.type.isUndefined(o)) return !0;
  1292. if (
  1293. (g = this.attachment.points.find(function(e) {
  1294. return t.some(function(t) {
  1295. return t === e;
  1296. });
  1297. }))
  1298. ) {
  1299. var C = this.lineChange(g, { x: r, y: o }),
  1300. I = C.points,
  1301. s =
  1302. (C.line,
  1303. t.filter(function(t) {
  1304. return t instanceof e && t.attachment.id === A.attachment.id;
  1305. }));
  1306. return (
  1307. (s = Array.from(new Set(s))),
  1308. this.attachment.nextTick(function() {
  1309. if (!A.attachment || !A.attachment.points) return A.destroy();
  1310. var t = A.lineChange(g, { x: g.x, y: g.y }),
  1311. e = t.points;
  1312. t.line;
  1313. e.forEach(function(t, e) {
  1314. t && ((A.linePoints[e].x = t.x), (A.linePoints[e].y = t.y));
  1315. }),
  1316. A.nextTick(function() {
  1317. A.linePoints && A.linePoints.length && a.lineDis({ points: A.linePoints }) <= A.deleteWidth && A.destroy();
  1318. });
  1319. }),
  1320. this.attachment.update(),
  1321. { __points: I }
  1322. );
  1323. }
  1324. t.findIndex(function(t) {
  1325. return A.linePoints.some(function(e) {
  1326. return e === t;
  1327. });
  1328. });
  1329. }),
  1330. (e.prototype.dragEnd = function() {
  1331. var t = this;
  1332. this.nextTick(function() {
  1333. a.lineDis({ points: t.linePoints }) <= t.deleteWidth && t.destroy();
  1334. });
  1335. }),
  1336. (e.prototype.destroy = function() {
  1337. var i = e.attaArch.get(this.attachment);
  1338. i &&
  1339. (i.splice(i.indexOf(this), 1),
  1340. console.log(this.linePoints[0], this),
  1341. this.linePoints[0] && this.linePoints[0].destroy && this.linePoints[0].destroy(),
  1342. this.linePoints[1] && this.linePoints[1].destroy && this.linePoints[1].destroy(),
  1343. (this.attachment = null),
  1344. (this.linePoints = null),
  1345. (this.update = null),
  1346. t.prototype.destroy.call(this),
  1347. this.attachment.update());
  1348. }),
  1349. (e.attaArch = new Map()),
  1350. e
  1351. );
  1352. })(I.CADElement);
  1353. e.default = u;
  1354. },
  1355. function(t, e, i) {
  1356. "use strict";
  1357. var n,
  1358. g =
  1359. (this && this.__extends) ||
  1360. ((n = function(t, e) {
  1361. return (n =
  1362. Object.setPrototypeOf ||
  1363. ({ __proto__: [] } instanceof Array &&
  1364. function(t, e) {
  1365. t.__proto__ = e;
  1366. }) ||
  1367. function(t, e) {
  1368. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  1369. })(t, e);
  1370. }),
  1371. function(t, e) {
  1372. function i() {
  1373. this.constructor = t;
  1374. }
  1375. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  1376. }),
  1377. A =
  1378. (this && this.__assign) ||
  1379. function() {
  1380. return (A =
  1381. Object.assign ||
  1382. function(t) {
  1383. for (var e, i = 1, n = arguments.length; i < n; i++)
  1384. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1385. return t;
  1386. }).apply(this, arguments);
  1387. },
  1388. r =
  1389. (this && this.__awaiter) ||
  1390. function(t, e, i, n) {
  1391. return new (i || (i = Promise))(function(g, A) {
  1392. function r(t) {
  1393. try {
  1394. C(n.next(t));
  1395. } catch (t) {
  1396. A(t);
  1397. }
  1398. }
  1399. function o(t) {
  1400. try {
  1401. C(n.throw(t));
  1402. } catch (t) {
  1403. A(t);
  1404. }
  1405. }
  1406. function C(t) {
  1407. var e;
  1408. t.done
  1409. ? g(t.value)
  1410. : ((e = t.value),
  1411. e instanceof i
  1412. ? e
  1413. : new i(function(t) {
  1414. t(e);
  1415. })).then(r, o);
  1416. }
  1417. C((n = n.apply(t, e || [])).next());
  1418. });
  1419. },
  1420. o =
  1421. (this && this.__generator) ||
  1422. function(t, e) {
  1423. var i,
  1424. n,
  1425. g,
  1426. A,
  1427. r = {
  1428. label: 0,
  1429. sent: function() {
  1430. if (1 & g[0]) throw g[1];
  1431. return g[1];
  1432. },
  1433. trys: [],
  1434. ops: [],
  1435. };
  1436. return (
  1437. (A = { next: o(0), throw: o(1), return: o(2) }),
  1438. "function" == typeof Symbol &&
  1439. (A[Symbol.iterator] = function() {
  1440. return this;
  1441. }),
  1442. A
  1443. );
  1444. function o(A) {
  1445. return function(o) {
  1446. return (function(A) {
  1447. if (i) throw new TypeError("Generator is already executing.");
  1448. for (; r; )
  1449. try {
  1450. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  1451. return g;
  1452. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  1453. case 0:
  1454. case 1:
  1455. g = A;
  1456. break;
  1457. case 4:
  1458. return r.label++, { value: A[1], done: !1 };
  1459. case 5:
  1460. r.label++, (n = A[1]), (A = [0]);
  1461. continue;
  1462. case 7:
  1463. (A = r.ops.pop()), r.trys.pop();
  1464. continue;
  1465. default:
  1466. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  1467. r = 0;
  1468. continue;
  1469. }
  1470. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  1471. r.label = A[1];
  1472. break;
  1473. }
  1474. if (6 === A[0] && r.label < g[1]) {
  1475. (r.label = g[1]), (g = A);
  1476. break;
  1477. }
  1478. if (g && r.label < g[2]) {
  1479. (r.label = g[2]), r.ops.push(A);
  1480. break;
  1481. }
  1482. g[2] && r.ops.pop(), r.trys.pop();
  1483. continue;
  1484. }
  1485. A = e.call(t, r);
  1486. } catch (t) {
  1487. (A = [6, t]), (n = 0);
  1488. } finally {
  1489. i = g = 0;
  1490. }
  1491. if (5 & A[0]) throw A[1];
  1492. return { value: A[0] ? A[1] : void 0, done: !0 };
  1493. })([A, o]);
  1494. };
  1495. }
  1496. },
  1497. C =
  1498. (this && this.__rest) ||
  1499. function(t, e) {
  1500. var i = {};
  1501. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  1502. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  1503. var g = 0;
  1504. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1505. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  1506. }
  1507. return i;
  1508. },
  1509. I =
  1510. (this && this.__spreadArrays) ||
  1511. function() {
  1512. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  1513. var n = Array(t),
  1514. g = 0;
  1515. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  1516. return n;
  1517. },
  1518. s =
  1519. (this && this.__importDefault) ||
  1520. function(t) {
  1521. return t && t.__esModule ? t : { default: t };
  1522. };
  1523. Object.defineProperty(e, "__esModule", { value: !0 });
  1524. var a = s(i(6)),
  1525. l = i(3),
  1526. u = i(0),
  1527. c = (function(t) {
  1528. function e(i) {
  1529. var n = i.hover,
  1530. g = C(i, ["hover"]),
  1531. A = this;
  1532. if (!g.renderer) throw g;
  1533. return (
  1534. n || (n = { fillColor: e.Setting.get(g.renderer).fillColor, storkeColor: e.Setting.get(g.renderer).storkeColor }),
  1535. ((A = t.call(this, g) || this).hover = n),
  1536. (A.hover.r = A.hover.r || A.init.r),
  1537. A.real.setAttribute("class", "variable"),
  1538. (A.adopt = !1),
  1539. (A.disable = !1),
  1540. (A.zIndex = 2),
  1541. A
  1542. );
  1543. }
  1544. return (
  1545. g(e, t),
  1546. (e.prototype.setHoverStyle = function() {
  1547. (this.fillColor = this.hover.fillColor), (this.strokeWidth = this.hover.r), (this.storkeColor = this.hover.storkeColor);
  1548. }),
  1549. (e.prototype.setUnHoverStyle = function() {
  1550. (this.fillColor = this.init.fillColor), (this.strokeWidth = this.init.strokeWidth), (this.storkeColor = this.init.storkeColor);
  1551. }),
  1552. (e.prototype.dragStart = function() {
  1553. this.dragStartPoint = { x: this.x, y: this.y };
  1554. }),
  1555. (e.prototype.drag = function(t) {
  1556. if (this.disable || (0 === t.x && 0 === t.y)) return !1;
  1557. (this.x = this.dragStartPoint.x + t.x * this.multiple), (this.y = this.dragStartPoint.y + t.y * this.multiple);
  1558. }),
  1559. (e.prototype.update = function() {
  1560. var e = this;
  1561. t.prototype.update.call(this),
  1562. this.renderer.processing.lines
  1563. .filter(function(t) {
  1564. return ~t.ele.points.indexOf(e);
  1565. })
  1566. .map(function(t) {
  1567. return t.ele;
  1568. })
  1569. .forEach(function(t) {
  1570. t.showAngle = e.hover && e.fillColor === e.hover.fillColor;
  1571. });
  1572. }),
  1573. (e.prototype.intercept = function(t, e, i) {
  1574. var n = this,
  1575. g = e.x,
  1576. r = e.y;
  1577. e.select;
  1578. if (l.type.isUndefined(g) || l.type.isUndefined(r)) return !0;
  1579. if (this.dragStartPoint) {
  1580. for (
  1581. var o,
  1582. C = { x: g, y: r },
  1583. s = this.renderer.processing.lines.map(function(t) {
  1584. return t.ele;
  1585. }),
  1586. a = s
  1587. .filter(function(t) {
  1588. return ~t.points.indexOf(n);
  1589. })
  1590. .map(function(t) {
  1591. var e = t.points.indexOf(n),
  1592. i = Number(!e),
  1593. g = s.filter(function(e) {
  1594. return ~e.points.indexOf(t.points[i]) && t !== e;
  1595. }),
  1596. A = I(t.points);
  1597. return (A[e] = C), I([{ points: A }], g);
  1598. }),
  1599. c = function(t) {
  1600. var e = a[t];
  1601. if (e.length < 2) return "continue";
  1602. var i = e.slice(1).map(function(t) {
  1603. var i = u.getAngle(e[0], t);
  1604. return i > 90 && (i = 180 - i), { line: t, angle: u.getAngle(e[0], t) };
  1605. }),
  1606. n = i
  1607. .map(function(t) {
  1608. return A(A({}, t), { angle: t.angle > 90 ? 180 - t.angle : t.angle });
  1609. })
  1610. .sort(function(t, e) {
  1611. return t.angle - e.angle;
  1612. });
  1613. if (n[0].angle <= 5) {
  1614. var g = n[0].line;
  1615. o = u.getLinePoint(g, o || C);
  1616. }
  1617. var r = i.find(function(t) {
  1618. var e = t.angle;
  1619. return e > 85 && e < 95 && 90 !== e;
  1620. });
  1621. r &&
  1622. (o = u.getVectorPosPoint(
  1623. u.verticalLine(r.line),
  1624. r.line.points.find(function(t) {
  1625. return ~e[0].points.indexOf(t);
  1626. }),
  1627. o || C
  1628. ));
  1629. },
  1630. h = 0;
  1631. h < a.length;
  1632. h++
  1633. )
  1634. c(h);
  1635. return o;
  1636. }
  1637. }),
  1638. (e.prototype.dragEnd = function() {
  1639. return r(this, void 0, void 0, function() {
  1640. var t,
  1641. e,
  1642. n,
  1643. g,
  1644. A,
  1645. r,
  1646. C = this;
  1647. return o(this, function(o) {
  1648. switch (o.label) {
  1649. case 0:
  1650. return (
  1651. delete this.dragStartPoint,
  1652. (t = i(4).default),
  1653. (e = this).stopDragEnd || e.dragEnding
  1654. ? [2]
  1655. : ((e.dragEnding = !0),
  1656. (n =
  1657. e.__join_lines &&
  1658. e.__join_lines.find(function(e) {
  1659. return !(u.lineDis({ points: e.points }) > 0.1 || (t.attaArch.get(e) && t.attaArch.get(e).length));
  1660. }))
  1661. ? [4, n.judgeMerge()]
  1662. : [3, 4])
  1663. );
  1664. case 1:
  1665. return (g = o.sent())
  1666. ? [
  1667. 4,
  1668. new Promise(function(t) {
  1669. (g.adopt = !1),
  1670. n.nextTick(function() {
  1671. g.nextTick(function() {
  1672. n.destroy(), n.destoryPoint(g), t();
  1673. });
  1674. });
  1675. }),
  1676. ]
  1677. : [3, 3];
  1678. case 2:
  1679. o.sent(), (o.label = 3);
  1680. case 3:
  1681. return [3, 8];
  1682. case 4:
  1683. (A = this.renderer.processing.lines
  1684. .map(function(t) {
  1685. return t.ele;
  1686. })
  1687. .filter(function(t) {
  1688. return ~t.points.indexOf(C);
  1689. })),
  1690. (r = 0),
  1691. (o.label = 5);
  1692. case 5:
  1693. return r < A.length ? [4, A[r].judgePoint()] : [3, 8];
  1694. case 6:
  1695. o.sent(), (o.label = 7);
  1696. case 7:
  1697. return r++, [3, 5];
  1698. case 8:
  1699. return (e.dragEnding = !1), this.renderer.processing.depLines(), [2];
  1700. }
  1701. });
  1702. });
  1703. }),
  1704. (e.Setting = new Map()),
  1705. e
  1706. );
  1707. })(a.default);
  1708. e.default = c;
  1709. },
  1710. function(t, e, i) {
  1711. "use strict";
  1712. var n,
  1713. g =
  1714. (this && this.__extends) ||
  1715. ((n = function(t, e) {
  1716. return (n =
  1717. Object.setPrototypeOf ||
  1718. ({ __proto__: [] } instanceof Array &&
  1719. function(t, e) {
  1720. t.__proto__ = e;
  1721. }) ||
  1722. function(t, e) {
  1723. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  1724. })(t, e);
  1725. }),
  1726. function(t, e) {
  1727. function i() {
  1728. this.constructor = t;
  1729. }
  1730. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  1731. }),
  1732. A =
  1733. (this && this.__assign) ||
  1734. function() {
  1735. return (A =
  1736. Object.assign ||
  1737. function(t) {
  1738. for (var e, i = 1, n = arguments.length; i < n; i++)
  1739. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1740. return t;
  1741. }).apply(this, arguments);
  1742. },
  1743. r =
  1744. (this && this.__rest) ||
  1745. function(t, e) {
  1746. var i = {};
  1747. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  1748. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  1749. var g = 0;
  1750. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1751. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  1752. }
  1753. return i;
  1754. };
  1755. Object.defineProperty(e, "__esModule", { value: !0 });
  1756. var o = i(2),
  1757. C = i(1),
  1758. I = 1,
  1759. s = (function(t) {
  1760. function e(i) {
  1761. var n = i.strokeWidth,
  1762. g = void 0 === n ? 0 : n,
  1763. o = i.r,
  1764. C = void 0 === o ? 4 : o,
  1765. I = i.r1,
  1766. s = void 0 === I ? 4 : I,
  1767. a = i.fillColor,
  1768. l = i.storkeColor,
  1769. u = r(i, ["strokeWidth", "r", "r1", "fillColor", "storkeColor"]),
  1770. c = this;
  1771. return (
  1772. (a = a || e.Setting.get(u.renderer).fillColor),
  1773. (l = l || e.Setting.get(u.renderer).storkeColor),
  1774. ((c = t.call(this, A({ storkeColor: l, fillColor: a, r: C, r1: s, strokeWidth: g }, u)) || this).init = {
  1775. strokeWidth: g,
  1776. r: C,
  1777. r1: s,
  1778. fillColor: a,
  1779. storkeColor: l,
  1780. }),
  1781. c.update(),
  1782. c
  1783. );
  1784. }
  1785. return (
  1786. g(e, t),
  1787. (e.prototype.grentNode = function() {
  1788. var t = document.createElementNS(C.SVGURI, "ellipse");
  1789. return t.setAttribute("_id", (I++).toString()), t;
  1790. }),
  1791. (e.prototype.update = function() {
  1792. var t = this.r * this.multiple,
  1793. e = this.r1 * this.multiple,
  1794. i = this.strokeWidth * this.multiple;
  1795. try {
  1796. this.real.setAttribute("cx", this.x.toString()),
  1797. this.real.setAttribute("cy", this.y.toString()),
  1798. this.real.setAttribute("fill", this.fillColor),
  1799. this.real.setAttribute("rx", t.toString()),
  1800. this.real.setAttribute("ry", e.toString()),
  1801. this.real.setAttribute("stroke-width", i.toString()),
  1802. this.real.setAttribute("stroke", this.storkeColor);
  1803. } catch (t) {
  1804. console.error(this.x);
  1805. }
  1806. }),
  1807. (e.prototype.destroy = function() {
  1808. t.prototype.destroy.call(this);
  1809. }),
  1810. (e.fillColor = "rgb(0, 200, 175)"),
  1811. (e.storkeColor = "green"),
  1812. (e.Setting = new Map()),
  1813. e
  1814. );
  1815. })(o.CADElement);
  1816. e.default = s;
  1817. },
  1818. function(t, e, i) {
  1819. "use strict";
  1820. var n,
  1821. g =
  1822. (this && this.__extends) ||
  1823. ((n = function(t, e) {
  1824. return (n =
  1825. Object.setPrototypeOf ||
  1826. ({ __proto__: [] } instanceof Array &&
  1827. function(t, e) {
  1828. t.__proto__ = e;
  1829. }) ||
  1830. function(t, e) {
  1831. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  1832. })(t, e);
  1833. }),
  1834. function(t, e) {
  1835. function i() {
  1836. this.constructor = t;
  1837. }
  1838. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  1839. }),
  1840. A =
  1841. (this && this.__assign) ||
  1842. function() {
  1843. return (A =
  1844. Object.assign ||
  1845. function(t) {
  1846. for (var e, i = 1, n = arguments.length; i < n; i++)
  1847. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1848. return t;
  1849. }).apply(this, arguments);
  1850. },
  1851. r =
  1852. (this && this.__rest) ||
  1853. function(t, e) {
  1854. var i = {};
  1855. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  1856. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  1857. var g = 0;
  1858. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1859. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  1860. }
  1861. return i;
  1862. },
  1863. o =
  1864. (this && this.__spreadArrays) ||
  1865. function() {
  1866. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  1867. var n = Array(t),
  1868. g = 0;
  1869. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  1870. return n;
  1871. },
  1872. C =
  1873. (this && this.__importDefault) ||
  1874. function(t) {
  1875. return t && t.__esModule ? t : { default: t };
  1876. };
  1877. Object.defineProperty(e, "__esModule", { value: !0 });
  1878. var I = i(1),
  1879. s = C(i(5)),
  1880. a = i(2),
  1881. l = C(i(4)),
  1882. u = i(3),
  1883. c = i(0),
  1884. h = (function(t) {
  1885. function e(e) {
  1886. var i = e.points,
  1887. n = e.fill,
  1888. g = void 0 === n ? "rgba(0,0,0,0)" : n,
  1889. o = e.stroke,
  1890. C = void 0 === o ? "rgba(255,255,255,0.5)" : o,
  1891. I = e.width,
  1892. a = void 0 === I ? 1 : I,
  1893. l = e.hover,
  1894. u = r(e, ["points", "fill", "stroke", "width", "hover"]),
  1895. h = this,
  1896. p = [i[0], i[1]],
  1897. d = i.slice(2).map(function(t) {
  1898. return new s.default(A(A({}, t), { renderer: u.renderer }));
  1899. }),
  1900. f = { fill: g, stroke: C, width: a };
  1901. return (
  1902. (l = l || A(A({}, f), { fill: "rgba(243, 255, 0, 0.8)", strokeBorder: "rgba(243, 255, 0, 0.8)" })),
  1903. ((h = t.call(this, A(A({ linePoints: p, hover: l, otherPoints: d }, f), u)) || this).points = h.linePoints.concat(h.otherPoints)),
  1904. (h.selectLineIndex = -1),
  1905. (h.init = f),
  1906. (h.cacheVers = [c.lineVector({ points: [h.points[1], h.points[2]] }), c.lineVector({ points: [h.points[0], h.points[3]] })]),
  1907. (h.__enterHandle = function() {
  1908. h.hasTriggerEvent() ||
  1909. (~h.selectLineIndex && !h.select) ||
  1910. Object.keys(h.hover).forEach(function(t) {
  1911. return (h[t] = h.hover[t]);
  1912. });
  1913. }),
  1914. (h.__leaveHandle = function() {
  1915. h.hasTriggerEvent() ||
  1916. h.select ||
  1917. Object.keys(h.init).forEach(function(t) {
  1918. return (h[t] = h.init[t]);
  1919. });
  1920. }),
  1921. (h.__lineEnter = function(t) {
  1922. h.hasTriggerEvent() || ~h.selectLineIndex || h.__draging || ((h.selectLineIndex = h.lines.indexOf(t.target)), h.update());
  1923. }),
  1924. (h.__lineLeave = function(t) {
  1925. h.hasTriggerEvent() || h.__draging || ((h.selectLineIndex = -1), h.update());
  1926. }),
  1927. (h.__lineClick = function(t) {
  1928. return t.stopPropagation();
  1929. }),
  1930. h
  1931. );
  1932. }
  1933. return (
  1934. g(e, t),
  1935. (e.prototype.updateFirstLinePoints = function() {
  1936. this.firstLinePoints = this.attachment.points.map(function(t) {
  1937. return { x: t.x, y: t.y };
  1938. });
  1939. }),
  1940. (e.prototype.grentNode = function() {
  1941. var t = this,
  1942. e = document.createElementNS(I.SVGURI, "g");
  1943. return (
  1944. (this.wrapPath = document.createElementNS(I.SVGURI, "path")),
  1945. (this.leftLine = document.createElementNS(I.SVGURI, "path")),
  1946. (this.rightLine = document.createElementNS(I.SVGURI, "path")),
  1947. (this.bottomLeft = document.createElementNS(I.SVGURI, "path")),
  1948. (this.topLine = document.createElementNS(I.SVGURI, "path")),
  1949. (this.overLine1 = document.createElementNS(I.SVGURI, "path")),
  1950. (this.overLine2 = document.createElementNS(I.SVGURI, "path")),
  1951. (this.lines = [this.leftLine, this.rightLine, this.topLine, this.overLine1, this.overLine2, this.bottomLeft]),
  1952. this.wrapPath.setAttribute("stroke", "rgba(0,0,0,0)"),
  1953. this.nextTick(function() {
  1954. (t.points = t.linePoints.concat(t.otherPoints)), t.addEvent(), t.updateThickness(), t.updateFirstLinePoints();
  1955. }),
  1956. e.appendChild(this.overLine1),
  1957. e.appendChild(this.overLine2),
  1958. e.appendChild(this.wrapPath),
  1959. e.appendChild(this.leftLine),
  1960. e.appendChild(this.topLine),
  1961. e.appendChild(this.rightLine),
  1962. e.appendChild(this.bottomLeft),
  1963. e
  1964. );
  1965. }),
  1966. (e.prototype.update = function() {
  1967. var t = this;
  1968. if (this.points) {
  1969. var e = this.width * this.multiple;
  1970. this.lines.forEach(function(i) {
  1971. i.setAttribute("stroke-width", e.toString()), i.setAttribute("stroke-linecap", "round"), i.setAttribute("stroke", t.stroke);
  1972. }),
  1973. u.type.isNumber(this.hoverIndex)
  1974. ? this.lines[this.hoverIndex].setAttribute("stroke", this.hover.strokeBorder)
  1975. : (this.wrapPath.setAttribute("stroke-width", "0"),
  1976. this.wrapPath.setAttribute("fill", this.fill),
  1977. this.wrapPath.setAttribute(
  1978. "d",
  1979. "M " +
  1980. this.points
  1981. .map(function(t) {
  1982. return t.x + " " + t.y;
  1983. })
  1984. .join(" L ")
  1985. )),
  1986. isNaN(this.points[0].x) ||
  1987. (this.overLine1.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[2].x + " " + this.points[2].y),
  1988. this.overLine2.setAttribute("d", "M " + this.points[3].x + " " + this.points[3].y + " L " + this.points[1].x + " " + this.points[1].y),
  1989. this.topLine.setAttribute("d", "M " + this.points[3].x + " " + this.points[3].y + " L " + this.points[2].x + " " + this.points[2].y),
  1990. this.leftLine.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[3].x + " " + this.points[3].y),
  1991. this.rightLine.setAttribute("d", "M " + this.points[2].x + " " + this.points[2].y + " L " + this.points[1].x + " " + this.points[1].y),
  1992. this.bottomLeft.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[1].x + " " + this.points[1].y),
  1993. ~this.selectLineIndex && this.lines[this.selectLineIndex].setAttribute("stroke", this.hover.strokeBorder),
  1994. this.attachment.update());
  1995. }
  1996. }),
  1997. (e.prototype.hasTriggerEvent = function() {
  1998. return a.CADElement.examples.get(this.renderer).some(function(t) {
  1999. return t.__draging;
  2000. });
  2001. }),
  2002. (e.prototype.wallSelect = function() {
  2003. var t = this;
  2004. this.select
  2005. ? Object.keys(this.hover).forEach(function(e) {
  2006. return (t[e] = t.hover[e]);
  2007. })
  2008. : Object.keys(this.init).forEach(function(e) {
  2009. return (t[e] = t.init[e]);
  2010. });
  2011. }),
  2012. (e.prototype.addEvent = function() {
  2013. var t = this;
  2014. this.wrapPath.addEventListener("mouseenter", this.__enterHandle, !1),
  2015. this.wrapPath.addEventListener("mouseleave", this.__leaveHandle, !1),
  2016. this.lines.forEach(function(e) {
  2017. e.addEventListener("mouseenter", t.__lineEnter, !1),
  2018. e.addEventListener("mouseleave", t.__lineLeave, !1),
  2019. e.addEventListener("click", t.__lineClick, !1);
  2020. });
  2021. }),
  2022. (e.prototype.updateThickness = function(t) {
  2023. void 0 === t && (t = [this.points[0], this.points[3]]), (this.thickness = c.lineDis({ points: t }));
  2024. }),
  2025. (e.prototype.checkPeripheral = function(t) {
  2026. return void 0 === t && (t = this.points), !0;
  2027. }),
  2028. (e.prototype.getPeripheral = function(t) {
  2029. void 0 === t && (t = this.points);
  2030. var e = { x: this.firstLinePoints[0].x - this.attachment.points[0].x, y: this.firstLinePoints[0].y - this.attachment.points[0].y },
  2031. i = { x: this.firstLinePoints[1].x - this.attachment.points[1].x, y: this.firstLinePoints[1].y - this.attachment.points[1].y },
  2032. n = e.x || e.y ? e : i,
  2033. g = { x: t[3].x + n.x, y: t[3].y + n.y },
  2034. A = { x: t[2].x + n.x, y: t[2].y + n.y },
  2035. r = { points: [t[0], t[1]] },
  2036. C = c.getDisVerticalLinePoints(r, t[0], this.thickness).sort(function(t, e) {
  2037. return c.lineDis({ points: [t, g] }) - c.lineDis({ points: [e, g] });
  2038. })[0],
  2039. I = c.getDisVerticalLinePoints(r, t[1], this.thickness).sort(function(t, e) {
  2040. return c.lineDis({ points: [t, A] }) - c.lineDis({ points: [e, A] });
  2041. })[0],
  2042. s = c.getDisPointLinePoints({ points: [t[0], C] }, t[0], this.thickness),
  2043. a = s[0],
  2044. l = s[1];
  2045. C = c.lineDis({ points: [a, t[3]] }) > c.lineDis({ points: [l, t[3]] }) ? l : a;
  2046. var u = c.getDisPointLinePoints({ points: [t[1], I] }, t[1], this.thickness),
  2047. h = u[0],
  2048. p = u[1],
  2049. d = null;
  2050. return (
  2051. c.lineDis({ points: [h, t[2]] }) > c.lineDis({ points: [p, t[2]] }) ? ((I = p), (d = h)) : ((I = h), (d = p)),
  2052. Math.abs(c.lineDis({ points: [I, C] }) - c.lineDis({ points: [t[0], t[1]] })) > 0.01 && (I = d),
  2053. ((t = o(t))[2] = I),
  2054. (t[3] = C),
  2055. this.checkPeripheral(t) ? [I, C] : []
  2056. );
  2057. }),
  2058. (e.prototype.updatePeripheral = function(t) {
  2059. void 0 === t && (t = this.points);
  2060. var e = this.getPeripheral(t);
  2061. return (
  2062. (this.points[2].x = e[0].x),
  2063. (this.points[2].y = e[0].y),
  2064. (this.points[3].x = e[1].x),
  2065. (this.points[3].y = e[1].y),
  2066. (this.readyPoints = t.slice(0, 2).concat(e)),
  2067. !0
  2068. );
  2069. }),
  2070. (e.prototype.intercept = function(e, i, n) {
  2071. var g,
  2072. r,
  2073. C,
  2074. I,
  2075. s = i.x,
  2076. a = i.y;
  2077. if (u.type.isUndefined(s) || u.type.isUndefined(a)) return !0;
  2078. if (!1 === (g = t.prototype.intercept.call(this, e, { x: s, y: a }, n))) return g;
  2079. if (
  2080. ((r = this.points.findIndex(function(t) {
  2081. return e.some(function(e) {
  2082. return e === t;
  2083. });
  2084. })),
  2085. (I = this.attachment.points.findIndex(function(t) {
  2086. return (C = e.find(function(e) {
  2087. return e === t;
  2088. }));
  2089. })),
  2090. !~r && C)
  2091. ) {
  2092. ((h = [])[this.points.indexOf(this.linePoints[0])] = g.__points[0]),
  2093. (h[this.points.indexOf(this.linePoints[1])] = g.__points[1]),
  2094. h.push(this.points[2], this.points[3]),
  2095. (this.firstLinePoints[I] = C);
  2096. var l = this.getPeripheral(h);
  2097. if (
  2098. ((this.cacheVers = [c.lineVector({ points: [this.points[1], this.points[2]] }), c.lineVector({ points: [this.points[0], this.points[3]] })]),
  2099. 0 === l.length)
  2100. )
  2101. return !1;
  2102. } else {
  2103. var h = o(this.points);
  2104. if (!~r) return g;
  2105. if (((h[r] = A({}, n[e.indexOf(h[r])])), !(r < 2))) {
  2106. var p,
  2107. d = void 0,
  2108. f = void 0,
  2109. y = void 0,
  2110. v = void 0,
  2111. m = void 0;
  2112. 2 === r
  2113. ? ((d = { points: [this.points[1], this.points[2]] }),
  2114. (f = { points: [this.points[0], this.points[3]] }),
  2115. (p = this.points[2]),
  2116. (y = 2),
  2117. (v = 3),
  2118. (m = this.cacheVers[1]))
  2119. : ((f = { points: [this.points[1], this.points[2]] }),
  2120. (d = { points: [this.points[0], this.points[3]] }),
  2121. (p = this.points[3]),
  2122. (y = 3),
  2123. (v = 2),
  2124. (m = d),
  2125. (m = this.cacheVers[0]));
  2126. var b = c.lineVector(d);
  2127. if (b.x - m.x < 0.01 && b.y - m.y < 0.01) {
  2128. var x = c.getLinePoint(d, { x: s, y: a }),
  2129. _ = c.getLinePoint(f, { x: s, y: a }),
  2130. w = f.points[1].x + s - p.x,
  2131. P = f.points[1].y + a - p.y,
  2132. O = c.getLinePoint(f, { x: w, y: P }),
  2133. S = Math.abs(this.moveLineDis - c.lineDis({ points: [x, _] })) > Math.abs(this.moveLineDis - c.lineDis({ points: [x, O] })) ? O : _;
  2134. (h[y] = x), (h[v] = S);
  2135. }
  2136. return (this.readyPoints = h), !0;
  2137. }
  2138. if (!this.updatePeripheral(h)) return !1;
  2139. }
  2140. return g;
  2141. }),
  2142. (e.prototype.dragStart = function(t) {
  2143. var e = this.lines.indexOf(t.target);
  2144. (this.__index = e < 3 ? e : -1),
  2145. (this.__startPoints = this.points.map(function(t) {
  2146. return { x: t.x, y: t.y };
  2147. }));
  2148. }),
  2149. (e.prototype.drag = function(t) {
  2150. var e = t.x * this.multiple,
  2151. i = t.y * this.multiple,
  2152. n = ~this.__index ? [this.points[this.__index]] : this.linePoints,
  2153. g = ~this.__index ? [this.__startPoints[this.__index]] : this.__startPoints;
  2154. if (this.__index < 2)
  2155. n.forEach(function(t, n) {
  2156. (t.x = g[n].x + e), (t.y = g[n].y + i);
  2157. });
  2158. else {
  2159. var A = c.getLinePoint({ points: [this.points[0], this.points[3]] }, { x: this.__startPoints[3].x + e, y: this.__startPoints[3].y + i }),
  2160. r = c.getLinePoint({ points: [this.points[1], this.points[2]] }, { x: this.__startPoints[2].x + e, y: this.__startPoints[2].y + i });
  2161. this.checkPeripheral(
  2162. this.points
  2163. .slice(0, 2)
  2164. .map(function(t) {
  2165. return { x: t.x, y: t.y };
  2166. })
  2167. .concat([r, A])
  2168. ) && ((this.points[3].x = A.x), (this.points[3].y = A.y), (this.points[2].x = r.x), (this.points[2].y = r.y));
  2169. }
  2170. }),
  2171. (e.prototype.dragEnd = function() {
  2172. delete this.dragStartPoints, delete this.__index, this.updateThickness(), this.__leaveHandle(), this.__lineLeave(), t.prototype.dragEnd.call(this);
  2173. }),
  2174. (e.prototype.delEvent = function() {
  2175. var t = this;
  2176. this.wrapPath.removeEventListener("mouseenter", this.__enterHandle, !1),
  2177. this.wrapPath.removeEventListener("mouseleave", this.__leaveHandle, !1),
  2178. this.lines.forEach(function(e) {
  2179. e.removeEventListener("mouseenter", t.__lineEnter, !1),
  2180. e.removeEventListener("mouseleave", t.__lineLeave, !1),
  2181. e.removeEventListener("click", t.__lineClick, !1);
  2182. });
  2183. }),
  2184. (e.prototype.destroy = function() {
  2185. this.delEvent(), t.prototype.destroy.call(this);
  2186. }),
  2187. e
  2188. );
  2189. })(l.default);
  2190. e.default = h;
  2191. },
  2192. function(t, e, i) {
  2193. "use strict";
  2194. var n,
  2195. g =
  2196. (this && this.__extends) ||
  2197. ((n = function(t, e) {
  2198. return (n =
  2199. Object.setPrototypeOf ||
  2200. ({ __proto__: [] } instanceof Array &&
  2201. function(t, e) {
  2202. t.__proto__ = e;
  2203. }) ||
  2204. function(t, e) {
  2205. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  2206. })(t, e);
  2207. }),
  2208. function(t, e) {
  2209. function i() {
  2210. this.constructor = t;
  2211. }
  2212. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  2213. }),
  2214. A =
  2215. (this && this.__assign) ||
  2216. function() {
  2217. return (A =
  2218. Object.assign ||
  2219. function(t) {
  2220. for (var e, i = 1, n = arguments.length; i < n; i++)
  2221. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2222. return t;
  2223. }).apply(this, arguments);
  2224. },
  2225. r =
  2226. (this && this.__rest) ||
  2227. function(t, e) {
  2228. var i = {};
  2229. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2230. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2231. var g = 0;
  2232. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2233. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  2234. }
  2235. return i;
  2236. },
  2237. o =
  2238. (this && this.__importDefault) ||
  2239. function(t) {
  2240. return t && t.__esModule ? t : { default: t };
  2241. },
  2242. C =
  2243. (this && this.__importStar) ||
  2244. function(t) {
  2245. if (t && t.__esModule) return t;
  2246. var e = {};
  2247. if (null != t) for (var i in t) Object.hasOwnProperty.call(t, i) && (e[i] = t[i]);
  2248. return (e.default = t), e;
  2249. };
  2250. Object.defineProperty(e, "__esModule", { value: !0 });
  2251. var I = i(1),
  2252. s = o(i(4)),
  2253. a = i(0),
  2254. l = { defaultIcon: C(i(34)), darkIcon: C(i(35)) },
  2255. u = (function(t) {
  2256. function e(e) {
  2257. var i = e.points,
  2258. n = e.fill,
  2259. g = void 0 === n ? "rgba(0,0,0,0)" : n,
  2260. o = e.icon,
  2261. C = void 0 === o ? "defaultIcon" : o,
  2262. I = e.stroke,
  2263. s = void 0 === I ? "rgba(255,255,255,0.5)" : I,
  2264. a = e.outWidth,
  2265. l = void 0 === a ? 1 : a,
  2266. u = e.foorWidth,
  2267. c = void 0 === u ? 6 : u,
  2268. h = e.linecap,
  2269. p = void 0 === h ? "square" : h,
  2270. d = e.foorColor,
  2271. f = void 0 === d ? "rgba(0,0,0,0)" : d,
  2272. y = e.hover,
  2273. v = e.within,
  2274. m = void 0 === v ? 0 : v,
  2275. b = e.start,
  2276. x = void 0 !== b && b,
  2277. _ = r(e, ["points", "fill", "icon", "stroke", "outWidth", "foorWidth", "linecap", "foorColor", "hover", "within", "start"]),
  2278. w = this,
  2279. P = { fill: g, stroke: s, outWidth: l, foorWidth: c, foorColor: f, linecap: p };
  2280. return (
  2281. (y = y || A(A({}, P), { fill: "rgba(243, 255, 0, 0.8)" })),
  2282. ((w = t.call(this, A(A({ linePoints: i, hover: y, within: m, start: x, icon: C }, P), _)) || this).init = P),
  2283. (w.showStart = !0),
  2284. w
  2285. );
  2286. }
  2287. return (
  2288. g(e, t),
  2289. (e.prototype.grentNode = function() {
  2290. var t = this,
  2291. e = document.createElementNS(I.SVGURI, "g");
  2292. return (
  2293. (this.arc = document.createElementNS(I.SVGURI, "path")),
  2294. (this.outLine = document.createElementNS(I.SVGURI, "path")),
  2295. (this.image = document.createElementNS(I.SVGURI, "image")),
  2296. e.appendChild(this.outLine),
  2297. e.appendChild(this.arc),
  2298. e.appendChild(this.image),
  2299. this.nextTick(function() {
  2300. t.linePoints && (e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real));
  2301. }),
  2302. e
  2303. );
  2304. }),
  2305. (e.prototype.getCalcPoint = function(t) {
  2306. void 0 === t && (t = a.lineDis({ points: this.linePoints }));
  2307. var e = this.linePoints[0];
  2308. return a.getDisVectorPoints(a.verticalLine(this.attachment), e, t)[0];
  2309. }),
  2310. (e.prototype.click = function(e) {
  2311. t.prototype.click.call(this, e), console.log(this.within);
  2312. }),
  2313. (e.prototype.getDrawArgs = function() {
  2314. var t, e, i, n;
  2315. 0 === this.within || 2 === this.within ? ((i = (t = this.linePoints)[0]), (n = t[1])) : ((n = (e = this.linePoints)[0]), (i = e[1]));
  2316. var g,
  2317. A = a.lineDis({ points: this.linePoints }),
  2318. r = a.getDisVerticalLinePoints(this.attachment, i, A),
  2319. o = r[0],
  2320. C = r[1],
  2321. I = { x: 0, y: 0 },
  2322. s = a.lineDis({ points: [o, I] }) < a.lineDis({ points: [C, I] });
  2323. return [i, n, (g = 0 === this.within || 3 === this.within ? (s ? o : C) : s ? C : o), A, a.isClockWise([i, n, g])];
  2324. }),
  2325. (e.prototype.update = function() {
  2326. this.real.style.display = this.show ? "initial" : "none";
  2327. var t = this.getDrawArgs(),
  2328. e = t[0],
  2329. i = t[1],
  2330. n = t[2],
  2331. g = t[3],
  2332. A = t[4];
  2333. if (isNaN(n.x)) this.destroy();
  2334. else if (
  2335. ((this.ctl = [n]),
  2336. this.arc.setAttribute(
  2337. "d",
  2338. "M " + e.x + " " + e.y + " L " + n.x + " " + n.y + " A " + g + " " + g + " 0 0 " + (A ? "1" : "0") + " " + i.x + " " + i.y + " Z"
  2339. ),
  2340. this.arc.setAttribute("stroke-width", (this.outWidth * this.multiple).toString()),
  2341. this.arc.setAttribute("stroke", this.stroke),
  2342. this.arc.setAttribute("fill", this.fill),
  2343. this.icon !== this.firstIcon && ((this.image.href.baseVal = l[this.icon]), (this.firstIcon = this.icon)),
  2344. this.outLine.setAttribute("stroke", this.foorColor),
  2345. this.outLine.setAttribute("fill", this.fill),
  2346. this.outLine.setAttribute("stroke-width", (this.foorWidth * this.multiple).toString()),
  2347. this.outLine.setAttribute("stroke-linecap", this.linecap),
  2348. this.outLine.setAttribute(
  2349. "d",
  2350. "M " + this.linePoints[0].x + " " + this.linePoints[0].y + " L " + this.linePoints[1].x + " " + this.linePoints[1].y
  2351. ),
  2352. this.attachment.update(),
  2353. this.start && this.showStart)
  2354. ) {
  2355. var r = a.lineDis({ points: this.linePoints }),
  2356. o = a.lineStretch({ points: this.linePoints }, r / 2).points,
  2357. C = a.lineDis({ points: o });
  2358. if (isNaN(C)) return;
  2359. var I = 4 * C,
  2360. s = o[1],
  2361. u = s === o[1] ? o[0] : o[1],
  2362. c = a.getDisVerticalLinePoints({ points: this.linePoints }, s, I),
  2363. h = a.lineDis({ points: [c[0], n] }) > a.lineDis({ points: [c[1], n] }) ? c[0] : c[1],
  2364. p = a.getDisVerticalLinePoints({ points: this.linePoints }, u, I),
  2365. d = a.lineDis({ points: [p[0], n] }) > a.lineDis({ points: [p[1], n] }) ? p[0] : p[1],
  2366. f = a.faceCenter([s, h, d, u]),
  2367. y = a.lineDeg({ points: [s, h] }) + 90;
  2368. this.image.setAttribute("width", C.toString()),
  2369. this.image.setAttribute("height", I.toString()),
  2370. this.image.setAttribute("x", (f.x - C / 2).toString()),
  2371. this.image.setAttribute("y", (f.y - I / 2).toString()),
  2372. this.image.setAttribute("transform", "rotate(" + y + ", " + f.x + ", " + f.y + ")"),
  2373. (this.image.style.display = "block");
  2374. } else this.image.style.display = "none";
  2375. }),
  2376. (e.prototype.dragStart = function(t) {
  2377. (this.__index = t.target === this.linePoints[0].real ? 0 : t.target === this.linePoints[1].real ? 1 : -1),
  2378. (this.__startPoints = this.linePoints.map(function(t) {
  2379. return { x: t.x, y: t.y };
  2380. }));
  2381. }),
  2382. (e.prototype.drag = function(t) {
  2383. var e = this,
  2384. i = ~this.__index ? [this.linePoints[this.__index]] : this.linePoints,
  2385. n = ~this.__index ? [this.__startPoints[this.__index]] : this.__startPoints;
  2386. i.forEach(function(i, g) {
  2387. (i.x = n[g].x + t.x * e.multiple), (i.y = n[g].y + t.y * e.multiple);
  2388. });
  2389. }),
  2390. (e.prototype.dragEnd = function() {
  2391. delete this.dragStartPoints, delete this.__index, t.prototype.dragEnd.call(this);
  2392. }),
  2393. (e.prototype.setHoverStyle = function() {
  2394. var t = this;
  2395. Object.keys(this.hover).forEach(function(e) {
  2396. return (t[e] = t.hover[e]);
  2397. });
  2398. }),
  2399. (e.prototype.setUnHoverStyle = function() {
  2400. var t = this;
  2401. Object.keys(this.init).forEach(function(e) {
  2402. return (t[e] = t.init[e]);
  2403. });
  2404. }),
  2405. e
  2406. );
  2407. })(s.default);
  2408. e.default = u;
  2409. },
  2410. function(t, e, i) {
  2411. "use strict";
  2412. var n =
  2413. (this && this.__importDefault) ||
  2414. function(t) {
  2415. return t && t.__esModule ? t : { default: t };
  2416. };
  2417. Object.defineProperty(e, "__esModule", { value: !0 });
  2418. var g = n(i(30)),
  2419. A = {
  2420. t: function(t, e) {
  2421. for (var i = t.split("."), n = g.default; i.length; ) n = n[i.shift()];
  2422. return n;
  2423. },
  2424. };
  2425. e.i18n = A;
  2426. },
  2427. function(t, e, i) {
  2428. "use strict";
  2429. var n,
  2430. g =
  2431. (this && this.__extends) ||
  2432. ((n = function(t, e) {
  2433. return (n =
  2434. Object.setPrototypeOf ||
  2435. ({ __proto__: [] } instanceof Array &&
  2436. function(t, e) {
  2437. t.__proto__ = e;
  2438. }) ||
  2439. function(t, e) {
  2440. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  2441. })(t, e);
  2442. }),
  2443. function(t, e) {
  2444. function i() {
  2445. this.constructor = t;
  2446. }
  2447. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  2448. }),
  2449. A =
  2450. (this && this.__assign) ||
  2451. function() {
  2452. return (A =
  2453. Object.assign ||
  2454. function(t) {
  2455. for (var e, i = 1, n = arguments.length; i < n; i++)
  2456. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2457. return t;
  2458. }).apply(this, arguments);
  2459. },
  2460. r =
  2461. (this && this.__rest) ||
  2462. function(t, e) {
  2463. var i = {};
  2464. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2465. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2466. var g = 0;
  2467. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2468. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  2469. }
  2470. return i;
  2471. };
  2472. Object.defineProperty(e, "__esModule", { value: !0 });
  2473. var o = i(2),
  2474. C = i(1),
  2475. I = (function(t) {
  2476. function e(i) {
  2477. var n = i.color,
  2478. g = i.width,
  2479. o = i.showAngle,
  2480. C = void 0 !== o && o,
  2481. I = i.linecap,
  2482. s = void 0 === I ? "square" : I,
  2483. a = r(i, ["color", "width", "showAngle", "linecap"]),
  2484. l = this;
  2485. return (
  2486. (g = g || e.Setting.get(a.renderer).width),
  2487. (n = n || e.Setting.get(a.renderer).color),
  2488. ((l = t.call(this, A({ color: n, width: g, linecap: s, showAngle: C }, a)) || this).init = { color: n, width: g, linecap: s }),
  2489. l
  2490. );
  2491. }
  2492. return (
  2493. g(e, t),
  2494. (e.prototype.intercept = function(t, e, i) {
  2495. return !0;
  2496. }),
  2497. (e.prototype.grentNode = function() {
  2498. return document.createElementNS(C.SVGURI, "path");
  2499. }),
  2500. (e.prototype.update = function() {
  2501. var t = this.width * this.multiple;
  2502. this.real.setAttribute("stroke", this.color),
  2503. this.real.setAttribute("stroke-width", t.toString()),
  2504. this.real.setAttribute("stroke-linecap", this.linecap),
  2505. this.real.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[1].x + " " + this.points[1].y);
  2506. }),
  2507. (e.Setting = new Map()),
  2508. e
  2509. );
  2510. })(o.CADElement);
  2511. e.default = I;
  2512. },
  2513. function(t, e, i) {
  2514. "use strict";
  2515. var n,
  2516. g =
  2517. (this && this.__extends) ||
  2518. ((n = function(t, e) {
  2519. return (n =
  2520. Object.setPrototypeOf ||
  2521. ({ __proto__: [] } instanceof Array &&
  2522. function(t, e) {
  2523. t.__proto__ = e;
  2524. }) ||
  2525. function(t, e) {
  2526. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  2527. })(t, e);
  2528. }),
  2529. function(t, e) {
  2530. function i() {
  2531. this.constructor = t;
  2532. }
  2533. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  2534. }),
  2535. A =
  2536. (this && this.__assign) ||
  2537. function() {
  2538. return (A =
  2539. Object.assign ||
  2540. function(t) {
  2541. for (var e, i = 1, n = arguments.length; i < n; i++)
  2542. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2543. return t;
  2544. }).apply(this, arguments);
  2545. },
  2546. r =
  2547. (this && this.__rest) ||
  2548. function(t, e) {
  2549. var i = {};
  2550. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2551. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2552. var g = 0;
  2553. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2554. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  2555. }
  2556. return i;
  2557. },
  2558. o =
  2559. (this && this.__importDefault) ||
  2560. function(t) {
  2561. return t && t.__esModule ? t : { default: t };
  2562. };
  2563. Object.defineProperty(e, "__esModule", { value: !0 });
  2564. var C = o(i(12)),
  2565. I = i(1),
  2566. s = o(i(4)),
  2567. a = i(0),
  2568. l = (function(t) {
  2569. function e(e) {
  2570. var i = e.points,
  2571. n = e.fill,
  2572. g = void 0 === n ? "rgba(0,0,0,0)" : n,
  2573. o = e.seam,
  2574. C = void 0 === o ? "rgba(255,255,255,0)" : o,
  2575. I = e.bgColor,
  2576. s = void 0 === I ? "rgba(255,255,255,0.5)" : I,
  2577. a = e.width,
  2578. l = void 0 === a ? 6 : a,
  2579. u = e.stamWidth,
  2580. c = void 0 === u ? 0.5 : u,
  2581. h = e.hover,
  2582. p = r(e, ["points", "fill", "seam", "bgColor", "width", "stamWidth", "hover"]),
  2583. d = this,
  2584. f = { fill: g, seam: C, width: l, stamWidth: c };
  2585. return (
  2586. (h = h || A(A({}, f), { fill: "rgba(243, 255, 0, 0.8)" })),
  2587. ((d = t.call(this, A(A({ linePoints: i, bgColor: s, hover: h }, p), f)) || this).eleHover = !1),
  2588. d
  2589. );
  2590. }
  2591. return (
  2592. g(e, t),
  2593. (e.prototype.grentNode = function() {
  2594. var t = this,
  2595. e = document.createElementNS(I.SVGURI, "g");
  2596. return (
  2597. this.nextTick(function() {
  2598. (t.outLine = new C.default({ points: t.linePoints, width: t.width, color: t.fill, renderer: t.renderer })),
  2599. (t.innerline = new C.default({ points: t.linePoints, width: t.stamWidth, color: t.seam, renderer: t.renderer })),
  2600. (t.outLine.click = t.innerline.click = function() {
  2601. return t.changeSelect(!0);
  2602. }),
  2603. e.appendChild(t.outLine.real),
  2604. e.appendChild(t.innerline.real),
  2605. e.appendChild(t.linePoints[0].real),
  2606. e.appendChild(t.linePoints[1].real),
  2607. t.interceptUpdateStyle(),
  2608. t.outLine.update(),
  2609. t.innerline.update();
  2610. }),
  2611. (this.clip1 = document.createElementNS(I.SVGURI, "path")),
  2612. (this.clip2 = document.createElementNS(I.SVGURI, "path")),
  2613. (this.clip3 = document.createElementNS(I.SVGURI, "path")),
  2614. (this.clip4 = document.createElementNS(I.SVGURI, "path")),
  2615. e.appendChild(this.clip1),
  2616. e.appendChild(this.clip2),
  2617. e.appendChild(this.clip3),
  2618. e.appendChild(this.clip4),
  2619. e
  2620. );
  2621. }),
  2622. (e.prototype.getStyle = function() {
  2623. return this.eleHover || this.select ? this.hover : { width: this.width, fill: this.fill, seam: this.seam, stamWidth: this.stamWidth };
  2624. }),
  2625. (e.prototype.interceptUpdateStyle = function() {
  2626. var t = this,
  2627. e = this.outLine.intercept,
  2628. i = this.innerline.intercept;
  2629. (this.outLine.intercept = function(i, n) {
  2630. var g = i[0],
  2631. A = n.width,
  2632. r = n.color;
  2633. if (g === t.outLine && (A || r)) {
  2634. var o = t.getStyle();
  2635. return { width: o.width, color: o.fill };
  2636. }
  2637. return e.call(t);
  2638. }),
  2639. (this.innerline.intercept = function(e, n) {
  2640. var g = e[0],
  2641. A = n.width,
  2642. r = n.color;
  2643. if (g === t.innerline && (A || r)) {
  2644. var o = t.getStyle();
  2645. return { width: o.stamWidth, color: o.seam };
  2646. }
  2647. return i.call(t);
  2648. });
  2649. }),
  2650. (e.prototype.update = function() {
  2651. this.outLine && ((this.outLine.width = this.outLine.width + 1e-8), (this.innerline.width = this.innerline.width + 1e-8));
  2652. var t = a.getDisVerticalLinePoints(this.attachment, this.linePoints[0], 0.4 * this.width * this.multiple),
  2653. e = t[0],
  2654. i = t[1],
  2655. n = a.getDisVerticalLinePoints(this.attachment, this.linePoints[1], 0.4 * this.width * this.multiple),
  2656. g = n[0],
  2657. A = n[1],
  2658. r = a.getDisVerticalLinePoints(this.attachment, this.linePoints[0], 0.1 * this.width * this.multiple),
  2659. o = r[0],
  2660. C = r[1],
  2661. I = a.getDisVerticalLinePoints(this.attachment, this.linePoints[1], 0.1 * this.width * this.multiple),
  2662. s = I[0],
  2663. l = I[1];
  2664. isNaN(e.x) ||
  2665. (this.clip1.setAttribute("stroke-width", this.multiple.toString()),
  2666. this.clip1.setAttribute("d", "M " + e.x + " " + e.y + " L " + g.x + " " + g.y),
  2667. this.clip2.setAttribute("stroke-width", this.multiple.toString()),
  2668. this.clip2.setAttribute("d", "M " + i.x + " " + i.y + " L " + A.x + " " + A.y),
  2669. this.clip3.setAttribute("stroke-width", this.multiple.toString()),
  2670. this.clip3.setAttribute("d", "M " + o.x + " " + o.y + " L " + s.x + " " + s.y),
  2671. this.clip4.setAttribute("stroke-width", this.multiple.toString()),
  2672. this.clip4.setAttribute("d", "M " + C.x + " " + C.y + " L " + l.x + " " + l.y),
  2673. this.clip1.setAttribute("stroke", this.bgColor),
  2674. this.clip2.setAttribute("stroke", this.bgColor),
  2675. this.clip3.setAttribute("stroke", this.bgColor),
  2676. this.clip4.setAttribute("stroke", this.bgColor),
  2677. this.attachment.update());
  2678. }),
  2679. (e.prototype.wallSelect = function() {
  2680. this.update && this.update();
  2681. }),
  2682. (e.prototype.enter = function() {
  2683. (this.eleHover = !0), this.update();
  2684. }),
  2685. (e.prototype.leave = function() {
  2686. (this.eleHover = !1), this.update();
  2687. }),
  2688. (e.prototype.drag = function(t) {}),
  2689. e
  2690. );
  2691. })(s.default);
  2692. e.default = l;
  2693. },
  2694. function(t, e, i) {
  2695. "use strict";
  2696. var n,
  2697. g =
  2698. (this && this.__extends) ||
  2699. ((n = function(t, e) {
  2700. return (n =
  2701. Object.setPrototypeOf ||
  2702. ({ __proto__: [] } instanceof Array &&
  2703. function(t, e) {
  2704. t.__proto__ = e;
  2705. }) ||
  2706. function(t, e) {
  2707. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  2708. })(t, e);
  2709. }),
  2710. function(t, e) {
  2711. function i() {
  2712. this.constructor = t;
  2713. }
  2714. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  2715. }),
  2716. A =
  2717. (this && this.__assign) ||
  2718. function() {
  2719. return (A =
  2720. Object.assign ||
  2721. function(t) {
  2722. for (var e, i = 1, n = arguments.length; i < n; i++)
  2723. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2724. return t;
  2725. }).apply(this, arguments);
  2726. },
  2727. r =
  2728. (this && this.__rest) ||
  2729. function(t, e) {
  2730. var i = {};
  2731. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2732. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2733. var g = 0;
  2734. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2735. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  2736. }
  2737. return i;
  2738. },
  2739. o =
  2740. (this && this.__importDefault) ||
  2741. function(t) {
  2742. return t && t.__esModule ? t : { default: t };
  2743. };
  2744. Object.defineProperty(e, "__esModule", { value: !0 });
  2745. var C = (function(t) {
  2746. function e(e) {
  2747. var i = e.hover,
  2748. n = e.color,
  2749. g = void 0 === n ? "#fff" : n,
  2750. o = e.width,
  2751. C = void 0 === o ? 3 : o,
  2752. I = e.linecap,
  2753. s = r(e, ["hover", "color", "width", "linecap"]),
  2754. a = this,
  2755. l = { color: g, width: C, linecap: I };
  2756. return (
  2757. (i = i || A(A({}, l), { color: "rgba(243, 255, 0, 0.8)" })),
  2758. ((a = t.call(this, A({ width: C, color: g }, s)) || this).hover = i),
  2759. (a.init = l),
  2760. (a.disable = !1),
  2761. a.real.setAttribute("class", "variable"),
  2762. a
  2763. );
  2764. }
  2765. return (
  2766. g(e, t),
  2767. (e.prototype.setHoverStyle = function() {
  2768. var t = this;
  2769. console.log(this.hover),
  2770. Object.keys(this.hover).forEach(function(e) {
  2771. return (t[e] = t.hover[e]);
  2772. });
  2773. }),
  2774. (e.prototype.setUnHoverStyle = function() {
  2775. var t = this;
  2776. Object.keys(this.init).forEach(function(e) {
  2777. return (t[e] = t.init[e]);
  2778. });
  2779. }),
  2780. (e.prototype.dragStart = function() {
  2781. this.dragStartPoints = this.points.map(function(t) {
  2782. return { x: t.x, y: t.y };
  2783. });
  2784. }),
  2785. (e.prototype.drag = function(t) {
  2786. var e = this;
  2787. if (this.disable) return !1;
  2788. this.points.forEach(function(i, n) {
  2789. (i.x = e.dragStartPoints[n].x + t.x * e.multiple), (i.y = e.dragStartPoints[n].y + t.y * e.multiple);
  2790. });
  2791. }),
  2792. (e.prototype.dragEnd = function() {
  2793. delete this.dragStartPoints;
  2794. }),
  2795. e
  2796. );
  2797. })(o(i(10)).default);
  2798. e.default = C;
  2799. },
  2800. function(t, e, i) {
  2801. "use strict";
  2802. var n,
  2803. g =
  2804. (this && this.__extends) ||
  2805. ((n = function(t, e) {
  2806. return (n =
  2807. Object.setPrototypeOf ||
  2808. ({ __proto__: [] } instanceof Array &&
  2809. function(t, e) {
  2810. t.__proto__ = e;
  2811. }) ||
  2812. function(t, e) {
  2813. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  2814. })(t, e);
  2815. }),
  2816. function(t, e) {
  2817. function i() {
  2818. this.constructor = t;
  2819. }
  2820. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  2821. }),
  2822. A =
  2823. (this && this.__assign) ||
  2824. function() {
  2825. return (A =
  2826. Object.assign ||
  2827. function(t) {
  2828. for (var e, i = 1, n = arguments.length; i < n; i++)
  2829. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2830. return t;
  2831. }).apply(this, arguments);
  2832. },
  2833. r =
  2834. (this && this.__rest) ||
  2835. function(t, e) {
  2836. var i = {};
  2837. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2838. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2839. var g = 0;
  2840. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2841. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  2842. }
  2843. return i;
  2844. },
  2845. o =
  2846. (this && this.__spreadArrays,
  2847. (this && this.__importDefault) ||
  2848. function(t) {
  2849. return t && t.__esModule ? t : { default: t };
  2850. });
  2851. Object.defineProperty(e, "__esModule", { value: !0 });
  2852. var C = i(2),
  2853. I = o(i(5)),
  2854. s = i(0),
  2855. a = i(3),
  2856. l = i(1),
  2857. u = o(i(12)),
  2858. c = (function(t) {
  2859. function e(e) {
  2860. var i = e.minWidth,
  2861. n = void 0 === i ? 0.1 : i,
  2862. g = e.points,
  2863. o = e.renderer,
  2864. C = e.top,
  2865. a = e.bottom,
  2866. l = e.angle,
  2867. c = void 0 === l ? 0 : l,
  2868. h = e.stroke,
  2869. p = void 0 === h ? "rgba(255,255,255,0.5)" : h,
  2870. d = e.width,
  2871. f = void 0 === d ? 1 : d,
  2872. y = r(e, ["minWidth", "points", "renderer", "top", "bottom", "angle", "stroke", "width"]),
  2873. v = this,
  2874. m = g.map(function(t) {
  2875. return new I.default(A(A({}, t), { renderer: o }));
  2876. }),
  2877. b = m.map(function(t, e) {
  2878. return new u.default({ points: [m[e], m[e === m.length - 1 ? 0 : e + 1]], renderer: o, width: f, color: p });
  2879. });
  2880. ((v = t.call(this, A(A({}, y), { points: m, lines: b, renderer: o, angle: c, stroke: p, width: f, fill: "rgba(0,0,0,0)" })) || this).paths = b),
  2881. (v.points = m),
  2882. (v.zIndex = 1),
  2883. (v.minWidth = n),
  2884. (v.stop = !0);
  2885. var x = [];
  2886. return (
  2887. Object.defineProperty(v, "movePoints", {
  2888. get: function() {
  2889. return x;
  2890. },
  2891. set: function(t) {
  2892. (x = t), t && t.length >= 2 ? (this.moveLineDis = s.lineDis({ points: x })) : delete this.moveLineDis;
  2893. },
  2894. }),
  2895. v.real.setAttribute("class", "variable"),
  2896. Object.defineProperty(v, "top", {
  2897. get: function() {
  2898. return C;
  2899. },
  2900. set: function(t) {
  2901. (C = t), this.wallPos && this.wallPos();
  2902. },
  2903. }),
  2904. Object.defineProperty(v, "bottom", {
  2905. get: function() {
  2906. return a;
  2907. },
  2908. set: function(t) {
  2909. (a = t), this.wallPos && this.wallPos();
  2910. },
  2911. }),
  2912. v
  2913. );
  2914. }
  2915. return (
  2916. g(e, t),
  2917. (e.prototype.setHoverStyle = function() {
  2918. this.fill = "rgba(243, 255, 0, 0.8)";
  2919. }),
  2920. (e.prototype.setUnHoverStyle = function() {
  2921. this.fill = "rgba(243, 255, 0, 0)";
  2922. }),
  2923. (e.prototype.rotate = function(t) {
  2924. var e = this;
  2925. if (t === this.angle) return !1;
  2926. var i = s.faceRotate(this.points, t - this.angle);
  2927. return (
  2928. !!this.check(i) &&
  2929. ((this.stop = !1),
  2930. this.points.forEach(function(t, e) {
  2931. (t.x = i[e].x), (t.y = i[e].y);
  2932. }),
  2933. this.nextTick(function() {
  2934. return (e.stop = !0);
  2935. }),
  2936. !0)
  2937. );
  2938. }),
  2939. (e.prototype.grentNode = function() {
  2940. var t = this,
  2941. e = document.createElementNS(l.SVGURI, "g");
  2942. return (
  2943. (this.wrapPath = document.createElementNS(l.SVGURI, "path")),
  2944. e.appendChild(this.wrapPath),
  2945. this.nextTick(function() {
  2946. t.lines.forEach(function(i) {
  2947. (i.changeSelect = function(e) {
  2948. e && t.changeSelect(e);
  2949. }),
  2950. i.update(),
  2951. e.appendChild(i.real);
  2952. });
  2953. }),
  2954. e
  2955. );
  2956. }),
  2957. (e.prototype.update = function() {
  2958. var t = this;
  2959. this.wrapPath &&
  2960. (this.wrapPath.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  2961. this.wrapPath.setAttribute(
  2962. "d",
  2963. "M " +
  2964. this.points
  2965. .map(function(t) {
  2966. return t.x + " " + t.y;
  2967. })
  2968. .join(" L ") +
  2969. " z"
  2970. ),
  2971. this.wrapPath.setAttribute("fill", this.fill),
  2972. this.wrapPath.setAttribute("stroke", this.stroke)),
  2973. this.lines.forEach(function(e) {
  2974. e.real.setAttribute("stroke", t.stroke);
  2975. });
  2976. }),
  2977. (e.prototype.checkWidth = function(t) {
  2978. var e = this;
  2979. return (
  2980. void 0 === t && (t = this.points),
  2981. !t.some(function(i, n) {
  2982. var g = t[n === t.length - 1 ? 0 : n + 1];
  2983. return s.lineDis({ points: [i, g] }) <= e.minWidth;
  2984. })
  2985. );
  2986. }),
  2987. (e.prototype.qualified = function(t, e) {
  2988. void 0 === t && (t = this.points), void 0 === e && (e = this.room);
  2989. var i = this.renderer.processing.getRoomEles(e);
  2990. return (
  2991. !!s.isFaceContain(i.ground, t) &&
  2992. !i.hole.some(function(e) {
  2993. return s.isFaceIntersect(e, t) || s.isFaceContain(e, t) || s.isFaceContain(t, e);
  2994. })
  2995. );
  2996. }),
  2997. (e.prototype.check = function(t) {
  2998. return void 0 === t && (t = this.points), this.checkWidth(t);
  2999. }),
  3000. (e.prototype.intercept = function(t, e, i) {
  3001. e.x, e.y;
  3002. var n = e.angle;
  3003. return !a.type.isNumber(n) || this.rotate(n);
  3004. }),
  3005. (e.prototype.directUpdate = function(t) {
  3006. var e = this;
  3007. t.forEach(function(t, i) {
  3008. (e.points[i].__state.direct = !0), (e.points[i].x = t.x), (e.points[i].y = t.y), (e.points[i].__state.direct = !1), e.points[i].update();
  3009. }),
  3010. this.lines.forEach(function(t) {
  3011. t.update();
  3012. }),
  3013. this.update(),
  3014. this.wallPos && this.wallPos(),
  3015. this.fromAsync && this.fromAsync();
  3016. }),
  3017. (e.prototype.dragStart = function(t) {
  3018. if (
  3019. this.lines.some(function(e) {
  3020. return e.real === t.target;
  3021. })
  3022. ) {
  3023. var e = this.lines.find(function(e) {
  3024. return e.real === t.target;
  3025. });
  3026. this.moveLineDis = s.lineDis(e);
  3027. } else
  3028. this.initPoints = this.points.map(function(t) {
  3029. return { x: t.x, y: t.y };
  3030. });
  3031. }),
  3032. (e.prototype.drag = function(t) {
  3033. var e = this;
  3034. if (this.initPoints) {
  3035. this.stop = !1;
  3036. var i = this.points.map(function(i, n) {
  3037. return { x: e.initPoints[n].x + t.x * e.multiple, y: e.initPoints[n].y + t.y * e.multiple };
  3038. });
  3039. setTimeout(function() {
  3040. e.directUpdate(i);
  3041. });
  3042. }
  3043. }),
  3044. (e.prototype.dragEnd = function() {
  3045. var t = this;
  3046. this.nextTick(function() {
  3047. (t.stop = !0), delete t.moveLineDis;
  3048. }),
  3049. delete this.initPoints;
  3050. }),
  3051. (e.prototype.destroy = function() {
  3052. this.points.forEach(function(t) {
  3053. return t.destroy();
  3054. }),
  3055. (this.room = null),
  3056. (this.points = null),
  3057. (this.update = null),
  3058. t.prototype.destroy.call(this);
  3059. }),
  3060. e
  3061. );
  3062. })(C.CADElement);
  3063. e.default = c;
  3064. },
  3065. function(t, e, i) {
  3066. "use strict";
  3067. var n,
  3068. g =
  3069. (this && this.__extends) ||
  3070. ((n = function(t, e) {
  3071. return (n =
  3072. Object.setPrototypeOf ||
  3073. ({ __proto__: [] } instanceof Array &&
  3074. function(t, e) {
  3075. t.__proto__ = e;
  3076. }) ||
  3077. function(t, e) {
  3078. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  3079. })(t, e);
  3080. }),
  3081. function(t, e) {
  3082. function i() {
  3083. this.constructor = t;
  3084. }
  3085. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  3086. }),
  3087. A =
  3088. (this && this.__assign) ||
  3089. function() {
  3090. return (A =
  3091. Object.assign ||
  3092. function(t) {
  3093. for (var e, i = 1, n = arguments.length; i < n; i++)
  3094. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  3095. return t;
  3096. }).apply(this, arguments);
  3097. },
  3098. r =
  3099. (this && this.__awaiter) ||
  3100. function(t, e, i, n) {
  3101. return new (i || (i = Promise))(function(g, A) {
  3102. function r(t) {
  3103. try {
  3104. C(n.next(t));
  3105. } catch (t) {
  3106. A(t);
  3107. }
  3108. }
  3109. function o(t) {
  3110. try {
  3111. C(n.throw(t));
  3112. } catch (t) {
  3113. A(t);
  3114. }
  3115. }
  3116. function C(t) {
  3117. var e;
  3118. t.done
  3119. ? g(t.value)
  3120. : ((e = t.value),
  3121. e instanceof i
  3122. ? e
  3123. : new i(function(t) {
  3124. t(e);
  3125. })).then(r, o);
  3126. }
  3127. C((n = n.apply(t, e || [])).next());
  3128. });
  3129. },
  3130. o =
  3131. (this && this.__generator) ||
  3132. function(t, e) {
  3133. var i,
  3134. n,
  3135. g,
  3136. A,
  3137. r = {
  3138. label: 0,
  3139. sent: function() {
  3140. if (1 & g[0]) throw g[1];
  3141. return g[1];
  3142. },
  3143. trys: [],
  3144. ops: [],
  3145. };
  3146. return (
  3147. (A = { next: o(0), throw: o(1), return: o(2) }),
  3148. "function" == typeof Symbol &&
  3149. (A[Symbol.iterator] = function() {
  3150. return this;
  3151. }),
  3152. A
  3153. );
  3154. function o(A) {
  3155. return function(o) {
  3156. return (function(A) {
  3157. if (i) throw new TypeError("Generator is already executing.");
  3158. for (; r; )
  3159. try {
  3160. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  3161. return g;
  3162. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  3163. case 0:
  3164. case 1:
  3165. g = A;
  3166. break;
  3167. case 4:
  3168. return r.label++, { value: A[1], done: !1 };
  3169. case 5:
  3170. r.label++, (n = A[1]), (A = [0]);
  3171. continue;
  3172. case 7:
  3173. (A = r.ops.pop()), r.trys.pop();
  3174. continue;
  3175. default:
  3176. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  3177. r = 0;
  3178. continue;
  3179. }
  3180. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  3181. r.label = A[1];
  3182. break;
  3183. }
  3184. if (6 === A[0] && r.label < g[1]) {
  3185. (r.label = g[1]), (g = A);
  3186. break;
  3187. }
  3188. if (g && r.label < g[2]) {
  3189. (r.label = g[2]), r.ops.push(A);
  3190. break;
  3191. }
  3192. g[2] && r.ops.pop(), r.trys.pop();
  3193. continue;
  3194. }
  3195. A = e.call(t, r);
  3196. } catch (t) {
  3197. (A = [6, t]), (n = 0);
  3198. } finally {
  3199. i = g = 0;
  3200. }
  3201. if (5 & A[0]) throw A[1];
  3202. return { value: A[0] ? A[1] : void 0, done: !0 };
  3203. })([A, o]);
  3204. };
  3205. }
  3206. },
  3207. C =
  3208. (this && this.__spreadArrays) ||
  3209. function() {
  3210. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  3211. var n = Array(t),
  3212. g = 0;
  3213. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  3214. return n;
  3215. },
  3216. I =
  3217. (this && this.__importDefault) ||
  3218. function(t) {
  3219. return t && t.__esModule ? t : { default: t };
  3220. };
  3221. Object.defineProperty(e, "__esModule", { value: !0 });
  3222. var s = I(i(33)),
  3223. a = I(i(4)),
  3224. l = I(i(7)),
  3225. u = i(1),
  3226. c = i(0),
  3227. h = (function(t) {
  3228. function e() {
  3229. return (null !== t && t.apply(this, arguments)) || this;
  3230. }
  3231. return (
  3232. g(e, t),
  3233. (e.prototype.setHoverStyle = function() {
  3234. (this.color = this.hover.color), (this.width = this.hover.width), (this.linecap = this.hover.linecap);
  3235. }),
  3236. (e.prototype.setUnHoverStyle = function() {
  3237. (this.color = this.init.color), (this.width = this.init.width), (this.linecap = this.init.linecap);
  3238. }),
  3239. (e.prototype.dragStart = function() {
  3240. (this.clones = []),
  3241. (this.bkpoints = this.points.map(function(t) {
  3242. return { x: t.x, y: t.y };
  3243. })),
  3244. (this.startPoint = this.renderer.screenToRealPoint({ x: 0, y: 0 })),
  3245. (this.bkverctor = c.lineVector(this));
  3246. }),
  3247. (e.prototype.drag = function(t) {
  3248. var e = this.renderer.screenToRealPoint(t);
  3249. this.exterior || this.changePos({ x: e.x - this.startPoint.x, y: e.y - this.startPoint.y });
  3250. }),
  3251. (e.prototype.dragEnd = function() {
  3252. return r(this, void 0, void 0, function() {
  3253. var t,
  3254. e = this;
  3255. return o(this, function(i) {
  3256. return (
  3257. (t = this.renderer.processing).lines.forEach(function(t) {
  3258. t.ele.__state.direct = !1;
  3259. }),
  3260. t.points.forEach(function(t) {
  3261. t.ele.__state.direct = !1;
  3262. }),
  3263. setTimeout(function() {
  3264. e.renderer.processing.depLines();
  3265. }, 500),
  3266. [2]
  3267. );
  3268. });
  3269. });
  3270. }),
  3271. (e.prototype.directUpdate = function(t) {
  3272. this.__state.direct = !0;
  3273. var e = C(this.points);
  3274. e.forEach(function(t) {
  3275. return (t.__state.direct = !0);
  3276. }),
  3277. t(),
  3278. (e = Array.from(new Set(e.concat(this.points)))).forEach(function(t) {
  3279. return (t.__state.direct = !1);
  3280. }),
  3281. (this.__state.direct = !1),
  3282. e.concat(e).forEach(function(t) {
  3283. return t.update();
  3284. }),
  3285. this.wallLines
  3286. .filter(function(t) {
  3287. return t.points.some(function(t) {
  3288. return ~e.indexOf(t);
  3289. });
  3290. })
  3291. .forEach(function(t) {
  3292. t.update(),
  3293. t.points[0].wallPos && t.points[0].wallPos(),
  3294. t.points[1].wallPos && t.points[1].wallPos(),
  3295. t.wallPos && t.wallPos(),
  3296. t.fromAsync && t.fromAsync(),
  3297. t.updateJoin();
  3298. });
  3299. }),
  3300. (e.prototype.grentNewJoinLine = function(t, e) {
  3301. var i,
  3302. n = this,
  3303. g = this.renderer.processing,
  3304. r = g.points.find(function(e) {
  3305. return e.ele === t;
  3306. }),
  3307. o = g.lines.find(function(t) {
  3308. return t.ele === n;
  3309. }),
  3310. I = g.addPoint(
  3311. A(
  3312. {
  3313. id:
  3314. Math.max.apply(
  3315. Math,
  3316. g.points.map(function(t) {
  3317. return t.id;
  3318. })
  3319. ) + 1,
  3320. },
  3321. e
  3322. )
  3323. );
  3324. g.data.vertex.push({ id: I.id, x: e.x, y: e.y });
  3325. var s = o.ele,
  3326. a = C(s.points);
  3327. return (
  3328. (a[s.points.indexOf(t)] = I.ele),
  3329. s.directUpdate(function() {
  3330. (s.points = a), s.listenPointDrag(a);
  3331. }),
  3332. s.update(),
  3333. (i = g.cad.increase(u.SEFTLINE, { id: g.getNewLineId(), p1: I.id, p2: r.id, isOut: s.isOut, border: s.border, exterior: s.exterior }).obj),
  3334. this.wallLines
  3335. .filter(function(t) {
  3336. return ~t.points.indexOf(n.points[0]) || ~t.points.indexOf(n.points[1]);
  3337. })
  3338. .forEach(function(t) {
  3339. t.update(),
  3340. t.points[0].wallPos && t.points[0].wallPos(),
  3341. t.points[1].wallPos && t.points[1].wallPos(),
  3342. t.wallPos && t.wallPos(),
  3343. t.fromAsync && t.fromAsync();
  3344. }),
  3345. i
  3346. );
  3347. }),
  3348. (e.prototype.getPointJoinLines = function(t) {
  3349. for (
  3350. var e = this,
  3351. i = this.wallLines.filter(function(i) {
  3352. return ~i.points.indexOf(t) && !(~e.points.indexOf(i.points[0]) && ~e.points.indexOf(i.points[1]));
  3353. }),
  3354. n = [],
  3355. g = function(t) {
  3356. n.some(function(e) {
  3357. return ~e.points.indexOf(i[t].points[0]) && ~e.points.indexOf(i[t].points[1]);
  3358. }) || n.push(i[t]);
  3359. },
  3360. A = 0;
  3361. A < i.length;
  3362. A++
  3363. )
  3364. g(A);
  3365. return n;
  3366. }),
  3367. (e.prototype.updatePoint = function(t, e, i) {
  3368. var n = this.getPointJoinLines(t),
  3369. g = n[0],
  3370. r = c.lineVector(this),
  3371. o = Number(!this.points.indexOf(t)),
  3372. C = this.points[o],
  3373. I = !1;
  3374. if (g) {
  3375. var s = c.lineVector(g) || g.lineVerctor,
  3376. a = !1;
  3377. isNaN(s.x) && !isNaN(r.x) && (I = !0);
  3378. var l = this.points.indexOf(t),
  3379. u = n.every(function(t) {
  3380. var e = c.lineVector(t);
  3381. return Math.abs(Math.abs(e.x) - Math.abs(s.x)) < 0.2 && Math.abs(Math.abs(e.y) - Math.abs(s.y)) < 0.2;
  3382. }),
  3383. h = (Math.abs(Math.abs(s.x) - Math.abs(r.x)) < 0.2 && Math.abs(Math.abs(s.y) - Math.abs(r.y)) < 0.2) || (n.length > 1 && !u);
  3384. if (!~this.clones.indexOf(l) && (h || I)) {
  3385. if (!I && n.length > 1)
  3386. (g =
  3387. n.find(function(t) {
  3388. var e = c.lineVector(t);
  3389. return e.x - r.x < 0.1 && e.y - r.y < 0.1;
  3390. }) ||
  3391. n.find(function(t) {
  3392. var e = c.lineVector(t),
  3393. i = Math.abs(e.x - r.x),
  3394. n = Math.abs(e.y - r.y);
  3395. return (i > 0.1 && i < 0.9) || (n > 0.1 && n < 0.9);
  3396. }) ||
  3397. n[0]),
  3398. (s = g.lineVector || c.lineVector(g));
  3399. var p = A({}, e);
  3400. Math.abs(r.x) > Math.abs(r.y) ? (p.x = t.x) : (p.y = t.y),
  3401. I && (e = p),
  3402. (p.x === t.x && p.y === t.y) ||
  3403. ((g = this.grentNewJoinLine(t, p.x === t.x && p.y === t.y ? e : p)),
  3404. (a = !0),
  3405. this.clones.push(l),
  3406. (t = g.points[Number(!g.points.indexOf(t))]),
  3407. (s = c.lineVector(g)),
  3408. (g.lineVerctor = s));
  3409. }
  3410. if (
  3411. ((e = c.getVectorPosPoint(s, g.points[0], e)),
  3412. (g.lineVector = s),
  3413. !a && i && !I && (Math.abs(Math.abs(s.x) - Math.abs(r.x)) < 0.9 || Math.abs(Math.abs(s.y) - Math.abs(r.y)) < 0.9))
  3414. ) {
  3415. var d = c.segmentsIntrFine(g, { points: [C, { x: C.x + 1e4 * this.bkverctor.x, y: C.y + 1e4 * this.bkverctor.y }] });
  3416. d && (e = d);
  3417. }
  3418. } else {
  3419. if (this.getPointJoinLines(C).length) {
  3420. var f = this.points.indexOf(t);
  3421. e = { x: this.bkpoints[f].x + this.points[o].x - this.bkpoints[o].x, y: this.bkpoints[f].y + this.points[o].y - this.bkpoints[o].y };
  3422. }
  3423. g = this;
  3424. }
  3425. var y = c.lineVector({ points: [C, e] });
  3426. return (
  3427. !(
  3428. isNaN(e.x) ||
  3429. isNaN(e.y) ||
  3430. (i && (Math.abs(Math.abs(this.bkverctor.x) - Math.abs(y.x)) > 0.05 || Math.abs(Math.abs(this.bkverctor.y) - Math.abs(y.y)) > 0.05))
  3431. ) && ((t.__state.direct = !0), (t.x = e.x), (t.y = e.y), t.update(), (t.__state.direct = !1), g)
  3432. );
  3433. }),
  3434. (e.prototype.getVerPos = function(t) {
  3435. var e = c.verticalLine(this);
  3436. if (0 === e.x) return { x: 0, y: t.y };
  3437. if (0 === e.y) return { x: t.x, y: 0 };
  3438. var i = {
  3439. points: [
  3440. { x: -100 * e.x, y: -100 * e.y },
  3441. { x: 100 * e.x, y: 100 * e.y },
  3442. ],
  3443. },
  3444. n = c.pointLineDis(i, t),
  3445. g = Math.sqrt(Math.pow(t.x, 2) + Math.pow(t.y, 2) - Math.pow(n, 2)),
  3446. A = c.getDisPointLinePoints(i, { x: 0, y: 0 }, g),
  3447. r = A[0],
  3448. o = A[1];
  3449. return c.lineDis({ points: [r, t] }) > c.lineDis({ points: [o, t] }) ? o : r;
  3450. }),
  3451. (e.prototype.checkJoinArch = function() {
  3452. var t = a.default.attaArch.get(this);
  3453. if (!t || 0 === t.length) return !1;
  3454. var e = t.map(function(t) {
  3455. return [t.linePoints[0].getLineInsertPoint(), t.linePoints[1].getLineInsertPoint()];
  3456. });
  3457. return t.some(function(t, i) {
  3458. return !(e[i][0] && e[i][1] && t.qualified(e[i])) || (t instanceof l.default && 0 === t.getPeripheral(e[i].concat(t.points.slice(2))).length);
  3459. });
  3460. }),
  3461. (e.prototype.updateArchs = function() {
  3462. var t = a.default.attaArch.get(this);
  3463. if (t && 0 !== t.length) {
  3464. var e = t.map(function(t) {
  3465. return t.lineChange().points;
  3466. });
  3467. t.forEach(function(t, i) {
  3468. if (
  3469. ((t.__state.direct = !0),
  3470. (t.linePoints[0].__state.direct = !0),
  3471. (t.linePoints[1].__state.direct = !0),
  3472. (t.linePoints[0].x = e[i][0].x),
  3473. (t.linePoints[0].y = e[i][0].y),
  3474. (t.linePoints[1].x = e[i][1].x),
  3475. (t.linePoints[1].y = e[i][1].y),
  3476. t.linePoints[0].update(),
  3477. t.linePoints[1].update(),
  3478. (t.linePoints[0].__state.direct = !1),
  3479. (t.linePoints[1].__state.direct = !1),
  3480. t instanceof l.default)
  3481. ) {
  3482. var n = t.getPeripheral();
  3483. (t.points[2].__state.direct = !0),
  3484. (t.points[3].__state.direct = !0),
  3485. (t.points[2].x = n[0].x),
  3486. (t.points[2].y = n[0].y),
  3487. (t.points[3].x = n[1].x),
  3488. (t.points[3].y = n[1].y),
  3489. t.points[2].update(),
  3490. t.points[3].update(),
  3491. (t.points[2].__state.direct = !1),
  3492. (t.points[3].__state.direct = !1);
  3493. }
  3494. (t.__state.direct = !1), t.dragEnd(), t.update();
  3495. });
  3496. }
  3497. }),
  3498. (e.prototype.changePos = function(t) {
  3499. var e = this;
  3500. (0 === t.x && 0 === t.y) || (t = this.getVerPos(t)),
  3501. this.directUpdate(function() {
  3502. e.points.map(function(t) {
  3503. return { x: t.x, y: t.y };
  3504. });
  3505. var i = [0, 1],
  3506. n = e.getPointJoinLines(e.points[0]),
  3507. g = e.getPointJoinLines(e.points[1]),
  3508. A =
  3509. (e.points.map(function(t) {
  3510. return { x: t.x, y: t.y };
  3511. }),
  3512. !0);
  3513. if (0 === n.length) i = [1, 0];
  3514. else if (0 !== g.length) {
  3515. i = c.getPointCoordDistance(e.bkverctor, c.lineVector(n[0])) > c.getPointCoordDistance(e.bkverctor, c.lineVector(g[0])) ? [0, 1] : [1, 0];
  3516. }
  3517. i.forEach(function(i, n) {
  3518. A && (e.updatePoint(e.points[i], { x: e.bkpoints[i].x + t.x, y: e.bkpoints[i].y + t.y }, !!n) || (A = !1));
  3519. }),
  3520. e.renderer.processing.lines
  3521. .filter(function(t) {
  3522. return ~t.ele.points.indexOf(e.points[0]) || ~t.ele.points.indexOf(e.points[1]);
  3523. })
  3524. .forEach(function(t) {
  3525. t.ele.updateArchs();
  3526. });
  3527. });
  3528. }),
  3529. (e.prototype.correct = function() {
  3530. for (
  3531. var t = this.renderer.processing,
  3532. e = t.points.map(function(t) {
  3533. return t.ele;
  3534. }),
  3535. i = t.lines.map(function(t) {
  3536. return t.ele;
  3537. }),
  3538. n = i.filter(function(t) {
  3539. return ~e.indexOf(t.points[0]) || ~e.indexOf(t.points[1]);
  3540. }),
  3541. g = function(t, e, i) {
  3542. return ~t.points.indexOf(e) && ~t.points.indexOf(i);
  3543. },
  3544. A = function(A) {
  3545. var o = i[A],
  3546. I = e.find(function(t) {
  3547. return !~o.points.indexOf(t) && (c.lineDis({ points: [o.points[0], t] }) < 0.02 || c.lineDis({ points: [o.points[1], t] }) < 0.02);
  3548. });
  3549. if (!I) return "continue";
  3550. var s = 0;
  3551. if (
  3552. i.some(function(t) {
  3553. return g(t, I, o.points[0]);
  3554. })
  3555. )
  3556. s = 0;
  3557. else {
  3558. if (
  3559. !i.some(function(t) {
  3560. return g(t, I, o.points[1]);
  3561. })
  3562. )
  3563. return "continue";
  3564. s = 1;
  3565. }
  3566. var a = o.points[s];
  3567. return (
  3568. n
  3569. .filter(function(t) {
  3570. return ~t.points.indexOf(a);
  3571. })
  3572. .forEach(function(t) {
  3573. var e = t.points.indexOf(a),
  3574. i = t.points,
  3575. n = C(i);
  3576. (n[e] = I),
  3577. t.directUpdate(function() {
  3578. (t.points = n), t.listenPointDrag(n);
  3579. });
  3580. }),
  3581. n
  3582. .filter(function(t) {
  3583. return ~t.points.indexOf(I) && ~t.points.indexOf(a);
  3584. })
  3585. .forEach(function(e) {
  3586. t.lines.splice(
  3587. t.lines.findIndex(function(t) {
  3588. return t.ele === e;
  3589. }),
  3590. 1
  3591. ),
  3592. e.destroy();
  3593. }),
  3594. a.destroy(),
  3595. { value: r.correct() }
  3596. );
  3597. },
  3598. r = this,
  3599. o = 0;
  3600. o < i.length;
  3601. o++
  3602. ) {
  3603. var I = A(o);
  3604. if ("object" == typeof I) return I.value;
  3605. }
  3606. }),
  3607. e
  3608. );
  3609. })(s.default);
  3610. e.default = h;
  3611. },
  3612. function(t, e, i) {
  3613. "use strict";
  3614. var n,
  3615. g =
  3616. (this && this.__extends) ||
  3617. ((n = function(t, e) {
  3618. return (n =
  3619. Object.setPrototypeOf ||
  3620. ({ __proto__: [] } instanceof Array &&
  3621. function(t, e) {
  3622. t.__proto__ = e;
  3623. }) ||
  3624. function(t, e) {
  3625. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  3626. })(t, e);
  3627. }),
  3628. function(t, e) {
  3629. function i() {
  3630. this.constructor = t;
  3631. }
  3632. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  3633. }),
  3634. A =
  3635. (this && this.__assign) ||
  3636. function() {
  3637. return (A =
  3638. Object.assign ||
  3639. function(t) {
  3640. for (var e, i = 1, n = arguments.length; i < n; i++)
  3641. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  3642. return t;
  3643. }).apply(this, arguments);
  3644. },
  3645. r =
  3646. (this && this.__rest) ||
  3647. function(t, e) {
  3648. var i = {};
  3649. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  3650. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  3651. var g = 0;
  3652. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  3653. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  3654. }
  3655. return i;
  3656. },
  3657. o =
  3658. (this && this.__importDefault) ||
  3659. function(t) {
  3660. return t && t.__esModule ? t : { default: t };
  3661. };
  3662. Object.defineProperty(e, "__esModule", { value: !0 });
  3663. var C = o(i(8)),
  3664. I = i(1),
  3665. s = i(0),
  3666. a = (function(t) {
  3667. function e(e) {
  3668. var i = e.points,
  3669. n = e.foorWidth,
  3670. g = void 0 === n ? 6 : n,
  3671. o = e.foorColor,
  3672. C = void 0 === o ? "rgba(255,255,255,0.5)" : o,
  3673. I = e.clipColor,
  3674. s = void 0 === I ? "rgba(0,0,0,1)" : I,
  3675. a = (e.linecap, e.within),
  3676. l = void 0 === a ? 0 : a,
  3677. u = r(e, ["points", "foorWidth", "foorColor", "clipColor", "linecap", "within"]),
  3678. c = this;
  3679. return (
  3680. (i[0].fillColor = "rgba(0,0,0,0)"),
  3681. (i[1].fillColor = "rgba(0,0,0,0)"),
  3682. ((c = t.call(this, A(A({}, u), { points: i, foorWidth: g, foorColor: C, within: l })) || this).clipColor = s),
  3683. c
  3684. );
  3685. }
  3686. return (
  3687. g(e, t),
  3688. (e.prototype.setHoverStyle = function() {
  3689. (this.clipColor = "rgba(243, 255, 0, 0.8)"), (this.foorColor = "rgba(243, 255, 0, 0.8)");
  3690. }),
  3691. (e.prototype.setUnHoverStyle = function() {
  3692. (this.clipColor = "rgba(0,0,0,1)"), (this.foorColor = "rgba(255,255,255,0.5)");
  3693. }),
  3694. (e.prototype.grentNode = function() {
  3695. var t = this,
  3696. e = document.createElementNS(I.SVGURI, "g");
  3697. return (
  3698. (this.clip1 = document.createElementNS(I.SVGURI, "path")),
  3699. e.appendChild(this.clip1),
  3700. (this.clip2 = document.createElementNS(I.SVGURI, "path")),
  3701. e.appendChild(this.clip2),
  3702. (this.path1 = document.createElementNS(I.SVGURI, "path")),
  3703. e.appendChild(this.path1),
  3704. (this.path2 = document.createElementNS(I.SVGURI, "path")),
  3705. e.appendChild(this.path2),
  3706. (this.left = document.createElementNS(I.SVGURI, "rect")),
  3707. this.left.setAttribute("width", "0.00001"),
  3708. this.left.setAttribute("height", "0.00001"),
  3709. e.appendChild(this.left),
  3710. (this.right = document.createElementNS(I.SVGURI, "rect")),
  3711. this.right.setAttribute("width", "0.00001"),
  3712. this.right.setAttribute("height", "0.00001"),
  3713. e.appendChild(this.right),
  3714. this.nextTick(function() {
  3715. e.appendChild(t.linePoints[0].real),
  3716. e.appendChild(t.linePoints[1].real),
  3717. t.linePoints.forEach(function(e) {
  3718. e.changeSelect = function(e) {
  3719. e && t.changeSelect(e);
  3720. };
  3721. });
  3722. }),
  3723. e
  3724. );
  3725. }),
  3726. (e.prototype.update = function() {
  3727. var t,
  3728. e,
  3729. i,
  3730. n,
  3731. g = this.foorWidth * this.multiple,
  3732. A = s.lineDis({ points: this.linePoints }),
  3733. r = 2 * this.multiple,
  3734. o = 0.6 * A;
  3735. if ((this.within ? ((i = (t = this.linePoints)[0]), (n = t[1])) : ((n = (e = this.linePoints)[0]), (i = e[1])), !isNaN(i.x))) {
  3736. var C = s.getLineDisSelectPoint({ points: this.linePoints }, i, o),
  3737. I = s.getLineDisSelectPoint({ points: this.linePoints }, i, o - r),
  3738. a = s.getLineDisSelectPoint({ points: this.linePoints }, n, o),
  3739. l = s.getLineDisSelectPoint({ points: this.linePoints }, n, o - r),
  3740. u = s.verticalLine({ points: this.linePoints }),
  3741. c = g / 2,
  3742. h = (g - c) / 2 - 1e-4 * this.multiple,
  3743. p = i.x + u.x * h,
  3744. d = i.y + u.y * h,
  3745. f = C.x + u.x * h,
  3746. y = C.y + u.y * h,
  3747. v = I.x + u.x * h,
  3748. m = I.y + u.y * h,
  3749. b = n.x - u.x * h,
  3750. x = n.y - u.y * h,
  3751. _ = a.x - u.x * h,
  3752. w = a.y - u.y * h,
  3753. P = l.x - u.x * h,
  3754. O = l.y - u.y * h;
  3755. this.path1.setAttribute("stroke", this.foorColor),
  3756. this.path1.setAttribute("stroke-width", c.toString()),
  3757. this.path1.setAttribute("d", "M " + p + " " + d + " L " + f + " " + y),
  3758. this.clip1.setAttribute("stroke", this.clipColor),
  3759. this.clip1.setAttribute("stroke-width", (c - this.bwithin * this.multiple).toString()),
  3760. this.clip1.setAttribute("d", "M " + p + " " + d + " L " + v + " " + m),
  3761. this.path2.setAttribute("stroke", this.foorColor),
  3762. this.path2.setAttribute("stroke-width", c.toString()),
  3763. this.path2.setAttribute("d", "M " + b + " " + x + " L " + _ + " " + w),
  3764. this.clip2.setAttribute("stroke", this.clipColor),
  3765. this.clip2.setAttribute("stroke-width", (c - this.bwithin * this.multiple).toString()),
  3766. this.clip2.setAttribute("d", "M " + b + " " + x + " L " + P + " " + O),
  3767. this.left.setAttribute("x", i.x.toString()),
  3768. this.left.setAttribute("y", i.y.toString()),
  3769. this.left.setAttribute("stroke-width", g.toString()),
  3770. this.left.setAttribute("stroke", "rgba(0,0,0,0)"),
  3771. this.right.setAttribute("x", n.x.toString()),
  3772. this.right.setAttribute("y", n.y.toString()),
  3773. this.right.setAttribute("stroke-width", g.toString()),
  3774. this.right.setAttribute("stroke", "rgba(0,0,0,0)"),
  3775. this.attachment.update();
  3776. }
  3777. }),
  3778. e
  3779. );
  3780. })(C.default);
  3781. e.default = a;
  3782. },
  3783. function(t, e, i) {
  3784. "use strict";
  3785. var n,
  3786. g =
  3787. (this && this.__extends) ||
  3788. ((n = function(t, e) {
  3789. return (n =
  3790. Object.setPrototypeOf ||
  3791. ({ __proto__: [] } instanceof Array &&
  3792. function(t, e) {
  3793. t.__proto__ = e;
  3794. }) ||
  3795. function(t, e) {
  3796. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  3797. })(t, e);
  3798. }),
  3799. function(t, e) {
  3800. function i() {
  3801. this.constructor = t;
  3802. }
  3803. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  3804. }),
  3805. A =
  3806. (this && this.__importDefault) ||
  3807. function(t) {
  3808. return t && t.__esModule ? t : { default: t };
  3809. };
  3810. Object.defineProperty(e, "__esModule", { value: !0 });
  3811. var r = A(i(8)),
  3812. o = i(1),
  3813. C = i(0),
  3814. I = (function(t) {
  3815. function e(e) {
  3816. return t.call(this, e) || this;
  3817. }
  3818. return (
  3819. g(e, t),
  3820. (e.prototype.grentNode = function() {
  3821. var t = this,
  3822. e = document.createElementNS(o.SVGURI, "g");
  3823. return (
  3824. (this.arc1 = document.createElementNS(o.SVGURI, "path")),
  3825. (this.outLine1 = document.createElementNS(o.SVGURI, "path")),
  3826. (this.arc2 = document.createElementNS(o.SVGURI, "path")),
  3827. (this.outLine2 = document.createElementNS(o.SVGURI, "path")),
  3828. e.appendChild(this.outLine1),
  3829. e.appendChild(this.arc1),
  3830. e.appendChild(this.outLine2),
  3831. e.appendChild(this.arc2),
  3832. this.nextTick(function() {
  3833. e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real);
  3834. }),
  3835. e
  3836. );
  3837. }),
  3838. (e.prototype.update = function() {
  3839. var t;
  3840. this.real.style.display = this.show ? "initial" : "none";
  3841. var e = C.lineCenter({ points: this.linePoints }),
  3842. i = this.getDrawArgs.call({ linePoints: [this.linePoints[0], e], within: 1 === this.within ? 2 : this.within, attachment: this.attachment }),
  3843. n = i[0],
  3844. g = i[1],
  3845. A = i[2],
  3846. r = i[3],
  3847. o = i[4];
  3848. isNaN(A.x)
  3849. ? this.destroy()
  3850. : (this.arc1.setAttribute(
  3851. "d",
  3852. "M " + n.x + " " + n.y + " L " + A.x + " " + A.y + " A " + r + " " + r + " 0 0 " + (o ? "1" : "0") + " " + g.x + " " + g.y + " Z"
  3853. ),
  3854. this.arc1.setAttribute("stroke-width", (this.outWidth * this.multiple).toString()),
  3855. this.arc1.setAttribute("stroke", this.stroke),
  3856. this.arc1.setAttribute("fill", this.fill),
  3857. this.outLine1.setAttribute("stroke", this.foorColor),
  3858. this.outLine1.setAttribute("fill", this.fill),
  3859. this.outLine1.setAttribute("stroke-width", (this.foorWidth * this.multiple).toString()),
  3860. this.outLine1.setAttribute("stroke-linecap", this.linecap),
  3861. this.outLine1.setAttribute(
  3862. "d",
  3863. "M " + this.linePoints[0].x + " " + this.linePoints[0].y + " L " + this.linePoints[1].x + " " + this.linePoints[1].y
  3864. ),
  3865. (n = (t = this.getDrawArgs.call({
  3866. linePoints: [this.linePoints[1], e],
  3867. within: 1 === this.within ? 2 : this.within,
  3868. attachment: this.attachment,
  3869. }))[0]),
  3870. (g = t[1]),
  3871. (A = t[2]),
  3872. (r = t[3]),
  3873. (o = t[4]),
  3874. isNaN(A.x)
  3875. ? this.destroy()
  3876. : (this.arc2.setAttribute(
  3877. "d",
  3878. "M " + n.x + " " + n.y + " L " + A.x + " " + A.y + " A " + r + " " + r + " 0 0 " + (o ? "1" : "0") + " " + g.x + " " + g.y + " Z"
  3879. ),
  3880. this.arc2.setAttribute("stroke-width", (this.outWidth * this.multiple).toString()),
  3881. this.arc2.setAttribute("stroke", this.stroke),
  3882. this.arc2.setAttribute("fill", this.fill),
  3883. this.outLine2.setAttribute("stroke", this.foorColor),
  3884. this.outLine2.setAttribute("fill", this.fill),
  3885. this.outLine2.setAttribute("stroke-width", (this.foorWidth * this.multiple).toString()),
  3886. this.outLine2.setAttribute("stroke-linecap", this.linecap),
  3887. this.outLine2.setAttribute(
  3888. "d",
  3889. "M " + this.linePoints[0].x + " " + this.linePoints[0].y + " L " + this.linePoints[1].x + " " + this.linePoints[1].y
  3890. ),
  3891. this.attachment.update()));
  3892. }),
  3893. e
  3894. );
  3895. })(r.default);
  3896. e.default = I;
  3897. },
  3898. function(t, e, i) {
  3899. "use strict";
  3900. var n,
  3901. g =
  3902. (this && this.__extends) ||
  3903. ((n = function(t, e) {
  3904. return (n =
  3905. Object.setPrototypeOf ||
  3906. ({ __proto__: [] } instanceof Array &&
  3907. function(t, e) {
  3908. t.__proto__ = e;
  3909. }) ||
  3910. function(t, e) {
  3911. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  3912. })(t, e);
  3913. }),
  3914. function(t, e) {
  3915. function i() {
  3916. this.constructor = t;
  3917. }
  3918. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  3919. }),
  3920. A =
  3921. (this && this.__importDefault) ||
  3922. function(t) {
  3923. return t && t.__esModule ? t : { default: t };
  3924. };
  3925. Object.defineProperty(e, "__esModule", { value: !0 });
  3926. var r = A(i(13)),
  3927. o = i(1),
  3928. C = (function(t) {
  3929. function e() {
  3930. return (null !== t && t.apply(this, arguments)) || this;
  3931. }
  3932. return (
  3933. g(e, t),
  3934. (e.prototype.grentNode = function() {
  3935. var e = t.prototype.grentNode.call(this);
  3936. return (
  3937. (this.path1 = document.createElementNS(o.SVGURI, "path")),
  3938. (this.path2 = document.createElementNS(o.SVGURI, "path")),
  3939. this.path1.setAttribute("stroke", this.stroke),
  3940. this.path2.setAttribute("stroke", this.stroke),
  3941. e.insertBefore(this.path1, e.childNodes[0]),
  3942. e.insertBefore(this.path2, e.childNodes[0]),
  3943. e
  3944. );
  3945. }),
  3946. (e.prototype.update = function() {
  3947. t.prototype.update.call(this),
  3948. this.path1.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  3949. this.path2.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  3950. this.path1.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[2].x + " " + this.points[2].y),
  3951. this.path2.setAttribute("d", "M " + this.points[1].x + " " + this.points[1].y + " L " + this.points[3].x + " " + this.points[3].y),
  3952. this.path1.setAttribute("stroke", this.stroke),
  3953. this.path2.setAttribute("stroke", this.stroke);
  3954. }),
  3955. e
  3956. );
  3957. })(r.default);
  3958. e.default = C;
  3959. },
  3960. function(t, e, i) {
  3961. "use strict";
  3962. var n,
  3963. g =
  3964. (this && this.__extends) ||
  3965. ((n = function(t, e) {
  3966. return (n =
  3967. Object.setPrototypeOf ||
  3968. ({ __proto__: [] } instanceof Array &&
  3969. function(t, e) {
  3970. t.__proto__ = e;
  3971. }) ||
  3972. function(t, e) {
  3973. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  3974. })(t, e);
  3975. }),
  3976. function(t, e) {
  3977. function i() {
  3978. this.constructor = t;
  3979. }
  3980. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  3981. }),
  3982. A =
  3983. (this && this.__importDefault) ||
  3984. function(t) {
  3985. return t && t.__esModule ? t : { default: t };
  3986. };
  3987. Object.defineProperty(e, "__esModule", { value: !0 });
  3988. var r = A(i(13)),
  3989. o = i(1),
  3990. C = i(0),
  3991. I = (function(t) {
  3992. function e() {
  3993. return (null !== t && t.apply(this, arguments)) || this;
  3994. }
  3995. return (
  3996. g(e, t),
  3997. (e.prototype.grentNode = function() {
  3998. var e = t.prototype.grentNode.call(this);
  3999. return (
  4000. (this.g = document.createElementNS(o.SVGURI, "g")),
  4001. (this.path1 = document.createElementNS(o.SVGURI, "path")),
  4002. (this.path2 = document.createElementNS(o.SVGURI, "path")),
  4003. this.path1.setAttribute("stroke", this.stroke),
  4004. this.path1.setAttribute("fill", "rgba(0,0,0,0)"),
  4005. this.path2.setAttribute("stroke", this.stroke),
  4006. this.path2.setAttribute("fill", "rgba(0,0,0,0)"),
  4007. this.g.appendChild(this.path1),
  4008. this.g.appendChild(this.path2),
  4009. e.insertBefore(this.g, e.children[0]),
  4010. e
  4011. );
  4012. }),
  4013. (e.prototype.update = function() {
  4014. t.prototype.update.call(this);
  4015. var e = C.faceCenter(this.points),
  4016. i = C.lineDis({ points: [this.points[1], this.points[2]] }) / this.multiple,
  4017. n = C.lineDis({ points: [this.points[2], this.points[3]] }) / this.multiple,
  4018. g = (n - 5 * this.width) / n,
  4019. A = (i - 5 * this.width) / i;
  4020. (g = g <= 0 ? 1 : g),
  4021. (A = A <= 0 ? 1 : A),
  4022. this.g.setAttribute("transform", "translate(" + e.x + "," + e.y + ") scale(" + (g < A ? A : g) + ") translate(" + -e.x + "," + -e.y + ")"),
  4023. this.path1.setAttribute("stroke-width", ((this.width * this.multiple) / (g < A ? A : g)).toString()),
  4024. this.path1.setAttribute(
  4025. "d",
  4026. "M " +
  4027. this.points
  4028. .map(function(t) {
  4029. return t.x + " " + t.y;
  4030. })
  4031. .join(" L ") +
  4032. " Z"
  4033. ),
  4034. this.path2.setAttribute("stroke", this.stroke);
  4035. var r = this.points[2],
  4036. o = { points: [this.points[1], this.points[3]] },
  4037. I = C.lineCenter(o),
  4038. s = C.lineDis({ points: [I, r] }) * (1 / 3),
  4039. a = C.getDisVerticalLinePoints(o, I, s),
  4040. l = a[0],
  4041. u = a[1],
  4042. c = C.lineDis({ points: [r, l] }) > C.lineDis({ points: [r, u] }) ? u : l;
  4043. C.pointInside(this.points, c) || (c = C.lineCenter(o)),
  4044. this.path2.setAttribute("stroke", this.stroke),
  4045. this.path2.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  4046. this.path2.setAttribute(
  4047. "d",
  4048. "M " + this.points[1].x + " " + this.points[1].y + " L " + c.x + " " + c.y + " L " + this.points[3].x + " " + this.points[3].y
  4049. );
  4050. }),
  4051. e
  4052. );
  4053. })(r.default);
  4054. e.default = I;
  4055. },
  4056. function(t, e, i) {
  4057. "use strict";
  4058. var n,
  4059. g =
  4060. (this && this.__extends) ||
  4061. ((n = function(t, e) {
  4062. return (n =
  4063. Object.setPrototypeOf ||
  4064. ({ __proto__: [] } instanceof Array &&
  4065. function(t, e) {
  4066. t.__proto__ = e;
  4067. }) ||
  4068. function(t, e) {
  4069. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  4070. })(t, e);
  4071. }),
  4072. function(t, e) {
  4073. function i() {
  4074. this.constructor = t;
  4075. }
  4076. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  4077. }),
  4078. A =
  4079. (this && this.__assign) ||
  4080. function() {
  4081. return (A =
  4082. Object.assign ||
  4083. function(t) {
  4084. for (var e, i = 1, n = arguments.length; i < n; i++)
  4085. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  4086. return t;
  4087. }).apply(this, arguments);
  4088. },
  4089. r =
  4090. (this && this.__rest) ||
  4091. function(t, e) {
  4092. var i = {};
  4093. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  4094. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  4095. var g = 0;
  4096. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  4097. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  4098. }
  4099. return i;
  4100. };
  4101. Object.defineProperty(e, "__esModule", { value: !0 });
  4102. var o = i(2),
  4103. C = i(1),
  4104. I = i(9),
  4105. s = (function(t) {
  4106. function e(e) {
  4107. var i = e.pos,
  4108. n = e.renderer,
  4109. g = e.fontSize,
  4110. o = void 0 === g ? 12 : g,
  4111. C = e.color,
  4112. I = void 0 === C ? "#fff" : C,
  4113. s = r(e, ["pos", "renderer", "fontSize", "color"]),
  4114. a = t.call(this, A(A({}, s), { x: i.x, y: i.y, fontSize: o, renderer: n, color: I })) || this;
  4115. return (a.zIndex = -1), a;
  4116. }
  4117. return (
  4118. g(e, t),
  4119. (e.prototype.changeSelect = function(e) {
  4120. t.prototype.changeSelect.call(this, e);
  4121. }),
  4122. (e.prototype.dragStart = function() {
  4123. this.dragStartPoint = { x: this.x, y: this.y };
  4124. }),
  4125. (e.prototype.drag = function(t) {
  4126. (this.x = this.dragStartPoint.x + t.x * this.multiple), (this.y = this.dragStartPoint.y + t.y * this.multiple);
  4127. }),
  4128. (e.prototype.grentNode = function() {
  4129. var t = this,
  4130. e = document.createElementNS(C.SVGURI, "g");
  4131. return (
  4132. (this.titleNode = document.createElementNS(C.SVGURI, "text")),
  4133. this.titleNode.setAttribute("fill", "#fff"),
  4134. this.titleNode.setAttribute("text-anchor", "middle"),
  4135. this.titleNode.setAttribute("dy", ".4em"),
  4136. (this.contentNode = document.createElementNS(C.SVGURI, "text")),
  4137. this.contentNode.setAttribute("fill", "#fff"),
  4138. this.contentNode.setAttribute("text-anchor", "middle"),
  4139. this.contentNode.setAttribute("dy", ".4em"),
  4140. e.appendChild(this.titleNode),
  4141. e.appendChild(this.contentNode),
  4142. this.nextTick(function() {
  4143. return t.update();
  4144. }),
  4145. e
  4146. );
  4147. }),
  4148. (e.prototype.setHoverStyle = function() {}),
  4149. (e.prototype.setUnHoverStyle = function() {}),
  4150. (e.prototype.update = function() {
  4151. var t = this.fontSize * this.multiple;
  4152. this.titleNode.setAttribute("x", this.x.toString()),
  4153. this.titleNode.setAttribute("y", this.y.toString()),
  4154. this.titleNode.setAttribute("font-size", t.toString()),
  4155. (this.titleNode.style.display = this.show && this.showTitle ? "inherit" : "none"),
  4156. (this.titleNode.textContent = this.title || I.i18n.t("modules.model.tagging_name_tips")),
  4157. this.contentNode.setAttribute("x", this.x.toString()),
  4158. this.contentNode.setAttribute("y", (this.y + t + t / 5).toString()),
  4159. this.contentNode.setAttribute("font-size", t.toString()),
  4160. (this.contentNode.style.display = this.show && this.showContent ? "inherit" : "none"),
  4161. (this.contentNode.textContent = this.content),
  4162. this.select
  4163. ? (this.titleNode.setAttribute("fill", "rgb(0, 200, 175)"), this.contentNode.setAttribute("fill", "rgb(0, 200, 175)"))
  4164. : (this.titleNode.setAttribute("fill", this.color), this.contentNode.setAttribute("fill", this.color));
  4165. }),
  4166. (e.prototype.destroy = function() {
  4167. t.prototype.destroy.call(this);
  4168. }),
  4169. e
  4170. );
  4171. })(o.CADElement);
  4172. e.default = s;
  4173. },
  4174. function(t, e, i) {
  4175. "use strict";
  4176. var n,
  4177. g =
  4178. (this && this.__extends) ||
  4179. ((n = function(t, e) {
  4180. return (n =
  4181. Object.setPrototypeOf ||
  4182. ({ __proto__: [] } instanceof Array &&
  4183. function(t, e) {
  4184. t.__proto__ = e;
  4185. }) ||
  4186. function(t, e) {
  4187. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  4188. })(t, e);
  4189. }),
  4190. function(t, e) {
  4191. function i() {
  4192. this.constructor = t;
  4193. }
  4194. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  4195. }),
  4196. A =
  4197. (this && this.__assign) ||
  4198. function() {
  4199. return (A =
  4200. Object.assign ||
  4201. function(t) {
  4202. for (var e, i = 1, n = arguments.length; i < n; i++)
  4203. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  4204. return t;
  4205. }).apply(this, arguments);
  4206. },
  4207. r =
  4208. (this && this.__rest) ||
  4209. function(t, e) {
  4210. var i = {};
  4211. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  4212. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  4213. var g = 0;
  4214. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  4215. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  4216. }
  4217. return i;
  4218. },
  4219. o =
  4220. (this && this.__importDefault) ||
  4221. function(t) {
  4222. return t && t.__esModule ? t : { default: t };
  4223. };
  4224. Object.defineProperty(e, "__esModule", { value: !0 });
  4225. var C = i(1),
  4226. I = o(i(4)),
  4227. s = i(0),
  4228. a = (function(t) {
  4229. function e(e) {
  4230. var i = e.points,
  4231. n = e.width,
  4232. g = void 0 === n ? 3 : n,
  4233. o = r(e, ["points", "width"]);
  4234. return t.call(this, A({ linePoints: i, fill: "rgba(255,255,255,0.5)", width: g }, o)) || this;
  4235. }
  4236. return (
  4237. g(e, t),
  4238. (e.prototype.grentNode = function() {
  4239. var t = this,
  4240. e = document.createElementNS(C.SVGURI, "g");
  4241. return (
  4242. (this.clip1 = document.createElementNS(C.SVGURI, "path")),
  4243. (this.clip2 = document.createElementNS(C.SVGURI, "path")),
  4244. (this.clip3 = document.createElementNS(C.SVGURI, "path")),
  4245. (this.clip4 = document.createElementNS(C.SVGURI, "path")),
  4246. (this.clip5 = document.createElementNS(C.SVGURI, "path")),
  4247. this.clip1.setAttribute("stroke", this.fill),
  4248. this.clip2.setAttribute("stroke", this.fill),
  4249. this.clip3.setAttribute("stroke", this.fill),
  4250. this.clip4.setAttribute("stroke", this.fill),
  4251. this.clip5.setAttribute("stroke", this.fill),
  4252. e.appendChild(this.clip1),
  4253. e.appendChild(this.clip2),
  4254. e.appendChild(this.clip3),
  4255. e.appendChild(this.clip4),
  4256. e.appendChild(this.clip5),
  4257. this.nextTick(function() {
  4258. e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real);
  4259. }),
  4260. e
  4261. );
  4262. }),
  4263. (e.prototype.setHoverStyle = function() {
  4264. this.fill = "rgba(243, 255, 0, 0.8)";
  4265. }),
  4266. (e.prototype.setUnHoverStyle = function() {
  4267. this.fill = "rgba(255,255,255,0.5)";
  4268. }),
  4269. (e.prototype.update = function() {
  4270. var t = s.getDisVerticalLinePoints(this.attachment, this.linePoints[0], 0.4 * this.width * this.multiple),
  4271. e = t[0],
  4272. i = t[1],
  4273. n = s.getDisVerticalLinePoints(this.attachment, this.linePoints[1], 0.4 * this.width * this.multiple),
  4274. g = n[0],
  4275. A = n[1],
  4276. r = s.getDisVerticalLinePoints(this.attachment, this.linePoints[0], 0.15 * this.width * this.multiple),
  4277. o = r[0],
  4278. C = r[1],
  4279. I = s.getDisVerticalLinePoints(this.attachment, this.linePoints[1], 0.15 * this.width * this.multiple),
  4280. a = I[0],
  4281. l = I[1],
  4282. u = s.lineCenter({ points: [o, a] }),
  4283. c = s.lineCenter({ points: [C, l] });
  4284. isNaN(e.x) ||
  4285. (this.clip1.setAttribute("stroke-width", this.multiple.toString()),
  4286. this.clip1.setAttribute("d", "M " + e.x + " " + e.y + " L " + g.x + " " + g.y),
  4287. this.clip2.setAttribute("stroke-width", this.multiple.toString()),
  4288. this.clip2.setAttribute("d", "M " + i.x + " " + i.y + " L " + A.x + " " + A.y),
  4289. this.clip3.setAttribute("stroke-width", this.multiple.toString()),
  4290. this.clip3.setAttribute("d", "M " + o.x + " " + o.y + " L " + a.x + " " + a.y),
  4291. this.clip4.setAttribute("stroke-width", this.multiple.toString()),
  4292. this.clip4.setAttribute("d", "M " + C.x + " " + C.y + " L " + l.x + " " + l.y),
  4293. this.clip5.setAttribute("stroke-width", (6 * this.multiple).toString()),
  4294. this.clip5.setAttribute("d", "M " + u.x + " " + u.y + " L " + c.x + " " + c.y),
  4295. this.clip1.setAttribute("stroke", this.fill),
  4296. this.clip2.setAttribute("stroke", this.fill),
  4297. this.clip3.setAttribute("stroke", this.fill),
  4298. this.clip4.setAttribute("stroke", this.fill),
  4299. this.clip5.setAttribute("stroke", this.fill),
  4300. this.attachment.update());
  4301. }),
  4302. (e.prototype.dragStart = function(t) {
  4303. (this.move = this.linePoints[0].real === t.target || this.linePoints[1].real === t.target),
  4304. (this.dragStartPoints = this.linePoints.map(function(t) {
  4305. return { x: t.x, y: t.y };
  4306. }));
  4307. }),
  4308. (e.prototype.drag = function(t) {
  4309. var e = this;
  4310. this.move ||
  4311. this.linePoints.forEach(function(i, n) {
  4312. (i.x = e.dragStartPoints[n].x + t.x * e.multiple), (i.y = e.dragStartPoints[n].y + t.y * e.multiple);
  4313. });
  4314. }),
  4315. (e.prototype.dragEnd = function() {
  4316. (this.move = !1), delete this.dragStartPoints;
  4317. }),
  4318. e
  4319. );
  4320. })(I.default);
  4321. e.default = a;
  4322. },
  4323. function(t, e, i) {
  4324. "use strict";
  4325. var n,
  4326. g =
  4327. (this && this.__extends) ||
  4328. ((n = function(t, e) {
  4329. return (n =
  4330. Object.setPrototypeOf ||
  4331. ({ __proto__: [] } instanceof Array &&
  4332. function(t, e) {
  4333. t.__proto__ = e;
  4334. }) ||
  4335. function(t, e) {
  4336. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  4337. })(t, e);
  4338. }),
  4339. function(t, e) {
  4340. function i() {
  4341. this.constructor = t;
  4342. }
  4343. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  4344. }),
  4345. A =
  4346. (this && this.__assign) ||
  4347. function() {
  4348. return (A =
  4349. Object.assign ||
  4350. function(t) {
  4351. for (var e, i = 1, n = arguments.length; i < n; i++)
  4352. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  4353. return t;
  4354. }).apply(this, arguments);
  4355. },
  4356. r =
  4357. (this && this.__rest) ||
  4358. function(t, e) {
  4359. var i = {};
  4360. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  4361. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  4362. var g = 0;
  4363. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  4364. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  4365. }
  4366. return i;
  4367. },
  4368. o =
  4369. (this && this.__importDefault) ||
  4370. function(t) {
  4371. return t && t.__esModule ? t : { default: t };
  4372. };
  4373. Object.defineProperty(e, "__esModule", { value: !0 });
  4374. var C = i(1),
  4375. I = o(i(4)),
  4376. s = i(0),
  4377. a = (function(t) {
  4378. function e(e) {
  4379. var i = e.points,
  4380. n = e.within,
  4381. g = void 0 === n ? 0 : n,
  4382. o = e.width,
  4383. C = void 0 === o ? 1 : o,
  4384. I = r(e, ["points", "within", "width"]);
  4385. return (
  4386. (i[0].fillColor = "rgba(0,0,0,0)"),
  4387. (i[1].fillColor = "rgba(0,0,0,0)"),
  4388. t.call(this, A({ linePoints: i, fill: "rgba(243, 255, 0, 0)", stroke: "rgba(255,255,255,0.5)", within: g, width: C }, I)) || this
  4389. );
  4390. }
  4391. return (
  4392. g(e, t),
  4393. (e.prototype.grentNode = function() {
  4394. var t = this,
  4395. e = document.createElementNS(C.SVGURI, "g");
  4396. return (
  4397. (e.innerHTML =
  4398. '\n <path class="ground-case-out" stroke="' +
  4399. this.stroke +
  4400. '" fill="rgba(0,0,0,0)"/>\n <path class="ground-case-in" stroke="' +
  4401. this.stroke +
  4402. '" fill="rgba(0,0,0,0)" />\n <rect width="0.00001" height="0.00001" class="ground-case-left" stroke="rgba(255,255,255,0)" />\n <rect width="0.00001" height="0.00001" class="ground-case-right" stroke="rgba(255,255,255,0)" />\n '),
  4403. (this.out = e.querySelector(".ground-case-out")),
  4404. (this.in = e.querySelector(".ground-case-in")),
  4405. (this.left = e.querySelector(".ground-case-left")),
  4406. (this.right = e.querySelector(".ground-case-right")),
  4407. this.nextTick(function() {
  4408. e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real);
  4409. }),
  4410. e
  4411. );
  4412. }),
  4413. (e.prototype.setHoverStyle = function() {
  4414. this.fill = "rgba(243, 255, 0, 0.8)";
  4415. }),
  4416. (e.prototype.setUnHoverStyle = function() {
  4417. this.fill = "rgba(0,0,0,0)";
  4418. }),
  4419. (e.prototype.getOutInPath = function(t, e, i, n, g, A, r) {
  4420. var o = this;
  4421. void 0 === A && (A = 0), void 0 === r && (r = 0);
  4422. var C,
  4423. I = i,
  4424. a = s.getDisVerticalLinePoints(this.attachment, t, I),
  4425. l = s.getDisVerticalLinePoints(this.attachment, e, I),
  4426. u = { x: 0, y: 0 },
  4427. c = s.lineDis({ points: [a[0], u] }) < s.lineDis({ points: [a[1], u] }),
  4428. h = this.within ? (c ? a[1] : a[0]) : c ? a[0] : a[1];
  4429. h
  4430. ? (C = l[a.indexOf(h)])
  4431. : (C = this.within
  4432. ? l.find(function(t) {
  4433. return o.rooms.find(function(e) {
  4434. return !s.pointInside(e, t);
  4435. });
  4436. })
  4437. : l.find(function(t) {
  4438. return o.rooms.find(function(e) {
  4439. return s.pointInside(e, t);
  4440. });
  4441. }))
  4442. ? (h = a[l.indexOf(C)])
  4443. : ((h = a[0]), (C = l[0])),
  4444. (A = A || h),
  4445. (r = r || C);
  4446. var p = s.getDisVerticalLinePoints(this.attachment, t, g).sort(function(t, e) {
  4447. return s.lineDis({ points: [A, t] }) - s.lineDis({ points: [A, e] });
  4448. })[1];
  4449. return [
  4450. h,
  4451. C,
  4452. s.getDisVerticalLinePoints(this.attachment, e, g).sort(function(t, e) {
  4453. return s.lineDis({ points: [r, t] }) - s.lineDis({ points: [r, e] });
  4454. })[1],
  4455. p,
  4456. h,
  4457. ];
  4458. }),
  4459. (e.prototype.update = function() {
  4460. var t = 3 * this.width * this.multiple,
  4461. e = this.width * this.multiple,
  4462. i = 0.4 * s.lineDis({ points: this.linePoints });
  4463. i / this.multiple > 30 && (i = 30 * this.multiple);
  4464. var n = this.linePoints[0],
  4465. g = this.linePoints[1],
  4466. A = s.getDisPointLinePoints(this.attachment, n, t),
  4467. r = A[0],
  4468. o = A[1],
  4469. C = s.getDisPointLinePoints(this.attachment, g, t),
  4470. I = C[0],
  4471. a = C[1];
  4472. if (
  4473. ((n = s.lineDis({ points: [r, g] }) > s.lineDis({ points: [o, g] }) ? r : o),
  4474. (g = s.lineDis({ points: [I, n] }) > s.lineDis({ points: [a, n] }) ? I : a),
  4475. !isNaN(r.x))
  4476. ) {
  4477. this.left.setAttribute("stroke-width", t.toString()),
  4478. this.left.setAttribute("x", this.linePoints[0].x.toString()),
  4479. this.left.setAttribute("y", this.linePoints[0].y.toString()),
  4480. this.right.setAttribute("stroke-width", t.toString()),
  4481. this.right.setAttribute("x", this.linePoints[1].x.toString()),
  4482. this.right.setAttribute("y", this.linePoints[1].y.toString());
  4483. var l = this.getOutInPath(n, g, t, e, i);
  4484. (this.ctl = [l[2], l[3]]),
  4485. this.out.setAttribute("fill", this.fill),
  4486. this.out.setAttribute("stroke-width", e.toString()),
  4487. this.out.setAttribute("stroke", this.stroke),
  4488. this.out.setAttribute(
  4489. "d",
  4490. l
  4491. .map(function(t, e) {
  4492. return (e ? "L " : "M ") + t.x + " " + t.y;
  4493. })
  4494. .join(" ")
  4495. );
  4496. var u = s.getLineDisSelectPoint({ points: this.linePoints }, n, t),
  4497. c = s.getLineDisSelectPoint({ points: this.linePoints }, g, t);
  4498. this.in.setAttribute("fill", this.fill),
  4499. this.in.setAttribute("stroke-width", e.toString()),
  4500. this.in.setAttribute("stroke", this.stroke),
  4501. this.in.setAttribute(
  4502. "d",
  4503. this.getOutInPath(u, c, t, e, i - s.lineDis({ points: [u, n] }), l[0], l[1])
  4504. .map(function(t, e) {
  4505. return (e ? "L " : "M ") + t.x + " " + t.y;
  4506. })
  4507. .join(" ")
  4508. ),
  4509. this.attachment.update();
  4510. }
  4511. }),
  4512. (e.prototype.dragStart = function(t) {
  4513. (this.move = this.linePoints[0].real === t.target || this.linePoints[1].real === t.target),
  4514. (this.dragStartPoints = this.linePoints.map(function(t) {
  4515. return { x: t.x, y: t.y };
  4516. }));
  4517. }),
  4518. (e.prototype.drag = function(t) {
  4519. var e = this;
  4520. this.move ||
  4521. this.linePoints.forEach(function(i, n) {
  4522. (i.x = e.dragStartPoints[n].x + t.x * e.multiple), (i.y = e.dragStartPoints[n].y + t.y * e.multiple);
  4523. });
  4524. }),
  4525. (e.prototype.dragEnd = function() {
  4526. (this.move = !1), delete this.dragStartPoints;
  4527. }),
  4528. e
  4529. );
  4530. })(I.default);
  4531. e.default = a;
  4532. },
  4533. function(t, e, i) {
  4534. "use strict";
  4535. var n =
  4536. (this && this.__assign) ||
  4537. function() {
  4538. return (n =
  4539. Object.assign ||
  4540. function(t) {
  4541. for (var e, i = 1, n = arguments.length; i < n; i++)
  4542. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  4543. return t;
  4544. }).apply(this, arguments);
  4545. },
  4546. g =
  4547. (this && this.__awaiter) ||
  4548. function(t, e, i, n) {
  4549. return new (i || (i = Promise))(function(g, A) {
  4550. function r(t) {
  4551. try {
  4552. C(n.next(t));
  4553. } catch (t) {
  4554. A(t);
  4555. }
  4556. }
  4557. function o(t) {
  4558. try {
  4559. C(n.throw(t));
  4560. } catch (t) {
  4561. A(t);
  4562. }
  4563. }
  4564. function C(t) {
  4565. var e;
  4566. t.done
  4567. ? g(t.value)
  4568. : ((e = t.value),
  4569. e instanceof i
  4570. ? e
  4571. : new i(function(t) {
  4572. t(e);
  4573. })).then(r, o);
  4574. }
  4575. C((n = n.apply(t, e || [])).next());
  4576. });
  4577. },
  4578. A =
  4579. (this && this.__generator) ||
  4580. function(t, e) {
  4581. var i,
  4582. n,
  4583. g,
  4584. A,
  4585. r = {
  4586. label: 0,
  4587. sent: function() {
  4588. if (1 & g[0]) throw g[1];
  4589. return g[1];
  4590. },
  4591. trys: [],
  4592. ops: [],
  4593. };
  4594. return (
  4595. (A = { next: o(0), throw: o(1), return: o(2) }),
  4596. "function" == typeof Symbol &&
  4597. (A[Symbol.iterator] = function() {
  4598. return this;
  4599. }),
  4600. A
  4601. );
  4602. function o(A) {
  4603. return function(o) {
  4604. return (function(A) {
  4605. if (i) throw new TypeError("Generator is already executing.");
  4606. for (; r; )
  4607. try {
  4608. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  4609. return g;
  4610. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  4611. case 0:
  4612. case 1:
  4613. g = A;
  4614. break;
  4615. case 4:
  4616. return r.label++, { value: A[1], done: !1 };
  4617. case 5:
  4618. r.label++, (n = A[1]), (A = [0]);
  4619. continue;
  4620. case 7:
  4621. (A = r.ops.pop()), r.trys.pop();
  4622. continue;
  4623. default:
  4624. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  4625. r = 0;
  4626. continue;
  4627. }
  4628. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  4629. r.label = A[1];
  4630. break;
  4631. }
  4632. if (6 === A[0] && r.label < g[1]) {
  4633. (r.label = g[1]), (g = A);
  4634. break;
  4635. }
  4636. if (g && r.label < g[2]) {
  4637. (r.label = g[2]), r.ops.push(A);
  4638. break;
  4639. }
  4640. g[2] && r.ops.pop(), r.trys.pop();
  4641. continue;
  4642. }
  4643. A = e.call(t, r);
  4644. } catch (t) {
  4645. (A = [6, t]), (n = 0);
  4646. } finally {
  4647. i = g = 0;
  4648. }
  4649. if (5 & A[0]) throw A[1];
  4650. return { value: A[0] ? A[1] : void 0, done: !0 };
  4651. })([A, o]);
  4652. };
  4653. }
  4654. },
  4655. r =
  4656. (this && this.__spreadArrays) ||
  4657. function() {
  4658. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  4659. var n = Array(t),
  4660. g = 0;
  4661. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  4662. return n;
  4663. },
  4664. o =
  4665. (this && this.__importDefault) ||
  4666. function(t) {
  4667. return t && t.__esModule ? t : { default: t };
  4668. };
  4669. Object.defineProperty(e, "__esModule", { value: !0 });
  4670. var C = o(i(49)),
  4671. I = o(i(5)),
  4672. s = o(i(11)),
  4673. a = o(i(8)),
  4674. l = o(i(7)),
  4675. u = o(i(20)),
  4676. c = o(i(15)),
  4677. h = o(i(21)),
  4678. p = o(i(17)),
  4679. d = o(i(18)),
  4680. f = i(3),
  4681. y = o(i(12)),
  4682. v = o(i(14)),
  4683. m = o(i(16)),
  4684. b = o(i(19)),
  4685. x = o(i(50));
  4686. (e.roateDataY = function(t) {
  4687. return (
  4688. [
  4689. (t = n(n({}, t), {
  4690. vertex: t.vertex.map(function(t) {
  4691. return n(n({}, t), { y: -t.y });
  4692. }),
  4693. window: r(t.window),
  4694. column: r(t.column),
  4695. door: r(t.door),
  4696. groundCase: r(t.groundCase),
  4697. slideDoor: r(t.slideDoor),
  4698. bayCase: r(t.bayCase),
  4699. tagging: r(t.tagging),
  4700. furnColumn: r(t.furnColumn),
  4701. furnFlue: r(t.furnFlue),
  4702. doubleDoor: r(t.doubleDoor),
  4703. })).window,
  4704. t.column,
  4705. t.door,
  4706. t.slideDoor,
  4707. t.tagging,
  4708. t.groundCase,
  4709. t.bayCase,
  4710. t.furnColumn,
  4711. t.furnFlue,
  4712. t.doubleDoor,
  4713. ].forEach(function(t) {
  4714. t.forEach(function(e, i) {
  4715. t[i] = n(n({}, e), {
  4716. pos: e.pos.map(function(t, e) {
  4717. return e % 2 ? -t : t;
  4718. }),
  4719. });
  4720. });
  4721. }),
  4722. t
  4723. );
  4724. }),
  4725. (e.attchTransform = function(t) {
  4726. (t.getData = function(i) {
  4727. return (
  4728. void 0 === i && (i = !1),
  4729. {
  4730. floors: t.processings.map(function(n) {
  4731. var g = e.roateDataY(n.toData());
  4732. return (g.dire = n.direction.angle), i && (g = x.default(g, t)), g;
  4733. }),
  4734. }
  4735. );
  4736. }),
  4737. (t.loadData = function(i) {
  4738. i.floors || ((i.show = !0), (i = { floors: [i] }));
  4739. var n = JSON.parse(JSON.stringify(i));
  4740. n.floors.some(function(t) {
  4741. return t.show;
  4742. }) || (n.floors[0].show = !0),
  4743. (n.floors = n.floors.map(function(t) {
  4744. return e.roateDataY(
  4745. (function(t) {
  4746. (t.column = t.column || []),
  4747. (t.window = t.window || []),
  4748. (t.doubleDoor = t.doubleDoor || []),
  4749. (t.door = t.door || []),
  4750. (t.groundCase = t.groundCase || []),
  4751. (t.bayCase = t.bayCase || []),
  4752. (t.slideDoor = t.slideDoor || []),
  4753. (t.tagging = t.tagging || []),
  4754. (t.furnColumn = t.furnColumn || []),
  4755. (t.furnFlue = t.furnFlue || []);
  4756. var e = ["column", "window", "door", "groundCase", "bayCase", "slideDoor", "tagging", "furnColumn", "furnFlue"];
  4757. t["vertex-xy"] &&
  4758. ((t.vertex = t["vertex-xy"]),
  4759. (t.wall = t.segment.map(function(t) {
  4760. return { id: t.id, p1: t.a, p2: t.b, border: t.border, exterior: t.exterior };
  4761. }))),
  4762. t["outdoor-segment"] &&
  4763. ((t.wall = t.wall.concat(
  4764. t["outdoor-segment"].map(function(t) {
  4765. return { id: t.id, p1: t.a, p2: t.b, border: t.border, exterior: !0 };
  4766. })
  4767. )),
  4768. (t.vertex = t.vertex.concat(t["outdoor-vertex"])));
  4769. for (
  4770. var i,
  4771. n = function(n) {
  4772. var g = t.wall
  4773. .filter(function(e) {
  4774. return e !== t.wall[n];
  4775. })
  4776. .find(function(e) {
  4777. var i = e.p1,
  4778. g = e.p2;
  4779. return (i === t.wall[n].p1 && g === t.wall[n].p2) || (g === t.wall[n].p1 && i === t.wall[n].p2);
  4780. });
  4781. g &&
  4782. (e.forEach(function(e) {
  4783. t[e].forEach(function(e) {
  4784. e.line === t.wall[n].id && ((e.line = g.id), console.log("update", e));
  4785. });
  4786. }),
  4787. t.wall.splice(n--, 1)),
  4788. (i = n);
  4789. },
  4790. g = 0;
  4791. g < t.wall.length;
  4792. g++
  4793. )
  4794. n(g), (g = i);
  4795. return (
  4796. (t.vertex = t.vertex.filter(function(e) {
  4797. return t.wall.some(function(t) {
  4798. var i = t.p1,
  4799. n = t.p2;
  4800. return e.id === i || e.id === n;
  4801. });
  4802. })),
  4803. t
  4804. );
  4805. })(t)
  4806. );
  4807. })),
  4808. !0,
  4809. t.processings.forEach(function(t) {
  4810. t.attrs.forEach(function(e) {
  4811. for (; t[e].length; ) t[e][0].ele.destroy(!0, !0);
  4812. });
  4813. }),
  4814. n.floors.forEach(function(e) {
  4815. var i = t.processings.find(function(t) {
  4816. return t.id === e.id;
  4817. });
  4818. i || ((i = t.addProcessing()).id = e.id);
  4819. });
  4820. for (
  4821. var g,
  4822. A = function(e) {
  4823. n.floors.some(function(i) {
  4824. var n = i.id;
  4825. return t.processings[e].id === n;
  4826. }) || t.delProcessing(t.processings[e--]),
  4827. (g = e);
  4828. },
  4829. r = 0;
  4830. r < t.processings.length;
  4831. r++
  4832. )
  4833. A(r), (r = g);
  4834. t.processings.forEach(function(t) {
  4835. for (
  4836. var e,
  4837. i = function(i) {
  4838. var n = t.render.elements[i];
  4839. [s.default, a.default, c.default, m.default, l.default, v.default, I.default, u.default, b.default, h.default, p.default, d.default].some(
  4840. function(t) {
  4841. return n instanceof t;
  4842. }
  4843. ) && (t.render.remove(n), i--),
  4844. (e = i);
  4845. },
  4846. n = 0;
  4847. n < t.render.elements.length;
  4848. n++
  4849. )
  4850. i(n), (n = e);
  4851. }),
  4852. n.floors.forEach(function(e) {
  4853. var i = t.processings.find(function(t) {
  4854. return t.id === e.id;
  4855. });
  4856. (e.surplus = []),
  4857. i.toEles(e),
  4858. (i.direction.__state.direct = !0),
  4859. (i.direction.angle = e.dire || 0),
  4860. (i.direction.__state.direct = !1),
  4861. i.direction.update(),
  4862. t.adapt(e, void 0, void 0, n.floors[0]);
  4863. }),
  4864. setTimeout(function() {
  4865. return !1;
  4866. }, 5e3);
  4867. });
  4868. }),
  4869. (e.attchStack = function(t) {
  4870. sessionStorage.clear();
  4871. var e = 0,
  4872. i = new C.default("cad_" + Date.now());
  4873. t.stack = i;
  4874. var n = function(t) {
  4875. void 0 === t && (t = e);
  4876. var n = i.getLength();
  4877. return { previous: (1 !== n || 1 !== e) && t > 0, next: t < n - 1 };
  4878. };
  4879. (t.clearStack = function() {
  4880. sessionStorage.clear(), i.setLength((e = 0));
  4881. }),
  4882. (t.getCurrentData = function() {
  4883. return i.get(e - 1);
  4884. }),
  4885. (t.preservation = f.debounce(function() {
  4886. if (!t.stoppreservation) {
  4887. var n = t.getData(),
  4888. g = i.getLength() - 1;
  4889. (0 !== g && JSON.stringify(n) === JSON.stringify(i.get(g))) || (i.push(n), ++e);
  4890. }
  4891. }, 500));
  4892. var g;
  4893. Date.now();
  4894. (t.previous = function() {
  4895. return n().previous
  4896. ? (--e,
  4897. clearTimeout(g),
  4898. (g = setTimeout(function() {
  4899. t.loadData(i.get(e));
  4900. }, 500)),
  4901. n())
  4902. : n();
  4903. }),
  4904. (t.next = function() {
  4905. return n().next
  4906. ? (++e,
  4907. clearTimeout(g),
  4908. (g = setTimeout(function() {
  4909. t.loadData(i.get(e));
  4910. }, 500)),
  4911. n())
  4912. : n();
  4913. }),
  4914. (t.getStackState = n);
  4915. var A = t.destroy;
  4916. t.destroy = function() {
  4917. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  4918. (i = null), A.apply(this, t);
  4919. };
  4920. }),
  4921. (e.autoPreservation = function(t) {
  4922. [I.default, s.default, a.default, l.default, u.default, c.default, h.default, p.default, y.default, d.default, v.default, m.default].forEach(function(
  4923. e
  4924. ) {
  4925. var i = e.prototype.dragEnd;
  4926. e.prototype.dragEnd = function() {
  4927. for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
  4928. return g(this, void 0, void 0, function() {
  4929. return A(this, function(n) {
  4930. switch (n.label) {
  4931. case 0:
  4932. return i ? [4, i.call.apply(i, r([this], e))] : [3, 2];
  4933. case 1:
  4934. n.sent(), (n.label = 2);
  4935. case 2:
  4936. return (
  4937. setTimeout(function() {
  4938. t.preservation();
  4939. }, 100),
  4940. [2]
  4941. );
  4942. }
  4943. });
  4944. });
  4945. };
  4946. var n = t.destroy;
  4947. t.destroy = function() {
  4948. for (var t = [], g = 0; g < arguments.length; g++) t[g] = arguments[g];
  4949. n.apply(this, t), (e.prototype.dragEnd = i);
  4950. };
  4951. });
  4952. var e = t.increase;
  4953. (t.increase = function() {
  4954. for (var i = [], n = 0; n < arguments.length; n++) i[n] = arguments[n];
  4955. var g = e.call.apply(e, r([t], i));
  4956. return (
  4957. g.error ||
  4958. setTimeout(function() {
  4959. t.preservation();
  4960. }, 100),
  4961. g
  4962. );
  4963. }),
  4964. t.preservation();
  4965. });
  4966. },
  4967. function(t, e, i) {
  4968. "use strict";
  4969. var n,
  4970. g =
  4971. (this && this.__extends) ||
  4972. ((n = function(t, e) {
  4973. return (n =
  4974. Object.setPrototypeOf ||
  4975. ({ __proto__: [] } instanceof Array &&
  4976. function(t, e) {
  4977. t.__proto__ = e;
  4978. }) ||
  4979. function(t, e) {
  4980. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  4981. })(t, e);
  4982. }),
  4983. function(t, e) {
  4984. function i() {
  4985. this.constructor = t;
  4986. }
  4987. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  4988. }),
  4989. A =
  4990. (this && this.__spreadArrays) ||
  4991. function() {
  4992. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  4993. var n = Array(t),
  4994. g = 0;
  4995. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  4996. return n;
  4997. };
  4998. Object.defineProperty(e, "__esModule", { value: !0 });
  4999. var r = i(2),
  5000. o = i(1),
  5001. C = i(0),
  5002. I = function(t, e) {
  5003. return t.contains
  5004. ? t.contains(e)
  5005. : Array.from(t.childNodes).some(function(t) {
  5006. return t === e;
  5007. });
  5008. },
  5009. s = (function(t) {
  5010. function e(e) {
  5011. var i = e.local,
  5012. n = e.renderer,
  5013. g = e.active,
  5014. A = void 0 === g ? 0 : g,
  5015. r = e.show,
  5016. o = void 0 === r || r,
  5017. C = t.call(this, { local: i, renderer: n, dialog: 0, active: A, show: o }) || this;
  5018. return (
  5019. (C.items = []),
  5020. (C.layerClick = function() {
  5021. return (C.dialog = 0);
  5022. }),
  5023. n.layer.addEventListener("click", C.layerClick),
  5024. C
  5025. );
  5026. }
  5027. return (
  5028. g(e, t),
  5029. (e.prototype.grentImage = function(t) {
  5030. var e = document.createElementNS(o.SVGURI, "image");
  5031. return (
  5032. (e.href.baseVal = i(54)),
  5033. e.setAttribute("x", (-t / 2).toString()),
  5034. e.setAttribute("y", (-t / 2).toString()),
  5035. e.setAttribute("width", t.toString()),
  5036. e.setAttribute("height", t.toString()),
  5037. e
  5038. );
  5039. }),
  5040. (e.prototype.grentNode = function() {
  5041. var t = document.createElementNS(o.SVGURI, "g");
  5042. (this.path = document.createElementNS(o.SVGURI, "path")),
  5043. this.path.setAttribute("stroke", "rgb(0, 200, 175)"),
  5044. this.path.setAttribute("fill", "transparent");
  5045. var e = document.createElementNS(o.SVGURI, "circle");
  5046. e.setAttribute("fill", "rgb(0, 200, 175)"), e.setAttribute("stroke", "#fff");
  5047. var i = document.createElementNS(o.SVGURI, "text");
  5048. return (
  5049. i.setAttribute("fill", "#fff"),
  5050. i.setAttribute("text-anchor", "middle"),
  5051. i.setAttribute("dy", ".4em"),
  5052. (this.temp = document.createElementNS(o.SVGURI, "g")),
  5053. this.temp.appendChild(e),
  5054. this.temp.appendChild(i),
  5055. (this.temp.style.cursor = "pointer"),
  5056. (this.dialogLayer = document.createElementNS(o.SVGURI, "g")),
  5057. (this.itemsLayout = document.createElementNS(o.SVGURI, "path")),
  5058. this.itemsLayout.setAttribute("fill", "rgba(255,255,255,0.7)"),
  5059. this.dialogLayer.appendChild(this.itemsLayout),
  5060. t.appendChild(this.path),
  5061. t
  5062. );
  5063. }),
  5064. (e.prototype.update = function() {
  5065. var t = this,
  5066. e = 9 * this.multiple,
  5067. i = 2 * this.multiple;
  5068. if (
  5069. ((this.real.style.display = this.show ? "initial" : "none"),
  5070. this.path.setAttribute("stroke-width", (2 * this.multiple).toString()),
  5071. this.local.length > 0)
  5072. )
  5073. this.path.setAttribute(
  5074. "d",
  5075. "M " +
  5076. this.local
  5077. .map(function(t) {
  5078. return t.x + " " + t.y;
  5079. })
  5080. .join(" L ")
  5081. );
  5082. else if ((this.path.setAttribute("d", ""), this.dialog)) return (this.dialog = 0);
  5083. this.items.forEach(function(e) {
  5084. try {
  5085. t.real.removeChild(e);
  5086. } catch (t) {}
  5087. }),
  5088. (this.items = []),
  5089. (this.temp.style.display = this.show ? "initial" : "none");
  5090. var n = this.local.length - this.items.length;
  5091. if (n > 0)
  5092. for (var g = 0; g < n; g++) {
  5093. var A = this.temp.cloneNode(!0);
  5094. this.real.appendChild(A), this.items.push(A);
  5095. }
  5096. else if (n < 0)
  5097. for (g = 0; g > n; g--) {
  5098. var r = this.items.shift();
  5099. this.real.removeChild(r);
  5100. }
  5101. var o = 0;
  5102. for (g = 0; g < this.local.length; g++) {
  5103. var C = this.items[g].querySelector("circle"),
  5104. I = this.items[g].querySelector("text");
  5105. this.items[g].setAttribute("transform", "translate(" + this.local[g].x + "," + this.local[g].y + ")"),
  5106. (this.items[g].style.display = "inherit"),
  5107. C.setAttribute("stroke-width", i.toString()),
  5108. C.setAttribute("r", e.toString()),
  5109. I.setAttribute("font-size", (10 * this.multiple).toString()),
  5110. this.local[g].rangn
  5111. ? (C.setAttribute("fill", "#666666"), this.items[g].appendChild(this.grentImage(e + i)))
  5112. : (I.textContent = (++o).toString()),
  5113. this.local[g] === this.active &&
  5114. (I.setAttribute("fill", "rgb(250,250,0)"), C.setAttribute("stroke", "rgb(250,250,0)"), this.items[g].setAttribute("class", "active"));
  5115. }
  5116. var s = this.calcGroup();
  5117. for (g = 0; g < s.length; g++)
  5118. s[g].body.forEach(function(e) {
  5119. var i = t.local.indexOf(e);
  5120. t.items[i].style.display = "none";
  5121. });
  5122. this.showDialog(2 * (e + i));
  5123. }),
  5124. (e.prototype.showDialog = function(t) {
  5125. var e = this;
  5126. if (0 !== this.dialog) {
  5127. for (var i = 0; i < this.dialogLayer.childNodes.length; i++)
  5128. this.dialogLayer.childNodes[i] !== this.itemsLayout && (this.dialogLayer.removeChild(this.dialogLayer.childNodes[i]), i--);
  5129. this.itemsLayout.innerHTML = "";
  5130. var n = 5 * this.multiple,
  5131. g = (t + n) * this.dialog.items.length,
  5132. A = t + 2 * n,
  5133. r = this.dialog.pos.x - g / 2,
  5134. o = this.dialog.pos.y - A - t,
  5135. C = 8 * this.multiple;
  5136. this.itemsLayout.setAttribute(
  5137. "d",
  5138. "\n M " +
  5139. r +
  5140. " " +
  5141. (o + A) +
  5142. "\n A " +
  5143. A / 2 +
  5144. " " +
  5145. A / 2 +
  5146. " 0 1 1 " +
  5147. r +
  5148. " " +
  5149. o +
  5150. "\n L " +
  5151. (r + g) +
  5152. " " +
  5153. o +
  5154. "\n A " +
  5155. A / 2 +
  5156. " " +
  5157. A / 2 +
  5158. " 0 1 1 " +
  5159. (r + g) +
  5160. " " +
  5161. (o + A) +
  5162. "\n L " +
  5163. (r + g / 2 + C) +
  5164. " " +
  5165. (o + A) +
  5166. "\n L " +
  5167. (r + g / 2) +
  5168. " " +
  5169. (o + A + C) +
  5170. "\n L " +
  5171. (r + g / 2 - C) +
  5172. " " +
  5173. (o + A) +
  5174. "\n L " +
  5175. r +
  5176. " " +
  5177. (o + A) +
  5178. "\n "
  5179. );
  5180. var I = function(i, g) {
  5181. i.setAttribute("transform", "translate(" + (r + (t + n) * g) + "," + (o + (t / 2 + n)) + ")"),
  5182. (i.style.display = "inline"),
  5183. e.dialogLayer.appendChild(i);
  5184. };
  5185. this.dialog.items.forEach(function(t, i) {
  5186. I(e.items[e.local.indexOf(t)], i + 1);
  5187. }),
  5188. I(this.items[this.local.indexOf(this.dialog.pos)].cloneNode(!0), 0);
  5189. }
  5190. }),
  5191. (e.prototype.calcGroup = function() {
  5192. var t = this,
  5193. e = 18 * this.multiple,
  5194. i = [];
  5195. return (
  5196. this.local.forEach(function(n) {
  5197. if (
  5198. !i.find(function(t) {
  5199. return ~t.body.indexOf(n);
  5200. })
  5201. ) {
  5202. var g = t.local.filter(function(t) {
  5203. return n !== t && C.lineDis({ points: [n, t] }) < e;
  5204. });
  5205. g.length > 0 && i.push({ head: n, body: g });
  5206. }
  5207. }),
  5208. i
  5209. );
  5210. }),
  5211. (e.prototype.notice = function() {
  5212. 0 !== this.dialog ? this.real.appendChild(this.dialogLayer) : I(this.real, this.dialogLayer) && this.real.removeChild(this.dialogLayer);
  5213. }),
  5214. (e.prototype.intercept = function(t, e) {
  5215. var i = this,
  5216. n = e.active;
  5217. if (!n) return !0;
  5218. var g = this.calcGroup().find(function(t) {
  5219. var e = t.head,
  5220. i = t.body;
  5221. return e === n || ~i.indexOf(n);
  5222. });
  5223. if (
  5224. (this.nextTick(function() {
  5225. i.dialog = g ? { pos: g.head, items: A(g.body) } : 0;
  5226. }),
  5227. this.active && this.items[this.local.indexOf(this.active)])
  5228. ) {
  5229. var r = this.items[this.local.indexOf(this.active)],
  5230. o = r.querySelector("circle");
  5231. r.querySelector("text").setAttribute("fill", "#fff"), o.setAttribute("stroke", "#fff"), r.setAttribute("class", "active");
  5232. }
  5233. return !0;
  5234. }),
  5235. (e.prototype.setActive = function(t) {
  5236. this.active = t;
  5237. }),
  5238. (e.prototype.click = function(t) {
  5239. t.stopPropagation();
  5240. for (var e = 0; e < this.items.length; e++)
  5241. if (I(this.items[e], t.target) || t.target === this.items[e]) {
  5242. this.setActive(this.local[e]);
  5243. break;
  5244. }
  5245. }),
  5246. (e.prototype.destroy = function() {
  5247. this.renderer.layer.removeEventListener("click", this.layerClick);
  5248. }),
  5249. e
  5250. );
  5251. })(r.CADElement);
  5252. e.default = s;
  5253. },
  5254. function(t, e, i) {
  5255. "use strict";
  5256. var n =
  5257. (this && this.__spreadArrays) ||
  5258. function() {
  5259. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  5260. var n = Array(t),
  5261. g = 0;
  5262. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  5263. return n;
  5264. },
  5265. g =
  5266. (this && this.__importDefault) ||
  5267. function(t) {
  5268. return t && t.__esModule ? t : { default: t };
  5269. };
  5270. Object.defineProperty(e, "__esModule", { value: !0 }), i(25);
  5271. var A = g(i(26)),
  5272. r = i(39),
  5273. o = i(40),
  5274. C = i(46),
  5275. I = i(48),
  5276. s = i(22),
  5277. a = i(51),
  5278. l = i(52),
  5279. u = i(53),
  5280. c = i(55),
  5281. h = i(56),
  5282. p = g(i(57)),
  5283. d = i(58),
  5284. f = g(i(7));
  5285. e.Column = f.default;
  5286. var y = g(i(8));
  5287. e.Door = y.default;
  5288. var v = g(i(11));
  5289. e.Casement = v.default;
  5290. var m = i(2),
  5291. b = g(i(23)),
  5292. x = g(i(59)),
  5293. _ = g(i(63)),
  5294. w = m.CADElement.prototype.listen;
  5295. m.CADElement.prototype.listen = function() {
  5296. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  5297. var g = this.render.processing.cad.edits.some(function(e) {
  5298. return t instanceof e;
  5299. });
  5300. (g || this.render.processing.cad.edit || this instanceof b.default) && w.call.apply(w, n([this], e));
  5301. };
  5302. var P = f.default.prototype.addEvent;
  5303. function O(t) {
  5304. var e = t.data,
  5305. i = t.layer,
  5306. n = t.edit,
  5307. g = void 0 === n || n,
  5308. f = t.padding,
  5309. y = void 0 === f ? 20 : f,
  5310. v = new A.default({ dom: i, padding: y });
  5311. return (
  5312. (v.edit = g),
  5313. r.attachInsert(v),
  5314. g
  5315. ? (s.attchTransform(v), s.attchStack(v), s.autoPreservation(v), a.attchDOMTranform(v), l.attachDisabled(v), p.default(v))
  5316. : (s.attchTransform(v), a.attchDOMTranform(v)),
  5317. h.attchCustom(v),
  5318. c.attachStyle(v),
  5319. I.attachScreenshot(v),
  5320. C.attachSign(v),
  5321. o.attachGauge(v),
  5322. u.attachRote(v),
  5323. g && (v.openMouseHandle(), v.showGauge()),
  5324. d.other(v),
  5325. x.default(v),
  5326. v.loadData(e),
  5327. (v.toCanvas = function(t) {
  5328. return _.default(v, t);
  5329. }),
  5330. v
  5331. );
  5332. }
  5333. (f.default.prototype.addEvent = function() {
  5334. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  5335. var g = this.render.processing.cad.edits.some(function(e) {
  5336. return t instanceof e;
  5337. });
  5338. (g || this.render.processing.cad.edit) && P.call.apply(P, n([this], e));
  5339. }),
  5340. (e.structureCAD = O),
  5341. (e.default = O),
  5342. (window.structureCAD = O);
  5343. },
  5344. function(t, e) {
  5345. !(function() {
  5346. try {
  5347. if ("undefined" == typeof SVGElement || Boolean(SVGElement.prototype.innerHTML)) return;
  5348. } catch (t) {
  5349. return;
  5350. }
  5351. function t(e) {
  5352. switch (e.nodeType) {
  5353. case 1:
  5354. return (function(e) {
  5355. var i = "";
  5356. (i += "<" + e.tagName),
  5357. e.hasAttributes() &&
  5358. [].forEach.call(e.attributes, function(t) {
  5359. i += " " + t.name + '="' + t.value + '"';
  5360. });
  5361. (i += ">"),
  5362. e.hasChildNodes() &&
  5363. [].forEach.call(e.childNodes, function(e) {
  5364. i += t(e);
  5365. });
  5366. return (i += "</" + e.tagName + ">");
  5367. })(e);
  5368. case 3:
  5369. return (function(t) {
  5370. return t.textContent
  5371. .replace(/&/g, "&amp;")
  5372. .replace(/</g, "&lt;")
  5373. .replace(/>/g, "&gt;");
  5374. })(e);
  5375. case 8:
  5376. return (function(t) {
  5377. return "\x3c!--" + t.nodeValue + "--\x3e";
  5378. })(e);
  5379. }
  5380. }
  5381. Object.defineProperty(SVGElement.prototype, "innerHTML", {
  5382. get: function() {
  5383. var e = "";
  5384. return (
  5385. [].forEach.call(this.childNodes, function(i) {
  5386. e += t(i);
  5387. }),
  5388. e
  5389. );
  5390. },
  5391. set: function(t) {
  5392. for (; this.firstChild; ) this.removeChild(this.firstChild);
  5393. try {
  5394. var e = new DOMParser();
  5395. e.async = !1;
  5396. var i = "<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>" + t + "</svg>",
  5397. n = e.parseFromString(i, "text/xml").documentElement;
  5398. [].forEach.call(
  5399. n.childNodes,
  5400. function(t) {
  5401. this.appendChild(this.ownerDocument.importNode(t, !0));
  5402. }.bind(this)
  5403. );
  5404. } catch (t) {
  5405. throw new Error("Error parsing markup string");
  5406. }
  5407. },
  5408. }),
  5409. Object.defineProperty(SVGElement.prototype, "innerSVG", {
  5410. get: function() {
  5411. return this.innerHTML;
  5412. },
  5413. set: function(t) {
  5414. this.innerHTML = t;
  5415. },
  5416. });
  5417. })();
  5418. },
  5419. function(t, e, i) {
  5420. "use strict";
  5421. var n =
  5422. (this && this.__importDefault) ||
  5423. function(t) {
  5424. return t && t.__esModule ? t : { default: t };
  5425. };
  5426. Object.defineProperty(e, "__esModule", { value: !0 });
  5427. var g = i(3),
  5428. A = n(i(27)),
  5429. r = i(2),
  5430. o = (function() {
  5431. function t(t) {
  5432. var e = this,
  5433. i = t.dom,
  5434. n = t.padding,
  5435. g = void 0 === n ? 20 : n;
  5436. (this.processings = []),
  5437. Object.defineProperty(this, "processing", {
  5438. get: function() {
  5439. return this.processings.find(function(t) {
  5440. return t.show;
  5441. });
  5442. },
  5443. }),
  5444. (this.layer = i),
  5445. (this.padding = g),
  5446. (this.isDestroy = !1),
  5447. (this.resizeHandle = function() {
  5448. return e.processing.data && e.adapt(e.processing.data);
  5449. }),
  5450. this.init();
  5451. }
  5452. return (
  5453. (t.prototype.addProcessing = function() {
  5454. var t = new A.default({ dom: this.layer });
  5455. return (t.cad = this), this.processings.push(t), t;
  5456. }),
  5457. (t.prototype.delProcessing = function(t) {
  5458. t.render.elements.forEach(function(t) {
  5459. return t.destroy();
  5460. }),
  5461. this.processings.splice(this.processings.indexOf(t), 1);
  5462. }),
  5463. (t.prototype.adapt = function(t, e, i, n) {
  5464. void 0 === t && (t = this.processing.data);
  5465. var A = this.processings.find(function(e) {
  5466. return e.data.id === t.id;
  5467. });
  5468. (e = e || A.render.layer.offsetWidth || parseInt(getComputedStyle(A.render.layer).width) || 100),
  5469. (i = i || A.render.layer.offsetHeight || parseInt(getComputedStyle(A.render.layer).height) || 100),
  5470. 0 === t.vertex.length
  5471. ? (A.render.props = g.getMapMultipleWH(
  5472. e,
  5473. i,
  5474. {
  5475. vertex: [
  5476. { x: -15, y: -15 },
  5477. { x: -15, y: 15 },
  5478. { x: 15, y: -15 },
  5479. { x: 15, y: 15 },
  5480. ],
  5481. },
  5482. this.padding
  5483. ))
  5484. : (e && i && (A.render.props = g.getMapMultipleWH(e, i, t, this.padding)),
  5485. A.render.props.scale <= 0 && (A.render.props = { width: 0, height: 0, multiple: 0, scale: 1, top: 0, left: 0 })),
  5486. A.render.adaptLayer(e, i),
  5487. r.CADElement.update(A.render);
  5488. }),
  5489. (t.prototype.init = function() {
  5490. window.addEventListener("resize", this.resizeHandle, !1);
  5491. }),
  5492. (t.prototype.destroy = function() {
  5493. for (var t in (window.removeEventListener("resize", this.resizeHandle, !1),
  5494. this.processing.destroy(),
  5495. (this.processing = null),
  5496. (this.isDestroy = !0),
  5497. this))
  5498. "function" == typeof this[t] ? (this[t] = function() {}) : delete this[t];
  5499. }),
  5500. t
  5501. );
  5502. })();
  5503. e.default = o;
  5504. },
  5505. function(t, e, i) {
  5506. "use strict";
  5507. var n =
  5508. (this && this.__assign) ||
  5509. function() {
  5510. return (n =
  5511. Object.assign ||
  5512. function(t) {
  5513. for (var e, i = 1, n = arguments.length; i < n; i++)
  5514. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  5515. return t;
  5516. }).apply(this, arguments);
  5517. },
  5518. g =
  5519. (this && this.__spreadArrays) ||
  5520. function() {
  5521. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  5522. var n = Array(t),
  5523. g = 0;
  5524. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  5525. return n;
  5526. },
  5527. A =
  5528. (this && this.__importDefault) ||
  5529. function(t) {
  5530. return t && t.__esModule ? t : { default: t };
  5531. };
  5532. Object.defineProperty(e, "__esModule", { value: !0 });
  5533. var r = A(i(28)),
  5534. o = i(31),
  5535. C = i(36),
  5536. I = i(37),
  5537. s = i(38),
  5538. a = (function() {
  5539. function t(t) {
  5540. var e = t.dom;
  5541. (this.render = new r.default({ layer: e, processing: this })),
  5542. (this.id = 1),
  5543. (this.points = []),
  5544. (this.lines = []),
  5545. (this.cases = []),
  5546. (this.doors = []),
  5547. (this.columns = []),
  5548. (this.slideDoors = []),
  5549. (this.groundCases = []),
  5550. (this.taggings = []),
  5551. (this.bayCases = []),
  5552. (this.furnColumns = []),
  5553. (this.furnFlues = []),
  5554. (this.doubleDoors = []),
  5555. this.manageShow();
  5556. }
  5557. return (
  5558. (t.prototype.manageShow = function() {
  5559. var t = this,
  5560. e = !1;
  5561. Object.defineProperty(this, "show", {
  5562. get: function() {
  5563. return e;
  5564. },
  5565. set: function(i) {
  5566. console.log("---------", e), (e = i), (t.render.svg.style.display = e ? "block" : "none");
  5567. },
  5568. });
  5569. }),
  5570. (t.prototype.rep = function(t) {
  5571. var e = this;
  5572. this.attrs.forEach(function(i) {
  5573. var n = e[i].findIndex(function(e) {
  5574. return e.ele === t;
  5575. });
  5576. ~n && ((t.__id = e[i][n] && e[i][n].id), e[i].splice(n, 1));
  5577. }),
  5578. this.render || console.error("掉用 rep"),
  5579. this.render && this.render.remove(t);
  5580. }),
  5581. (t.prototype.retrofitElementDestroy = function(t) {
  5582. var e = this,
  5583. i = t.destroy;
  5584. t.__load_destroy ||
  5585. ((t.__load_destroy = !0),
  5586. (t.destroy = function() {
  5587. for (var n = [], A = 0; A < arguments.length; A++) n[A] = arguments[A];
  5588. n[0]
  5589. ? e.rep(t)
  5590. : t.nextTick(function() {
  5591. return e.rep(t);
  5592. }),
  5593. i.call.apply(i, g([t], n)),
  5594. (t.__load_destroy = !1);
  5595. }));
  5596. }),
  5597. (t.prototype.updateWallPoints = function(t, e, i) {}),
  5598. (t.prototype.retrofitElementIntercept = function(t) {}),
  5599. (t.prototype.depLines = function() {
  5600. for (
  5601. var t,
  5602. e = g(this.lines),
  5603. i = function(i) {
  5604. var n = e[i].ele,
  5605. g = e.some(function(t) {
  5606. var e = t.ele;
  5607. return (
  5608. n !== e &&
  5609. ((n.points[0] === e.points[0] && n.points[1] === e.points[1]) || (n.points[1] === e.points[0] && n.points[0] === e.points[1]))
  5610. );
  5611. });
  5612. (n.points[0] === n.points[1] || g) && (e[i].ele.destroy(), e.splice(i--, 1)), (t = i);
  5613. },
  5614. n = 0;
  5615. n < e.length;
  5616. n++
  5617. )
  5618. i(n), (n = t);
  5619. }),
  5620. (t.prototype.destroy = function() {
  5621. var t = this,
  5622. e = this.attrs.map(function(e) {
  5623. return t[e];
  5624. });
  5625. (this.data = {
  5626. id: 1,
  5627. show: !0,
  5628. vertex: [],
  5629. wall: [],
  5630. window: [],
  5631. column: [],
  5632. door: [],
  5633. surplus: [],
  5634. slideDoor: [],
  5635. tagging: [],
  5636. groundCase: [],
  5637. bayCase: [],
  5638. doubleDoor: [],
  5639. furnColumn: [],
  5640. furnFlue: [],
  5641. dire: 0,
  5642. }),
  5643. e.forEach(function(t) {
  5644. for (; t.length; ) t[0].ele.destroy(!0);
  5645. }),
  5646. this.render.destroy(),
  5647. (this.render = null);
  5648. }),
  5649. t
  5650. );
  5651. })();
  5652. (e._Processing = a), (e.default = a);
  5653. var l = n(n(n(n({}, o.methods), C.methods), I.methods), s.methods);
  5654. Object.keys(l).forEach(function(t) {
  5655. return (a.prototype[t] = l[t]);
  5656. });
  5657. },
  5658. function(t, e, i) {
  5659. "use strict";
  5660. Object.defineProperty(e, "__esModule", { value: !0 });
  5661. var n = i(2),
  5662. g = i(1),
  5663. A = (function() {
  5664. function t(t) {
  5665. var e = this,
  5666. i = t.layer,
  5667. g = t.width,
  5668. A = void 0 === g ? i.offsetWidth : g,
  5669. r = t.height,
  5670. o = void 0 === r ? i.offsetHeight : r,
  5671. C = t.processing;
  5672. (this.clickHandle = function() {
  5673. e.elements.forEach(function(t) {
  5674. return t.changeSelect(!1);
  5675. });
  5676. }),
  5677. n.CADElement.init(this),
  5678. (this.props = { left: 0, top: 0, width: A, height: o, multiple: 1, scale: 1 }),
  5679. (this.elements = []),
  5680. (this.processing = C),
  5681. this.init(i);
  5682. }
  5683. return (
  5684. (t.prototype.init = function(t) {
  5685. (this.svg = document.createElementNS(g.SVGURI, "svg")),
  5686. (this.g = document.createElementNS(g.SVGURI, "g")),
  5687. this.svg.appendChild(this.g),
  5688. (this.layer = t),
  5689. (this.layer.style.position = "relative"),
  5690. (this.svg.style.position = "absolute"),
  5691. (this.svg.style.left = "0"),
  5692. (this.svg.style.top = "0"),
  5693. (this.svg.style.right = "0"),
  5694. (this.svg.style.bottom = "0"),
  5695. this.svg.setAttribute("version", "1.0"),
  5696. this.svg.setAttribute("xmlns", "http://www.w3.org/2000/svg"),
  5697. this.svg.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"),
  5698. this.svg.addEventListener("click", this.clickHandle, !1),
  5699. this.layer.appendChild(this.svg);
  5700. }),
  5701. (t.prototype.adaptLayer = function(t, e) {
  5702. void 0 === t && (t = this.layer.offsetWidth), void 0 === e && (e = this.layer.offsetHeight);
  5703. var i = this.props.width / 2 - this.props.left,
  5704. g = this.props.height / 2 - this.props.top;
  5705. this.g.setAttribute(
  5706. "transform",
  5707. "\n translate(" +
  5708. this.props.left +
  5709. "," +
  5710. this.props.top +
  5711. ")\n translate(" +
  5712. i +
  5713. "," +
  5714. g +
  5715. ")\n scale(" +
  5716. this.props.scale +
  5717. "," +
  5718. this.props.scale +
  5719. ")\n translate(" +
  5720. -i +
  5721. "," +
  5722. -g +
  5723. ")\n "
  5724. ),
  5725. this.svg.setAttribute("width", t.toString()),
  5726. this.svg.setAttribute("height", e.toString()),
  5727. this.svg.setAttribute("viewBox", "0 0 " + this.props.width + " " + this.props.height),
  5728. (this.realWidth = t),
  5729. (this.realHeight = e),
  5730. n.CADElement.update(this);
  5731. }),
  5732. (t.prototype.render = function() {
  5733. n.CADElement.update(this);
  5734. }),
  5735. (t.prototype.screenToRealPoint = function(t) {
  5736. var e = t.x,
  5737. i = t.y,
  5738. n = this.props.width / 2 - this.props.left,
  5739. g = this.props.height / 2 - this.props.top,
  5740. A = this.props.width / this.props.multiple,
  5741. r = this.props.height / this.props.multiple;
  5742. return 0 == A || 0 == r
  5743. ? { x: n, y: g }
  5744. : {
  5745. x: ((e * this.props.width) / A - this.props.left - n) / this.props.scale + n,
  5746. y: ((i * this.props.height) / r - this.props.top - g) / this.props.scale + g,
  5747. };
  5748. }),
  5749. (t.prototype.realPointToScreen = function(t) {
  5750. var e = t.x,
  5751. i = t.y,
  5752. n = this.props.width / 2 - this.props.left,
  5753. g = this.props.height / 2 - this.props.top,
  5754. A = this.props.width / this.props.multiple,
  5755. r = this.props.height / this.props.multiple;
  5756. return {
  5757. x: (((e - n) * this.props.scale + n + this.props.left) * A) / this.props.width,
  5758. y: (((i - g) * this.props.scale + g + this.props.top) * r) / this.props.height,
  5759. };
  5760. }),
  5761. (t.prototype.push = function() {
  5762. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  5763. e.forEach(function(e) {
  5764. var i = t.elements.find(function(t) {
  5765. return t.zIndex > e.zIndex;
  5766. });
  5767. if (i) {
  5768. try {
  5769. t.g.insertBefore(e.real, i.real);
  5770. } catch (i) {
  5771. t.g.appendChild(e.real);
  5772. }
  5773. t.elements.splice(t.elements.indexOf(i), 0, e);
  5774. } else t.g.appendChild(e.real), t.elements.push(e);
  5775. });
  5776. }),
  5777. (t.prototype.remove = function() {
  5778. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  5779. e.forEach(function(e) {
  5780. try {
  5781. t.g.removeChild(e.real);
  5782. } catch (t) {}
  5783. ~t.elements.indexOf(e) && t.elements.splice(t.elements.indexOf(e), 1);
  5784. });
  5785. }),
  5786. (t.prototype.destroy = function() {
  5787. this.svg.removeEventListener("click", this.clickHandle, !1), this.layer.removeChild(this.svg);
  5788. }),
  5789. t
  5790. );
  5791. })();
  5792. e.default = A;
  5793. },
  5794. function(t, e, i) {
  5795. "use strict";
  5796. var n =
  5797. (this && this.__assign) ||
  5798. function() {
  5799. return (n =
  5800. Object.assign ||
  5801. function(t) {
  5802. for (var e, i = 1, n = arguments.length; i < n; i++)
  5803. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  5804. return t;
  5805. }).apply(this, arguments);
  5806. },
  5807. g =
  5808. (this && this.__awaiter) ||
  5809. function(t, e, i, n) {
  5810. return new (i || (i = Promise))(function(g, A) {
  5811. function r(t) {
  5812. try {
  5813. C(n.next(t));
  5814. } catch (t) {
  5815. A(t);
  5816. }
  5817. }
  5818. function o(t) {
  5819. try {
  5820. C(n.throw(t));
  5821. } catch (t) {
  5822. A(t);
  5823. }
  5824. }
  5825. function C(t) {
  5826. var e;
  5827. t.done
  5828. ? g(t.value)
  5829. : ((e = t.value),
  5830. e instanceof i
  5831. ? e
  5832. : new i(function(t) {
  5833. t(e);
  5834. })).then(r, o);
  5835. }
  5836. C((n = n.apply(t, e || [])).next());
  5837. });
  5838. },
  5839. A =
  5840. (this && this.__generator) ||
  5841. function(t, e) {
  5842. var i,
  5843. n,
  5844. g,
  5845. A,
  5846. r = {
  5847. label: 0,
  5848. sent: function() {
  5849. if (1 & g[0]) throw g[1];
  5850. return g[1];
  5851. },
  5852. trys: [],
  5853. ops: [],
  5854. };
  5855. return (
  5856. (A = { next: o(0), throw: o(1), return: o(2) }),
  5857. "function" == typeof Symbol &&
  5858. (A[Symbol.iterator] = function() {
  5859. return this;
  5860. }),
  5861. A
  5862. );
  5863. function o(A) {
  5864. return function(o) {
  5865. return (function(A) {
  5866. if (i) throw new TypeError("Generator is already executing.");
  5867. for (; r; )
  5868. try {
  5869. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  5870. return g;
  5871. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  5872. case 0:
  5873. case 1:
  5874. g = A;
  5875. break;
  5876. case 4:
  5877. return r.label++, { value: A[1], done: !1 };
  5878. case 5:
  5879. r.label++, (n = A[1]), (A = [0]);
  5880. continue;
  5881. case 7:
  5882. (A = r.ops.pop()), r.trys.pop();
  5883. continue;
  5884. default:
  5885. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  5886. r = 0;
  5887. continue;
  5888. }
  5889. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  5890. r.label = A[1];
  5891. break;
  5892. }
  5893. if (6 === A[0] && r.label < g[1]) {
  5894. (r.label = g[1]), (g = A);
  5895. break;
  5896. }
  5897. if (g && r.label < g[2]) {
  5898. (r.label = g[2]), r.ops.push(A);
  5899. break;
  5900. }
  5901. g[2] && r.ops.pop(), r.trys.pop();
  5902. continue;
  5903. }
  5904. A = e.call(t, r);
  5905. } catch (t) {
  5906. (A = [6, t]), (n = 0);
  5907. } finally {
  5908. i = g = 0;
  5909. }
  5910. if (5 & A[0]) throw A[1];
  5911. return { value: A[0] ? A[1] : void 0, done: !0 };
  5912. })([A, o]);
  5913. };
  5914. }
  5915. },
  5916. r =
  5917. (this && this.__spreadArrays) ||
  5918. function() {
  5919. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  5920. var n = Array(t),
  5921. g = 0;
  5922. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  5923. return n;
  5924. };
  5925. Object.defineProperty(e, "__esModule", { value: !0 });
  5926. var o = i(3),
  5927. C = (function() {
  5928. function t(t, e) {
  5929. var i = this,
  5930. n = e.notice,
  5931. C = e.intercept,
  5932. I = e.childAttr,
  5933. s = e.afferent;
  5934. return (
  5935. (this.updateNotices = []),
  5936. (this.changeNotices = []),
  5937. (this.getSubAll = function() {
  5938. var t = [];
  5939. return (
  5940. i.subscribe.forEach(function(e) {
  5941. t.push.apply(t, e.getSubAll());
  5942. }),
  5943. r(i.subscribe, t)
  5944. );
  5945. }),
  5946. (this.data = t),
  5947. (this.subscribe = []),
  5948. (this.updateKeys = new Set()),
  5949. (this.attrs = []),
  5950. (this.intercept = C),
  5951. (this.afferent = s),
  5952. (this.notice = n),
  5953. (this.direct = !1),
  5954. (this.childAttr = I),
  5955. (this.deleteUpdateKey = this.deleteUpdateKey.bind(this)),
  5956. (this.addUpdateKey = this.addUpdateKey.bind(this)),
  5957. (this.changeNotices = []),
  5958. (this.setHandle = o.debounce(
  5959. function(t) {
  5960. return g(i, void 0, void 0, function() {
  5961. var e;
  5962. return A(this, function(i) {
  5963. switch (i.label) {
  5964. case 0:
  5965. return [4, this.setVal.apply(this, t)];
  5966. case 1:
  5967. return (
  5968. (e = i.sent()),
  5969. Object.keys(t[4]).forEach(this.deleteUpdateKey),
  5970. this.noticeTick(),
  5971. this.noticeAll(e || { args: {} }),
  5972. e && this.noticeChange(),
  5973. [2]
  5974. );
  5975. }
  5976. });
  5977. });
  5978. },
  5979. 0,
  5980. function(t) {
  5981. var e = t[0][0],
  5982. i = e.sub,
  5983. n = e.current,
  5984. g = e.state,
  5985. A = e.childAttr,
  5986. r = {};
  5987. return (
  5988. t.forEach(function(t) {
  5989. var e = t[0],
  5990. i = e.key,
  5991. n = e.val;
  5992. return (r[i] = n);
  5993. }),
  5994. [i, n, g, A, r]
  5995. );
  5996. },
  5997. function() {
  5998. i.changeNotices = [];
  5999. }
  6000. )),
  6001. this
  6002. );
  6003. }
  6004. return (
  6005. (t.prototype.addUpdateKey = function(t) {
  6006. var e = this;
  6007. this.updateKeys.add(t),
  6008. this.subscribe.forEach(function(t) {
  6009. t.updateKeys.has(e) || t.addUpdateKey(e);
  6010. });
  6011. }),
  6012. (t.prototype.deleteUpdateKey = function(t) {
  6013. var e = this;
  6014. this.updateKeys.delete(t),
  6015. 0 === this.updateKeys.size &&
  6016. (this.subscribe.forEach(function(t) {
  6017. t.deleteUpdateKey(e);
  6018. }),
  6019. this.test && this.test());
  6020. }),
  6021. (t.prototype.noticeTick = function() {
  6022. if (0 === this.updateKeys.size) for (; this.updateNotices.length; ) this.updateNotices.shift()();
  6023. this.subscribe.forEach(function(t) {
  6024. return t.noticeTick();
  6025. });
  6026. }),
  6027. (t.prototype.noticeChange = function() {
  6028. for (; this.changeNotices.length; ) this.changeNotices.shift()();
  6029. this.subscribe.forEach(function(t) {
  6030. return t.noticeChange();
  6031. });
  6032. }),
  6033. (t.prototype.nextTick = function(t) {
  6034. var e = this;
  6035. setTimeout(function() {
  6036. 0 === e.updateKeys.size
  6037. ? t()
  6038. : (e.updateNotices.push(t),
  6039. setTimeout(function() {
  6040. if (~e.updateNotices.indexOf(t)) {
  6041. e.updateNotices.slice(e.updateNotices.indexOf(t), 1);
  6042. t();
  6043. }
  6044. }, 200));
  6045. });
  6046. }),
  6047. (t.prototype.nextChange = function(t) {
  6048. this.changeNotices.push(t);
  6049. }),
  6050. (t.prototype.interceptAll = function(t) {
  6051. return g(this, void 0, void 0, function() {
  6052. var e, i, n, g, C, I;
  6053. return A(this, function(A) {
  6054. for (e = [], i = [], g = r([this], this.getSubAll()), C = void 0, I = 0; (C = g[I]); I++)
  6055. if ((i.push(C.afferent), C.intercept)) {
  6056. if (((n = C.intercept(i, t, e)), e.push(n), o.type.isBoolean(n) && !n)) return [2, !1];
  6057. } else e.push(void 0);
  6058. return [2, e];
  6059. });
  6060. });
  6061. }),
  6062. (t.prototype.noticeAll = function(t) {
  6063. t = n(n({}, t), { state: { data: this.afferent || this, trigger: t.state, ret: void 0 } });
  6064. var e = this.notice(t);
  6065. t.state.ret = e;
  6066. for (var i = 0; i < this.subscribe.length; i++) this.subscribe[i].noticeAll(t);
  6067. return t;
  6068. }),
  6069. (t.prototype.bindDataChange = function() {
  6070. var t = this;
  6071. (this.__firstBind = !0),
  6072. Object.keys(this.data).forEach(function(e) {
  6073. t.attrs.push(e), t.bindItem(t, t, t.data, e, t.childAttr);
  6074. }),
  6075. (this.__firstBind = !1);
  6076. }),
  6077. (t.prototype.getSeftSub = function() {
  6078. return [
  6079. this,
  6080. this.subscribe.flatMap(function(t) {
  6081. return t.getSeftSub();
  6082. }),
  6083. ];
  6084. }),
  6085. (t.prototype.setVal = function(t, e, i, r, C) {
  6086. return g(this, void 0, void 0, function() {
  6087. var g,
  6088. I,
  6089. s,
  6090. a = this;
  6091. return A(this, function(A) {
  6092. switch (A.label) {
  6093. case 0:
  6094. return (
  6095. (g = { args: C }),
  6096. !o.type.isUndefined(C.x) && o.type.isUndefined(C.y)
  6097. ? (C.y = this.afferent.y)
  6098. : !o.type.isUndefined(C.y) && o.type.isUndefined(C.x) && (C.x = this.afferent.x),
  6099. [4, t.interceptAll(C)]
  6100. );
  6101. case 1:
  6102. return (I = A.sent())
  6103. ? ((s = n({}, C)),
  6104. I.forEach(function(t) {
  6105. return (s = n(n({}, s), t));
  6106. }),
  6107. Object.keys(i).forEach(function(n) {
  6108. s.hasOwnProperty(n) && i[n] !== s[n] && (a.relieveOldSubs(i[n], r), (i[n] = s[n]), a.continueListen(t, e, i, n, r, s[n]));
  6109. }),
  6110. [2, g])
  6111. : [2, null];
  6112. }
  6113. });
  6114. });
  6115. }),
  6116. (t.prototype.relieveOldSubs = function(e, i) {
  6117. var n = this;
  6118. o.type.isUndefined(e) ||
  6119. (e instanceof t || (i && e[i] instanceof t)
  6120. ? this.relieveOldSub(e, i)
  6121. : o.type.isArray(e)
  6122. ? e.forEach(function(t, e) {
  6123. n.relieveOldSub(t, i);
  6124. })
  6125. : o.type.isObject(e) &&
  6126. Object.values(e).forEach(function(t) {
  6127. n.relieveOldSub(t, i);
  6128. }));
  6129. }),
  6130. (t.prototype.relieveOldSub = function(e, i) {
  6131. e instanceof t
  6132. ? e.subscribe.splice(e.subscribe.indexOf(this), 1)
  6133. : i && e[i] instanceof t && e[i].subscribe.splice(e[i].subscribe.indexOf(this), 1);
  6134. }),
  6135. (t.prototype.continueListen = function(e, i, n, g, A, r) {
  6136. var C = this;
  6137. o.type.isNull(r) ||
  6138. o.type.isUndefined(r) ||
  6139. (r instanceof t || (A && r[A] instanceof t)
  6140. ? ~(r instanceof t ? r : r[A]).subscribe.indexOf(e) || this.bindItem(e, i[g], n, g, A, !0)
  6141. : o.type.isArray(r)
  6142. ? r.forEach(function(t, n) {
  6143. C.bindItem(e, i[g], r, n, A, !0);
  6144. })
  6145. : o.type.isObject(r) &&
  6146. Object.keys(n[g]).forEach(function(t) {
  6147. C.bindItem(e, i[g], r, t, A, !0);
  6148. }));
  6149. }),
  6150. (t.prototype.bindItem = function(e, i, n, g, A, r) {
  6151. void 0 === r && (r = !1),
  6152. n instanceof t ? n.subscribe.push(e) : A && n[g] && n[g][A] instanceof t && n[g][A].subscribe.push(e),
  6153. r ||
  6154. (Object.defineProperty(i, g, {
  6155. get: function() {
  6156. return n[g];
  6157. },
  6158. set: function(t) {
  6159. this.__firstBind || this.direct
  6160. ? ((n[g] = t), this.continueListen(e, i, n, g, A, t))
  6161. : (this.addUpdateKey(g), this.setHandle({ sub: e, current: i, state: n, key: g, childAttr: A, val: t }));
  6162. },
  6163. }),
  6164. this.continueListen(e, i, n, g, A, n[g]));
  6165. }),
  6166. t
  6167. );
  6168. })();
  6169. (e._State = C),
  6170. (e.getter = function(t, e) {
  6171. e.attrs.forEach(function(i) {
  6172. Object.defineProperty(t, i, {
  6173. configurable: !0,
  6174. get: function() {
  6175. return e[i];
  6176. },
  6177. });
  6178. });
  6179. }),
  6180. (e.setter = function(t, e) {
  6181. e.attrs.forEach(function(i) {
  6182. Object.defineProperty(t, i, {
  6183. configurable: !0,
  6184. set: function(t) {
  6185. e[i] = t;
  6186. },
  6187. });
  6188. });
  6189. }),
  6190. (e.State = C);
  6191. },
  6192. function(t, e, i) {
  6193. "use strict";
  6194. Object.defineProperty(e, "__esModule", { value: !0 }),
  6195. (e.default = {
  6196. menu: {
  6197. __name: "菜单",
  6198. music: "背景音乐",
  6199. base: "基础设置",
  6200. information: "场景信息",
  6201. screen: "初始画面",
  6202. hotspot: "添加热点",
  6203. guide: "自动导览",
  6204. sign: "地面Logo",
  6205. walk: "漫游可行",
  6206. model: "3D模型",
  6207. cad: "户型图",
  6208. data: "数据对接",
  6209. custom: "上传下载",
  6210. videos: "添加视频",
  6211. vrhouse: "看房 4Dkankan",
  6212. business: "看店 4Dkankan",
  6213. scene: "场景跳转",
  6214. video: "添加视频",
  6215. decor: "一键换装",
  6216. link: "场景关联",
  6217. },
  6218. modules: {
  6219. __name: "模块",
  6220. base: {
  6221. __name: "基础设置",
  6222. qrcode: "场景二维码",
  6223. qrcode_download: "下载二维码",
  6224. qrcode_tips: "自定义logo",
  6225. scene_link: "场景地址",
  6226. scene_link_copy: "复制链接",
  6227. scene_link_copy_tips: "场景链接复制成功",
  6228. bgm: "背景音乐",
  6229. pano_text: "漫游视角可视",
  6230. mode_2d_text: "平面图可视",
  6231. mode_3d_text: "三维模型可视",
  6232. map_text: "小地图预览可视",
  6233. vr_text: "VR模式可视",
  6234. vr_tips: "请在手机展示页面观看VR效果",
  6235. guide_text: "自动导览可视",
  6236. rule_text: "标尺可视",
  6237. cad_text: "俯视图户型可视",
  6238. measure_text: "测量工具可视",
  6239. measure_tips: "编辑模式下无法使用测距功能,请在展示页面操作",
  6240. turned_vr: "VR功能已{status}",
  6241. turned_map: "小地图功能已{status}",
  6242. turned_cad: "俯视图户型功能已{status}",
  6243. turned_m2d: "平面视角功能已{status}",
  6244. turned_m3d: "三维视角功能已{status}",
  6245. turned_pano: "漫游视角功能已{status}",
  6246. turned_rule: "标尺功能已{status}",
  6247. turned_guide: "自动导览功能已{status}",
  6248. turned_measure: "测距功能已{status}",
  6249. shortcut_copy: "一键复制",
  6250. share_link: "分享链接给好友",
  6251. measure_show_tips: "请在展示页面使用测距功能",
  6252. delete_measure_line: "删除测量线",
  6253. please_click_tips: "'请点击“允许”'",
  6254. vr_fail_app_tips: "浏览器未能检测到转动。请在手机或浏览器设置中开启了运动和方向访问等设置,然后刷新此页面。",
  6255. vr_fail_safari_tips: "浏览器未能检测到转动。为完整体验VR效果,请打开 “设置” > “Safari” > “隐私和安全” 下的 “运动和方向访问” 开关,然后刷新此页面。",
  6256. loading_bottom_text: "四维时代提供技术支持",
  6257. vr_fail_reopen_tips: "运动和方向访问失败。您需要完全关闭此应用,然后再次打开,并允许访问运动与方向",
  6258. add_music_title: "添加背景音乐",
  6259. add_music_tips: "支持MP3、WAV等音频格式,不超过5MB",
  6260. re_add_music: "重新添加",
  6261. re_add_title: "重新添加背景音乐",
  6262. re_add_tips: "新添加的音乐会替换已添加的音乐,<br>确定继续添加吗?",
  6263. re_add_mobile_tips: "重新添加将会覆盖已添加音乐",
  6264. delete_tips: "您确定删除当前音乐吗?",
  6265. delete_title: "删除背景音乐",
  6266. bgm_empty_tips: "请选择背景音乐",
  6267. wechat: "微信",
  6268. friend_circle: "朋友圈",
  6269. },
  6270. information: {
  6271. __name: "场景信息",
  6272. title: "标题",
  6273. title_tips: "请填写标题",
  6274. title_require: "请添加标题({limit}字以内)",
  6275. description: "简介",
  6276. description_tips: "请填写简介",
  6277. link: "添加链接",
  6278. link_text_tips: "请填写链接文本",
  6279. link_href_tips: "请填写链接地址",
  6280. link_text_require: "请填写链接文本",
  6281. link_href_require: "请填写链接地址",
  6282. classify: "分类",
  6283. upload_time: "上传时间",
  6284. record: "未记录",
  6285. shoot_count: "拍摄数量",
  6286. password: "访问密码",
  6287. password_tips: "访问密码",
  6288. password_desc: "设置完密码后,当其他人访问您的场景时,需要输入您设置的密码才能访问。如无需设置点击“公开”即可。",
  6289. password_require: "请输入{limit}位数的密码",
  6290. logo_edit: "编辑页面Logo",
  6291. logo_exit: "退出页面Logo编辑",
  6292. logo_show_bottom: "显示初始Logo",
  6293. logo_style1: "顶部Logo-方",
  6294. logo_style2: "顶部Logo-长",
  6295. logo_delete: "是否删除已上传Logo?",
  6296. },
  6297. screen: { __name: "初始画面", current: "当前初始视角", current_set: "设置为初始画面", tips: "移动屏幕,点击保存您的初始画面。" },
  6298. hotspot: {
  6299. __name: "添加热点",
  6300. add: "添加热点",
  6301. edit: "编辑热点",
  6302. count: "已添加热点",
  6303. location: "热点定位",
  6304. location_tips: "将热点标记并拖动到合适的位置。",
  6305. location_modify: "修改热点位置",
  6306. location_confirm: "确定热点位置",
  6307. location_desc: "请于左方两个场景区域拖动热点并对准所需标记的位置。",
  6308. style: "选择热点样式",
  6309. style_desc: "选择默认样式,或者手动上传图片自定义样式,上传图片格式PNG/JPG",
  6310. style_name: "样式",
  6311. style_dele: "是否删除该样式?",
  6312. style_manage: "管理",
  6313. style_exit: "退出",
  6314. media_photo: "可添加图片以丰富热点内容",
  6315. media_video: "可上传本地视频,进行更多的展示",
  6316. media_voice: "可上传本地音频内容进行热点讲解",
  6317. media_link: "可添加视频的超链接,视频将在热点里播放",
  6318. title: "标题",
  6319. title_tips: "请填写标题",
  6320. title_require: "请添加标题({limit}字以内)",
  6321. description: "简介",
  6322. description_tips: "请填写简介",
  6323. text_link: "添加链接",
  6324. text_link_text_tips: "请填写链接文本",
  6325. text_link_href_tips: "请填写链接地址",
  6326. text_link_text_require: "链接文本不能为空",
  6327. text_link_href_require: "链接地址不能为空",
  6328. link: "嵌入式链接",
  6329. link_require: "请添加外链",
  6330. photo: "图片",
  6331. voice: "音频",
  6332. video: "视频",
  6333. photo_tips: "支持JPG、PNG等图片格式,不超过{size}MB",
  6334. voice_tips: "支持MP3、WAV等音频格式,不超过{size}MB",
  6335. video_tips: "支持MP4、MOV等视频格式,不超过{size}MB",
  6336. photo_require: "请添加图片",
  6337. voice_require: "请添加音频",
  6338. video_require: "请添加视频",
  6339. m_location_tips1: "将上下分屏热点对准同一个所标记目标",
  6340. m_location_tips2: "确定热点位置,点击下一步编辑内容",
  6341. m_location_up: "上方",
  6342. m_location_left: "左侧",
  6343. m_location_move_tips: "辅助校准位置可能不准确,<br>请检查并拖动到{direction}相同位置",
  6344. set_visible_btn: "设置热点可视",
  6345. save_visible_btn: "保存当前设置",
  6346. save_hotspot_done: "保存热点成功",
  6347. save_hotspot_fail: "保存热点失败",
  6348. delete_hotspot_tips: "是否删除当前热点?",
  6349. delete_hotspot_done: "热点删除成功",
  6350. delete_hotspot_fail: "热点删除失败",
  6351. cant_add_hotspot_tips: "无法添加热点",
  6352. cant_add_hotspot_content: "热点数目已达最大:{limit}",
  6353. link_text_tips: "链接标题",
  6354. link_href_tips: "链接",
  6355. link_text_require: "请填写链接文本",
  6356. link_href_require: "请填写链接地址",
  6357. add_media: "添加多媒体",
  6358. },
  6359. guide: {
  6360. __name: "自动导览",
  6361. route: "导航路线",
  6362. view: "切换视角",
  6363. record: "开始录制",
  6364. record_audio: "录音",
  6365. pause: "暂停",
  6366. stop: "停止",
  6367. end: "结束",
  6368. delete: "删除",
  6369. continue: "继续录制",
  6370. preview: "预览",
  6371. clear: "清空",
  6372. sync: "声画同步",
  6373. sound: "录制音频",
  6374. file: "上传音频",
  6375. file_add: "添加音频",
  6376. tips: "点击开始录制导览",
  6377. start: "开始",
  6378. finish: "完成录制",
  6379. less: "小于",
  6380. replace_tips: "是否重新录制导览?",
  6381. replace_content: "重新录制将覆盖之前的数据",
  6382. sound_open_fail_tips: "麦克风开启失败",
  6383. sound_tips: "麦克风开启失败,是否继续录制?",
  6384. sound_content: "您需要在浏览器的设置中允许此网站使用麦克风,并且添加麦克风设备,然后刷新该页面。",
  6385. upload_sound_done: "上传语音讲解成功",
  6386. upload_sound_fail: "上传语音讲解失败",
  6387. delete_sound_done: "删除语音讲解成功",
  6388. delete_sound_fail: "删除语音讲解失败",
  6389. room_title: "标题",
  6390. room_title_tips: "请输入导览标题",
  6391. room_title_require: "请输入标题",
  6392. room_panel_title: "导览信息",
  6393. room_sound_title: "录制音频",
  6394. delete_video_content: "您当前录制的画面将会被删除",
  6395. delete_file_content: "您当前上传的语音讲解将会被删除",
  6396. delete_sound_content: "已录制配音将会被删除",
  6397. camera_save_success: "镜头保存成功",
  6398. clear_video_tip: "您当前录制的内容将会被清空",
  6399. saving_sound: "正在保存录音",
  6400. save_sound_done: "录音保存成功",
  6401. save_sound_fail: "录音保存失败",
  6402. no_sound_tips: "当前不支持录音<br>可在微信或电脑端录音",
  6403. sound_success_tips: "麦克风开启成功",
  6404. sound_fail_tips: "当前不支持录音<br>公众号信息配置错误",
  6405. wechat_sound_fail_tips: "微信麦克风开启失败",
  6406. open_sound_guide_tips: "可能您若要开启录音,请于微信的设置—隐私—授权管理中开启。且保证录音设备正常",
  6407. sound_cant_open_tips: "此浏览器不支持录音。<br>建议更换其他主流浏览器,体验更佳",
  6408. replace_sound_tips: "是否重新录制?",
  6409. replace_sound_content: "已有语音讲解将会被替换",
  6410. merge_sound_fail: "合并语音讲解失败",
  6411. sound_limit: "录制时长为{time}分钟,当前已经达到上限",
  6412. select_to_record: "请选择对应点位进行本区域的导览录制",
  6413. },
  6414. sign: { title: "Logo样式", size: "Logo大小", style0: "样式一", style1: "样式二", style2: "样式三", style3: "手动上传" },
  6415. walk: {
  6416. title: "漫游可行",
  6417. tips1: "通过设置漫游可行,进一步优化在漫游时出现的体验;例如,您在漫游时,出现穿透房间的情况。",
  6418. tips2: "通过点选各个漫游点的连线即可设置漫游点的可行性。",
  6419. save: "保存当前设置",
  6420. hide: "隐藏该点位置",
  6421. show: "显示该点位置",
  6422. pano_tips: "提示:您隐藏了初始画面点位,此操作将使进入场景后无法漫游。",
  6423. },
  6424. model: {
  6425. __name: "3D模型",
  6426. cad: "CAD视角",
  6427. cad_download: "平面图下载",
  6428. view: "切换视角",
  6429. title: "增添结构",
  6430. title_door: "门窗类",
  6431. title_component: "构建类",
  6432. title_other: "其他",
  6433. attribute: "属性",
  6434. door: "门",
  6435. double_door: "门",
  6436. slideDoor: "移门",
  6437. casement: "窗",
  6438. bayCase: "飘窗",
  6439. groundCase: "落地窗",
  6440. column: "柱子",
  6441. furnColumn: "框架柱",
  6442. furnFlue: "烟道",
  6443. point: "点",
  6444. line: "墙",
  6445. tagging: "标注",
  6446. tagging_name_tips: "请输入名称",
  6447. tagging_area_tips: "输入面积,支持小数点后面两位",
  6448. direction: "指南针",
  6449. wallLine: "墙属性",
  6450. widget_delete: "{widget}将被删除",
  6451. panel_btn_default: "恢复默认",
  6452. panel_btn_delete: "删除部件",
  6453. attr_angle: "旋转角度",
  6454. attr_within: "翻转方向",
  6455. attr_ewidth: "宽度",
  6456. attr_eheight: "高度",
  6457. attr_tick: "厚度",
  6458. attr_showTitle: "标注名称",
  6459. attr_showContent: "标注面积",
  6460. attr_top: "顶部",
  6461. attr_bottom: "底部",
  6462. attr_estart: "入户门",
  6463. success: "成功添加{widget}",
  6464. error_location: "当前位置无法添加{widget}",
  6465. error_outdoor: "户外无法添加{widget}",
  6466. error_something: "当前位置点有建筑,无法添加{widget}",
  6467. error_widget: "当前位置不可添加{widget}",
  6468. enter_adjust_floor: "进入地面高度调节模式",
  6469. exit_adjust_floor: "退出地面高度调节模式",
  6470. color_title: "量角器颜色:",
  6471. },
  6472. cad: {
  6473. __name: "户型图",
  6474. name: "户型图",
  6475. no_tip: "不再提示",
  6476. reset: "重置",
  6477. cad_download: "户型图下载",
  6478. cad_download_ing: "下载中…",
  6479. label_tip: "点击右键或Esc键可以退出添加标注。",
  6480. wall_tip: "点击右键或Esc键可以退出画墙。",
  6481. save_undf_tip: "无法保存空户型图。",
  6482. reload_tip: "即将导入由模型生成的户型图,此操作会清空现有户型,是否继续?",
  6483. reset_tip: "此操作会清空现有户型,是否继续?",
  6484. title_door: "门窗",
  6485. title_component: "构建",
  6486. title_wall: "画墙",
  6487. title_other: "标注",
  6488. border_wall: "外墙",
  6489. wall: "内墙",
  6490. attribute: "属性",
  6491. door: "门",
  6492. slideDoor: "移门",
  6493. doubleDoor: "双开门",
  6494. casement: "窗",
  6495. bayCase: "飘窗",
  6496. groundCase: "落地窗",
  6497. column: "柱子",
  6498. furnColumn: "框架柱",
  6499. furnFlue: "烟道",
  6500. point: "点",
  6501. line: "墙",
  6502. tagging: "单个",
  6503. un_data_tip: "无法下载空户型图,请先绘制。",
  6504. taggings: "多个",
  6505. tagging_name_tips: "请输入名称",
  6506. tagging_custom_name_tips: "自定义房间名称",
  6507. tagging_area_tips: "输入面积,支持小数点后面两位",
  6508. direction: "指南针",
  6509. wallLine: "墙属性",
  6510. widget_delete: "{widget}将被删除",
  6511. panel_btn_default: "恢复默认",
  6512. panel_btn_delete: "删除部件",
  6513. attr_angle: "旋转角度",
  6514. attr_within: "翻转方向",
  6515. attr_ewidth: "宽度",
  6516. attr_eheight: "高度",
  6517. attr_tick: "厚度",
  6518. attr_showTitle: "标注名称",
  6519. attr_showContent: "标注面积",
  6520. attr_top: "顶部",
  6521. attr_bottom: "底部",
  6522. attr_estart: "入户门",
  6523. success: "成功添加{widget}",
  6524. error_location: "当前位置无法添加{widget}",
  6525. error_outdoor: "户外无法添加{widget}",
  6526. error_something: "当前位置点有建筑,无法添加{widget}",
  6527. error_widget: "当前位置不可添加{widget}",
  6528. enter_adjust_floor: "进入地面高度调节模式",
  6529. exit_adjust_floor: "退出地面高度调节模式",
  6530. color_title: "量角器颜色:",
  6531. hall_tests: "整套,客厅,走廊,餐厅,起居室,客餐厅,玄关,门厅",
  6532. room_tests: "主卧,儿童房,次卧,客卧,老人房,卧室",
  6533. other_tests: "书房,厨房,卫生间,多功能室,阳台,储物间,步入式衣柜,外景,露台(无顶),影视间,入房花园",
  6534. rotate: "旋转",
  6535. },
  6536. videos: {
  6537. __name: "添加视频",
  6538. tips: "请先点击场景的基准面,确定视频位置",
  6539. panel_title: "视频属性",
  6540. panel_preview: "预览",
  6541. panel_upload: "上传视频",
  6542. panel_upload_tips: "支持MP4视频格式",
  6543. panel_move: "位移",
  6544. panel_zoom: "缩放",
  6545. panel_thickness: "厚度",
  6546. recoverRatio: "恢复原始比例",
  6547. recoverRatioTip: "恢复视频文件原始长宽比",
  6548. },
  6549. custom: {
  6550. model_title: "模型下载",
  6551. uploading: "文件上传中...",
  6552. download: "原始模型下载",
  6553. download_panos: "下载点位图",
  6554. upload: "修改模型上传",
  6555. title1: "模型下载/上传功能教程",
  6556. tips11: "1.下载场景模型的压缩包后,使用三维软件打开解压后文件“mesh.obj”,即可开展编辑;",
  6557. tips12: "2.编辑完成后,建议将模型贴图进行烘焙,烘焙贴图需控制在1.5M以内,同时,保存的obj文件需要控制在3M以内;",
  6558. tips13: "3.完成1、2步骤后,将obj,mtl,贴图打包为zip压缩包上传即可。",
  6559. title2: "注:",
  6560. tips21: "1.请尽量控制文件大小,以免浏览的时候卡顿,影响体验。",
  6561. tips22: "2.请将obj及压缩包的名称保持一致,否则会替换失败。",
  6562. get_image_fail: "获取贴图失败,可能网络状态不佳,请检查您的网络设置并重新尝试。",
  6563. download_model_fail: "模型下载失败",
  6564. reupload_tips: "上传后点击保存并发布生效",
  6565. panoramic_upload: "全景照片上传",
  6566. panoramic_upload_tips: "上传后点击“保存并发布”即生效",
  6567. panoramic_upload_box_tips: "请上传对应点位名称的JPG图片",
  6568. panoramic_download: "全景照片下载",
  6569. panoramic_download_tips: "请勿修改照片名称和格式",
  6570. panoramic: "全景图片",
  6571. ball_video: "球幕视频",
  6572. ball_video_upload_tips: "上传后点击“保存并发布”即生效",
  6573. ball_video_download_tips: "请勿修改视频名称和格式",
  6574. ball_video_upload_box_tips: "球幕视频支持MP4格式,不超过1024M",
  6575. upload_title: "上传文件",
  6576. upload_format_error: "文件格式错误,请重新上传",
  6577. upload_name_error: "文件名称错误,请重新上传",
  6578. upload_success: "上传成功,保存并发布后才能生效",
  6579. upload_code_5017: "上传模型失败,请参照右侧教程",
  6580. upload_code_5018: "zip文件只能有一层目录或无目录",
  6581. upload_code_5019: "必须有且仅有一个obj和mtl文件",
  6582. upload_code_5020: "贴图需控制在1.5M以内,obj文件需要控制在20M以内。",
  6583. upload_code_5012: "数据不正常",
  6584. upload_code_5023: "上传文件格式不正确,只能是jpg或mp4格式",
  6585. download_tips: "下载后名称与格式请勿修改",
  6586. download_fail: "下载失败",
  6587. },
  6588. vrhouse: { __name: "VR看房", linkto_management: "前往看房管理后台", refer: "刷新", scene_link: "场景链接" },
  6589. business: {
  6590. __name: "商圈模块",
  6591. list_title: "场景热点列表",
  6592. list_unf: "当前场景没有热点",
  6593. add_tip_info: "请在场景中添加热点后,再绑定热点",
  6594. linkto_management: "前往看店管理后台",
  6595. refer: "刷新",
  6596. scene_link: "场景链接",
  6597. explain: "说明",
  6598. shopexplain: { 1: "当前商品数据来源于场景绑定的4DKanKan店铺商品数据,如需增加请点击", 2: "此处跳转" },
  6599. select_style: "选择热点样式",
  6600. join_info: "关联商品信息",
  6601. add_com: "添加商品",
  6602. join_info_show: "关联商品会在热点中展示",
  6603. select_com: "选择商品",
  6604. },
  6605. link: {
  6606. __name: "跳转关联",
  6607. title1: "锁定关联点",
  6608. title2: "编辑关联点",
  6609. title3: "全景图关联",
  6610. list_text: " 已关联场景({l_count}), 全景图({p_count})",
  6611. btn_new_text: "添加关联点",
  6612. btn_add_title: "关联点定位",
  6613. btn_add_text: "确定关联点位置",
  6614. btn_add_desc: "将关联点标记并拖动到合适的位置。",
  6615. btn_edit_text: "修改关联点位置",
  6616. style: "关联点样式",
  6617. style_name: "样式",
  6618. style_desc: "支持自定义图标,建议尺寸为128x128 像素,格式为jpg/png。",
  6619. style_dele: "是否删除该样式?<br />如该样式在其它关联点使用,也将被删除",
  6620. desc_title: "描述",
  6621. desc_tips: "请输入描述内容",
  6622. desc_require: "请输入描述内容",
  6623. type: "选择关联类型",
  6624. type_photo: "支持上传宽高比为2:1的单张全景图片,建议像素不小于6000x3000像素,文件不超过120M。",
  6625. type_photo_require: "请上传全景图",
  6626. type_link: "请输入目标场景链接",
  6627. type_link_tips: "http(s)://",
  6628. type_link_require: "请输入需要跳转的场景链接",
  6629. enter_title: "进入画面",
  6630. enter_require: "请设置进入画面",
  6631. enter_btn_text: "设置进入画面",
  6632. outer_title: "跳出点位置",
  6633. outer_style: "跳出点样式",
  6634. outer_desc: "支持自定义图标,建议尺寸为128x128像素,格式为jpg/png。",
  6635. outer_require: "请设置跳出点位置",
  6636. outer_btn_text: "设置跳出点位置",
  6637. links_title: "选择全景图",
  6638. links_tips: "选择全景图,拖动到左侧画面相应位置,进行跳转设置。",
  6639. links_cancel_tips: "取消关联设置",
  6640. },
  6641. },
  6642. login: { __name: "登录", title: "提示", login: "去登录", logon: "登录完毕,继续", login_tips: "您没有登录,请于主页登录后再编辑" },
  6643. common: {
  6644. __name: "公用",
  6645. on: "打开",
  6646. off: "关闭",
  6647. add: "添加",
  6648. set: "确定",
  6649. ok: "确定",
  6650. save: "保存",
  6651. cancel: "取消",
  6652. complete: "完成",
  6653. edit: "修改",
  6654. giveup: "放弃",
  6655. commit: "提交",
  6656. photo: "图片",
  6657. voice: "音频",
  6658. video: "视频",
  6659. bgm: "音乐",
  6660. crop: "裁剪",
  6661. upload: "上传",
  6662. download: "下载",
  6663. change: "更改",
  6664. unnamed: "未命名",
  6665. publish: "保存并发布",
  6666. publish_text: "保存并发布成功!",
  6667. publish_tips: "是否立刻前往观看您的场景?",
  6668. publish_btn_ok: "立刻前往",
  6669. publish_btn_no: "暂时不去",
  6670. public: "公开",
  6671. private: "加密",
  6672. waiting: "请稍等...",
  6673. audio: "音频",
  6674. second: "秒",
  6675. delete: "删除",
  6676. prev: "上一步",
  6677. next: "下一步",
  6678. meter: "约{meter}米",
  6679. guide: "导览",
  6680. rule: "测量工具",
  6681. roaming: "漫游",
  6682. continue: "继续",
  6683. ensure_delete: "确定删除",
  6684. text_limit: "限制{limit}字内",
  6685. default: "默认",
  6686. custom: "自定义",
  6687. back: "返回",
  6688. will_delete: "将被删除",
  6689. setup: "设置",
  6690. exit: "退出",
  6691. size: "大小",
  6692. music: {
  6693. __name: "背景音乐",
  6694. none: "无",
  6695. cheerfu: "欢快",
  6696. ethereal: "空灵",
  6697. rhythmic: "节奏",
  6698. nostalgic: "怀旧",
  6699. missing: "想念",
  6700. retro: "复古",
  6701. strings: "琴弦",
  6702. happy: "愉快",
  6703. },
  6704. category: { __name: "分类", museum: "文博", estate: "地产", eshop: "电商", catering: "餐饮", home: "家居", other: "其他" },
  6705. uploads: {
  6706. __name: "文件上传",
  6707. uploading: "上传中",
  6708. uploaded: "已上传",
  6709. wait: "等待上传...",
  6710. error: "上传出错",
  6711. add: "添加文件",
  6712. start: "开始上传",
  6713. file_require: "请添加文件",
  6714. cant_upload: "您的浏览器不支持上传文件",
  6715. not_support: "您选择的不是浏览器支持的{fileType}文件,请重新选择",
  6716. too_large: "文件过大,不能大于{size}MB",
  6717. too_large_reupload_tips: "上传视频过大,请重新上传",
  6718. },
  6719. tips: { __name: "提示", wait: "请等待..." },
  6720. },
  6721. tips: {
  6722. __name: "弹窗、提示",
  6723. title: "提示",
  6724. set_done: "设置成功",
  6725. set_fail: "设置失败",
  6726. save_done: "保存成功",
  6727. save_fail: "保存失败",
  6728. delete: "是否删除?",
  6729. delete_done: "删除成功",
  6730. delete_fail: "删除失败",
  6731. upload_done: "上传成功",
  6732. upload_fail: "上传失败",
  6733. exception: "异常错误",
  6734. network_error: "网络连接失败,请稍后再试",
  6735. file_notfound: "文件不存在",
  6736. scene_notfound: "场景不存在",
  6737. params_notfound: "缺少必要参数",
  6738. camera_notfound: "找不到该场景对应的相机",
  6739. password_error: "密码错误",
  6740. data_error: "数据不正常",
  6741. auth_deny: "无权操作该场景",
  6742. clear: "是否清空?",
  6743. upload_pic_fail: "上传图片失败",
  6744. wait: "请稍后...",
  6745. house_type_save_fail: "户型保存失败",
  6746. },
  6747. show: {
  6748. __name: "展示页面",
  6749. on: "开启",
  6750. off: "关闭",
  6751. measure: "测距工具",
  6752. measure_start: "起点",
  6753. measure_end: "终点",
  6754. measure_button: "确定{status}",
  6755. location_up: "上方",
  6756. location_left: "左侧",
  6757. location_start_tips: "请先在{direction}点击",
  6758. location_end_tips: "起点确定完毕,请定位终点",
  6759. vr: "VR模式",
  6760. share: "分享",
  6761. music: "{status}音乐",
  6762. password_tips: "密码",
  6763. password_require: "请输入密码",
  6764. },
  6765. components: {
  6766. user_guid: {
  6767. __name: "用户引导",
  6768. title: "操作提示",
  6769. pano: "行走<br />点击任意方向移动",
  6770. rotate: "旋转视角<br />左右滑动屏幕,旋转视觉",
  6771. zoom: "缩放<br />双指滑动放大或缩小视图",
  6772. set: "我知道了",
  6773. },
  6774. },
  6775. });
  6776. },
  6777. function(t, e, i) {
  6778. "use strict";
  6779. var n =
  6780. (this && this.__assign) ||
  6781. function() {
  6782. return (n =
  6783. Object.assign ||
  6784. function(t) {
  6785. for (var e, i = 1, n = arguments.length; i < n; i++)
  6786. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  6787. return t;
  6788. }).apply(this, arguments);
  6789. },
  6790. g =
  6791. (this && this.__spreadArrays) ||
  6792. function() {
  6793. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  6794. var n = Array(t),
  6795. g = 0;
  6796. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  6797. return n;
  6798. },
  6799. A =
  6800. (this && this.__importDefault) ||
  6801. function(t) {
  6802. return t && t.__esModule ? t : { default: t };
  6803. };
  6804. Object.defineProperty(e, "__esModule", { value: !0 });
  6805. var r = A(i(5)),
  6806. o = A(i(14)),
  6807. C = A(i(11)),
  6808. I = A(i(8)),
  6809. s = A(i(15)),
  6810. a = A(i(7)),
  6811. l = A(i(16)),
  6812. u = A(i(17)),
  6813. c = A(i(18)),
  6814. h = A(i(19)),
  6815. p = A(i(20)),
  6816. d = A(i(21));
  6817. (e.methods = {
  6818. addPoint: function(t) {
  6819. var e = t.id,
  6820. i = t.x,
  6821. n = t.y,
  6822. g = { id: e, ele: new r.default({ x: i, y: n, renderer: this.render }) };
  6823. return this.points.push(g), this.generateElement(g.ele), g;
  6824. },
  6825. addLine: function(t) {
  6826. var e = t.id,
  6827. i = t.p1,
  6828. n = t.p2,
  6829. g = t.border,
  6830. A = t.exterior,
  6831. r = t.isOut,
  6832. C = {
  6833. id: e,
  6834. ele: new o.default({
  6835. border: g,
  6836. exterior: A,
  6837. points: [
  6838. this.points.find(function(t) {
  6839. return t.id === i;
  6840. }).ele,
  6841. this.points.find(function(t) {
  6842. return t.id === n;
  6843. }).ele,
  6844. ],
  6845. renderer: this.render,
  6846. isOut: r,
  6847. }),
  6848. border: g,
  6849. isOut: r,
  6850. exterior: A,
  6851. };
  6852. return (
  6853. this.lines.push(C),
  6854. this.generateElement(C.ele),
  6855. A &&
  6856. (C.ele.points.forEach(function(t) {
  6857. return t.real.setAttribute("pointer-events", "none");
  6858. }),
  6859. (C.ele.zIndex = -1)),
  6860. C
  6861. );
  6862. },
  6863. addCase: function(t) {
  6864. var e = t.pos,
  6865. i = t.line,
  6866. n = t.top,
  6867. g = void 0 === n ? null : n,
  6868. A = t.bottom,
  6869. r = void 0 === A ? null : A,
  6870. o = {
  6871. ele: new C.default({
  6872. renderer: this.render,
  6873. attachment: this.lines.find(function(t) {
  6874. return t.id === i;
  6875. }).ele,
  6876. points: [
  6877. { x: e[0], y: e[1] },
  6878. { x: e[2], y: e[3] },
  6879. ],
  6880. top: g,
  6881. bottom: r,
  6882. }),
  6883. };
  6884. return this.cases.push(o), this.generateElement(o.ele), o;
  6885. },
  6886. addDoor: function(t) {
  6887. var e = t.pos,
  6888. i = t.line,
  6889. n = t.top,
  6890. g = void 0 === n ? null : n,
  6891. A = t.bottom,
  6892. r = void 0 === A ? null : A,
  6893. o = t.within,
  6894. C = t.show,
  6895. s = t.start,
  6896. a = {
  6897. ele: new I.default({
  6898. show: C,
  6899. renderer: this.render,
  6900. attachment: this.lines.find(function(t) {
  6901. return t.id === i;
  6902. }).ele,
  6903. points: [
  6904. { x: e[0], y: e[1] },
  6905. { x: e[2], y: e[3] },
  6906. ],
  6907. top: g,
  6908. bottom: r,
  6909. within: o,
  6910. start: s,
  6911. }),
  6912. };
  6913. return this.doors.push(a), this.generateElement(a.ele), a;
  6914. },
  6915. adddDoubleDoor: function(t) {
  6916. var e = t.pos,
  6917. i = t.line,
  6918. n = t.top,
  6919. g = void 0 === n ? null : n,
  6920. A = t.bottom,
  6921. r = void 0 === A ? null : A,
  6922. o = t.within,
  6923. C = t.show,
  6924. I = t.start,
  6925. s = {
  6926. ele: new l.default({
  6927. show: C,
  6928. renderer: this.render,
  6929. attachment: this.lines.find(function(t) {
  6930. return t.id === i;
  6931. }).ele,
  6932. points: [
  6933. { x: e[0], y: e[1] },
  6934. { x: e[2], y: e[3] },
  6935. ],
  6936. top: g,
  6937. bottom: r,
  6938. within: o,
  6939. start: I,
  6940. }),
  6941. };
  6942. return this.doubleDoors.push(s), this.generateElement(s.ele), s;
  6943. },
  6944. addSlideDoor: function(t) {
  6945. var e = t.pos,
  6946. i = t.line,
  6947. n = t.top,
  6948. g = void 0 === n ? null : n,
  6949. A = t.bottom,
  6950. r = void 0 === A ? null : A,
  6951. o = t.within,
  6952. C = void 0 === o ? 0 : o,
  6953. I = {
  6954. ele: new s.default({
  6955. within: C,
  6956. bwithin: 1.5,
  6957. renderer: this.render,
  6958. attachment: this.lines.find(function(t) {
  6959. return t.id === i;
  6960. }).ele,
  6961. points: [
  6962. { x: e[0], y: e[1] },
  6963. { x: e[2], y: e[3] },
  6964. ],
  6965. top: g,
  6966. bottom: r,
  6967. }),
  6968. };
  6969. return this.slideDoors.push(I), this.generateElement(I.ele), I;
  6970. },
  6971. addBayCase: function(t) {
  6972. var e = t.pos,
  6973. i = t.line,
  6974. n = t.top,
  6975. g = void 0 === n ? null : n,
  6976. A = t.bottom,
  6977. r = void 0 === A ? null : A,
  6978. o = t.within,
  6979. C = {
  6980. ele: new d.default({
  6981. renderer: this.render,
  6982. attachment: this.lines.find(function(t) {
  6983. return t.id === i;
  6984. }).ele,
  6985. points: [
  6986. { x: e[0], y: e[1] },
  6987. { x: e[2], y: e[3] },
  6988. ],
  6989. top: g,
  6990. bottom: r,
  6991. within: o,
  6992. }),
  6993. };
  6994. return this.bayCases.push(C), this.generateElement(C.ele), C;
  6995. },
  6996. addGroundCase: function(t) {
  6997. var e = t.pos,
  6998. i = t.line,
  6999. n = t.top,
  7000. g = void 0 === n ? null : n,
  7001. A = t.bottom,
  7002. r = void 0 === A ? null : A,
  7003. o = {
  7004. ele: new p.default({
  7005. renderer: this.render,
  7006. attachment: this.lines.find(function(t) {
  7007. return t.id === i;
  7008. }).ele,
  7009. points: [
  7010. { x: e[0], y: e[1] },
  7011. { x: e[2], y: e[3] },
  7012. ],
  7013. top: g,
  7014. bottom: r,
  7015. }),
  7016. };
  7017. return this.groundCases.push(o), this.generateElement(o.ele), o;
  7018. },
  7019. addColumn: function(t) {
  7020. var e = t.pos,
  7021. i = t.line,
  7022. n = {
  7023. ele: new a.default({
  7024. renderer: this.render,
  7025. attachment: this.lines.find(function(t) {
  7026. return t.id === i;
  7027. }).ele,
  7028. points: [
  7029. { x: e[0], y: e[1] },
  7030. { x: e[2], y: e[3] },
  7031. { x: e[6], y: e[7] },
  7032. { x: e[4], y: e[5] },
  7033. ],
  7034. }),
  7035. };
  7036. return this.columns.push(n), this.generateElement(n.ele), n;
  7037. },
  7038. addFurnColumn: function(t) {
  7039. var e = t.pos,
  7040. i = t.angle,
  7041. n = {
  7042. ele: new u.default({
  7043. points: [
  7044. { x: e[0], y: e[1] },
  7045. { x: e[2], y: e[3] },
  7046. { x: e[4], y: e[5] },
  7047. { x: e[6], y: e[7] },
  7048. ],
  7049. renderer: this.render,
  7050. angle: i,
  7051. }),
  7052. };
  7053. return this.furnColumns.push(n), this.generateElement(n.ele), n;
  7054. },
  7055. addRoom: function(t) {
  7056. for (
  7057. var e,
  7058. i,
  7059. g = this,
  7060. A = t.points.map(function(t) {
  7061. return g.addPoint(n(n({}, t), { id: g.getNewPointId() }));
  7062. }),
  7063. r = [],
  7064. o = 0;
  7065. o < A.length - 1;
  7066. o++
  7067. )
  7068. r.push(this.addLine({ id: this.getNewLineId(), p1: A[o].id, p2: A[o + 1].id, isOut: !1, border: !1 }));
  7069. return (
  7070. r.forEach(function(t) {
  7071. return t.ele.update();
  7072. }),
  7073. (e = this.data.vertex).push.apply(
  7074. e,
  7075. A.map(function(t) {
  7076. return { id: t.id, x: t.ele.x, y: t.ele.y };
  7077. })
  7078. ),
  7079. (i = this.data.wall).push.apply(
  7080. i,
  7081. r.map(function(t) {
  7082. return t.id;
  7083. })
  7084. ),
  7085. r
  7086. );
  7087. },
  7088. addFurnFlue: function(t) {
  7089. var e = t.pos,
  7090. i = t.angle,
  7091. n = {
  7092. ele: new c.default({
  7093. points: [
  7094. { x: e[0], y: e[1] },
  7095. { x: e[2], y: e[3] },
  7096. { x: e[4], y: e[5] },
  7097. { x: e[6], y: e[7] },
  7098. ],
  7099. renderer: this.render,
  7100. angle: i,
  7101. }),
  7102. };
  7103. return this.furnFlues.push(n), this.generateElement(n.ele), n;
  7104. },
  7105. addTagging: function(t) {
  7106. var e = t.pos,
  7107. i = t.title,
  7108. n = t.content,
  7109. g = t.show,
  7110. A = void 0 === g || g,
  7111. r = t.showTitle,
  7112. o = t.showContent,
  7113. C = { ele: new h.default({ show: A, pos: { x: e[0], y: e[1] }, title: i, content: n, renderer: this.render, showTitle: r, showContent: o }) };
  7114. return this.taggings.push(C), this.generateElement(C.ele), C;
  7115. },
  7116. generateElement: function(t) {
  7117. this.render.push(t), this.retrofitElementDestroy(t), t instanceof o.default && this.retrofitElementIntercept(t);
  7118. },
  7119. generateElements: function() {
  7120. var t = this;
  7121. g(
  7122. this.lines.map(function(t) {
  7123. return t.ele;
  7124. }),
  7125. this.points.map(function(t) {
  7126. return t.ele;
  7127. }),
  7128. this.cases.map(function(t) {
  7129. return t.ele;
  7130. }),
  7131. this.doors.map(function(t) {
  7132. return t.ele;
  7133. }),
  7134. this.columns.map(function(t) {
  7135. return t.ele;
  7136. })
  7137. ).forEach(function(e) {
  7138. return t.generateElement(e);
  7139. });
  7140. },
  7141. toEles: function(t) {
  7142. var e,
  7143. i = this,
  7144. n = t.vertex,
  7145. g = t.wall,
  7146. A = t.window,
  7147. r = t.door,
  7148. o = t.column,
  7149. C = t.slideDoor,
  7150. I = t.tagging,
  7151. s = t.groundCase,
  7152. a = t.bayCase,
  7153. l = t.furnColumn,
  7154. u = t.furnFlue,
  7155. c = t.doubleDoor;
  7156. (this.data = t),
  7157. n.forEach(function(t) {
  7158. return i.addPoint(t);
  7159. }),
  7160. g.forEach(function(t) {
  7161. var e = t.p1,
  7162. n = t.p2,
  7163. g = t.id,
  7164. A = t.border,
  7165. r = t.exterior;
  7166. i.addLine({ p1: e, p2: n, id: g, border: A, exterior: r, isOut: !1 });
  7167. }),
  7168. (e = [A, r, o, C, s, a, c].map(function(t) {
  7169. return (
  7170. t.forEach(function(t) {
  7171. var e = g.find(function(e) {
  7172. var i = e.id;
  7173. return t.line === i;
  7174. });
  7175. if (e) {
  7176. var n = e.p1,
  7177. A = e.p2,
  7178. r = i.lines.find(function(t) {
  7179. t.id;
  7180. var e = t.ele.points.map(function(t) {
  7181. return i.points.find(function(e) {
  7182. return e.ele === t;
  7183. }).id;
  7184. });
  7185. return ~e.indexOf(n) && ~e.indexOf(A);
  7186. });
  7187. t.line = r.id;
  7188. } else t.line = 0;
  7189. }),
  7190. (t = t.filter(function(t) {
  7191. return !t.pos.some(function(t) {
  7192. return null === t;
  7193. });
  7194. }))
  7195. );
  7196. })),
  7197. (A = e[0]),
  7198. (r = e[1]),
  7199. (o = e[2]),
  7200. (C = e[3]),
  7201. (s = e[4]),
  7202. (a = e[5]),
  7203. (c = e[6]),
  7204. A.forEach(function(t) {
  7205. return 0 !== t.line && i.addCase(t);
  7206. }),
  7207. r.forEach(function(t) {
  7208. return 0 !== t.line && i.addDoor(t);
  7209. }),
  7210. o.forEach(function(t) {
  7211. return 0 !== t.line && i.addColumn(t);
  7212. }),
  7213. C.forEach(function(t) {
  7214. return 0 !== t.line && i.addSlideDoor(t);
  7215. }),
  7216. s.forEach(function(t) {
  7217. return 0 !== t.line && i.addGroundCase(t);
  7218. }),
  7219. a.forEach(function(t) {
  7220. return 0 !== t.line && i.addBayCase(t);
  7221. }),
  7222. I.forEach(function(t) {
  7223. return i.addTagging(t);
  7224. }),
  7225. c.forEach(function(t) {
  7226. return i.adddDoubleDoor(t);
  7227. }),
  7228. l.forEach(function(t) {
  7229. i.addFurnColumn(t);
  7230. }),
  7231. u.forEach(function(t) {
  7232. i.addFurnFlue(t);
  7233. }),
  7234. this.referElements(),
  7235. (this.id = t.id),
  7236. (this.show = t.show);
  7237. },
  7238. referElements: function() {
  7239. var t = this;
  7240. g(this.lines, this.points, this.cases, this.doors, this.columns).forEach(function(e) {
  7241. var i = e.ele;
  7242. t.render.g.removeChild(i.real), t.render.elements.splice(t.render.elements.indexOf(i), 1);
  7243. }),
  7244. this.generateElements();
  7245. },
  7246. }),
  7247. (e.methods.attrs = [
  7248. "cases",
  7249. "doors",
  7250. "slideDoors",
  7251. "doubleDoors",
  7252. "columns",
  7253. "lines",
  7254. "points",
  7255. "groundCases",
  7256. "taggings",
  7257. "bayCases",
  7258. "furnColumns",
  7259. "furnFlues",
  7260. ]);
  7261. },
  7262. function(t, e, i) {
  7263. "use strict";
  7264. var n,
  7265. g =
  7266. (this && this.__extends) ||
  7267. ((n = function(t, e) {
  7268. return (n =
  7269. Object.setPrototypeOf ||
  7270. ({ __proto__: [] } instanceof Array &&
  7271. function(t, e) {
  7272. t.__proto__ = e;
  7273. }) ||
  7274. function(t, e) {
  7275. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  7276. })(t, e);
  7277. }),
  7278. function(t, e) {
  7279. function i() {
  7280. this.constructor = t;
  7281. }
  7282. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  7283. }),
  7284. A =
  7285. (this && this.__importDefault) ||
  7286. function(t) {
  7287. return t && t.__esModule ? t : { default: t };
  7288. };
  7289. Object.defineProperty(e, "__esModule", { value: !0 });
  7290. var r = A(i(5)),
  7291. o = i(3),
  7292. C = i(0),
  7293. I = (function(t) {
  7294. function e(e, i) {
  7295. var n = t.call(this, e) || this;
  7296. return (n.line = i), n;
  7297. }
  7298. return (
  7299. g(e, t),
  7300. (e.prototype.getLineInsertPoint = function(t) {
  7301. void 0 === t && (t = this);
  7302. var e = C.getLinePoint(this.line, t);
  7303. return e;
  7304. }),
  7305. (e.prototype.intercept = function(t, e) {
  7306. var i = e.x,
  7307. n = e.y;
  7308. return !(!o.type.isUndefined(i) && !o.type.isUndefined(n)) || this.getLineInsertPoint({ x: i, y: n });
  7309. }),
  7310. e
  7311. );
  7312. })(r.default);
  7313. e.default = I;
  7314. },
  7315. function(t, e, i) {
  7316. "use strict";
  7317. var n,
  7318. g =
  7319. (this && this.__extends) ||
  7320. ((n = function(t, e) {
  7321. return (n =
  7322. Object.setPrototypeOf ||
  7323. ({ __proto__: [] } instanceof Array &&
  7324. function(t, e) {
  7325. t.__proto__ = e;
  7326. }) ||
  7327. function(t, e) {
  7328. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  7329. })(t, e);
  7330. }),
  7331. function(t, e) {
  7332. function i() {
  7333. this.constructor = t;
  7334. }
  7335. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  7336. }),
  7337. A =
  7338. (this && this.__assign) ||
  7339. function() {
  7340. return (A =
  7341. Object.assign ||
  7342. function(t) {
  7343. for (var e, i = 1, n = arguments.length; i < n; i++)
  7344. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  7345. return t;
  7346. }).apply(this, arguments);
  7347. },
  7348. r =
  7349. (this && this.__awaiter) ||
  7350. function(t, e, i, n) {
  7351. return new (i || (i = Promise))(function(g, A) {
  7352. function r(t) {
  7353. try {
  7354. C(n.next(t));
  7355. } catch (t) {
  7356. A(t);
  7357. }
  7358. }
  7359. function o(t) {
  7360. try {
  7361. C(n.throw(t));
  7362. } catch (t) {
  7363. A(t);
  7364. }
  7365. }
  7366. function C(t) {
  7367. var e;
  7368. t.done
  7369. ? g(t.value)
  7370. : ((e = t.value),
  7371. e instanceof i
  7372. ? e
  7373. : new i(function(t) {
  7374. t(e);
  7375. })).then(r, o);
  7376. }
  7377. C((n = n.apply(t, e || [])).next());
  7378. });
  7379. },
  7380. o =
  7381. (this && this.__generator) ||
  7382. function(t, e) {
  7383. var i,
  7384. n,
  7385. g,
  7386. A,
  7387. r = {
  7388. label: 0,
  7389. sent: function() {
  7390. if (1 & g[0]) throw g[1];
  7391. return g[1];
  7392. },
  7393. trys: [],
  7394. ops: [],
  7395. };
  7396. return (
  7397. (A = { next: o(0), throw: o(1), return: o(2) }),
  7398. "function" == typeof Symbol &&
  7399. (A[Symbol.iterator] = function() {
  7400. return this;
  7401. }),
  7402. A
  7403. );
  7404. function o(A) {
  7405. return function(o) {
  7406. return (function(A) {
  7407. if (i) throw new TypeError("Generator is already executing.");
  7408. for (; r; )
  7409. try {
  7410. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  7411. return g;
  7412. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  7413. case 0:
  7414. case 1:
  7415. g = A;
  7416. break;
  7417. case 4:
  7418. return r.label++, { value: A[1], done: !1 };
  7419. case 5:
  7420. r.label++, (n = A[1]), (A = [0]);
  7421. continue;
  7422. case 7:
  7423. (A = r.ops.pop()), r.trys.pop();
  7424. continue;
  7425. default:
  7426. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  7427. r = 0;
  7428. continue;
  7429. }
  7430. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  7431. r.label = A[1];
  7432. break;
  7433. }
  7434. if (6 === A[0] && r.label < g[1]) {
  7435. (r.label = g[1]), (g = A);
  7436. break;
  7437. }
  7438. if (g && r.label < g[2]) {
  7439. (r.label = g[2]), r.ops.push(A);
  7440. break;
  7441. }
  7442. g[2] && r.ops.pop(), r.trys.pop();
  7443. continue;
  7444. }
  7445. A = e.call(t, r);
  7446. } catch (t) {
  7447. (A = [6, t]), (n = 0);
  7448. } finally {
  7449. i = g = 0;
  7450. }
  7451. if (5 & A[0]) throw A[1];
  7452. return { value: A[0] ? A[1] : void 0, done: !0 };
  7453. })([A, o]);
  7454. };
  7455. }
  7456. },
  7457. C =
  7458. (this && this.__rest) ||
  7459. function(t, e) {
  7460. var i = {};
  7461. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  7462. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  7463. var g = 0;
  7464. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  7465. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  7466. }
  7467. return i;
  7468. },
  7469. I =
  7470. (this && this.__spreadArrays) ||
  7471. function() {
  7472. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  7473. var n = Array(t),
  7474. g = 0;
  7475. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  7476. return n;
  7477. },
  7478. s =
  7479. (this && this.__importDefault) ||
  7480. function(t) {
  7481. return t && t.__esModule ? t : { default: t };
  7482. };
  7483. Object.defineProperty(e, "__esModule", { value: !0 });
  7484. var a = s(i(10)),
  7485. l = i(0),
  7486. u = (i(3), s(i(4))),
  7487. c = i(1),
  7488. h = (function(t) {
  7489. function e(e) {
  7490. var i = e.isOut,
  7491. n = e.hover,
  7492. g = e.width,
  7493. r = void 0 === g ? 3 : g,
  7494. o = e.border,
  7495. I = void 0 !== o && o,
  7496. s = e.exterior,
  7497. a = C(e, ["isOut", "hover", "width", "border", "exterior"]),
  7498. l = t.call(this, A(A({}, a), { width: r })) || this;
  7499. return (
  7500. (l.hover = n || A(A({}, l.init), { color: "rgba(243, 255, 0, 0.8)" })),
  7501. (l.isOut = i),
  7502. (l.adopt = !1),
  7503. (l.border = I),
  7504. (l.exterior = s),
  7505. l.listenPointDrag(),
  7506. Object.defineProperty(l, "wallLines", {
  7507. get: function() {
  7508. return a.renderer.processing.lines.map(function(t) {
  7509. return t.ele;
  7510. });
  7511. },
  7512. }),
  7513. l
  7514. );
  7515. }
  7516. return (
  7517. g(e, t),
  7518. (e.prototype.setHoverStyle = function() {
  7519. (this.color = this.hover.color), (this.width = this.hover.width), (this.linecap = this.hover.linecap);
  7520. }),
  7521. (e.prototype.setUnHoverStyle = function() {
  7522. (this.color = this.init.color), (this.width = this.init.width), (this.linecap = this.init.linecap);
  7523. }),
  7524. (e.prototype.destoryPoint = function(t) {
  7525. return r(this, void 0, void 0, function() {
  7526. return o(this, function(e) {
  7527. return t.destroy(), [2];
  7528. });
  7529. });
  7530. }),
  7531. (e.prototype.listenPointDrag = function(t) {
  7532. var e = this;
  7533. void 0 === t && (t = this.points),
  7534. t.forEach(function(t) {
  7535. t.__join_lines ? ~t.__join_lines.indexOf(e) || t.__join_lines.push(e) : (t.__join_lines = [e]);
  7536. });
  7537. }),
  7538. (e.prototype.getDelRetain = function() {
  7539. return { delIndex: 0, retainIndex: 1 };
  7540. }),
  7541. (e.prototype.judgeMerge = function() {
  7542. return r(this, void 0, void 0, function() {
  7543. var t,
  7544. i,
  7545. n,
  7546. g,
  7547. A,
  7548. r = this;
  7549. return o(this, function(o) {
  7550. switch (o.label) {
  7551. case 0:
  7552. if (
  7553. this.points[0] === this.points[1] ||
  7554. l.lineDis({ points: this.points }) > e.minWidth ||
  7555. (u.default.attaArch.get(this) && u.default.attaArch.get(this).length)
  7556. )
  7557. return [2];
  7558. t = this.wallLines;
  7559. try {
  7560. (g = this.getDelRetain()), (i = g.delIndex), (n = g.retainIndex);
  7561. } catch (t) {
  7562. return [2];
  7563. }
  7564. return (
  7565. (A = this.points[n]),
  7566. [
  7567. 4,
  7568. Promise.all(
  7569. t.map(function(t) {
  7570. var e;
  7571. if (t !== r && ~(e = t.points.indexOf(r.points[i])))
  7572. return new Promise(function(g) {
  7573. t.nextTick(function() {
  7574. var A = I(t.points);
  7575. (A[e] = r.points[n]),
  7576. A[i] === A[n]
  7577. ? t.destroy()
  7578. : (t.renderer.processing.updateWallPoints(t, t.points, A),
  7579. (t.points = A),
  7580. t.listenPointDrag(A),
  7581. t.update(),
  7582. t.nextTick(function() {
  7583. return t.updateJoin();
  7584. })),
  7585. g();
  7586. });
  7587. });
  7588. })
  7589. ),
  7590. ]
  7591. );
  7592. case 1:
  7593. return (
  7594. o.sent(),
  7595. (this.points[i].x = this.points[n].x),
  7596. (this.points[i].y = this.points[n].y),
  7597. (this.points[i].adopt = !0),
  7598. setTimeout(function() {
  7599. r.wallLines.some(function(t) {
  7600. return ~t.points.indexOf(A);
  7601. }) || r.points[n].destroy();
  7602. }, 500),
  7603. [2, this.points[i]]
  7604. );
  7605. }
  7606. });
  7607. });
  7608. }),
  7609. (e.prototype.judgePoint = function() {
  7610. return r(this, void 0, void 0, function() {
  7611. var t,
  7612. e,
  7613. i,
  7614. n = this;
  7615. return o(this, function(g) {
  7616. switch (g.label) {
  7617. case 0:
  7618. (t = function(t) {
  7619. var i, g, A, r, C;
  7620. return o(this, function(s) {
  7621. switch (s.label) {
  7622. case 0:
  7623. if (
  7624. ((i = e.points[t]),
  7625. !e.renderer.processing.points.some(function(t) {
  7626. return t.ele === i;
  7627. }))
  7628. )
  7629. return [2, "continue"];
  7630. (g = e.renderer.processing),
  7631. (A = I(e.wallLines).filter(function(t) {
  7632. return t !== n && !t.exterior;
  7633. })),
  7634. 0.1,
  7635. (A = A.filter(function(t) {
  7636. return l.pointLineDis(t, i) <= 0.1;
  7637. })),
  7638. (r = function(t) {
  7639. var e, r, C, I;
  7640. return o(this, function(o) {
  7641. switch (o.label) {
  7642. case 0:
  7643. return (
  7644. (e = A[t]),
  7645. (r = g.lines
  7646. .filter(function(t) {
  7647. var i = t.ele;
  7648. return ~i.points.indexOf(e.points[0]) && i.points.indexOf(e.points[1]);
  7649. })
  7650. .map(function(t) {
  7651. return t.ele;
  7652. })),
  7653. (C = []),
  7654. r.forEach(function(t) {
  7655. return (C = C.concat(u.default.attaArch.get(t) || []));
  7656. }),
  7657. (I = l.getLinePoint(e, i)),
  7658. C.find(function(t) {
  7659. return l.pointLineDis({ points: t.linePoints }, I) < 0.001;
  7660. })
  7661. ? [3, 5]
  7662. : [3, 1]
  7663. );
  7664. case 1:
  7665. if (!(l.pointLineDis(e, I) < 0.1)) return [3, 5];
  7666. (i.x = I.x), (i.y = I.y), (o.label = 2);
  7667. case 2:
  7668. return (
  7669. o.trys.push([2, 4, , 5]),
  7670. [
  7671. 4,
  7672. new Promise(function(t, A) {
  7673. i.nextTick(function() {
  7674. n.renderer.processing.points.some(function(t) {
  7675. return t.ele === i;
  7676. }) || A();
  7677. var r = g.lineInsertPoint(e, i),
  7678. o = r.promis;
  7679. if (!r.ret) return t();
  7680. o.then(function() {
  7681. (i.x = I.x), (i.y = I.y), i.wallPos && i.wallPos(), t();
  7682. }),
  7683. e.wallPos && e.wallPos();
  7684. });
  7685. }),
  7686. ]
  7687. );
  7688. case 3:
  7689. return o.sent(), [3, 5];
  7690. case 4:
  7691. return o.sent(), [2, "break"];
  7692. case 5:
  7693. return [2];
  7694. }
  7695. });
  7696. }),
  7697. (C = 0),
  7698. (s.label = 1);
  7699. case 1:
  7700. return C < A.length ? [5, r(C)] : [3, 4];
  7701. case 2:
  7702. if ("break" === s.sent()) return [3, 4];
  7703. s.label = 3;
  7704. case 3:
  7705. return C++, [3, 1];
  7706. case 4:
  7707. return [2];
  7708. }
  7709. });
  7710. }),
  7711. (e = this),
  7712. (i = 0),
  7713. (g.label = 1);
  7714. case 1:
  7715. return i < this.points.length ? [5, t(i)] : [3, 4];
  7716. case 2:
  7717. g.sent(), (g.label = 3);
  7718. case 3:
  7719. return i++, [3, 1];
  7720. case 4:
  7721. return [2];
  7722. }
  7723. });
  7724. });
  7725. }),
  7726. (e.prototype.updateJoin = function() {
  7727. var t = this,
  7728. e = this.wallLines;
  7729. (this.points[0].__join_lines = e.filter(function(e) {
  7730. return ~e.points.indexOf(t.points[0]);
  7731. })),
  7732. (this.points[1].__join_lines = e.filter(function(e) {
  7733. return ~e.points.indexOf(t.points[1]);
  7734. }));
  7735. }),
  7736. (e.prototype.removeJoin = function(t) {
  7737. void 0 === t && (t = this);
  7738. var e = t.points[0].__join_lines,
  7739. i = t.points[1].__join_lines;
  7740. e.splice(e.indexOf(t), 1), i.splice(i.indexOf(t), 1);
  7741. }),
  7742. (e.prototype.checkCross = function(t) {
  7743. var e = this;
  7744. void 0 === t && (t = this.points);
  7745. var i = this.renderer.processing;
  7746. return this.wallLines
  7747. .filter(function(t) {
  7748. return ~t.points.indexOf(e.points[0]) || ~t.points.indexOf(e.points[1]);
  7749. })
  7750. .some(function(n) {
  7751. var g = n.points.indexOf(e.points[0]),
  7752. A = n.points.indexOf(e.points[1]),
  7753. r = I(n.points);
  7754. return (
  7755. ~g && (r[g] = t[0]),
  7756. ~A && (r[A] = t[1]),
  7757. e.wallLines.some(function(g) {
  7758. if (!~g.points.indexOf(n.points[0]) && !~g.points.indexOf(n.points[1])) {
  7759. var A = l.segmentsIntr(g, { points: r });
  7760. if (!A) return !1;
  7761. if (
  7762. 0 !== l.lineDis({ points: [r[0], A] }) &&
  7763. 0 !== l.lineDis({ points: [r[1], A] }) &&
  7764. 0 !== l.lineDis({ points: [g.points[0], A] }) &&
  7765. 0 !== l.lineDis({ points: [g.points[1], A] })
  7766. )
  7767. return !0;
  7768. var o = i.getRoomsByLine(n);
  7769. o = (o = o.length ? o : i.getHolesByLine(n))[0].ground || o[0].pos;
  7770. var C = i.getRoomsByLine(g);
  7771. return (
  7772. o !== (C = (C = C.length ? C : i.getHolesByLine(g))[0].ground || C[0].pos) &&
  7773. ((o = o.map(function(n) {
  7774. var g = i.points.find(function(t) {
  7775. var e = t.id;
  7776. return n === e;
  7777. }).ele;
  7778. return g === e.points[0] ? t[0] : g === e.points[1] ? t[1] : g;
  7779. })),
  7780. (C = C.map(function(n) {
  7781. var g = i.points.find(function(t) {
  7782. var e = t.id;
  7783. return n === e;
  7784. }).ele;
  7785. return g === e.points[0] ? t[0] : g === e.points[1] ? t[1] : g;
  7786. })),
  7787. l.isFaceIntersect(o, C))
  7788. );
  7789. }
  7790. })
  7791. );
  7792. });
  7793. }),
  7794. (e.prototype.intercept = function(t, e, i) {
  7795. e.x, e.y, e.points;
  7796. return !0;
  7797. }),
  7798. (e.prototype.grentNode = function() {
  7799. var e = document.createElementNS(c.SVGURI, "g");
  7800. return (
  7801. (this.origin = t.prototype.grentNode.call(this)),
  7802. (this.ground = document.createElementNS(c.SVGURI, "g")),
  7803. (this.temp = document.createElementNS(c.SVGURI, "g")),
  7804. e.appendChild(this.ground),
  7805. e.appendChild(this.origin),
  7806. e.appendChild(this.temp),
  7807. this.temp.setAttribute("pointer-events", "none"),
  7808. e
  7809. );
  7810. }),
  7811. (e.prototype.update = function() {
  7812. var t = this,
  7813. e = u.default.attaArch.get(this),
  7814. i = this.multiple * this.width * (this.border ? 2 : 1.333);
  7815. this.origin.setAttribute("stroke-width", i.toString()), this.origin.setAttribute("stroke-linecap", this.linecap);
  7816. try {
  7817. this.origin.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[1].x + " " + this.points[1].y);
  7818. } catch (t) {}
  7819. if (
  7820. (this.exterior
  7821. ? (this.origin.setAttribute("stroke", this.color === this.hover.color ? this.color : "#5e5e5e"),
  7822. this.origin.setAttribute("stroke-dasharray", 10 * this.multiple + ", " + 10 * this.multiple))
  7823. : this.origin.setAttribute("stroke", this.color),
  7824. !this.exterior && e && e.length > 0)
  7825. ) {
  7826. this.origin.setAttribute("stroke", "rgba(0,0,0,0)");
  7827. for (
  7828. var n = [],
  7829. g = function(t) {
  7830. if (
  7831. n.some(function(e) {
  7832. return e.some(function(i) {
  7833. return i === e[t];
  7834. });
  7835. })
  7836. )
  7837. return "continue";
  7838. var i = e.filter(function(i) {
  7839. return (
  7840. i.linePoints &&
  7841. i.linePoints.length &&
  7842. (l.pointLineDis({ points: e[t].linePoints }, i.linePoints[0]) < 0.1 ||
  7843. l.pointLineDis({ points: e[t].linePoints }, i.linePoints[1]) < 0.1)
  7844. );
  7845. });
  7846. i.length && n.push(i);
  7847. },
  7848. A = 0;
  7849. A < e.length;
  7850. A++
  7851. )
  7852. g(A);
  7853. var r = [];
  7854. n.forEach(function(e) {
  7855. var i = e
  7856. .reduce(function(t, e) {
  7857. return t.concat(e.linePoints);
  7858. }, [])
  7859. .sort(function(e, i) {
  7860. return l.lineDis({ points: [e, t.points[0]] }) - l.lineDis({ points: [i, t.points[0]] });
  7861. }),
  7862. n = [];
  7863. l.pointLineDis(t, i[0]) < 0.1 && n.push(i[0]), l.pointLineDis(t, i[i.length - 1]) < 0.1 && n.push(i[i.length - 1]), n.length && r.push(n);
  7864. }),
  7865. (r = r.sort(function(e, i) {
  7866. return l.lineDis({ points: [e[0], t.points[0]] }) - l.lineDis({ points: [i[0], t.points[0]] });
  7867. })),
  7868. (this.ground.innerHTML = "");
  7869. var o = "";
  7870. for (A = 1; A < r.length; A++) {
  7871. var C = r[A - 1][r[A - 1].length - 1],
  7872. I = r[A][0];
  7873. o +=
  7874. '<path \n stroke="' +
  7875. (this.exterior && "rgba(243, 255, 0, 0.8)" !== this.color ? "rgb(150,150,150)" : this.color) +
  7876. '" \n stroke-width="' +
  7877. i +
  7878. '" \n stroke-linecap="butt" \n d="M ' +
  7879. C.x +
  7880. " " +
  7881. C.y +
  7882. " L " +
  7883. I.x +
  7884. " " +
  7885. I.y +
  7886. '"></path>';
  7887. }
  7888. if (
  7889. (r.length &&
  7890. 2 === r[0].length &&
  7891. (o =
  7892. '<path \n stroke="' +
  7893. (this.exterior && "rgba(243, 255, 0, 0.8)" !== this.color ? "rgb(150,150,150)" : this.color) +
  7894. '" \n stroke-width="' +
  7895. i +
  7896. '" \n stroke-linecap="butt" \n d="M ' +
  7897. this.points[0].x +
  7898. " " +
  7899. this.points[0].y +
  7900. " L " +
  7901. r[0][0].x +
  7902. " " +
  7903. r[0][0].y +
  7904. '"></path>' +
  7905. o),
  7906. r.length &&
  7907. 2 === r[r.length - 1].length &&
  7908. (o =
  7909. o +
  7910. '<path \n stroke="' +
  7911. (this.exterior && "rgba(243, 255, 0, 0.8)" !== this.color ? "rgb(150,150,150)" : this.color) +
  7912. '" \n stroke-width="' +
  7913. i +
  7914. '" \n stroke-linecap="butt" \n d="M ' +
  7915. r[r.length - 1][1].x +
  7916. " " +
  7917. r[r.length - 1][1].y +
  7918. " L " +
  7919. this.points[1].x +
  7920. " " +
  7921. this.points[1].y +
  7922. '"></path>'),
  7923. 1 === r.length && 1 === r[0].length)
  7924. ) {
  7925. var s = e.find(function(t) {
  7926. return ~t.linePoints.indexOf(r[0][0]);
  7927. }),
  7928. a = s.linePoints[Number(!s.linePoints.indexOf(r[0][0]))];
  7929. C = l.lineDis({ points: [a, this.points[0]] }) > l.lineDis({ points: [a, this.points[1]] }) ? this.points[0] : this.points[1];
  7930. o +=
  7931. '<path \n stroke="' +
  7932. (this.exterior && "rgba(243, 255, 0, 0.8)" !== this.color ? "rgb(150,150,150)" : this.color) +
  7933. '" \n stroke-width="' +
  7934. i +
  7935. '" \n stroke-linecap="butt" \n d="M ' +
  7936. C.x +
  7937. " " +
  7938. C.y +
  7939. " L " +
  7940. r[0][0].x +
  7941. " " +
  7942. r[0][0].y +
  7943. '"></path>';
  7944. }
  7945. 0 === r.length &&
  7946. (o +=
  7947. '<path \n stroke="' +
  7948. (this.exterior && "rgba(243, 255, 0, 0.8)" !== this.color ? "rgb(150,150,150)" : this.color) +
  7949. '" \n stroke-width="' +
  7950. i +
  7951. '" \n stroke-linecap="butt" \n d="M ' +
  7952. this.points[0].x +
  7953. " " +
  7954. this.points[0].y +
  7955. " L " +
  7956. this.points[1].x +
  7957. " " +
  7958. this.points[1].y +
  7959. '"></path>'),
  7960. (this.ground.innerHTML = o);
  7961. } else this.ground.innerHTML = "";
  7962. if (((this.temp.innerHTML = ""), this.showAngle || this.color === this.hover.color)) {
  7963. var h = this.renderer.processing.lines
  7964. .filter(function(e) {
  7965. return e.ele !== t && (~e.ele.points.indexOf(t.points[0]) || ~e.ele.points.indexOf(t.points[1]));
  7966. })
  7967. .map(function(t) {
  7968. return t.ele;
  7969. });
  7970. if (0 !== h.length) {
  7971. var p = this.renderer.screenToRealPoint({ x: 20, y: 0 }).x - this.renderer.screenToRealPoint({ x: 0, y: 0 }).x;
  7972. h.forEach(function(e) {
  7973. var i = l.getAngle(e, t),
  7974. n = ~e.points.indexOf(t.points[0]) ? t.points[0] : t.points[1],
  7975. g = l.getLineDisSelectPoint(e, n, p),
  7976. A = l.getLineDisSelectPoint(t, n, p),
  7977. r = l.lineCenter({ points: [g, A] });
  7978. if (!isNaN(r.x) && !isNaN(i) && i > 10 && i < 170) {
  7979. i = (i = Math.round(i)) >= 89 && i <= 91 ? 90 : i;
  7980. var o = document.createElementNS(c.SVGURI, "text");
  7981. o.setAttribute("fill", "#fff"),
  7982. o.setAttribute("text-anchor", "middle"),
  7983. o.setAttribute("dominant-baseline", "middle"),
  7984. o.setAttribute("x", r.x.toString()),
  7985. o.setAttribute("y", r.y.toString()),
  7986. o.setAttribute("font-size", (9 * t.multiple).toString()),
  7987. (o.textContent = parseInt(i + "").toString() + "°"),
  7988. t.temp.appendChild(o);
  7989. }
  7990. });
  7991. }
  7992. }
  7993. }),
  7994. (e.prototype.destroy = function() {
  7995. var e = this,
  7996. i = this.wallLines;
  7997. i.splice(i.indexOf(this), 1);
  7998. var n = u.default.attaArch.get(this);
  7999. if (n) {
  8000. n = I(n);
  8001. var g = i.find(function(t) {
  8002. return (t.points[0] === e.points[0] && t.points[1] === e.points[1]) || (t.points[1] === e.points[0] && t.points[0] === e.points[1]);
  8003. });
  8004. n.forEach(function(t) {
  8005. g ? t.setAttachment(g) : t.destroy();
  8006. });
  8007. }
  8008. this.nextTick(function() {
  8009. i.filter(function(t) {
  8010. return ~t.points.indexOf(e.points[0]) || ~t.points.indexOf(e.points[1]);
  8011. }).forEach(function(t) {
  8012. return t.updateJoin();
  8013. });
  8014. }),
  8015. t.prototype.destroy.call(this),
  8016. this.removeJoin(),
  8017. i.some(function(t) {
  8018. return ~t.points.indexOf(e.points[0]);
  8019. }) || this.points[0].destroy(),
  8020. i.some(function(t) {
  8021. return ~t.points.indexOf(e.points[1]);
  8022. }) || this.points[1].destroy();
  8023. }),
  8024. (e.minWidth = 0.1),
  8025. e
  8026. );
  8027. })(a.default);
  8028. e.default = h;
  8029. },
  8030. function(t, e) {
  8031. t.exports =
  8032. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAACECAYAAAAeNUIyAAAIPklEQVR4Xs2bZw8cNRCGXxN67y0gOqKDEIgiOkLwO/jAr0SiCRCRIggEEiAEUEivJIFUGPRsxqe9u123K8JSPiS3az87Mx6PXzvBzC6XdC6E8I/W3Mxsg6RLgpldKckknV0niANcKilECGwACBY5v2qDmNnFWAAAxupDrAVkFmAIYqUgQwBjECsBGQNIQSwVxAEIwsE2GxOzDy0crCkLxMFyENEi50MI52pnjZkxA/iTbCUQsQPySPH0LQXIxUSzaxyAXNDlgVyrsUTsi4Q26poaC9TExNCHDIK0ANS6ow/DrJkKVjNjCrIgFbmg3xnuuKLlRe+ks4gDEAMtzYCAvlvNWnrwhW+Rd892Ly8BpIV/Uj5MvsBBLmvpreGdqfplyoxrsshcATXnyxWDDFZwgwG1ItcAcCaE8O+s+0ajeskWGQXoklUqqJYEki2is/N7QZCkBSZrR8n0agTB98QAIMmWtUR8uxIEAOqPuSAcoimG8Mx6kSQSWuo9vvx0iQWq3DG1fJqlQIpdMLWK5vw19PuIa6pcsDDEgGuqXbAUCAchNigF/qmJgeKM2eKm1neqZkfrILn3qKzYnGDOojmd67Dmd7sw0zYA8aCko5KOLOLXmsF7gX2jpOuBeFQSVjgcQjhU21nr82Z2iyQgLooQsa/Dkg6t0jXugpsl3TTJmG6J+HcscsStsvQY6QHcgAXGIPh3Bj8aQjjQauqx98zsNmKgD8Czs+7ov78017gFbpWEBeZaCqKzyKIx4gAEIQCDeSkFEV1zLISwv9U1Zna7u2A0MeYg4tgE68GaWeMWiDGQ/IZSCFZJQIqmby8GCMLs0lAK0SU5SbhmX841ZnanpGtLAHKzY2wsgvXAkGu82CEGAChuNZaInWIRQKZixAGYhteVWiCVrEq+YMo1ZobfN0q6uhYguuMBF0lKBp99plt9JWGBa1o66LYGZgY9U2lU9k103im+/WODSpCzkvZHpQYQIpp6cV0NYXZvCOFkX6kB5A5JrQJYDTzW2xNC+LuLif6bZnaVu2aVstHpzgUOMAfRZaQLZ2K4JiuM13y6P4sFdocQTvXfHVNqVgFCEP4RQjgzC59SagBh1nBkuWjjy/eFEHDFXMspNai9JKFFXMOX44I5C0wyZu4T/fD2rkYQvnxX7pwku8x6sOISFiYsU9r+chcQC8lWBNEDwTUlmZUYwAVFR1bFEA4CwN0JENI4AMyC4rP3KggHIZGRWWddA8BJd0HxWdlgssr5rweCa/qZFQDWgiqAZggHYY3BNUxf1gBiICsXVueJnFX84BVrnKqpxIszZg5gmb9XB+YyB59kTDNDIzjeElCLArk7r6O8e4t5LemXmrm9BACqOFSijUC85xubHZJ+WweIbw/uk0SR3d2pAaKbdZJ+d4sUpdsWa/gZ6v2S7unfqYkQ9IkcsEvST6uwiMfAw5JYlaeUmj5E/LidknYuM1gd4CG3wJQR++6YtS4W2ZEqRkrd4TUJAKT6uZaCIEZ2S9q+iEVcrH3M65FRpWbIHX1aLPJjC4gH4eNeq44aLmWJ/kt7PFgHC9Wh3n0P84gk9KpkK4XANehW35dUS26Bp1wwzS4NpRDxSyLIaN1oZqyqz4zJhbWBOWZCRFaCtdtH9puZIQ8QhIN65ViHtZaImRUh/rsQwsQifiPl6Val5t0WdQX9W9K35BEHeLZRKOmuszwnCdW9pQFCLrm3VizrDXYQCOSAJ2r96J0wayjtWzUN5KatUakhoJhSrbpTixWPe1yd6Cs1TZHdMrrH0zakIt4fUmpaXVPKw8z6IafUoF3hmipVtpDgmM+oqRwzptQAwsJTlXQSIATwwbEkl1NqcA3V+KKNLIsLmpSaZbgGxZekNroCZ1c4V3xZD2otElde1plkCZCF6BaLC7IiIDWZda/HwKhWFX1cBOEgZNYn/TwrFSNYgGm4tbQ+LYbogXCsPWYRAKjCKAezWlW1JeILvmIyfWdBYmEMQNXmqcoSPRBihITGQVusMZiGuKAKYC5t1yQDD1YKWY6bKPvYtVVLRQtBeIzEG+rcLCtW62Y/tskdNRYrefb/AWFmrA+/hhCQgdfavKq7j/LuAyAkfT5Uxq+KygFeljSBiALJF7HaWdXgHtBUcS9FoSRaIo7JOfhHIYQTq4IwM6b0G/1N8iwEYyOifbYKEDOjWnt1VqcYgoggxMify7KIS5XEAId8U20Mgocoxz4OIbA3WKiZGdeZcMHkWlO/wxQEz7EifhpCYI/Q1NwCr6d0ihwEAxOsuIYtX1UzM85FmAXJYqgEgoEBwDXFIA7wmi9wSfhSiBgjn4QQKFyTze/VvVlQhXX91EDwPGUbCW30Xo2ZcRDDLCAfFLVaCDpl2mKRORAzQyp+RRL1aHFrgaBzpi2ZdXJ10mMAF7BXqWpAvN+oL7Cv/MJFEgTzF2st4KTngXjbJf8qen+YNQaxlWODmtPj/lg74p0aQLics84ih5Wb4vjDqNSwxWNh4arCuho7NJLgkb5SQ0S/4xZZNQhiG4E9eKcGv+Ia0u0qXIMLiCGy72STPDeQmSGMkGwGzyYWNBGHOZtmF8QxpQaLMOc5JlpW2y7pq9o7NYBQAwCyiGs4V/tZ0pdjm+TcnRry/wuu2LZaZJukzalKPvuFfn7F9CUh1TSCcIukr3Ob5CwEo/oZBgsTIJOjxAQR+9KtboHsJrkIwkHII89L4lwz1YgBLLClVCgphnAQ7tQQI6g1Qw2ATX5MVbxLr4LogbBiYpG+azD7N26BYgD6rIZwEKYv5yTRIgy62ZWabAzMmrAJwkEQSDhuIlixAFcfmv4nxH+8RMcvoX23QgAAAABJRU5ErkJggg==";
  8033. },
  8034. function(t, e) {
  8035. t.exports =
  8036. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAACECAYAAAAeNUIyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABphJREFUeNrsW2tTHEUU7enZAXYD4bkICCKaqNFUtPxiaUzUWH73H2sV5bt8lkETX2VFQiCoRBNY1rDrXHK6qtPOo++dnsEPuVUdyOzM9Nl7b3ffc7qJlVJjaRuiNW1x2kZ1+g+1EVxoGgD1qzUuRLjQaghAC/1Rv0pbH9CFpAEgLfQTmQvauaFuIP8BkAWiTiCZAFRBRwYI2f2AOZBpuuDBUB5pWV8o9wblAYR+/iMAkJQBKPNEVY94AfAFYb+0VcO9x7NW4nlvZM2qAw8PRL4gdOA4J4wv5Z2YZc/ZySpef2K8MGI+54ZmRPgesmFkrWaR0CvDis/2I2dZjVRzdgxgOBwemcQ8ogtNA0C/D40OunDYQIX1EICsIWo8MmwKQN48UVdohvD0ke9kFTo0BsCAO2OGCo0JwUA6bVcFkhsC7tohBULfvFey2LEWMC6QAed+zirqm6yFSRhiKR+UADEhYIVOUk/kuXogTWItzHo3NOwQhLSoQh3xAP3wJMSADBBa/U8sqZAbVY36TaiiegoXeicAYCZtCwTisbS18cF+gyDm0jZLid2yUHXxc7fmoaYtAJnzxDQ+1DUDmC6arEyc5moC0QUAXcbAtOWqUKGhd867HvCZtqfhER0AAHlgSrJ2aADpVgRhPBBJCbHJEbLbzNBoDP+pUKsoNzQmByZDLuURPDLvef8CPOC1unL0icjK7p2c0MQAcLruombKml1dAOSpiSYqK+OReefaInKAXeDEeDAWAGkjnH0AmBBWWP0YulNbqDfRhs04nhcBSNu2eZBetKSa3XghzXwrLe/u2ujH4dYmNl7I+zepfqEa03XhKcxyozUCoApu2xRQWYXuvbTdUjIx3dcDt9wKLmuI7sNVoYFQEt5I20HWUMuzDkIzFgDAATzQ4/KO/UChIXq4VVTNR55zwbISCOfo+IYq2MLKGh1FQBYsauBjJsn7oWhgz+eFTg5s+d7PnWpJ/15R+Tt7QwD4TZWIZZJw2DaKmbWdAeAuPOa9jSll5SbbD3NygL2PWmVroYXQJBjOmxKpKIRI0sJ6I+Ymj5Qa12ZUc4c3ssI5S5XUq6io9lSz52qozzNpO0u/PIsynnjEXw0BoX7XIFW1DBrDsOj/d2pWakbQ55rKOVPzBG6Ia8yBM+gncuNiAzEcMrRHCMDZtK26k6QLwmbhCXLkKACAMeTeCpcGLgN51eGbAMCShJVHAEKj5ZqSHfChJHwBtWolaWAFYbuueKovrSnP+chNvtP2Il6YMDxwTnlKkb7xjlBj0s+rJWUbFT0vqRy5sKpSoxBbAvK9ytbBSR54ngNAKpJ04Wq3zmwjCae4L9SCtSICkBct4kwAXuaIZXZJEcN1HYFHOpZAdo4rllm2axas00xiY4dgTvgs2Z9p29CokjfS9rdQRJPOqLQkbKTl3b2oamYL7fe0fUc8JU+pOV8zkF14vlCpuQpX1WF7NoAy8jOOMR/KIzQN3M6a5Mq4aAehmQkAYgceECk1GwFC80ceAA4XHceomRGEYBsh6IWQBjoAwtkl3AKAw1A0cB/jeo+ZhId1SAOnSooVAnAT5aCXVCRVasySPZcBYBMAvGVHKSs/QLbvOQB2uABCKDUd1J2TGAXXJRV5CJEkARgxbXyk1Lh2HkPvJOy4dKBYvouCps7NljwAr6XtginNnsRI+VA9UGXrtgnIVKs2+YkAhCj8e8J609doSL9pk2Q3MYnqXVKCrWZPo6r+dZel6xxd4pLyPHbAMCoFLqftcV8aSECuBCzv6IzOW3lCiS7hnBcrMCvXA7NSQryEJJoVAljE892qrHxBCGQRHiitxjQjppcZdWaXk9yctaMLjyx4aFxXODoFdwEj175RAGQVHmMNb8kqOglXz2XkwEXJYhhDceGCaaPTO5jinwawccGXuh8j2SRUz+wak2cuCNUesp9jcIR5uJFbc44iYSX76KY4XtdYutdxoUmj+mXdVWrIE+8o/6NtVWwTJUPmmRpKuLeRdHX8TRiFgI4yvG9IclahS8TmA1C5OuwXVG89H/LTxtK7HBAAEeRPXJJcxkXbmKaXK4aGtrB+SNtHWSS5jHccwHW/VvQA8dPPili675kamg3XBEn4ddq+LKISHGlgFAXqmvL/i6lv0/Z5GUnm0EBKpo/T9qNnDnwDD3ixdMmZmleg1uQB+FQ9EGS9z9RwxfE+hhmBf8YJDX3rrzgAqtQTfWT7NScHvkAY2Ju5VcZ/glpkDR74SQm2tSkc/wowABSuxDvxNYq7AAAAAElFTkSuQmCC";
  8037. },
  8038. function(t, e, i) {
  8039. "use strict";
  8040. Object.defineProperty(e, "__esModule", { value: !0 }),
  8041. (e.methods = {
  8042. getRoomEles: function(t) {
  8043. var e = this;
  8044. return {
  8045. ground: t.ground.map(function(t) {
  8046. return e.points.find(function(e) {
  8047. return e.id === t;
  8048. }).ele;
  8049. }),
  8050. hole: t.hole.map(function(t) {
  8051. return t.pos.map(function(t) {
  8052. return e.points.find(function(e) {
  8053. return e.id === t;
  8054. }).ele;
  8055. });
  8056. }),
  8057. };
  8058. },
  8059. });
  8060. },
  8061. function(t, e, i) {
  8062. "use strict";
  8063. var n =
  8064. (this && this.__assign) ||
  8065. function() {
  8066. return (n =
  8067. Object.assign ||
  8068. function(t) {
  8069. for (var e, i = 1, n = arguments.length; i < n; i++)
  8070. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  8071. return t;
  8072. }).apply(this, arguments);
  8073. },
  8074. g =
  8075. (this && this.__spreadArrays) ||
  8076. function() {
  8077. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  8078. var n = Array(t),
  8079. g = 0;
  8080. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  8081. return n;
  8082. };
  8083. Object.defineProperty(e, "__esModule", { value: !0 });
  8084. var A = function(t, e) {
  8085. return void 0 === e && (e = 2), Number(t.toFixed(e));
  8086. };
  8087. e.methods = {
  8088. baseArchToData: function(t) {
  8089. return {
  8090. line: this.getLineId(t.attachment),
  8091. pos: [A(t.linePoints[0].x), A(t.linePoints[0].y), A(t.linePoints[1].x), A(t.linePoints[1].y)],
  8092. top: t.top,
  8093. bottom: t.bottom,
  8094. };
  8095. },
  8096. roomArchToData: function(t) {
  8097. return {
  8098. pos: [A(t.points[0].x), A(t.points[0].y), A(t.points[1].x), A(t.points[1].y), A(t.points[2].x), A(t.points[2].y), A(t.points[3].x), A(t.points[3].y)],
  8099. top: t.top,
  8100. bottom: t.bottom,
  8101. angle: t.angle,
  8102. };
  8103. },
  8104. pointToData: function(t) {
  8105. var e = t.ele;
  8106. return { id: t.id, x: A(e.x), y: A(e.y) };
  8107. },
  8108. lineToData: function(t) {
  8109. var e = t.ele,
  8110. i = t.id,
  8111. n = t.border;
  8112. return { id: i, p1: this.getPointId(e.points[0]), p2: this.getPointId(e.points[1]), border: n, exterior: e.exterior };
  8113. },
  8114. doorToData: function(t) {
  8115. var e = t.ele,
  8116. i = this.baseArchToData(e);
  8117. return (i.within = e.within), (i.show = e.show), (i.ctl = [e.ctl[0].x, -e.ctl[0].y]), (i.start = e.start), i;
  8118. },
  8119. DoubleDoorToData: function(t) {
  8120. var e = t.ele,
  8121. i = this.baseArchToData(e);
  8122. return (i.within = e.within), (i.show = e.show), i;
  8123. },
  8124. slideDoorToData: function(t) {
  8125. var e = t.ele,
  8126. i = this.baseArchToData(e);
  8127. return (i.within = e.within), (i.show = e.show), i;
  8128. },
  8129. caseToData: function(t) {
  8130. var e = t.ele;
  8131. return this.baseArchToData(e);
  8132. },
  8133. groundCaseToData: function(t) {
  8134. var e = t.ele;
  8135. return this.baseArchToData(e);
  8136. },
  8137. BayCaseToData: function(t) {
  8138. var e = t.ele,
  8139. i = this.baseArchToData(e);
  8140. return (i.within = e.within), (i.ctl = [e.ctl[0].x, -e.ctl[0].y, e.ctl[1].x, -e.ctl[1].y]), i;
  8141. },
  8142. columnToData: function(t) {
  8143. var e = t.ele,
  8144. i = this.baseArchToData(e);
  8145. return n(n({}, i), { pos: g(i.pos, [A(e.points[3].x), A(e.points[3].y), A(e.points[2].x), A(e.points[2].y)]) });
  8146. },
  8147. taggingToData: function(t) {
  8148. var e = t.ele;
  8149. return { pos: [e.x, e.y], title: e.title, content: e.content, showTitle: e.showTitle, showContent: e.showContent };
  8150. },
  8151. furnColumnToData: function(t) {
  8152. var e = t.ele;
  8153. return this.roomArchToData(e);
  8154. },
  8155. furnFlueToData: function(t) {
  8156. var e = t.ele;
  8157. return this.roomArchToData(e);
  8158. },
  8159. getNewPointId: function() {
  8160. return 0 === this.points.length
  8161. ? 1
  8162. : Math.max.apply(
  8163. Math,
  8164. this.points.map(function(t) {
  8165. return t.id;
  8166. })
  8167. ) + 1;
  8168. },
  8169. getNewLineId: function() {
  8170. return 0 === this.lines.length
  8171. ? 1
  8172. : Math.max.apply(
  8173. Math,
  8174. this.lines.map(function(t) {
  8175. return t.id;
  8176. })
  8177. ) + 1;
  8178. },
  8179. getLineId: function(t) {
  8180. var e = this.lines.find(function(e) {
  8181. return e.ele === t;
  8182. });
  8183. return e ? e.id : 0;
  8184. },
  8185. getPointId: function(t) {
  8186. return this.points.find(function(e) {
  8187. return e.ele === t;
  8188. }).id;
  8189. },
  8190. toData: function() {
  8191. var t = this,
  8192. e = this.points.map(function(e) {
  8193. return t.pointToData(e);
  8194. }),
  8195. i = this.columns.map(function(e) {
  8196. return t.columnToData(e);
  8197. }),
  8198. n = this.cases.map(function(e) {
  8199. return t.caseToData(e);
  8200. }),
  8201. g = this.doors.map(function(e) {
  8202. return t.doorToData(e);
  8203. }),
  8204. A = this.slideDoors.map(function(e) {
  8205. return t.slideDoorToData(e);
  8206. }),
  8207. r = this.groundCases.map(function(e) {
  8208. return t.groundCaseToData(e);
  8209. }),
  8210. o = this.taggings.map(function(e) {
  8211. return t.taggingToData(e);
  8212. }),
  8213. C = this.bayCases.map(function(e) {
  8214. return t.BayCaseToData(e);
  8215. }),
  8216. I = this.doubleDoors.map(function(e) {
  8217. return t.DoubleDoorToData(e);
  8218. }),
  8219. s = this.furnColumns.map(function(e) {
  8220. return t.furnColumnToData(e);
  8221. }),
  8222. a = this.furnFlues.map(function(e) {
  8223. return t.furnFlueToData(e);
  8224. }),
  8225. l = [];
  8226. return (
  8227. this.lines.forEach(function(e) {
  8228. try {
  8229. l.push(t.lineToData(e));
  8230. } catch (t) {}
  8231. }),
  8232. {
  8233. id: this.id,
  8234. show: this.show,
  8235. vertex: e,
  8236. wall: l,
  8237. window: n,
  8238. door: g,
  8239. column: i,
  8240. surplus: this.data.surplus,
  8241. slideDoor: A,
  8242. groundCase: r,
  8243. tagging: o,
  8244. doubleDoor: I,
  8245. bayCase: C,
  8246. furnColumn: s,
  8247. furnFlue: a,
  8248. dire: this.data.dire,
  8249. }
  8250. );
  8251. },
  8252. };
  8253. },
  8254. function(t, e, i) {
  8255. "use strict";
  8256. var n =
  8257. (this && this.__spreadArrays) ||
  8258. function() {
  8259. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  8260. var n = Array(t),
  8261. g = 0;
  8262. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  8263. return n;
  8264. },
  8265. g =
  8266. (this && this.__importDefault) ||
  8267. function(t) {
  8268. return t && t.__esModule ? t : { default: t };
  8269. };
  8270. Object.defineProperty(e, "__esModule", { value: !0 });
  8271. var A = g(i(4)),
  8272. r = i(0),
  8273. o = i(1);
  8274. e.methods = {
  8275. lineInsertPoint: function(t, e) {
  8276. var i = this,
  8277. g = [],
  8278. C = [],
  8279. I = this,
  8280. s = I.points.find(function(t) {
  8281. return t.ele === e;
  8282. });
  8283. return s
  8284. ? (I.lines.forEach(function(a) {
  8285. var l = a.ele;
  8286. a.border;
  8287. if (
  8288. ~l.points.indexOf(t.points[0]) &&
  8289. ~l.points.indexOf(t.points[1]) &&
  8290. !I.lines.some(function(t) {
  8291. var i = t.ele;
  8292. return ~i.points.indexOf(e) && ~i.points.indexOf(l.points[0]);
  8293. })
  8294. ) {
  8295. var u = A.default.attaArch.get(l);
  8296. i.cad.increase;
  8297. var c = {
  8298. ele: i.cad.increase(o.SEFTLINE, {
  8299. id: i.getNewLineId(),
  8300. p1: I.getPointId(l.points[0]),
  8301. p2: s.id,
  8302. border: l.border,
  8303. exterior: l.exterior,
  8304. isOut: l.isOut,
  8305. }).obj,
  8306. };
  8307. C.push(c), c.ele.update();
  8308. var h = [s.ele, l.points[1]];
  8309. (l.points = h),
  8310. l.listenPointDrag([s.ele, l.points[1]]),
  8311. g.push(
  8312. new Promise(function(t) {
  8313. l.nextTick(function() {
  8314. l.updateJoin(),
  8315. c.ele.updateJoin(),
  8316. u &&
  8317. n(u).forEach(function(t) {
  8318. r.pointLineDis(c.ele, t.linePoints[0]) < 0.1 && r.pointLineDis(c.ele, t.linePoints[1]) < 0.1 && t.setAttachment(c.ele);
  8319. }),
  8320. setTimeout(t, 200);
  8321. });
  8322. })
  8323. );
  8324. }
  8325. }),
  8326. { lines: C, promis: Promise.all(g), ret: !0 })
  8327. : { ret: !1 };
  8328. },
  8329. };
  8330. },
  8331. function(t, e, i) {
  8332. "use strict";
  8333. var n =
  8334. (this && this.__assign) ||
  8335. function() {
  8336. return (n =
  8337. Object.assign ||
  8338. function(t) {
  8339. for (var e, i = 1, n = arguments.length; i < n; i++)
  8340. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  8341. return t;
  8342. }).apply(this, arguments);
  8343. },
  8344. g =
  8345. (this && this.__spreadArrays) ||
  8346. function() {
  8347. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  8348. var n = Array(t),
  8349. g = 0;
  8350. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  8351. return n;
  8352. },
  8353. A =
  8354. (this && this.__importDefault) ||
  8355. function(t) {
  8356. return t && t.__esModule ? t : { default: t };
  8357. };
  8358. Object.defineProperty(e, "__esModule", { value: !0 });
  8359. var r = A(i(4)),
  8360. o = A(i(13)),
  8361. C = i(3),
  8362. I = i(0),
  8363. s = i(1),
  8364. a = i(9),
  8365. l = [s.TAGGING, s.LINE, s.SEFTLINE],
  8366. u = [s.POINT, s.DOOR, s.COLUMN, s.CASEMENT, s.ARCH, s.SLIDEDOOR, s.GROUNDCASE, s.BAYCASE, s.DOUBLEDOOR],
  8367. c = [s.FURNCOLUMN, s.FURNFLUE];
  8368. e.attachInsert = function(t) {
  8369. var e,
  8370. i = function(e, i) {
  8371. var n = t.processing,
  8372. g = n.lines
  8373. .map(function(t) {
  8374. return t.ele;
  8375. })
  8376. .filter(function(t) {
  8377. return !t.exterior;
  8378. })
  8379. .map(function(t) {
  8380. return { dis: I.pointLineDis(t, e), line: t };
  8381. })
  8382. .sort(function(t, e) {
  8383. return t.dis - e.dis;
  8384. })
  8385. .find(function(t) {
  8386. return I.pointLineDis(t.line, I.getLinePoint(t.line, { x: e.x })) < 0.1 || I.pointLineDis(t.line, I.getLinePoint(t.line, { y: e.y })) < 0.1;
  8387. });
  8388. if (!g) return { error: !0, msg: a.i18n.t("modules.model.error_location", { widget: s.ARCH[i] }), obj: null };
  8389. var A = g.line,
  8390. o =
  8391. (n.lines.find(function(t) {
  8392. return t.ele === A;
  8393. }),
  8394. r.default.attaArch.get(A),
  8395. I.getLinePoint(A, e));
  8396. if (i === s.POINT)
  8397. return I.pointLineDis(g.line, o) > 0.1 ? { error: !0, msg: a.i18n.t("modules.model.error_location", { widget: "" }), obj: null } : [A, o];
  8398. var l = (function(t, e, i) {
  8399. var n = I.getDisPointLinePoints(t, e, i / 2);
  8400. return [n[0], n[1]];
  8401. })(A, o, s.DEFAULT[i].width);
  8402. return C.type.isArray(l) ? [A, l, e] : { error: !0, msg: l };
  8403. },
  8404. A =
  8405. (((e = {})[s.POINT] = function(e, i) {
  8406. var g = t.processing;
  8407. g.insertModel = !0;
  8408. var A = g.addPoint(n({ id: g.getNewPointId() }, i));
  8409. g.data.vertex.push({ id: A.id, x: A.ele.x, y: A.ele.y });
  8410. var r = g.lineInsertPoint(e, A.ele),
  8411. o = r.lines,
  8412. C = r.promis;
  8413. if (r.ret)
  8414. return (
  8415. C.then(function() {
  8416. return (g.insertModel = !1);
  8417. }),
  8418. o.map(function(t) {
  8419. return t.ele;
  8420. })
  8421. );
  8422. }),
  8423. (e[s.DOOR] = function(e, i, n, g, A) {
  8424. var r = t.processing;
  8425. return r.addDoor({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e), start: !1, within: 0 }).ele;
  8426. }),
  8427. (e[s.DOUBLEDOOR] = function(e, i, n, g, A) {
  8428. var r = t.processing;
  8429. return r.adddDoubleDoor({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e), start: !1, within: 0 }).ele;
  8430. }),
  8431. (e[s.SLIDEDOOR] = function(e, i, n, g, A) {
  8432. var r = t.processing;
  8433. return r.addSlideDoor({ within: 0, pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e) }).ele;
  8434. }),
  8435. (e[s.GROUNDCASE] = function(e, i, n, g, A) {
  8436. var r = t.processing;
  8437. return r.addGroundCase({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e) }).ele;
  8438. }),
  8439. (e[s.BAYCASE] = function(e, i, n, g, A) {
  8440. var r = t.processing;
  8441. return r.addBayCase({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e), within: 0 }).ele;
  8442. }),
  8443. (e[s.CASEMENT] = function(e, i, n, g, A) {
  8444. var r = t.processing;
  8445. return r.addCase({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e) }).ele;
  8446. }),
  8447. (e[s.COLUMN] = function(e, i, n) {
  8448. var g = t.processing,
  8449. A = I.getDisVerticalLinePoints(e, i[0], s.DEFAULT[s.COLUMN].width),
  8450. r = (A[0], A[1]);
  8451. if (!r) return a.i18n.t("modules.model.error_widget", { widget: a.i18n.t("modules.model.column") });
  8452. var o = I.getDisVerticalLinePoints(e, i[1], s.DEFAULT[s.COLUMN].tick),
  8453. C = o[0],
  8454. l = o[1],
  8455. u = I.lineDis({ points: [C, r] }) > I.lineDis({ points: [l, r] }) ? l : C;
  8456. return g.addColumn({ pos: [i[0].x, i[0].y, i[1].x, i[1].y, r.x, r.y, u.x, u.y], line: g.getLineId(e) }).ele;
  8457. }),
  8458. (e[s.TAGGING] = function(e) {
  8459. return t.processing.addTagging({ pos: [e.x, e.y], title: "", content: "", showTitle: !0, showContent: !0 }).ele;
  8460. }),
  8461. (e[s.FURNCOLUMN] = function(e, i, n, g) {
  8462. return t.processing.addFurnColumn({ pos: e, angle: 0 }).ele;
  8463. }),
  8464. (e[s.FURNFLUE] = function(e, i, n, g) {
  8465. return t.processing.addFurnFlue({ pos: e, angle: 0 }).ele;
  8466. }),
  8467. (e[s.LINE] = function(e) {
  8468. t.processing;
  8469. var i = s.DEFAULT[s.LINE].width,
  8470. n = {
  8471. points: [
  8472. { x: e.x - i / 2, y: e.y },
  8473. { x: e.x + i / 2, y: e.y },
  8474. ],
  8475. },
  8476. g = t.processing.lines.some(function(t) {
  8477. var e = t.ele;
  8478. return I.segmentsIntr(e, n);
  8479. });
  8480. return g &&
  8481. ((n = {
  8482. points: [
  8483. { x: e.x - i / 2, y: e.y },
  8484. { x: e.x + i / 2, y: e.y },
  8485. ],
  8486. }),
  8487. (g = t.processing.lines.some(function(t) {
  8488. var e = t.ele;
  8489. return I.segmentsIntr(e, n);
  8490. })))
  8491. ? a.i18n.t("modules.model.error_widget", { widget: a.i18n.t("modules.model.line") })
  8492. : t.processing.furnColumns
  8493. .concat(t.processing.furnFlues)
  8494. .map(function(t) {
  8495. return t.ele;
  8496. })
  8497. .every(function(t) {
  8498. return !I.isFaceIntersect(n.points, t.points) && !I.isFaceContain(n.points, t.points) && !I.isFaceContain(t.points, n.points);
  8499. })
  8500. ? t.processing.addRoom(n)[0].ele
  8501. : a.i18n.t("modules.model.error_widget", { widget: a.i18n.t("modules.model.line") });
  8502. }),
  8503. (e[s.SEFTLINE] = function(e) {
  8504. return t.processing.addLine(e).ele;
  8505. }),
  8506. e);
  8507. t.increase = function(e, r, I, h, p) {
  8508. void 0 === I && (I = null), void 0 === h && (h = null), void 0 === p && (p = !1);
  8509. var d = t.processing.render;
  8510. if (A[e]) {
  8511. var f,
  8512. y = p ? d.screenToRealPoint(r) : r;
  8513. if (~u.indexOf(e) || ~c.indexOf(e)) {
  8514. var v = ~c.indexOf(e)
  8515. ? (function(e, i) {
  8516. var g = t.processing,
  8517. A = s.DEFAULT[i].width / 2,
  8518. r = s.DEFAULT[i].tick / 2,
  8519. C = [
  8520. { x: e.x - A, y: e.y + r },
  8521. { x: e.x + A, y: e.y + r },
  8522. { x: e.x + A, y: e.y - r },
  8523. { x: e.x - A, y: e.y - r },
  8524. ],
  8525. I = (n(n({}, o.default.prototype), { renderer: g.render, minWidth: 0.1 }), []);
  8526. return (
  8527. C.forEach(function(t) {
  8528. I.push(t.x), I.push(t.y);
  8529. }),
  8530. [I]
  8531. );
  8532. })(y, e)
  8533. : i(y, e);
  8534. if (!C.type.isArray(v)) return v;
  8535. var m = A[e].apply(A, g(v, [I, h]));
  8536. if ("string" == typeof m) return { error: !0, msg: m, obj: null };
  8537. f = m;
  8538. } else if (~l.indexOf(e) && "string" == typeof (f = A[e](y))) return { error: !0, msg: f, obj: null };
  8539. return t.preservation && t.preservation(), { error: !1, msg: a.i18n.t("modules.model.success", { widget: s.ARCH[e] }), obj: f };
  8540. }
  8541. };
  8542. var h = t.destroy;
  8543. t.destroy = function() {
  8544. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  8545. var n = t.processing;
  8546. n.render;
  8547. (n = null), h.apply(this, e);
  8548. };
  8549. };
  8550. },
  8551. function(t, e, i) {
  8552. "use strict";
  8553. var n =
  8554. (this && this.__spreadArrays) ||
  8555. function() {
  8556. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  8557. var n = Array(t),
  8558. g = 0;
  8559. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  8560. return n;
  8561. },
  8562. g =
  8563. (this && this.__importDefault) ||
  8564. function(t) {
  8565. return t && t.__esModule ? t : { default: t };
  8566. };
  8567. Object.defineProperty(e, "__esModule", { value: !0 });
  8568. var A = g(i(41)),
  8569. r = g(i(42));
  8570. e.attachGauge = function(t) {
  8571. var e = {
  8572. processings: [],
  8573. setGaugeAttrs: [],
  8574. showGauge: [],
  8575. setGaugeModel: [],
  8576. hideGauge: [],
  8577. showDire: [],
  8578. hideDire: [],
  8579. setDireAttrs: [],
  8580. setAngle: [],
  8581. },
  8582. i = t.delProcessing;
  8583. t.delProcessing = function(g) {
  8584. for (var A = [], r = 1; r < arguments.length; r++) A[r - 1] = arguments[r];
  8585. var o = e.processings.indexOf(g);
  8586. return (
  8587. console.error("-------", o),
  8588. ~o &&
  8589. Object.keys(e).forEach(function(t) {
  8590. e[t].splice(o, 1);
  8591. }),
  8592. i.call.apply(i, n([t, g], A))
  8593. );
  8594. };
  8595. var g = t.addProcessing;
  8596. (t.addProcessing = function() {
  8597. for (var i = [], C = 0; C < arguments.length; C++) i[C] = arguments[C];
  8598. var I,
  8599. s = g.call.apply(g, n([t], i));
  8600. e.processings.push(s);
  8601. var a = s.lines,
  8602. l = a.push,
  8603. u = s.points,
  8604. c = u.push,
  8605. h = function(t) {
  8606. (t.__label_intercept = t.intercept),
  8607. (t.intercept = function() {
  8608. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  8609. return I.update(), t.__label_intercept.apply(t, e);
  8610. });
  8611. },
  8612. p = function(t) {
  8613. (t.__label_intercept = t.drag),
  8614. (t.drag = function() {
  8615. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  8616. return I.update(), t.__label_intercept.apply(t, e);
  8617. });
  8618. };
  8619. e.setGaugeAttrs.push(function(t) {
  8620. (I.__state.direct = !0),
  8621. Object.keys(t).forEach(function(e) {
  8622. I[e] = t[e];
  8623. }),
  8624. (I.__state.direct = !1),
  8625. I.update();
  8626. });
  8627. var d = function() {
  8628. I || ((I = new A.default({ processing: s })), (t.gauge = I)),
  8629. (a.push = function() {
  8630. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  8631. var i = l.apply(a, t);
  8632. return (
  8633. I.update(),
  8634. t.forEach(function(t) {
  8635. var e = t.ele;
  8636. return p(e);
  8637. }),
  8638. i
  8639. );
  8640. }),
  8641. u.forEach(function(t) {
  8642. var e = t.ele;
  8643. return h(e);
  8644. }),
  8645. a.forEach(function(t) {
  8646. var e = t.ele;
  8647. return p(e);
  8648. }),
  8649. (u.push = function() {
  8650. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  8651. return (
  8652. t.forEach(function(t) {
  8653. var e = t.ele;
  8654. return h(e);
  8655. }),
  8656. c.apply(u, t)
  8657. );
  8658. }),
  8659. s.render.push(I);
  8660. };
  8661. e.showGauge.push(d),
  8662. o && d(),
  8663. e.setGaugeModel.push(function(t) {
  8664. return I
  8665. ? ((I.surround = 1 === t),
  8666. new Promise(function(t) {
  8667. return I.nextTick(t);
  8668. }))
  8669. : new Promise(function(t) {
  8670. return t(void 0);
  8671. });
  8672. }),
  8673. e.hideGauge.push(function() {
  8674. (a.push = l),
  8675. (u.push = c),
  8676. u.forEach(function(t) {
  8677. var e = t.ele;
  8678. return (e.intercept = e.__label_intercept);
  8679. }),
  8680. s.render.remove(I);
  8681. });
  8682. var f = new r.default({ angle: 0, renderer: s.render });
  8683. return (
  8684. (s.direction = f),
  8685. e.showDire.push(function() {
  8686. (f.show = !0), s.render.push(f);
  8687. }),
  8688. e.hideDire.push(function() {
  8689. (f.show = !1), s.render.remove(f);
  8690. }),
  8691. e.setDireAttrs.push(function(t) {
  8692. return (
  8693. Object.keys(t).forEach(function(e) {
  8694. f[e] = t[e];
  8695. }),
  8696. new Promise(function(t) {
  8697. return f.nextTick(t);
  8698. })
  8699. );
  8700. }),
  8701. s
  8702. );
  8703. }),
  8704. (t.setGaugeAttrs = function(t) {
  8705. return (
  8706. console.error(e.setGaugeAttrs),
  8707. Promise.all(
  8708. e.setGaugeAttrs.map(function(e) {
  8709. return e(t);
  8710. })
  8711. )
  8712. );
  8713. });
  8714. var o = !1;
  8715. (t.showGauge = function() {
  8716. o ||
  8717. ((o = !0),
  8718. e.showGauge.forEach(function(t) {
  8719. return t();
  8720. }));
  8721. }),
  8722. (t.setGaugeModel = function(t) {
  8723. return Promise.all(
  8724. e.setGaugeModel.map(function(e) {
  8725. return e(t);
  8726. })
  8727. );
  8728. }),
  8729. (t.hideGauge = function() {
  8730. o &&
  8731. ((o = !0),
  8732. e.hideGauge.forEach(function(t) {
  8733. return t();
  8734. }));
  8735. });
  8736. var C = t.destroy;
  8737. (t.destroy = function() {
  8738. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  8739. t.hideGauge(), (o = !1), C.apply(this, e);
  8740. }),
  8741. (t.showDire = function() {
  8742. e.showDire.forEach(function(t) {
  8743. return t();
  8744. });
  8745. }),
  8746. (t.hideDire = function() {
  8747. e.hideDire.forEach(function(t) {
  8748. return t();
  8749. });
  8750. }),
  8751. (t.setDireAttrs = function(t) {
  8752. return Promise.all(
  8753. e.setDireAttrs.map(function(e) {
  8754. return e(t);
  8755. })
  8756. );
  8757. }),
  8758. (t.setAngle = function(e) {
  8759. (t.processing.data.dire = e), (t.processing.direction.angle = e);
  8760. });
  8761. };
  8762. },
  8763. function(t, e, i) {
  8764. "use strict";
  8765. var n,
  8766. g =
  8767. (this && this.__extends) ||
  8768. ((n = function(t, e) {
  8769. return (n =
  8770. Object.setPrototypeOf ||
  8771. ({ __proto__: [] } instanceof Array &&
  8772. function(t, e) {
  8773. t.__proto__ = e;
  8774. }) ||
  8775. function(t, e) {
  8776. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  8777. })(t, e);
  8778. }),
  8779. function(t, e) {
  8780. function i() {
  8781. this.constructor = t;
  8782. }
  8783. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  8784. }),
  8785. A =
  8786. (this && this.__assign) ||
  8787. function() {
  8788. return (A =
  8789. Object.assign ||
  8790. function(t) {
  8791. for (var e, i = 1, n = arguments.length; i < n; i++)
  8792. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  8793. return t;
  8794. }).apply(this, arguments);
  8795. },
  8796. r =
  8797. (this && this.__rest) ||
  8798. function(t, e) {
  8799. var i = {};
  8800. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  8801. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  8802. var g = 0;
  8803. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  8804. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  8805. }
  8806. return i;
  8807. };
  8808. Object.defineProperty(e, "__esModule", { value: !0 });
  8809. var o = i(2),
  8810. C = i(1),
  8811. I = i(0),
  8812. s = 0,
  8813. a = function(t, e, i, n, g, A, r, o, a) {
  8814. var l = document.createElementNS(C.SVGURI, "g"),
  8815. u = { points: [t, e] },
  8816. c = "lineBoth" + s++,
  8817. h = I.getDisVerticalLinePoints(u, t, n),
  8818. p = h[0],
  8819. d = h[1],
  8820. f = I.getDisVerticalLinePoints(u, e, n),
  8821. y = f[0],
  8822. v = f[1],
  8823. m = document.createElementNS(C.SVGURI, "path");
  8824. l.appendChild(m),
  8825. m.setAttribute("stroke", a),
  8826. m.setAttribute("stroke-width", i.toString()),
  8827. "top" === o || "right" === o
  8828. ? m.setAttribute("d", "M " + p.x + " " + p.y + " L " + y.x + " " + y.y)
  8829. : m.setAttribute("d", "M " + d.x + " " + d.y + " L " + v.x + " " + v.y),
  8830. m.setAttribute("id", c);
  8831. var b = m.cloneNode(!0);
  8832. b.setAttribute("d", "M " + p.x + " " + p.y + " L " + d.x + " " + d.y),
  8833. l.appendChild(b),
  8834. (b = m.cloneNode(!0)).setAttribute("d", "M " + y.x + " " + y.y + " L " + v.x + " " + v.y),
  8835. l.appendChild(b);
  8836. var x = (A.toString().length / 2.5) * g,
  8837. _ = A / 2 - x,
  8838. w = document.createElementNS(C.SVGURI, "text");
  8839. w.setAttribute("x", _.toString()), w.setAttribute("y", "0"), w.setAttribute("style", "fill: " + a + "; font-size: " + g + "px");
  8840. var P = document.createElementNS(C.SVGURI, "textPath");
  8841. P.setAttributeNS(C.SVGPATH, "xlink:href", "#" + c), P.appendChild(document.createTextNode(A + "m")), w.appendChild(P);
  8842. var O = I.lineVector({ points: [t, e] }),
  8843. S = document.createElementNS(C.SVGURI, "path");
  8844. S.setAttribute("stroke", a),
  8845. S.setAttribute("stroke-width", i.toString()),
  8846. O.x > O.y
  8847. ? S.setAttribute("d", "M " + t.x + " " + t.y + " L " + (e.x - _ - 2 * x - r) + " " + e.y)
  8848. : S.setAttribute("d", "M " + t.x + " " + t.y + " L " + e.x + " " + (e.y - _ - 2 * x - r));
  8849. var E = S.cloneNode(!0);
  8850. return (
  8851. O.x > O.y
  8852. ? E.setAttribute("d", "M " + (e.x - _ + r) + " " + t.y + " L " + e.x + " " + e.y)
  8853. : E.setAttribute("d", "M " + t.x + " " + (e.y - _ + r) + " L " + e.x + " " + e.y),
  8854. l.appendChild(E),
  8855. l.appendChild(S),
  8856. (m.style.display = "none"),
  8857. l.appendChild(w),
  8858. l
  8859. );
  8860. },
  8861. l = (function(t) {
  8862. function e(e) {
  8863. var i = e.processing,
  8864. n = e.padding,
  8865. g = void 0 === n ? 10 : n,
  8866. o = e.spacing,
  8867. C = void 0 === o ? 4 : o,
  8868. I = e.minPX,
  8869. s = void 0 === I ? 50 : I,
  8870. a = e.width,
  8871. l = void 0 === a ? 1 : a,
  8872. u = e.showBottom,
  8873. c = void 0 === u || u,
  8874. h = e.showTop,
  8875. p = void 0 === h || h,
  8876. d = e.showLeft,
  8877. f = void 0 === d || d,
  8878. y = e.showRight,
  8879. v = void 0 === y || y,
  8880. m = e.surround,
  8881. b = void 0 !== m && m,
  8882. x = e.stroke,
  8883. _ = void 0 === x ? "#fff" : x,
  8884. w = r(e, ["processing", "padding", "spacing", "minPX", "width", "showBottom", "showTop", "showLeft", "showRight", "surround", "stroke"]),
  8885. P =
  8886. t.call(this, A({ renderer: i.render, minPX: s, width: l, showBottom: c, showTop: p, showLeft: f, showRight: v, surround: b, stroke: _ }, w)) ||
  8887. this;
  8888. return (
  8889. (P.padding = g),
  8890. (P.spacing = C),
  8891. (P.processing = i),
  8892. Object.defineProperty(P, "points", {
  8893. get: function() {
  8894. return this.processing.points;
  8895. },
  8896. }),
  8897. P.update(),
  8898. P
  8899. );
  8900. }
  8901. return (
  8902. g(e, t),
  8903. (e.prototype.grentNode = function() {
  8904. (this.top = document.createElementNS(C.SVGURI, "g")),
  8905. (this.left = document.createElementNS(C.SVGURI, "g")),
  8906. (this.right = document.createElementNS(C.SVGURI, "g")),
  8907. (this.bottom = document.createElementNS(C.SVGURI, "g"));
  8908. var t = document.createElementNS(C.SVGURI, "g");
  8909. return t.appendChild(this.top), t.appendChild(this.left), t.appendChild(this.right), t.appendChild(this.bottom), t;
  8910. }),
  8911. (e.prototype.calcSplit = function() {
  8912. var t = this.processing.render,
  8913. e = this.minPX,
  8914. i = I.lineDis({ points: [t.screenToRealPoint({ x: 0, y: 0 }), t.screenToRealPoint({ x: e, y: 0 })] }),
  8915. n = I.lineDis({ points: [t.screenToRealPoint({ x: 0, y: 0 }), t.screenToRealPoint({ x: 0, y: e })] }),
  8916. g = this.points.map(function(t) {
  8917. return t.ele;
  8918. }),
  8919. r = [],
  8920. o = [],
  8921. C = [],
  8922. s = [],
  8923. a = function(t, e, r) {
  8924. var o, C;
  8925. g.sort(e),
  8926. g.forEach(function(e) {
  8927. return 0 === t.length || e[r] > t[t.length - 1] ? t.push(e[r]) : e[r] < t[0] && t.unshift(e[r]);
  8928. });
  8929. for (var s = "x" === r ? i : n, a = { x: 0, y: 0 }, l = 0; l < t.length - 2; l++) {
  8930. var u = A(A({}, a), (((o = {})[r] = t[l]), o)),
  8931. c = A(A({}, a), (((C = {})[r] = t[l + 1]), C));
  8932. I.lineDis({ points: [u, c] }) < s && (t.splice(l + 1, 1), l--);
  8933. }
  8934. t.length > 2 && t.splice(t.length - 2, 2, t[t.length - 1]);
  8935. };
  8936. return (
  8937. a(
  8938. r,
  8939. function(t, e) {
  8940. return t.x - e.x ? t.x - e.x : e.y - t.y;
  8941. },
  8942. "y"
  8943. ),
  8944. a(
  8945. C,
  8946. function(t, e) {
  8947. return e.x - t.x ? e.x - t.x : e.y - t.y;
  8948. },
  8949. "y"
  8950. ),
  8951. a(
  8952. o,
  8953. function(t, e) {
  8954. return t.y - e.y ? t.y - e.y : e.x - t.x;
  8955. },
  8956. "x"
  8957. ),
  8958. a(
  8959. s,
  8960. function(t, e) {
  8961. return e.y - t.y ? e.y - t.y : e.x - t.x;
  8962. },
  8963. "x"
  8964. ),
  8965. { left: r, top: o, right: C, bottom: s }
  8966. );
  8967. }),
  8968. (e.prototype.update = function() {
  8969. var t = this;
  8970. if (0 !== this.points.length && 0 !== this.processing.render.props.width) {
  8971. var e = this.processing.render,
  8972. i = 10 * this.width * this.multiple,
  8973. n = this.calcSplit(),
  8974. g = n.left,
  8975. A = n.right,
  8976. r = n.top,
  8977. o = n.bottom,
  8978. C = e.screenToRealPoint({ x: this.padding, y: this.padding }),
  8979. I = e.screenToRealPoint({ x: e.props.width / e.props.multiple - this.padding, y: e.props.height / e.props.multiple - this.padding });
  8980. if (this.surround) {
  8981. var s = this.points.map(function(t) {
  8982. return t.ele.x;
  8983. }),
  8984. l = this.points.map(function(t) {
  8985. return t.ele.y;
  8986. }),
  8987. u = Math.max.apply(Math, s),
  8988. c = Math.min.apply(Math, s),
  8989. h = Math.max.apply(Math, l),
  8990. p = Math.min.apply(Math, l);
  8991. Math.abs(C.x - c) < Math.abs(C.y - p) && Math.abs(I.x - u) - Math.abs(I.y - h)
  8992. ? ((I = { x: I.x, y: h + Math.abs(C.x - c) }), (C = { x: C.x, y: p - Math.abs(C.x - c) }))
  8993. : ((I = { x: u + Math.abs(C.y - h), y: I.y }), (C = { x: c - Math.abs(C.y - p), y: I.y }));
  8994. }
  8995. var d = function(e, n, g, A) {
  8996. for (var r = 0; r < e.length - 1; r++) {
  8997. var o = 0 === r ? e[r] : e[r] + (t.spacing / 2) * t.multiple,
  8998. C = r + 1 === e.length ? e[r + 1] : e[r + 1] - (t.spacing / 2) * t.multiple;
  8999. g(
  9000. a(n(o), n(C), t.width * t.multiple, 4 * t.width * t.multiple, i, Number(Math.abs(e[r + 1] - e[r]).toFixed(2)), 10 * t.multiple, A, t.stroke)
  9001. );
  9002. }
  9003. };
  9004. [this.left, this.top, this.right, this.bottom].forEach(function(t) {
  9005. for (; t.childNodes.length; ) t.removeChild(t.childNodes[0]);
  9006. }),
  9007. this.showLeft &&
  9008. d(
  9009. g,
  9010. function(t) {
  9011. return { x: C.x, y: t };
  9012. },
  9013. function(e) {
  9014. return t.left.appendChild(e);
  9015. },
  9016. "left"
  9017. ),
  9018. this.showBottom &&
  9019. d(
  9020. o,
  9021. function(t) {
  9022. return { x: t, y: I.y };
  9023. },
  9024. function(e) {
  9025. return t.bottom.appendChild(e);
  9026. },
  9027. "bottom"
  9028. ),
  9029. this.showTop &&
  9030. d(
  9031. r,
  9032. function(t) {
  9033. return { x: t, y: C.y };
  9034. },
  9035. function(e) {
  9036. e.querySelector("text").setAttribute("transform", "translate(0, " + i / 1.2 + ")"), t.top.appendChild(e);
  9037. },
  9038. "top"
  9039. ),
  9040. this.showRight &&
  9041. d(
  9042. A,
  9043. function(t) {
  9044. return { x: I.x, y: t };
  9045. },
  9046. function(e) {
  9047. e.querySelector("text").setAttribute("transform", "translate(-" + i / 1.2 + ", 0)"), t.right.appendChild(e);
  9048. },
  9049. "right"
  9050. );
  9051. }
  9052. }),
  9053. e
  9054. );
  9055. })(o.CADElement);
  9056. e.default = l;
  9057. },
  9058. function(t, e, i) {
  9059. "use strict";
  9060. var n,
  9061. g =
  9062. (this && this.__extends) ||
  9063. ((n = function(t, e) {
  9064. return (n =
  9065. Object.setPrototypeOf ||
  9066. ({ __proto__: [] } instanceof Array &&
  9067. function(t, e) {
  9068. t.__proto__ = e;
  9069. }) ||
  9070. function(t, e) {
  9071. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  9072. })(t, e);
  9073. }),
  9074. function(t, e) {
  9075. function i() {
  9076. this.constructor = t;
  9077. }
  9078. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  9079. }),
  9080. A =
  9081. (this && this.__assign) ||
  9082. function() {
  9083. return (A =
  9084. Object.assign ||
  9085. function(t) {
  9086. for (var e, i = 1, n = arguments.length; i < n; i++)
  9087. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  9088. return t;
  9089. }).apply(this, arguments);
  9090. },
  9091. r =
  9092. (this && this.__rest) ||
  9093. function(t, e) {
  9094. var i = {};
  9095. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  9096. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  9097. var g = 0;
  9098. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  9099. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  9100. }
  9101. return i;
  9102. },
  9103. o =
  9104. (this && this.__importDefault) ||
  9105. function(t) {
  9106. return t && t.__esModule ? t : { default: t };
  9107. };
  9108. Object.defineProperty(e, "__esModule", { value: !0 });
  9109. var C = i(2),
  9110. I = i(1),
  9111. s = i(0),
  9112. a = o(i(43)),
  9113. l = o(i(44)),
  9114. u = o(i(45)),
  9115. c = { defaultIcon: l.default, darkIcon: u.default },
  9116. h = (function(t) {
  9117. function e(e) {
  9118. var i = e.fontSize,
  9119. n = void 0 === i ? 8 : i,
  9120. g = e.r,
  9121. o = void 0 === g ? 50 : g,
  9122. C = e.icon,
  9123. I = void 0 === C ? "defaultIcon" : C,
  9124. s = e.border,
  9125. a = void 0 === s ? 3 : s,
  9126. l = e.right,
  9127. u = void 0 === l ? 20 : l,
  9128. c = e.top,
  9129. h = void 0 === c ? 20 : c,
  9130. p = e.ArgDire,
  9131. d = void 0 === p ? 15 : p,
  9132. f = e.simple,
  9133. y = void 0 !== f && f,
  9134. v = e.angle,
  9135. m = void 0 === v ? 0 : v,
  9136. b = r(e, ["fontSize", "r", "icon", "border", "right", "top", "ArgDire", "simple", "angle"]);
  9137. return t.call(this, A({ fontSize: n, r: o, border: a, right: u, top: h, ArgDire: d, simple: y, icon: I, angle: m }, b)) || this;
  9138. }
  9139. return (
  9140. g(e, t),
  9141. (e.prototype.grentNode = function() {
  9142. var t = document.createElementNS(I.SVGURI, "g");
  9143. (this.dire = document.createElementNS(I.SVGURI, "image")),
  9144. (this.bg = document.createElementNS(I.SVGURI, "image")),
  9145. (this.bg.href.baseVal = a.default),
  9146. (this.inner = document.createElementNS(I.SVGURI, "circle")),
  9147. this.inner.setAttribute("fill", "rgba(41,41,41,1)");
  9148. var e = document.createElementNS(I.SVGURI, "text");
  9149. return (
  9150. e.setAttribute("fill", "#fff"),
  9151. e.setAttribute("text-anchor", "middle"),
  9152. (this.topText = e.cloneNode(!0)),
  9153. (this.rightText = e.cloneNode(!0)),
  9154. (this.leftText = e.cloneNode(!0)),
  9155. (this.bottomText = e.cloneNode(!0)),
  9156. (this.topText.textContent = "N"),
  9157. this.topText.setAttribute("fill", "#00A0E9"),
  9158. (this.rightText.textContent = "E"),
  9159. (this.leftText.textContent = "W"),
  9160. (this.bottomText.textContent = "S"),
  9161. this.bottomText.setAttribute("fill", "#D84141"),
  9162. (this.arc = document.createElementNS(I.SVGURI, "path")),
  9163. this.arc.setAttribute("fill", "rgba(255,255,255,0.3)"),
  9164. t.appendChild(this.inner),
  9165. t.appendChild(this.arc),
  9166. t.appendChild(this.bg),
  9167. t.appendChild(this.dire),
  9168. t.appendChild(this.topText),
  9169. t.appendChild(this.rightText),
  9170. t.appendChild(this.bottomText),
  9171. t.appendChild(this.leftText),
  9172. t
  9173. );
  9174. }),
  9175. (e.prototype.intercept = function() {
  9176. return !0;
  9177. }),
  9178. (e.prototype.update = function() {
  9179. var t = this.r / 2 + this.border + this.right,
  9180. e = this.r / 2 + this.border + this.top,
  9181. i = this.renderer,
  9182. n = this.fontSize * this.multiple,
  9183. g = this.border * this.multiple,
  9184. A = i.screenToRealPoint({ x: i.props.width / i.props.multiple - e, y: t });
  9185. if (!isNaN(A.x) && !isNaN(A.y)) {
  9186. var r = this.r * this.multiple,
  9187. o = (n + 3 * g + r) / 2;
  9188. this.inner.setAttribute("r", o.toString()),
  9189. this.inner.setAttribute("cx", A.x.toString()),
  9190. this.inner.setAttribute("cy", A.y.toString()),
  9191. this.icon !== this.firstIcon && ((this.dire.href.baseVal = c[this.icon]), (this.firstIcon = this.icon)),
  9192. this.dire.setAttribute("x", (A.x - r / 2).toString()),
  9193. this.dire.setAttribute("y", (A.y - r / 2).toString()),
  9194. this.dire.setAttribute("width", r.toString()),
  9195. this.dire.setAttribute("height", r.toString()),
  9196. this.bg.setAttribute("x", (A.x - r / 2).toString()),
  9197. this.bg.setAttribute("y", (A.y - r / 2).toString()),
  9198. this.bg.setAttribute("width", r.toString()),
  9199. this.bg.setAttribute("height", r.toString()),
  9200. this.topText.setAttribute("x", A.x.toString()),
  9201. this.topText.setAttribute("y", (A.y - r / 2 - n / 2 + g).toString()),
  9202. this.topText.setAttribute("font-size", n.toString()),
  9203. this.rightText.setAttribute("x", (A.x + r / 2 + g).toString()),
  9204. this.rightText.setAttribute("y", (A.y + n / 2).toString()),
  9205. this.rightText.setAttribute("font-size", n.toString()),
  9206. this.bottomText.setAttribute("x", A.x.toString()),
  9207. this.bottomText.setAttribute("y", (A.y + r / 2 + n).toString()),
  9208. this.bottomText.setAttribute("font-size", n.toString()),
  9209. this.leftText.setAttribute("x", (A.x - r / 2 - n + g).toString()),
  9210. this.leftText.setAttribute("y", (A.y + g).toString()),
  9211. this.leftText.setAttribute("font-size", n.toString());
  9212. var C = this.ArgDire * this.multiple,
  9213. I = { points: [A, { x: A.x - C, y: A.y - r / 2 - n - g }] },
  9214. a = { points: [A, { x: A.x + C, y: A.y - r / 2 - n - g }] },
  9215. l = s.getDisPointLinePoints(I, I.points[0], o),
  9216. u = l[0],
  9217. h = l[1],
  9218. p = s.getDisPointLinePoints(a, a.points[0], o),
  9219. d = p[0],
  9220. f = p[1],
  9221. y = s.lineDis({ points: [I.points[1], u] }) > s.lineDis({ points: [I.points[1], h] }) ? h : u,
  9222. v = s.lineDis({ points: [a.points[1], d] }) > s.lineDis({ points: [a.points[1], f] }) ? f : d;
  9223. this.arc.setAttribute("d", "M " + A.x + " " + A.y + " L " + y.x + " " + y.y + " A " + o + " " + o + " 0 0 1 " + v.x + " " + v.y + " Z"),
  9224. this.real.setAttribute("transform", "rotate(" + (this.angle || 0) + " " + A.x + " " + A.y + ")"),
  9225. this.simple
  9226. ? ((this.leftText.style.display = "none"),
  9227. (this.rightText.style.display = "none"),
  9228. (this.bg.style.display = "none"),
  9229. (this.inner.style.display = "none"),
  9230. (this.arc.style.display = "none"))
  9231. : ((this.leftText.style.display = "inherit"),
  9232. (this.rightText.style.display = "inherit"),
  9233. (this.bg.style.display = "inherit"),
  9234. (this.inner.style.display = "inherit"),
  9235. (this.arc.style.display = "inherit"));
  9236. }
  9237. }),
  9238. e
  9239. );
  9240. })(C.CADElement);
  9241. e.default = h;
  9242. },
  9243. function(t, e, i) {
  9244. "use strict";
  9245. Object.defineProperty(e, "__esModule", { value: !0 }),
  9246. (e.default =
  9247. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA57mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNyAoV2luZG93cyk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTktMDQtMDJUMTg6MDg6MDQrMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE5LTA0LTAyVDE4OjA4OjA0KzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOS0wNC0wMlQxODowODowNCswODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6ZmNiZDY2ZjMtNWIwZC01MjQ2LWI2YWItZjYyNGJjMzIyYTcyPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD5hZG9iZTpkb2NpZDpwaG90b3Nob3A6MzEzMmMzMmMtNTUyZi0xMWU5LWEwMGUtZTdmMzVhMTA0MmVkPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6NzJjOGU4ZjctNWJlZC1mZDQyLTlhYTQtNGYxZDQ0MDE5OTRjPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y3JlYXRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOjcyYzhlOGY3LTViZWQtZmQ0Mi05YWE0LTRmMWQ0NDAxOTk0Yzwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOS0wNC0wMlQxODowODowNCswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpmY2JkNjZmMy01YjBkLTUyNDYtYjZhYi1mNjI0YmMzMjJhNzI8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTktMDQtMDJUMTg6MDg6MDQrMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+GZD5AAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAGxklEQVR42uxdTWhVRxT+ThKTkrh4gQQRJCgGN49kUxqCuCq4cWFAhUZCRHFRoUR0ZcSdXRjcKGbVjUhLwJJWSRYuFApCSImlKEYXSpQoKJQKzaaiVfm6yFGCmZn3cnPffffnfBACd+beOed8b+acO/fMDJADkDxG8lgedGlCPvBFTvRAAwxGiMEIMUIMRogRknBoO0uyMcJ9jSRnjZDahOjdEe7rzlJ435CiHtBN8lagyjyAngiP7tF7fe3eItlthKzGEwDbSW5NihBta7u2bYSshIgQwASAIU+V+wB6Izy6V+91YQjAhLZdTJCcJtniKdtB8pGnrJPkgqfsBMkTnrIFkp2eskckd3jKWkhOF6GHvAJw0tNLHgNYItnnKPsbQCvJtjWQ3wagVe/9vKwPwJK26cJJlTX3hJwGMEJys6f8RwDDnrKHAMpraKus97gwrG25iNwMYERlzTchIvIXgEsAznmq/AxgP8kNMTh2p0PXZx/Qtlw4B+CSypp9QkiWSA4GqlwAsNMzNL0C8AeAPR7H7iLkg/65CHE59D0A7mhbrqFsp8ro02+QZClLjruV5AOSBwN1BvTtWxxl+0lOOq53kRx2XG8m2ey4Pkyyy3F9kuR+x3VRmQYCch9U3VqzFk1tI/mMZH+gzk2SQ54I56WLrBjkEn12i6NsiOTNwL39qtO2rIa4u0g+d/1KtbxMctEVOdVySHA9m2SbylL23NOluuzK+nvHIZL3SG70lI+TPJsCOc+SHPeUbVQdDmXB4KVK4ynJMZJTrtlaku0kj6ZAj6Mk2x3XG1X2sSr8ZikNhAyqk9sWqNNA8jrJ8xns4edV9oYK/vJBhcgyUaEPqrPbFXprJnmX5JEMkXFEZW6r4CefhSLKegnfr07vUKDOFpIzGSJkhuSWCv7xeSiSrLcCXer8xkJdPOvQIXhMde1Ku7Ab1QleX8tEYIbIaFPdpnyRYxqFblRneDfU5TNIxhbV6XyU7/u1Emqa5GWSm6p0ijM5ImSmmqCE5Ca10XQSQrWQHCX5guQp1xxSUaFzaqfUNqO+D3G1anwzySskH4cm4wpExoDa4krgW08igvTpDOlN3zxQzokoq+6zrs8J9RJKdKZ0Ueem2gtARLvquqi6xzIzHcu7gohQRCaw/Mn0HwD7CtA59qmuZRFJNnNFk9gEhvWMIN1xPvAWyackv/elzRicdtuhNntaISsz0sO3kjyjuUxzJL8j2WFmX2WnDrXNnNrqTCAbM9bIalw/hU7pN/CWApPQojaYUpuM1yXiIrlB4+9JFaRUQDJKqvuk2mJDahxXkZ22DdYGQxKQCl1xFsurj+b17z6AeVfyssFpv04sZ0/26v8eAO9FZGdUQhqxvCSs57MHt2I5ifkjSb+JyPOCG78LwNcrbFQG8HrlD1n/FkTkQyRCAo23aYMfifpTRH4qOCHDAL5cYfiHIvKvjRMGg8FgSCzs1Y2/1rPf1AcAP4jIfwV36s0AvgWwnmyUN7bXicFgMBgMeYmyIkYUNnWy2iaxTJ00VWikmsnFewBu228btzXk7QUwCKBMMt7JRZK/ayM2/R6t16x5+t1gMCTVPS3JIQY0rFOQT2lAAF4UNQ1Ida9fGpAjUe6AJcrxQKKJcpZKWrWdap9KasnWke1Wm2RrW46wfqdfl72BdQ332TRsJpOArkdV11jX4jfE+AsY0umUdgDXCvDDv6a6PoxzSVtcEZct+qz3ok9bFr3KHvVZFm0bBwRtk/zGAba1Rsq21qhScNt8JkVC2/ZMKRLWNjBLkZC2xV+KBLdNMNOyCaZtE5uybWJtI+VP9Voz8YHOthpPFxm2GX+KyLDjKlJEhh3okjJCgkceqQEf+6ar1YkOOK4fJnnRcX2E5Ijj+kWShz0/hilP230qW3OFyLImQ2pN3qZFZElErgaqnAQwKyJ3HMp2APgKwA3Hfb1wn9rZCPdSsnm4D6O8AaDPlaShMs3Cc7Sf1rkqIkuZIaRC79kE4Dj8R9J9A+BXEXnnKAuea+shpMdh0HcAftG2XDgN4Hg1M9p5mAe6THI0UD4XGMpeeiIy50mfGjm9DAxNcwE5RkleTto+9ZgA7IDnSDpNMSp5hrJOAK/XsuZC6752Hb2qbZQCaU0XVNZ8EyIie0XkrafYe/pmhOEqOGwpvKeKishbEdlbhB7ifT+Ant7sqRI69TmE0CnTEwCG0pRzlqZvFtsBPBGRxaR6iLb1RNs2Qj4zzoKI7A5UqcWQBRHZLSILRsja8R5AFMMt6L2ZQFNWBI26Lk8XWGZmTZ/tdWKEGIwQI8RghOQETTnR401eCPl/AKBc4r28/8mlAAAAAElFTkSuQmCC");
  9248. },
  9249. function(t, e, i) {
  9250. "use strict";
  9251. Object.defineProperty(e, "__esModule", { value: !0 }),
  9252. (e.default =
  9253. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA57mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNyAoV2luZG93cyk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTktMDQtMDJUMTg6MDg6MTErMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE5LTA0LTAyVDE4OjA4OjExKzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOS0wNC0wMlQxODowODoxMSswODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6YjliYTljZjQtZGJkMy0zNzQ2LWFiYzItMTY3OWU5MDE0ZTIxPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD5hZG9iZTpkb2NpZDpwaG90b3Nob3A6MzY3NTdiNWMtNTUyZi0xMWU5LWEwMGUtZTdmMzVhMTA0MmVkPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6ZTA5YzJmMmYtOGM5Zi1mZTQwLTgyMTEtMGNjZmY2ZDFmNzZkPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y3JlYXRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOmUwOWMyZjJmLThjOWYtZmU0MC04MjExLTBjY2ZmNmQxZjc2ZDwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOS0wNC0wMlQxODowODoxMSswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpiOWJhOWNmNC1kYmQzLTM3NDYtYWJjMi0xNjc5ZTkwMTRlMjE8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTktMDQtMDJUMTg6MDg6MTErMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+hSv1CAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAADBUlEQVR42uycO2/UQBRGz10tCggkBAqyiKCCCkRPBw00IChAYgON/wb/xg1hFwpooEsFRSToEFSk42UeQilQhII8FDFSErxmH17bd/mOFMnZ9YwyOfY39ng8FkJAtIeO/gUSIiREQoSESIiQEAkREiIhQkKEhEiIkBAJERIiIUJCJERIiJAQCRES4p2uhz/SzMp3SNLzAMTRWtluHuagdefkwLoFGLDmvSHm4agpPUOStAO8y387QRxlns+QeehDLgDH85+L6tTbEVdF24qs2iMrSfcBKXAk/+Q7EBFHW4qsZri0Qwb59mVFVnMsF3zWU2Q1EVlJegD4DBza880P4BhxtKnIqpcrBTIADgJXFVntiCv3seUzspL0MPAJ2D+kyM/8amtDkVUP10pkACwA1xVZ9XFnhH1uK7LqiKwkXQQ+8u+B0V/AEnH0RZE1W24y2ih1F7ihyGr26sp9bPmKrCRdYnuo3UYsGoCTxNF7Rdbszg4bx6W3exJvQiYZXnclxE9kJekp4O2EVZwmjtYVWc115m47d09Ceg2VlZC/SNJzwNkpajiT1yEhLYgrV7HlYl7W0YXOcjZlh9wx6wF3JaQCvvUWswqqyTy01UtkDSqo44GEVMf9CupYkZDqbgxfAa+nqOJNXoeEVEi/obL1Hnxehk5CCFMNnZiZhk4qlrIOvJig6Mu8rO7UW3K11ffUQFcPqEIIEz2gMjM9oJqRmA/AszGKPP8jQ5HVjnuSFW+NczcNKIQw1jQgM9M0oBnL+QqsjrDr6k4ZiqzZcm8e48plZOXRM9JkazPTZOuaBG0AT0t2ebJXhiKr2autvtdGuX2lLYRQ+kqbmemVtpolbQKPC756VCRDkdVcbPU9N8j1wgEhhMKFA8xMCwc0JGqL3c/KHw6Tociqj8GQbUVW3ZGVx9Cu5ZnMzPXyTO4XMDOzLIQw2N60zHt75mVFucGctMNHZP1PaFVSCRESIiFCQiRESIiECAmRECEhQkIkREiIhAgJkRAhIRIiJERIiIQICXHP7wEAHiDp1oKzlp8AAAAASUVORK5CYII=");
  9254. },
  9255. function(t, e, i) {
  9256. "use strict";
  9257. Object.defineProperty(e, "__esModule", { value: !0 }),
  9258. (e.default =
  9259. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAwFJREFUeNrsnc1r1EAYhzNLpYqCKMpiqyc9KeLVm170ouhBwa1e/B88+d/k4rr1Az+wHpSCooeC3kRP9mbUsYIIioqy6zvuCEXTdD8mmbzL88AkaTIzbPpsfpNNk63p9XoJ1IcGvwKEAEIQAghBCCAEIYAQhABCACEIAYQgBBCCEEAIQgAhgBCEAEK0M6XhRRpjiiuk9vCf+cXmUlE1DfegTU3IG+uc8yZlSfuOGA3vmsIjJLUudt/4n3bLUdLVfIRMwhhyRMouX44yqNcjrvKWiazKIyu1G2RqpWzzaz5JaUps/SSy4nBslYzELx8nsuIxl7OuRWTFiKzUbpLpBylb/tnyVcpOia1vRFa1nMiR4dgs5SSRVY+4Uh9bOiMrtVtl+l7KxjWa/PBnW5+JrGo4VSDDMS3lNJFVHRcGqHOeyKoislK7Q6bvkvUvjP6SMiOxtUJklcvZZLCr1K7OGSIr7tmV+tjSFVmpnUn6l9rNgE3dzu2R2MqIrPKODjOMS22fSbQJGeXyuioheiIrtXtl8fWIXeyT2FomsuIN5moHd01CWpHaIuQ/UntQpgfG6GG/7wMhNYgrVbGl4r6s7dONue6YA3LDGBdblxES4kVeOtQN0E03aWVEViDmA/RxjTEkHFcD9NFGSCBslr2Q2csxunjl+0BIQDqR2iKkhNhqIyR8bC3L7NkITZ/7tgipydlWR9MOahPiYmuYT4g9hJQbW29l9mSIJk+lTYaQ+gzubW07p1HIjaR/i896uDo3EVJ+bH2U2eIAVRel7gpCquHKJMaVZiF3pXwv2O5utr6DkOpiy93Vfr+gyoKvg5CanG11tO6UZiELUr7krHePtN1DSPWx5Z4hvJ2z6ZbfhpCaxFZH8w5pF/Iw6X9ZwF/c8gOExIst940Nq/9Wft2vQ0hE5tdYVskkfF/W46T/iJvjEULix1a3OTvrjgzjlhFSv9hSjeF/4TKoA0IQAghBCCAEIYAQhABCACEIAYQgBBCCEEAIQgAhgBCEAEIQAkH5LcAAKoHVGsvfGGUAAAAASUVORK5CYII=");
  9260. },
  9261. function(t, e, i) {
  9262. "use strict";
  9263. var n =
  9264. (this && this.__spreadArrays) ||
  9265. function() {
  9266. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  9267. var n = Array(t),
  9268. g = 0;
  9269. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  9270. return n;
  9271. },
  9272. g =
  9273. (this && this.__importDefault) ||
  9274. function(t) {
  9275. return t && t.__esModule ? t : { default: t };
  9276. };
  9277. Object.defineProperty(e, "__esModule", { value: !0 });
  9278. var A = g(i(47)),
  9279. r = i(3);
  9280. e.attachSign = function(t) {
  9281. var e = { border: 2, r: 5 },
  9282. i = t.addProcessing;
  9283. (t.addProcessing = function() {
  9284. for (var g = [], r = 0; r < arguments.length; r++) g[r] = arguments[r];
  9285. var o = i.call.apply(i, n([t], g));
  9286. A.default.Setting.set(o.render, e);
  9287. var C = new A.default({ pos: { x: 0, y: 0 }, dire: 0, renderer: o.render });
  9288. return (C.zIndex = 1), o.render.push(C), (o.sign = C), o;
  9289. }),
  9290. (t.setSign = function(e, i) {
  9291. var n = t.processing.sign;
  9292. r.type.isNumber(i) && (n.dire = i), (n.pos = e);
  9293. }),
  9294. (t.hideSign = function() {
  9295. var e = t.processing.sign;
  9296. return (
  9297. (e.show = !1),
  9298. new Promise(function(t) {
  9299. return e.nextTick(t);
  9300. })
  9301. );
  9302. }),
  9303. (t.showSign = function() {
  9304. var e = t.processing.sign;
  9305. return (
  9306. (e.show = !0),
  9307. new Promise(function(t) {
  9308. return e.nextTick(t);
  9309. })
  9310. );
  9311. }),
  9312. (t.setDefaultSignStyle = function(i) {
  9313. var n = t.processing.sign;
  9314. i.border && ((e.border = i.border), (n.border = i.border)), i.r && ((e.r = i.r), (n.r = i.r)), i.color && (n.color = i.color);
  9315. });
  9316. };
  9317. },
  9318. function(t, e, i) {
  9319. "use strict";
  9320. var n,
  9321. g =
  9322. (this && this.__extends) ||
  9323. ((n = function(t, e) {
  9324. return (n =
  9325. Object.setPrototypeOf ||
  9326. ({ __proto__: [] } instanceof Array &&
  9327. function(t, e) {
  9328. t.__proto__ = e;
  9329. }) ||
  9330. function(t, e) {
  9331. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  9332. })(t, e);
  9333. }),
  9334. function(t, e) {
  9335. function i() {
  9336. this.constructor = t;
  9337. }
  9338. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  9339. }),
  9340. A =
  9341. (this && this.__assign) ||
  9342. function() {
  9343. return (A =
  9344. Object.assign ||
  9345. function(t) {
  9346. for (var e, i = 1, n = arguments.length; i < n; i++)
  9347. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  9348. return t;
  9349. }).apply(this, arguments);
  9350. },
  9351. r =
  9352. (this && this.__rest) ||
  9353. function(t, e) {
  9354. var i = {};
  9355. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  9356. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  9357. var g = 0;
  9358. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  9359. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  9360. }
  9361. return i;
  9362. };
  9363. Object.defineProperty(e, "__esModule", { value: !0 });
  9364. var o = i(2),
  9365. C = i(1),
  9366. I = 0,
  9367. s = (function(t) {
  9368. function e(i) {
  9369. var n = i.border,
  9370. g = i.r,
  9371. o = i.show,
  9372. C = void 0 === o || o,
  9373. s = i.color,
  9374. a = void 0 === s ? "rgb(0, 200, 175)" : s,
  9375. l = r(i, ["border", "r", "show", "color"]);
  9376. return (
  9377. (n = n || e.Setting.get(l.renderer).border),
  9378. (g = g || e.Setting.get(l.renderer).r),
  9379. I++,
  9380. t.call(this, A({ border: n, r: g, show: C, color: a }, l)) || this
  9381. );
  9382. }
  9383. return (
  9384. g(e, t),
  9385. (e.prototype.grentNode = function() {
  9386. var t = document.createElementNS(C.SVGURI, "g");
  9387. (this.inner = document.createElementNS(C.SVGURI, "circle")),
  9388. this.inner.setAttribute("stroke", "#fff"),
  9389. (this.arc = document.createElementNS(C.SVGURI, "path")),
  9390. this.arc.setAttribute("fill", "url(#orange_red" + I + ")");
  9391. var e = document.createElementNS(C.SVGURI, "defs"),
  9392. i = document.createElementNS(C.SVGURI, "linearGradient");
  9393. i.setAttribute("id", "orange_red" + I),
  9394. i.setAttribute("x1", "0%"),
  9395. i.setAttribute("y1", "0%"),
  9396. i.setAttribute("x2", "100%"),
  9397. i.setAttribute("y2", "100%");
  9398. var n = document.createElementNS(C.SVGURI, "stop");
  9399. n.setAttribute("offset", "0%");
  9400. var g = document.createElementNS(C.SVGURI, "stop");
  9401. return (
  9402. g.setAttribute("offset", "100%"),
  9403. i.appendChild(n),
  9404. i.appendChild(g),
  9405. e.appendChild(i),
  9406. t.appendChild(this.arc),
  9407. t.appendChild(this.inner),
  9408. t.appendChild(e),
  9409. t.setAttribute("class", "sign"),
  9410. (this.$stop1 = n),
  9411. (this.$stop2 = g),
  9412. t
  9413. );
  9414. }),
  9415. (e.prototype.update = function() {
  9416. this.inner.setAttribute("fill", this.color),
  9417. this.$stop1.setAttribute("style", "stop-color:" + this.color + "; stop-opacity:1"),
  9418. this.$stop2.setAttribute("style", "stop-color:" + this.color + "; stop-opacity:0.4"),
  9419. this.inner.setAttribute("r", (this.r * this.multiple).toString()),
  9420. this.inner.setAttribute("stroke-width", (this.border * this.multiple).toString()),
  9421. this.inner.setAttribute("cx", this.pos.x.toString()),
  9422. this.inner.setAttribute("cy", this.pos.y.toString());
  9423. var xishu = window.number == 'xinjiang05' ? 0.4:1;
  9424. var t = 0.4 * xishu* this.r * this.multiple,
  9425. e = 1.6 * xishu * this.r * this.multiple,
  9426. i = 2.8 * xishu * this.r * this.multiple;
  9427. this.arc.setAttribute(
  9428. "d",
  9429. "\n M " +
  9430. this.pos.x +
  9431. " " +
  9432. (this.pos.y - t) +
  9433. " \n L " +
  9434. (this.pos.x + i) +
  9435. " " +
  9436. (this.pos.y - e) +
  9437. " \n L " +
  9438. (this.pos.x + i) +
  9439. " " +
  9440. (this.pos.y + e) +
  9441. " \n L " +
  9442. this.pos.x +
  9443. " " +
  9444. (this.pos.y + t) +
  9445. " Z\n "
  9446. ),
  9447. this.real.setAttribute("transform", "rotate(" + this.dire + " " + this.pos.x + " " + this.pos.y + ")"),
  9448. (this.real.style.display = this.show ? "inherit" : "none");
  9449. }),
  9450. (e.Setting = new Map()),
  9451. e
  9452. );
  9453. })(o.CADElement);
  9454. e.default = s;
  9455. },
  9456. function(t, e, i) {
  9457. "use strict";
  9458. var n =
  9459. (this && this.__assign) ||
  9460. function() {
  9461. return (n =
  9462. Object.assign ||
  9463. function(t) {
  9464. for (var e, i = 1, n = arguments.length; i < n; i++)
  9465. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  9466. return t;
  9467. }).apply(this, arguments);
  9468. },
  9469. g =
  9470. (this && this.__awaiter) ||
  9471. function(t, e, i, n) {
  9472. return new (i || (i = Promise))(function(g, A) {
  9473. function r(t) {
  9474. try {
  9475. C(n.next(t));
  9476. } catch (t) {
  9477. A(t);
  9478. }
  9479. }
  9480. function o(t) {
  9481. try {
  9482. C(n.throw(t));
  9483. } catch (t) {
  9484. A(t);
  9485. }
  9486. }
  9487. function C(t) {
  9488. var e;
  9489. t.done
  9490. ? g(t.value)
  9491. : ((e = t.value),
  9492. e instanceof i
  9493. ? e
  9494. : new i(function(t) {
  9495. t(e);
  9496. })).then(r, o);
  9497. }
  9498. C((n = n.apply(t, e || [])).next());
  9499. });
  9500. },
  9501. A =
  9502. (this && this.__generator) ||
  9503. function(t, e) {
  9504. var i,
  9505. n,
  9506. g,
  9507. A,
  9508. r = {
  9509. label: 0,
  9510. sent: function() {
  9511. if (1 & g[0]) throw g[1];
  9512. return g[1];
  9513. },
  9514. trys: [],
  9515. ops: [],
  9516. };
  9517. return (
  9518. (A = { next: o(0), throw: o(1), return: o(2) }),
  9519. "function" == typeof Symbol &&
  9520. (A[Symbol.iterator] = function() {
  9521. return this;
  9522. }),
  9523. A
  9524. );
  9525. function o(A) {
  9526. return function(o) {
  9527. return (function(A) {
  9528. if (i) throw new TypeError("Generator is already executing.");
  9529. for (; r; )
  9530. try {
  9531. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  9532. return g;
  9533. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  9534. case 0:
  9535. case 1:
  9536. g = A;
  9537. break;
  9538. case 4:
  9539. return r.label++, { value: A[1], done: !1 };
  9540. case 5:
  9541. r.label++, (n = A[1]), (A = [0]);
  9542. continue;
  9543. case 7:
  9544. (A = r.ops.pop()), r.trys.pop();
  9545. continue;
  9546. default:
  9547. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  9548. r = 0;
  9549. continue;
  9550. }
  9551. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  9552. r.label = A[1];
  9553. break;
  9554. }
  9555. if (6 === A[0] && r.label < g[1]) {
  9556. (r.label = g[1]), (g = A);
  9557. break;
  9558. }
  9559. if (g && r.label < g[2]) {
  9560. (r.label = g[2]), r.ops.push(A);
  9561. break;
  9562. }
  9563. g[2] && r.ops.pop(), r.trys.pop();
  9564. continue;
  9565. }
  9566. A = e.call(t, r);
  9567. } catch (t) {
  9568. (A = [6, t]), (n = 0);
  9569. } finally {
  9570. i = g = 0;
  9571. }
  9572. if (5 & A[0]) throw A[1];
  9573. return { value: A[0] ? A[1] : void 0, done: !0 };
  9574. })([A, o]);
  9575. };
  9576. }
  9577. };
  9578. Object.defineProperty(e, "__esModule", { value: !0 });
  9579. var r = i(3);
  9580. e.attachScreenshot = function(t) {
  9581. t.screenshot = function(e) {
  9582. var i = e.width,
  9583. o = void 0 === i ? 2048 : i,
  9584. C = e.height,
  9585. I = void 0 === C ? 2048 : C,
  9586. s = e.bgColor,
  9587. a = void 0 === s ? "rgba(0,0,0,0)" : s,
  9588. l = e.data,
  9589. u = e.spadding,
  9590. c = e.format,
  9591. h = void 0 === c ? "image/png" : c;
  9592. return g(void 0, void 0, void 0, function() {
  9593. var e, i, C, s, c, p, d, f;
  9594. return A(this, function(y) {
  9595. return (
  9596. (e = t.processing.render),
  9597. (i = n({}, e.props)),
  9598. (C = new Image()),
  9599. (s = document.createElement("canvas")),
  9600. (c = s.getContext("2d")),
  9601. (p = t.processing.points.map(function(t) {
  9602. return t.ele.x;
  9603. })),
  9604. (d = t.processing.points.map(function(t) {
  9605. return t.ele.y;
  9606. })),
  9607. (f = t.padding),
  9608. (t.padding = u),
  9609. t.adapt(l, o, I),
  9610. (s.width = o),
  9611. (s.height = I),
  9612. (c.fillStyle = a),
  9613. c.fillRect(0, 0, s.width, s.height),
  9614. [
  9615. 2,
  9616. new Promise(function(n, a) {
  9617. return g(void 0, void 0, void 0, function() {
  9618. return A(this, function(l) {
  9619. return (
  9620. (C.onload = function() {
  9621. return g(void 0, void 0, void 0, function() {
  9622. var g;
  9623. return A(this, function(A) {
  9624. return (
  9625. c.drawImage(C, 0, 0),
  9626. (g = {
  9627. file: r.convertBase64UrlToBlob(s.toDataURL(h)),
  9628. width: o,
  9629. height: I,
  9630. left: t.processing.render.realPointToScreen({ x: Math.min.apply(Math, p), y: 0 }).x,
  9631. top: t.processing.render.realPointToScreen({ x: 0, y: Math.min.apply(Math, d) }).y,
  9632. bottom: I - t.processing.render.realPointToScreen({ x: 0, y: Math.max.apply(Math, d) }).y,
  9633. right: o - t.processing.render.realPointToScreen({ x: Math.max.apply(Math, p), y: 0 }).x,
  9634. bound: {
  9635. left: Math.min.apply(Math, p),
  9636. top: Math.min.apply(Math, d),
  9637. bottom: Math.max.apply(Math, d),
  9638. right: Math.max.apply(Math, p),
  9639. },
  9640. }),
  9641. (e.props = i),
  9642. (t.padding = f),
  9643. e.adaptLayer(),
  9644. n(g),
  9645. [2]
  9646. );
  9647. });
  9648. });
  9649. }),
  9650. (C.onerror = function(n) {
  9651. (e.props = i), (t.padding = f), e.adaptLayer(), a(n);
  9652. }),
  9653. (C.src = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(e.svg.outerHTML)))),
  9654. [2]
  9655. );
  9656. });
  9657. });
  9658. }),
  9659. ]
  9660. );
  9661. });
  9662. });
  9663. };
  9664. };
  9665. },
  9666. function(t, e, i) {
  9667. "use strict";
  9668. Object.defineProperty(e, "__esModule", { value: !0 });
  9669. var n = (function() {
  9670. function t(t) {
  9671. (this.length = t + "__length"), (this.index = t + "__index"), (this.name = t), (this.keys = []), this.init();
  9672. }
  9673. return (
  9674. (t.prototype.init = function() {
  9675. sessionStorage.setItem(this.length, "0");
  9676. }),
  9677. (t.prototype.getKey = function(t) {
  9678. return this.name + "__" + t;
  9679. }),
  9680. (t.prototype.getData = function() {
  9681. return sessionStorage.getItem(this.index);
  9682. }),
  9683. (t.prototype.getLength = function() {
  9684. return Number(sessionStorage.getItem(this.length));
  9685. }),
  9686. (t.prototype.setLength = function(t) {
  9687. sessionStorage.setItem(this.length, t);
  9688. }),
  9689. (t.prototype.push = function(t) {
  9690. var e = this.getLength(),
  9691. i = this.getKey(this.getLength());
  9692. return sessionStorage.setItem(i, JSON.stringify(t)), this.keys.push(i), this.setLength(e + 1), t;
  9693. }),
  9694. (t.prototype.pop = function() {
  9695. var t = this.getLength(),
  9696. e = this.get(t - 1);
  9697. return this.setLength(t - 1), e;
  9698. }),
  9699. (t.prototype.get = function(t) {
  9700. var e = this.getKey(t);
  9701. return JSON.parse(sessionStorage.getItem(e));
  9702. }),
  9703. (t.prototype.clear = function() {
  9704. this.setLength(0),
  9705. this.keys.forEach(function(t) {
  9706. return sessionStorage.removeItem(t);
  9707. }),
  9708. (this.keys = [this.length]);
  9709. }),
  9710. t
  9711. );
  9712. })();
  9713. e.default = n;
  9714. },
  9715. function(t, e, i) {
  9716. "use strict";
  9717. i.r(e),
  9718. i.d(e, "default", function() {
  9719. return r;
  9720. });
  9721. var n = i(6),
  9722. g = i.n(n),
  9723. A = i(0);
  9724. function r(t, e) {
  9725. let i = Date.now(),
  9726. n = [],
  9727. r = [],
  9728. o = [];
  9729. function C(t, e, i, g, A, o, I) {
  9730. for (let s = 0; s < t.length; ++s) {
  9731. if (A.indexOf(s) > -1 || o.indexOf(I) > -1) continue;
  9732. let a = t[s],
  9733. l = a.p1.id,
  9734. u = a.p2.id;
  9735. if (I == l || I == u) {
  9736. let c = JSON.parse(JSON.stringify(i)),
  9737. h = JSON.parse(JSON.stringify(g)),
  9738. p = JSON.parse(JSON.stringify(A)),
  9739. d = JSON.parse(JSON.stringify(o)),
  9740. f = I;
  9741. h.push(a.id), c.push(I), p.push(s), d.push(I), f == l ? (f = u) : f == u && (f = l), e == f ? (r.push(c), n.push(h)) : C(t, e, c, h, p, d, f);
  9742. }
  9743. }
  9744. }
  9745. function I(t, e, i, n) {
  9746. let g = [];
  9747. for (let t = 0; t < n.length; ++t) {
  9748. let e = n[t];
  9749. g.push(e);
  9750. }
  9751. let A = !0;
  9752. for (var r = 0; r < i.length; ++r) {
  9753. if (e.indexOf(t[r]) > -1) {
  9754. A = !1;
  9755. continue;
  9756. }
  9757. let i = t[r];
  9758. var C = i.p1,
  9759. I = i.p2,
  9760. a = { x: (C.x + I.x) / 2, y: (C.y + I.y) / 2 };
  9761. if (!(s(C, g) && s(I, g) && s(a, g))) return !1;
  9762. }
  9763. if (A) {
  9764. let i = [];
  9765. return i.push(e[0]), i.push(e[e.length - 1]), i.push(t[0]), i.push(t[t.length - 1]), o.push(i), !1;
  9766. }
  9767. return !0;
  9768. }
  9769. function s(t, e) {
  9770. for (var i = 0; i < e.length; ++i) {
  9771. if (a(t, e[i])) return !0;
  9772. }
  9773. return !!(function(t, e) {
  9774. for (var i = t.x, n = t.y, g = !1, A = 0, r = e.length - 1; A < e.length; r = A++) {
  9775. var o = e[A],
  9776. C = e[r],
  9777. I = o.x,
  9778. s = o.y,
  9779. a = C.x,
  9780. l = C.y;
  9781. s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g);
  9782. }
  9783. return g;
  9784. })(t, e);
  9785. }
  9786. function a(t, e) {
  9787. return t.x == e.x && t.y == e.y;
  9788. }
  9789. let l = t.wall.map((e) => ({ p1: t.vertex.find(({ id: t }) => e.p1 === t), p2: t.vertex.find(({ id: t }) => e.p2 === t), id: e.id }));
  9790. function u(t, e, i) {
  9791. return (t.x * e.y + e.x * i.y + i.x * t.y - e.x * t.y - i.x * e.y - t.x * i.y) / 2;
  9792. }
  9793. !(function(t) {
  9794. for (let e = 0; e < t.length; ++e) {
  9795. let i = [],
  9796. n = [],
  9797. g = [],
  9798. A = t[e],
  9799. r = A.p1.id,
  9800. o = A.p2.id;
  9801. n.push(o), g.push(A.id);
  9802. let I = null;
  9803. t.splice(e, 1);
  9804. for (let e = 0; e < t.length; ++e) {
  9805. let A = t[e];
  9806. if (r == A.p1.id || r == A.p2.id) {
  9807. let s = JSON.parse(JSON.stringify(n)),
  9808. a = JSON.parse(JSON.stringify(g)),
  9809. l = [],
  9810. u = JSON.parse(JSON.stringify(i)),
  9811. c = r;
  9812. s.push(r), a.push(A.id), l.push(e), (I = c == A.p1.id ? A.p2.id : A.p1.id), u.push(c), C(t, o, s, a, l, u, I);
  9813. }
  9814. }
  9815. }
  9816. })(JSON.parse(JSON.stringify(l))),
  9817. (r = r.map((e) => e.map((e) => t.vertex.find(({ id: t }) => e === t)))),
  9818. (n = n.map((t) => t.map((t) => l.find(({ id: e }) => t === e)))),
  9819. (function() {
  9820. for (var t = 0; t < r.length; ++t)
  9821. for (var e = t + 1; e < r.length; ++e)
  9822. if (I(n[t], n[e], r[t], r[e])) r.splice(e, 1), n.splice(e, 1), --e;
  9823. else if (I(n[e], n[t], r[e], r[t])) {
  9824. r.splice(t, 1), n.splice(t, 1), --t, --e;
  9825. break;
  9826. }
  9827. })(),
  9828. (function() {
  9829. let t = [];
  9830. for (let e = 0; e < o.length; ++e) {
  9831. let i = o[e],
  9832. g = [];
  9833. (g[0] = null), (g[1] = null);
  9834. for (
  9835. let t = 0;
  9836. t < n.length &&
  9837. (i[0] == n[t][0] && i[1] == n[t][n[t].length - 1] ? (g[0] = t) : i[2] == n[t][0] && i[3] == n[t][n[t].length - 1] && (g[1] = t),
  9838. null == g[0] || null == g[1]);
  9839. ++t
  9840. );
  9841. null != g[0] && null != g[1] && t.push(g);
  9842. }
  9843. o = t;
  9844. })(),
  9845. (r = r.sort((t, e) => Number(!Object(A.isFaceContain)(t, e)))),
  9846. (t.room = n.map((t, e) => ({ wall: t.map(({ id: t }) => t), ground: r[e] }))),
  9847. test_debugger &&
  9848. (window.testCenterPoints && e.processing.render.remove(...window.testCenterPoints),
  9849. (window.testCenterPoints = r.map((t) => {
  9850. let i = (function(t) {
  9851. for (var e = 0, i = 0, n = 0, g = t[1], A = 2; A < t.length; A++) {
  9852. var r = t[A],
  9853. o = u(t[0], g, r);
  9854. (n += o), (e += (t[0].x + g.x + r.x) * o), (i += (t[0].y + g.y + r.y) * o), (g = r);
  9855. }
  9856. return { x: e / n / 3, y: i / n / 3 };
  9857. })(t.map((t) => ({ ...t, y: -t.y }))),
  9858. n = "rgba(" + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + ",0.8)",
  9859. A = new g.a({ fillColor: n, storkeColor: n, x: i.x, y: i.y, renderer: e.processing.render });
  9860. return e.processing.render.push(A), A;
  9861. })),
  9862. window.testCenterPoints.forEach((i, g) => {
  9863. let A = {
  9864. pointEles: t.room[g].ground.map((t) => e.processing.points.find(({ id: e }) => e === t.id).ele.real),
  9865. lineEles: n[g].map((t) => e.processing.lines.find(({ id: e }) => e === t.id).ele.real),
  9866. center: i.real,
  9867. pointData: r[g],
  9868. lineData: n[g],
  9869. };
  9870. console.log(A);
  9871. }));
  9872. let c = Date.now();
  9873. return console.warn("计算完毕,耗时" + (c - i)), t;
  9874. }
  9875. },
  9876. function(t, e, i) {
  9877. "use strict";
  9878. Object.defineProperty(e, "__esModule", { value: !0 }),
  9879. (e.attchDOMTranform = function(t) {
  9880. var e = function(e) {
  9881. var i = t.processing.render;
  9882. if (e.target === i.svg) {
  9883. var n = i.props.left,
  9884. g = i.props.top,
  9885. A = function(A) {
  9886. (i.props.left = n - (e.pageX - A.pageX) * i.props.multiple),
  9887. (i.props.top = g - (e.pageY - A.pageY) * i.props.multiple),
  9888. i.adaptLayer(),
  9889. t.propsChange && t.propsChange(),
  9890. A.preventDefault();
  9891. },
  9892. r = function() {
  9893. document.documentElement.removeEventListener("mousemove", A, !1), document.documentElement.removeEventListener("mouseup", r, !1);
  9894. };
  9895. document.documentElement.addEventListener("mousemove", A, !1), document.documentElement.addEventListener("mouseup", r, !1), e.preventDefault();
  9896. }
  9897. },
  9898. i = function(e) {
  9899. var i = t.processing.render,
  9900. n = e.wheelDelta ? (window.opera ? -e.wheelDelta / 120 : e.wheelDelta / 120) : e.detail ? -e.detail / 3 : 0,
  9901. g = i.props.scale + (n > 0 ? 0.08 : -0.08);
  9902. g > 0.1 && ((i.props.scale = g), i.adaptLayer(), t.propsChange && t.propsChange());
  9903. };
  9904. (t.openMouseHandle = function() {
  9905. var n = t.layer;
  9906. n.addEventListener("mousedown", e, !1), n.addEventListener("mousewheel", i, !1);
  9907. }),
  9908. (t.closeMouseHandle = function() {
  9909. var n = t.layer;
  9910. n.removeEventListener("mousedown", e, !1), n.removeEventListener("mousewheel", i, !1);
  9911. });
  9912. var n = t.destroy;
  9913. t.destroy = function() {
  9914. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  9915. t.closeMouseHandle(), n.apply(this, e);
  9916. };
  9917. });
  9918. },
  9919. function(t, e, i) {
  9920. "use strict";
  9921. var n =
  9922. (this && this.__importDefault) ||
  9923. function(t) {
  9924. return t && t.__esModule ? t : { default: t };
  9925. };
  9926. Object.defineProperty(e, "__esModule", { value: !0 });
  9927. var g = i(2),
  9928. A = n(i(4)),
  9929. r = n(i(7));
  9930. e.attachDisabled = function(t) {
  9931. var e = ["increase", "getStackState", "preservation", "previous", "next", "closeMouseHandle", "showGauge", "hideGauge"],
  9932. i = [];
  9933. (t.forbidden = function() {
  9934. i.length !== e.length &&
  9935. (t.hideGauge(),
  9936. t.closeMouseHandle(),
  9937. g.CADElement.examples.get(t.processing.render).forEach(function(t) {
  9938. return t.unEvent();
  9939. }),
  9940. A.default.attaArch.forEach(function(t) {
  9941. t.forEach(function(t) {
  9942. t instanceof r.default && t.delEvent();
  9943. });
  9944. }),
  9945. e.forEach(function(e) {
  9946. i.push(t[e]), delete t[e];
  9947. }));
  9948. }),
  9949. (t.available = function() {
  9950. i.length === e.length &&
  9951. (e.forEach(function(e, n) {
  9952. return (t[e] = i[n]);
  9953. }),
  9954. (i = []),
  9955. g.CADElement.examples.get(t.processing.render).forEach(function(t) {
  9956. return t.listen();
  9957. }),
  9958. A.default.attaArch.forEach(function(t) {
  9959. t.forEach(function(t) {
  9960. return t instanceof r.default && t.addEvent();
  9961. });
  9962. }),
  9963. t.showGauge(),
  9964. t.openMouseHandle());
  9965. });
  9966. };
  9967. },
  9968. function(t, e, i) {
  9969. "use strict";
  9970. var n =
  9971. (this && this.__assign) ||
  9972. function() {
  9973. return (n =
  9974. Object.assign ||
  9975. function(t) {
  9976. for (var e, i = 1, n = arguments.length; i < n; i++)
  9977. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  9978. return t;
  9979. }).apply(this, arguments);
  9980. },
  9981. g =
  9982. (this && this.__spreadArrays) ||
  9983. function() {
  9984. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  9985. var n = Array(t),
  9986. g = 0;
  9987. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  9988. return n;
  9989. },
  9990. A =
  9991. (this && this.__importDefault) ||
  9992. function(t) {
  9993. return t && t.__esModule ? t : { default: t };
  9994. };
  9995. Object.defineProperty(e, "__esModule", { value: !0 });
  9996. var r = A(i(23));
  9997. e.attachRote = function(t) {
  9998. var e = t.addProcessing;
  9999. (t.addProcessing = function() {
  10000. for (var i = [], n = 0; n < arguments.length; n++) i[n] = arguments[n];
  10001. var A = e.call.apply(e, g([t], i)),
  10002. o = new r.default({ renderer: A.render, local: [] });
  10003. return (
  10004. (o.zIndex = 2),
  10005. A.render.push(o),
  10006. (o.setActive = function(e) {
  10007. t.activeRoute(o.local.indexOf(e));
  10008. }),
  10009. A
  10010. );
  10011. }),
  10012. (t.showRotes = function() {
  10013. var e = t.processing.rote;
  10014. return (
  10015. (e.show = !0),
  10016. new Promise(function(t) {
  10017. return e.nextTick(t);
  10018. })
  10019. );
  10020. }),
  10021. (t.hideRotes = function() {
  10022. var e = t.processing.rote;
  10023. return (
  10024. (e.show = !1),
  10025. new Promise(function(t) {
  10026. return e.nextTick(t);
  10027. })
  10028. );
  10029. }),
  10030. (t.setRoutes = function(e) {
  10031. var i = t.processing.rote;
  10032. (e = e.map(function(t, i) {
  10033. if (t.rangn) {
  10034. var g = (function(t) {
  10035. var i = e
  10036. .slice(0, t)
  10037. .reverse()
  10038. .find(function(t) {
  10039. return !t.rangn;
  10040. });
  10041. return (
  10042. i ||
  10043. e.slice(t).find(function(t) {
  10044. return !t.rangn;
  10045. })
  10046. );
  10047. })(i);
  10048. if (g) return n(n({}, g), { rangn: !0 });
  10049. }
  10050. return n({}, t);
  10051. })),
  10052. t.clearRoutes(function() {
  10053. i.local = g(e);
  10054. });
  10055. }),
  10056. (t.pushRoute = function(e) {
  10057. t.clearRoutes(function() {
  10058. setTimeout(function() {}, 100);
  10059. });
  10060. }),
  10061. (t.activeRoute = function(e) {
  10062. var i = t.processing.rote;
  10063. i.nextTick(function() {
  10064. i.active = i.local[e];
  10065. });
  10066. }),
  10067. (t.popRoute = function(e) {
  10068. var i = t.processing.rote;
  10069. i.local.splice(e, 1),
  10070. i.nextTick(function() {
  10071. return (i.local = g(i.local));
  10072. });
  10073. }),
  10074. (t.clearRoutes = function(e) {
  10075. var i = t.processing.rote;
  10076. (i.local = []),
  10077. (i.dialog = 0),
  10078. i.nextTick(function() {
  10079. return e && e();
  10080. });
  10081. });
  10082. };
  10083. },
  10084. function(t, e) {
  10085. t.exports =
  10086. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAt1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+6urrFxcXR0dHY2NjX19fDw8P////Hx8fg4ODj4+PQ0NDCwsLGxsb///////////////+Zk85TAAAAPHRSTlMAAgQiHSZ5yO+B2fPfw70siHVCZ337ODSO0YM7rJLjzVINSDDpcBkUXfljCAQ4lcV6BgpEkKlgQ0CZ3FCcXUtcAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+MFHgsMLLYaoF4AAADtSURBVBjTbVCJcoIwFNxQuSIWEYMoUOSQo/S0p+37/+9qIraNnb7JZDK7m012gfNhBvsXuZjoiNpNyyZHR5jp8qk3m17+avw5Jx4swqWITsgq9sR6aWKySVL7eDfKrkQeKPtt7BdUAlVcC3vXKLLdWQ0yT55IdO3oa246hqK/hoGwd4GB3dze3T88MgTjfyKR74Gn55fXt3fAsaRQrn0uqsINB2XR9cVRKYkDpQmDiviRwRjTAJwOkmUoqcF3IcyL13mLAXZ6Eqqpy4CcBVbk/wjBeC0il7p0Bq1NmyqZkSjRwaaFISN9/i0d2hNf1CoSHV2Lm8sAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDUtMzBUMTE6MTI6NDQrMDg6MDCJUf45AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA1LTMwVDExOjEyOjQ0KzA4OjAw+AxGhQAAAABJRU5ErkJggg==";
  10087. },
  10088. function(t, e, i) {
  10089. "use strict";
  10090. var n =
  10091. (this && this.__spreadArrays) ||
  10092. function() {
  10093. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  10094. var n = Array(t),
  10095. g = 0;
  10096. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  10097. return n;
  10098. },
  10099. g =
  10100. (this && this.__importDefault) ||
  10101. function(t) {
  10102. return t && t.__esModule ? t : { default: t };
  10103. };
  10104. Object.defineProperty(e, "__esModule", { value: !0 });
  10105. var A = g(i(5)),
  10106. r = g(i(6)),
  10107. o = g(i(10));
  10108. e.attachStyle = function(t) {
  10109. var e = { fillColor: "rgb(0, 200, 175)", storkeColor: "green" },
  10110. i = { fillColor: "rgba(245, 255, 0, 0.7)", storkeColor: "rgba(245, 255, 255, 0.3)" };
  10111. t.setDefaultPointStyle = function(n) {
  10112. n.storkeColor && (e.storkeColor = n.storkeColor),
  10113. n.fillColor && (e.fillColor = n.fillColor),
  10114. n.hoverStorkeColor && (i.storkeColor = n.hoverStorkeColor),
  10115. n.hoverFillColor && (i.fillColor = n.hoverFillColor),
  10116. setTimeout(function() {
  10117. t.loadData(t.getData());
  10118. }, 100);
  10119. };
  10120. var g = { width: 3, color: "rgb(255,255,255)" },
  10121. C = t.addProcessing;
  10122. (t.addProcessing = function() {
  10123. for (var I = [], s = 0; s < arguments.length; s++) I[s] = arguments[s];
  10124. var a = C.call.apply(C, n([t], I));
  10125. return r.default.Setting.set(a.render, e), A.default.Setting.set(a.render, i), o.default.Setting.set(a.render, g), a;
  10126. }),
  10127. (t.setDefaultLineStyle = function(e) {
  10128. e.width && (g.width = e.width),
  10129. e.color && (g.color = e.color),
  10130. setTimeout(function() {
  10131. t.loadData(t.getData());
  10132. }, 100);
  10133. });
  10134. };
  10135. },
  10136. function(t, e, i) {
  10137. "use strict";
  10138. Object.defineProperty(e, "__esModule", { value: !0 }),
  10139. (e.attchCustom = function(t) {
  10140. t.edits = [];
  10141. });
  10142. },
  10143. function(t, e, i) {
  10144. "use strict";
  10145. var n =
  10146. (this && this.__spreadArrays) ||
  10147. function() {
  10148. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  10149. var n = Array(t),
  10150. g = 0;
  10151. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  10152. return n;
  10153. };
  10154. Object.defineProperty(e, "__esModule", { value: !0 });
  10155. var g = i(0);
  10156. function A(t, e) {
  10157. var i = e.addCase,
  10158. A = e.addDoor,
  10159. r = e.addColumn,
  10160. o = e.addLine,
  10161. C = e.addSlideDoor,
  10162. I = e.addBayCase,
  10163. s = e.addGroundCase,
  10164. a = e.addFurnColumn,
  10165. l = e.addFurnFlue,
  10166. u = e.adddDoubleDoor,
  10167. c = function(t) {
  10168. Object.defineProperties(t, {
  10169. ewidth: {
  10170. get: function() {
  10171. return Number(g.lineDis({ points: t.linePoints }).toFixed(2));
  10172. },
  10173. set: function(e) {
  10174. if (!(e <= 0 || e === t.ewidth)) {
  10175. var i = g.lineCenter({ points: t.linePoints }),
  10176. n = g.getDisPointLinePoints(t.attachment, i, e / 2),
  10177. A = n[0],
  10178. r = n[1];
  10179. g.lineDis({ points: [t.linePoints[0], A] }) > g.lineDis({ points: [t.linePoints[0], r] })
  10180. ? ((t.linePoints[0].x = r.x), (t.linePoints[0].y = r.y), (t.linePoints[1].x = A.x), (t.linePoints[1].y = A.y))
  10181. : ((t.linePoints[0].x = A.x), (t.linePoints[0].y = A.y), (t.linePoints[1].x = r.x), (t.linePoints[1].y = r.y));
  10182. }
  10183. },
  10184. },
  10185. maxWidth: {
  10186. get: function() {
  10187. var e = [t.attachment],
  10188. i = [],
  10189. n = [],
  10190. A = function(e, i, n) {
  10191. var A = e.linePoints || e.points;
  10192. return { dis: g.lineDis({ points: [t.linePoints[i], A[n]] }), point: A[n] };
  10193. };
  10194. e.forEach(function(e) {
  10195. e !== t && (i.push(A(e, 0, 0)), i.push(A(e, 0, 1)), n.push(A(e, 1, 0)), n.push(A(e, 1, 1)));
  10196. }),
  10197. i.sort(function(t, e) {
  10198. return t.dis - e.dis;
  10199. }),
  10200. n.sort(function(t, e) {
  10201. return t.dis - e.dis;
  10202. });
  10203. var r = i[0].dis > n[0].dis ? [t.linePoints[1], n[0].point] : [t.linePoints[0], i[0].point];
  10204. return Number((2 * g.lineDis({ points: r }) + g.lineDis({ points: t.linePoints })).toFixed(2));
  10205. },
  10206. },
  10207. minWidth: {
  10208. get: function() {
  10209. return 0;
  10210. },
  10211. },
  10212. });
  10213. },
  10214. h = function(e) {
  10215. Object.defineProperties(e, {
  10216. estart: {
  10217. get: function() {
  10218. return e.start;
  10219. },
  10220. set: function(i) {
  10221. i &&
  10222. t.processing.doors.forEach(function(t) {
  10223. t.ele.start = !1;
  10224. }),
  10225. (e.start = i),
  10226. t.preservation();
  10227. },
  10228. },
  10229. });
  10230. },
  10231. p = function(t) {
  10232. Object.defineProperties(t, {
  10233. tick: {
  10234. get: function() {
  10235. return Math.max(
  10236. Number(g.lineDis({ points: [t.points[0], t.points[3]] }).toFixed(2)),
  10237. Number(g.lineDis({ points: [t.points[1], t.points[2]] }).toFixed(2))
  10238. );
  10239. },
  10240. set: function(e) {
  10241. e <= 0 || e === t.oldVal || ((t.oldVal = e), (t.thickness = e), t.updatePeripheral());
  10242. },
  10243. },
  10244. maxTick: {
  10245. get: function() {
  10246. return 10;
  10247. },
  10248. },
  10249. minTick: {
  10250. get: function() {
  10251. return 0;
  10252. },
  10253. },
  10254. });
  10255. };
  10256. (e.addCase = function() {
  10257. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10258. var g = i.call.apply(i, n([this], t));
  10259. return c(g.ele), g;
  10260. }),
  10261. (e.addBayCase = function() {
  10262. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10263. var i = I.call.apply(I, n([this], t));
  10264. return c(i.ele), i;
  10265. }),
  10266. (e.addGroundCase = function() {
  10267. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10268. var i = s.call.apply(s, n([this], t));
  10269. return c(i.ele), i;
  10270. }),
  10271. (e.addDoor = function() {
  10272. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10273. var i = A.call.apply(A, n([this], t));
  10274. return c(i.ele), h(i.ele), i;
  10275. }),
  10276. (e.addSlideDoor = function() {
  10277. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10278. var i = C.call.apply(C, n([this], t));
  10279. return c(i.ele), i;
  10280. }),
  10281. (e.adddDoubleDoor = function() {
  10282. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10283. var i = u.call.apply(u, n([this], t));
  10284. return c(i.ele), i;
  10285. }),
  10286. (e.addColumn = function() {
  10287. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10288. var i = r.call.apply(r, n([this], t));
  10289. return c(i.ele), p(i.ele), i;
  10290. }),
  10291. (e.addLine = function() {
  10292. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10293. var i = o.call.apply(o, n([this], t));
  10294. return i;
  10295. });
  10296. var d = function(t) {
  10297. Object.defineProperties(t, {
  10298. ewidth: {
  10299. get: function() {
  10300. return Number(g.lineDis({ points: [t.points[0], t.points[1]] }).toFixed(2));
  10301. },
  10302. set: function(e) {
  10303. if (!(e <= 0 || e === t.ewidth)) {
  10304. var i = g.lineStretch({ points: [t.points[0], t.points[1]] }, e),
  10305. n = g.lineStretch({ points: [t.points[2], t.points[3]] }, e),
  10306. A = i.points.concat(n.points);
  10307. t.check(A) && t.directUpdate(A);
  10308. }
  10309. },
  10310. },
  10311. maxWidth: {
  10312. get: function() {
  10313. return 10;
  10314. },
  10315. },
  10316. minWidth: {
  10317. get: function() {
  10318. return 0;
  10319. },
  10320. },
  10321. });
  10322. },
  10323. f = function(t) {
  10324. Object.defineProperties(t, {
  10325. tick: {
  10326. get: function() {
  10327. return Number(g.lineDis({ points: [t.points[1], t.points[2]] }).toFixed(2));
  10328. },
  10329. set: function(e) {
  10330. if (!(e <= 0 || e === t.tick)) {
  10331. var i = g.lineStretch({ points: [t.points[0], t.points[3]] }, e),
  10332. n = g.lineStretch({ points: [t.points[1], t.points[2]] }, e),
  10333. A = [i.points[0], n.points[0], n.points[1], i.points[1]];
  10334. t.check(A) && t.directUpdate(A);
  10335. }
  10336. },
  10337. },
  10338. maxTick: {
  10339. get: function() {
  10340. return 10;
  10341. },
  10342. },
  10343. minTick: {
  10344. get: function() {
  10345. return 0;
  10346. },
  10347. },
  10348. });
  10349. },
  10350. y = function(t) {
  10351. Object.defineProperties(t, {
  10352. maxAngle: {
  10353. get: function() {
  10354. return 360;
  10355. },
  10356. },
  10357. minAngle: {
  10358. get: function() {
  10359. return 0;
  10360. },
  10361. },
  10362. });
  10363. };
  10364. (e.addFurnColumn = function() {
  10365. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10366. var i = a.call.apply(a, n([this], t));
  10367. return d(i.ele), f(i.ele), y(i.ele), i;
  10368. }),
  10369. (e.addFurnFlue = function() {
  10370. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10371. var i = l.call.apply(l, n([this], t));
  10372. return d(i.ele), f(i.ele), y(i.ele), i;
  10373. });
  10374. }
  10375. e.default = function(t) {
  10376. var e = t.addProcessing;
  10377. t.addProcessing = function() {
  10378. for (var i = [], g = 0; g < arguments.length; g++) i[g] = arguments[g];
  10379. var r = e.call.apply(e, n([t], i));
  10380. return A(t, r), r;
  10381. };
  10382. };
  10383. },
  10384. function(t, e, i) {
  10385. "use strict";
  10386. var n =
  10387. (this && this.__spreadArrays) ||
  10388. function() {
  10389. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  10390. var n = Array(t),
  10391. g = 0;
  10392. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  10393. return n;
  10394. };
  10395. Object.defineProperty(e, "__esModule", { value: !0 }),
  10396. (e.other = function(t) {
  10397. var e = !1,
  10398. i = t.addProcessing;
  10399. (t.addProcessing = function() {
  10400. for (var g = [], A = 0; A < arguments.length; A++) g[A] = arguments[A];
  10401. var r = i.call.apply(i, n([t], g)),
  10402. o = r.addTagging;
  10403. return (
  10404. (r.addTagging = function(t) {
  10405. return (t.show = e), o.call(r, t);
  10406. }),
  10407. r
  10408. );
  10409. }),
  10410. (t.hideLabel = function() {
  10411. (e = !1),
  10412. t.processings.forEach(function(t) {
  10413. t.taggings.forEach(function(t) {
  10414. return (t.ele.show = e);
  10415. });
  10416. });
  10417. }),
  10418. (t.showLabel = function() {
  10419. (e = !0),
  10420. t.processings.forEach(function(t) {
  10421. t.taggings.forEach(function(t) {
  10422. return (t.ele.show = e);
  10423. });
  10424. });
  10425. });
  10426. });
  10427. },
  10428. function(t, e, i) {
  10429. "use strict";
  10430. var n =
  10431. (this && this.__awaiter) ||
  10432. function(t, e, i, n) {
  10433. return new (i || (i = Promise))(function(g, A) {
  10434. function r(t) {
  10435. try {
  10436. C(n.next(t));
  10437. } catch (t) {
  10438. A(t);
  10439. }
  10440. }
  10441. function o(t) {
  10442. try {
  10443. C(n.throw(t));
  10444. } catch (t) {
  10445. A(t);
  10446. }
  10447. }
  10448. function C(t) {
  10449. var e;
  10450. t.done
  10451. ? g(t.value)
  10452. : ((e = t.value),
  10453. e instanceof i
  10454. ? e
  10455. : new i(function(t) {
  10456. t(e);
  10457. })).then(r, o);
  10458. }
  10459. C((n = n.apply(t, e || [])).next());
  10460. });
  10461. },
  10462. g =
  10463. (this && this.__generator) ||
  10464. function(t, e) {
  10465. var i,
  10466. n,
  10467. g,
  10468. A,
  10469. r = {
  10470. label: 0,
  10471. sent: function() {
  10472. if (1 & g[0]) throw g[1];
  10473. return g[1];
  10474. },
  10475. trys: [],
  10476. ops: [],
  10477. };
  10478. return (
  10479. (A = { next: o(0), throw: o(1), return: o(2) }),
  10480. "function" == typeof Symbol &&
  10481. (A[Symbol.iterator] = function() {
  10482. return this;
  10483. }),
  10484. A
  10485. );
  10486. function o(A) {
  10487. return function(o) {
  10488. return (function(A) {
  10489. if (i) throw new TypeError("Generator is already executing.");
  10490. for (; r; )
  10491. try {
  10492. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  10493. return g;
  10494. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  10495. case 0:
  10496. case 1:
  10497. g = A;
  10498. break;
  10499. case 4:
  10500. return r.label++, { value: A[1], done: !1 };
  10501. case 5:
  10502. r.label++, (n = A[1]), (A = [0]);
  10503. continue;
  10504. case 7:
  10505. (A = r.ops.pop()), r.trys.pop();
  10506. continue;
  10507. default:
  10508. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  10509. r = 0;
  10510. continue;
  10511. }
  10512. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  10513. r.label = A[1];
  10514. break;
  10515. }
  10516. if (6 === A[0] && r.label < g[1]) {
  10517. (r.label = g[1]), (g = A);
  10518. break;
  10519. }
  10520. if (g && r.label < g[2]) {
  10521. (r.label = g[2]), r.ops.push(A);
  10522. break;
  10523. }
  10524. g[2] && r.ops.pop(), r.trys.pop();
  10525. continue;
  10526. }
  10527. A = e.call(t, r);
  10528. } catch (t) {
  10529. (A = [6, t]), (n = 0);
  10530. } finally {
  10531. i = g = 0;
  10532. }
  10533. if (5 & A[0]) throw A[1];
  10534. return { value: A[0] ? A[1] : void 0, done: !0 };
  10535. })([A, o]);
  10536. };
  10537. }
  10538. },
  10539. A =
  10540. (this && this.__spreadArrays) ||
  10541. function() {
  10542. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  10543. var n = Array(t),
  10544. g = 0;
  10545. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  10546. return n;
  10547. },
  10548. r =
  10549. (this && this.__importDefault) ||
  10550. function(t) {
  10551. return t && t.__esModule ? t : { default: t };
  10552. };
  10553. Object.defineProperty(e, "__esModule", { value: !0 });
  10554. var o = i(22),
  10555. C = i(2),
  10556. I = r(i(60)),
  10557. s = r(i(62)),
  10558. a = i(0),
  10559. l = function(t, e) {
  10560. var i = t.processing,
  10561. n = i.doors,
  10562. g = i.slideDoors,
  10563. r = i.groundCases,
  10564. o = i.cases,
  10565. C = i.points,
  10566. I = i.taggings,
  10567. s = i.bayCases,
  10568. a = A(i.furnFlues, i.furnColumns, i.columns),
  10569. l = A(i.lines),
  10570. u = A(o, n);
  10571. I.forEach(function(t) {
  10572. var i = 3 * e;
  10573. t.ele.fontSize = i < 12 ? 12 : i;
  10574. }),
  10575. a.forEach(function(t) {
  10576. t.ele.width = 0.33 * e;
  10577. }),
  10578. g.forEach(function(t) {
  10579. (t.ele.foorWidth = (2 * e) / (t.ele.attachment.border ? 1 : 2)), (t.ele.bwithin = e / 2 / (t.ele.attachment.border ? 1 : 2));
  10580. }),
  10581. o.forEach(function(t) {
  10582. (t.ele.width = (4 * e) / 2 / (t.ele.attachment.border ? 1 : 1.5)),
  10583. (t.ele.stamWidth = (0.1 * e) / (t.ele.attachment.border ? 1 : 2)),
  10584. (t.ele.outLine.width = t.ele.width),
  10585. (t.ele.outLine.color = t.ele.fill),
  10586. (t.ele.innerline.width = t.ele.stamWidth),
  10587. (t.ele.innerline.color = t.ele.seam),
  10588. t.ele.innerline.update();
  10589. }),
  10590. l.forEach(function(t) {
  10591. t.ele.width = e;
  10592. }),
  10593. s.forEach(function(t) {
  10594. t.ele.width = (0.33 * e) / (t.ele.attachment.border ? 1 : 2);
  10595. }),
  10596. r.forEach(function(t) {
  10597. t.ele.width = (e / 2) * (t.ele.attachment.border ? 1 : 2);
  10598. }),
  10599. n.forEach(function(t) {
  10600. (t.ele.foorWidth = (2 * e) / (t.ele.attachment.border ? 1 : 2)), (t.ele.outWidth = (0.33 * e) / (t.ele.attachment.border ? 1 : 2));
  10601. }),
  10602. C.forEach(function(t) {
  10603. (t.ele.r1 = e + 1), (t.ele.r = e + 1);
  10604. }),
  10605. u.forEach(function(t) {
  10606. (t.ele.linePoints[0].r1 = e + 1), (t.ele.linePoints[0].r = e + 1), (t.ele.linePoints[1].r1 = e + 1), (t.ele.linePoints[1].r = e + 1);
  10607. }),
  10608. t.setDireAttrs({ fontSize: 2.6 * e, r: 16.6 * e, border: e, right: 6.3 * e, top: 6.3 * e, ArgDire: 5 * e });
  10609. };
  10610. e.default = function(t) {
  10611. var e = t.screenshot;
  10612. t.screenshot = function(i) {
  10613. var A = void 0 === i ? {} : i,
  10614. r = A.width,
  10615. u = void 0 === r ? 2880 : r,
  10616. c = A.height,
  10617. h = void 0 === c ? 1620 : c,
  10618. p = A.primaryColor,
  10619. d = void 0 === p ? "#fff" : p,
  10620. f = A.archColor,
  10621. y = void 0 === f ? "rgba(0,0,0,0)" : f,
  10622. v = A.bgColor,
  10623. m = void 0 === v ? "rgba(0,0,0,0)" : v,
  10624. b = A.textColor,
  10625. x = void 0 === b ? "#fff" : b,
  10626. _ = A.archBorder,
  10627. w = void 0 === _ ? d : _,
  10628. P = A.data,
  10629. O = void 0 === P ? t.getData(!0, !0) : P,
  10630. S = A.padding,
  10631. E = void 0 === S ? 450 : S,
  10632. D = A.showGauge,
  10633. k = void 0 === D || D,
  10634. M = A.lineWidth,
  10635. L = void 0 === M ? 10 : M,
  10636. N = A.spliceGauge,
  10637. j = void 0 !== N && N,
  10638. R = A.showDire,
  10639. G = void 0 !== R && R,
  10640. T = A.showTags,
  10641. V = void 0 === T || T,
  10642. U = A.showDoorStart,
  10643. W = void 0 === U || U,
  10644. Z = A.showMapping,
  10645. B = void 0 !== Z && Z,
  10646. Q = A.format,
  10647. F = void 0 === Q ? "image/png" : Q,
  10648. H = A.errreturn,
  10649. J = void 0 !== H && H;
  10650. return n(void 0, void 0, void 0, function() {
  10651. var i, n, A, r, c, p, f, v, b, _, P, S, D, M, N, R, T, U, Z, Q, H;
  10652. return g(this, function(g) {
  10653. switch (g.label) {
  10654. case 0:
  10655. return (
  10656. (O = o.roateDataY(
  10657. O.floors.find(function(t) {
  10658. return t.show;
  10659. })
  10660. )),
  10661. (i = t.processing.lines[0] ? t.processing.lines[0].ele.width : 3),
  10662. (t.processing.render.layer.style.opacity = "0"),
  10663. (n = []),
  10664. (A = []),
  10665. C.CADElement.examples.get(t.processing.render).forEach(function(t) {
  10666. A.push(
  10667. new Promise(function(e) {
  10668. return t.nextTick(e);
  10669. })
  10670. );
  10671. }),
  10672. [4, Promise.all(A)]
  10673. );
  10674. case 1:
  10675. for (
  10676. g.sent(),
  10677. C.CADElement.examples.get(t.processing.render).forEach(function(t) {
  10678. (t.__state.direct = !0), t.changeSelect(!1);
  10679. }),
  10680. B &&
  10681. ((r = []),
  10682. s
  10683. .default(O)
  10684. .map(function(t) {
  10685. return t;
  10686. })
  10687. .sort(function(t, e) {
  10688. return a.isFaceContain(t, e) ? 1 : -1;
  10689. })
  10690. .forEach(function(e, i) {
  10691. var g = t.processing.taggings.find(function(t) {
  10692. return a.pointInside(e, t.ele) && !~r.indexOf(t);
  10693. }),
  10694. A = new I.default({ points: e, label: g ? g.ele.title : "", show: !0, renderer: t.processing.render });
  10695. (A.zIndex = -i - 3), A.update(), t.processing.render.push(A), n.push(A), r.push(g);
  10696. })),
  10697. (c = [
  10698. { key: "stroke", attr: ["doors", "columns", "bayCases", "furnColumns", "furnFlues", "doubleDoors"], oldVals: [], newColor: w },
  10699. { key: "fill", attr: ["groundCases"], oldVals: [], newColor: w },
  10700. { key: "seam", attr: ["cases"], oldVals: [], newColor: d },
  10701. { key: "bgColor", attr: ["cases"], oldVals: [], newColor: d },
  10702. { key: "color", attr: ["lines"], oldVals: [], newColor: d },
  10703. { key: "icon", attr: ["doors"], oldVals: [], newColor: d },
  10704. {
  10705. key: "fill",
  10706. attr: ["cases", "doors", "columns", "bayCases", "furnColumns", "furnFlues", "slideDoors", "doubleDoors"],
  10707. oldVals: [],
  10708. newColor: y,
  10709. },
  10710. { key: "foorColor", attr: ["slideDoors"], oldVals: [], newColor: w },
  10711. { key: "clipColor", attr: ["slideDoors"], oldVals: [], newColor: y },
  10712. { key: "color", attr: ["taggings"], oldVals: [], newColor: x },
  10713. ]).forEach(function(e) {
  10714. var i = e.key,
  10715. n = e.attr,
  10716. g = e.oldVals,
  10717. A = e.newColor;
  10718. n.forEach(function(e) {
  10719. g.push(
  10720. t.processing[e].map(function(t) {
  10721. return t.ele[i];
  10722. })
  10723. ),
  10724. t.processing[e].forEach(function(t) {
  10725. var e = t.ele;
  10726. e[i] = "icon" === i ? ("#fff" !== A ? "darkIcon" : "defaultIcon") : A;
  10727. });
  10728. });
  10729. }),
  10730. p = t.processing.direction,
  10731. f = p.show,
  10732. !p.show && G ? t.showDire() : G || t.hideDire(),
  10733. v = t.processing.taggings[0] && t.processing.taggings[0].ele.show,
  10734. t.processing.taggings.forEach(function(t) {
  10735. return (t.ele.show = V);
  10736. }),
  10737. b = t.processing.points[0].ele.fillColor,
  10738. _ = t.processing.lines[0].ele.init.color,
  10739. t.processing.points.forEach(function(t) {
  10740. t.ele.fillColor = "rgba(0,0,0,0)";
  10741. }),
  10742. P = []
  10743. .concat(t.processing.doors)
  10744. .concat(t.processing.groundCases)
  10745. .concat(t.processing.cases)
  10746. .concat(t.processing.doubleDoors),
  10747. Z = 0;
  10748. Z < P.length;
  10749. Z++
  10750. )
  10751. (Q = P[Z].ele.points || P[Z].ele.linePoints) &&
  10752. Q.forEach(function(t) {
  10753. return (t.fillColor = "rgba(0,0,0,0)");
  10754. });
  10755. t.setGaugeModel(1),
  10756. (S = p.icon),
  10757. t.setDireAttrs({ simple: !0, icon: "#fff" !== d ? "darkIcon" : "defaultIcon" }),
  10758. (D = t.processing.doors.map(function(t) {
  10759. return t.ele.showStart;
  10760. })),
  10761. t.processing.doors.forEach(function(t) {
  10762. return (t.ele.showStart = W);
  10763. }),
  10764. (M = t.gauge && t.gauge.stroke),
  10765. t.gauge && t.gauge.minPX,
  10766. k &&
  10767. ((N = { width: L / 2, showTop: !1, showRight: !1, padding: 3.3 * L, stroke: d }),
  10768. j ? ((N.minPX = 12 * L), console.log("---", N.minPX)) : (N.minPX = Math.max(u, h)),
  10769. t.setGaugeAttrs(N)),
  10770. l(t, L),
  10771. C.CADElement.examples.get(t.processing.render).forEach(function(t) {
  10772. return t.update();
  10773. }),
  10774. (g.label = 2);
  10775. case 2:
  10776. return (
  10777. g.trys.push([2, 4, , 5]), [4, e.call(this, { width: u, height: h, bgColor: m, data: O, spadding: E, showGauge: k, lineWidth: L, format: F })]
  10778. );
  10779. case 3:
  10780. return (R = g.sent()), [3, 5];
  10781. case 4:
  10782. return (U = g.sent()), J ? [2, U] : ((T = U), [3, 5]);
  10783. case 5:
  10784. for (
  10785. k && t.setGaugeAttrs({ minPX: 50, width: 1, showTop: !0, showRight: !0, padding: 10, stroke: M }),
  10786. t.setDireAttrs({ simple: !1, icon: S }),
  10787. Z = 0;
  10788. Z < P.length;
  10789. Z++
  10790. )
  10791. (Q = P[Z].ele.points || P[Z].ele.linePoints) &&
  10792. Q.map(function(t) {
  10793. return (t.fillColor = b);
  10794. });
  10795. if (
  10796. (l(t, i),
  10797. t.setGaugeModel(0),
  10798. t.processing.points.forEach(function(t) {
  10799. return (t.ele.fillColor = b);
  10800. }),
  10801. t.processing.lines.forEach(function(t) {
  10802. return (t.ele.color = _);
  10803. }),
  10804. (H = t.processing.render).remove.apply(H, n),
  10805. f ? t.showDire() : t.hideDire(),
  10806. v
  10807. ? t.processing.taggings.forEach(function(t) {
  10808. return (t.ele.show = !0);
  10809. })
  10810. : t.processing.taggings.forEach(function(t) {
  10811. return (t.ele.show = !1);
  10812. }),
  10813. t.processing.doors.forEach(function(t, e) {
  10814. t.ele.showStart = D[e];
  10815. }),
  10816. (t.processing.render.layer.style.opacity = "1"),
  10817. c.forEach(function(e) {
  10818. var i = e.key,
  10819. n = e.attr,
  10820. g = e.oldVals;
  10821. n.forEach(function(e, n) {
  10822. t.processing[e].forEach(function(t, e) {
  10823. t.ele[i] = g[n][e];
  10824. });
  10825. });
  10826. }),
  10827. C.CADElement.examples.get(t.processing.render).forEach(function(t) {
  10828. (t.__state.direct = !1), t.update();
  10829. }),
  10830. T)
  10831. )
  10832. throw T;
  10833. return [2, R];
  10834. }
  10835. });
  10836. });
  10837. };
  10838. };
  10839. },
  10840. function(t, e, i) {
  10841. "use strict";
  10842. var n,
  10843. g =
  10844. (this && this.__extends) ||
  10845. ((n = function(t, e) {
  10846. return (n =
  10847. Object.setPrototypeOf ||
  10848. ({ __proto__: [] } instanceof Array &&
  10849. function(t, e) {
  10850. t.__proto__ = e;
  10851. }) ||
  10852. function(t, e) {
  10853. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  10854. })(t, e);
  10855. }),
  10856. function(t, e) {
  10857. function i() {
  10858. this.constructor = t;
  10859. }
  10860. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  10861. });
  10862. Object.defineProperty(e, "__esModule", { value: !0 });
  10863. var A = i(2),
  10864. r = i(1),
  10865. o = i(61),
  10866. C = 0,
  10867. I = (function(t) {
  10868. function e(e) {
  10869. return t.call(this, e) || this;
  10870. }
  10871. return (
  10872. g(e, t),
  10873. (e.prototype.grentNode = function() {
  10874. var t = "pattern-" + ++C,
  10875. e = document.createElementNS(r.SVGURI, "g");
  10876. return (
  10877. (this.path = document.createElementNS(r.SVGURI, "path")),
  10878. (this.pattern = document.createElementNS(r.SVGURI, "pattern")),
  10879. (this.maping = document.createElementNS(r.SVGURI, "image")),
  10880. this.pattern.append(this.maping),
  10881. this.pattern.setAttribute("id", t),
  10882. this.pattern.setAttribute("patternUnits", "userSpaceOnUse"),
  10883. this.path.setAttribute("fill", "url(#" + t + ")"),
  10884. e.appendChild(this.path),
  10885. e.appendChild(this.pattern),
  10886. e
  10887. );
  10888. }),
  10889. (e.prototype.update = function() {
  10890. var t =
  10891. "M" +
  10892. this.points
  10893. .map(function(t) {
  10894. return " " + t.x + " " + t.y + " ";
  10895. })
  10896. .join("L") +
  10897. "z",
  10898. e = this.renderer.screenToRealPoint({ x: 30, y: 30 }),
  10899. i = this.renderer.screenToRealPoint({ x: 0, y: 0 }),
  10900. n = Math.abs(e.x - i.x),
  10901. g = Math.abs(e.y - i.y);
  10902. (this.icon && this.icon === this.firstIcon) ||
  10903. ((this.icon = o.getMaping(this.label)), (this.maping.href.baseVal = this.icon), (this.firstIcon = this.icon)),
  10904. this.maping.setAttribute("width", n.toString()),
  10905. this.maping.setAttribute("height", g.toString()),
  10906. this.pattern.setAttribute("width", n.toString()),
  10907. this.pattern.setAttribute("height", g.toString()),
  10908. this.path.setAttribute("d", t);
  10909. }),
  10910. e
  10911. );
  10912. })(A.CADElement);
  10913. e.default = I;
  10914. },
  10915. function(t, e, i) {
  10916. "use strict";
  10917. Object.defineProperty(e, "__esModule", { value: !0 });
  10918. var n = i(9),
  10919. g = [
  10920. {
  10921. name: "hall",
  10922. img:
  10923. "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAWQABAQEBAAAAAAAAAAAAAAAAAgADCAEBAQEBAAAAAAAAAAAAAAAAAAECAxABAAICAgMAAAAAAAAAAAAAAQACESExQVFxAxEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A6L+ihirm3U4tsrci68+4VV5U349wNfmqYs4t3CDfSwBZFDMoqoKZgOm0kFfawBYBHEoqgq4gOmkkC+gpmpi3UDK3IO/PuFVeUNePcDX5iGbGbdwj/9k=",
  10924. },
  10925. {
  10926. name: "room",
  10927. img:
  10928. "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAXAABAQEAAAAAAAAAAAAAAAAAAgAGAQEBAQAAAAAAAAAAAAAAAAAAAQYQAQABBAEEAwAAAAAAAAAAAAECABEhEgNRYYGRwSIUEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAwDAQACEQMRAD8A1rHnJu3Lsq/UnIfRWTrTlyfo1vBx1ZL8VKRcf6NbzcdSSfFKQSPOzNeXVE+rOS+mrRTVZusnLbJbwXqBCamU72b1FSmrle9m9AYKMHWRkvkt5L1UUxGZtIy2wW8NqBAamF7Xb1FSGrhO129AYCsDaTkvgt5bVUTLnZu3Fqi/YhJfZVgXJ+jW0DHRinzUhVx/o1tMx0Ir80hRJc5M14tlT7MJD7asH//Z",
  10929. },
  10930. {
  10931. name: "other",
  10932. img:
  10933. "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAUwABAQEAAAAAAAAAAAAAAAAAAQAHAQEBAAAAAAAAAAAAAAAAAAAAAxAAAwADAQAAAAAAAAAAAAAAAAERIUGBIhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A31P00yAK6BV0Bb9JICxamAbl4Bbl4A4tbAsWJAG7OgW7OgOLGgJL02wCOgUdAWvSaA//2Q==",
  10934. },
  10935. ],
  10936. A = [
  10937. { texts: n.i18n.t("modules.cad.hall_tests").split(","), mapping: "hall" },
  10938. { texts: n.i18n.t("modules.cad.room_tests").split(","), mapping: "room" },
  10939. { texts: n.i18n.t("modules.cad.other_tests").split(","), mapping: "other" },
  10940. ];
  10941. (e.labelTexts = A.reduce(function(t, e) {
  10942. return t.concat(e.texts);
  10943. }, [])),
  10944. (e.getMaping = function(t) {
  10945. var e = A.find(function(e) {
  10946. return ~e.texts.indexOf(t);
  10947. });
  10948. return g.find(function(t) {
  10949. return t.name === (e ? e.mapping : "other");
  10950. }).img;
  10951. });
  10952. },
  10953. function(t, e, i) {
  10954. "use strict";
  10955. i.r(e),
  10956. i.d(e, "default", function() {
  10957. return r;
  10958. });
  10959. var n = i(6),
  10960. g = i.n(n),
  10961. A = i(0);
  10962. function r(t, e) {
  10963. t = (function(t, e) {
  10964. let i = t.wall,
  10965. n = t.vertex;
  10966. for (let t = 0; t < n.length; t++) {
  10967. let e = n[t];
  10968. n.filter((t) => t !== e && ((t.x === e.x && t.y === e.y) || Object(A.lineDis)({ points: [t, e] }) < 0.1)).forEach((t) => {
  10969. i.forEach((i) => {
  10970. i.p1 === t.id && (i.p1 = e.id), i.p2 === t.id && (i.p2 = e.id);
  10971. }),
  10972. ~n.indexOf(t) && n.splice(n.indexOf(t), 1);
  10973. });
  10974. }
  10975. for (let e = 0; e < i.length; e++) {
  10976. let n = i[e];
  10977. n.p1 === n.p2 &&
  10978. (["case", "door", "slideDoor", "column", "groundCase", "bayCase"].forEach((e) => {
  10979. for (let i = 0; i < t[e] && t[e].length; i++) {
  10980. t[e][i].line === n.id && t[e].splice(i--, 1);
  10981. }
  10982. }),
  10983. i.splice(e--, 1));
  10984. }
  10985. for (let t = 0; t < i.length; t++) {
  10986. let e = i[t],
  10987. g = n.find(({ id: e }) => e === i[t].p1),
  10988. r = n.find(({ id: e }) => e === i[t].p2),
  10989. o = { points: [g, r] },
  10990. C = 0;
  10991. for (C = t + 1; C < i.length; C++) {
  10992. let t = i[C];
  10993. if (t === e) continue;
  10994. let I = n.find(({ id: t }) => t === i[C].p1),
  10995. s = n.find(({ id: t }) => t === i[C].p2);
  10996. if (g === I || g === s || r === I || r === s) continue;
  10997. let a = { points: [I, s] },
  10998. l = Object(A.segmentsIntr)(o, a);
  10999. if (
  11000. Object(A.lineDis)({ points: [g, l] }) < 0.1 ||
  11001. Object(A.lineDis)({ points: [r, l] }) < 0.1 ||
  11002. Object(A.lineDis)({ points: [I, l] }) < 0.1 ||
  11003. Object(A.lineDis)({ points: [s, l] }) < 0.1
  11004. )
  11005. continue;
  11006. if (!l) continue;
  11007. let u = Math.max(...n.map(({ id: t }) => t)) + 1,
  11008. c = Math.max(...i.map(({ id: t }) => t));
  11009. n.push({ ...l, id: u }),
  11010. i.splice(i.indexOf(e), 1, { p1: g.id, p2: u, id: ++c }, { p1: r.id, p2: u, id: ++c }),
  11011. i.splice(i.indexOf(t), 1, { p1: I.id, p2: u, id: ++c }, { p1: s.id, p2: u, id: ++c });
  11012. break;
  11013. }
  11014. C !== i.length && t--;
  11015. }
  11016. return t;
  11017. })(t);
  11018. let i = Date.now();
  11019. console.log("开始计算房间");
  11020. let n = [],
  11021. r = [],
  11022. o = [];
  11023. function C(t, e, i, g, A, o, I) {
  11024. for (let s = 0; s < t.length; ++s) {
  11025. if (A.indexOf(s) > -1 || o.indexOf(I) > -1) continue;
  11026. let a = t[s],
  11027. l = a.p1.id,
  11028. u = a.p2.id;
  11029. if (I == l || I == u) {
  11030. let c = JSON.parse(JSON.stringify(i)),
  11031. h = JSON.parse(JSON.stringify(g)),
  11032. p = JSON.parse(JSON.stringify(A)),
  11033. d = JSON.parse(JSON.stringify(o)),
  11034. f = I;
  11035. h.push(a.id), c.push(I), p.push(s), d.push(I), f == l ? (f = u) : f == u && (f = l), e == f ? (r.push(c), n.push(h)) : C(t, e, c, h, p, d, f);
  11036. }
  11037. }
  11038. }
  11039. function I(t, e, i, n) {
  11040. let g = [];
  11041. for (let t = 0; t < n.length; ++t) {
  11042. let e = n[t];
  11043. g.push(e);
  11044. }
  11045. let A = !0;
  11046. for (var r = 0; r < i.length; ++r) {
  11047. if (e.indexOf(t[r]) > -1) {
  11048. A = !1;
  11049. continue;
  11050. }
  11051. let i = t[r];
  11052. var C = i.p1,
  11053. I = i.p2,
  11054. a = { x: (C.x + I.x) / 2, y: (C.y + I.y) / 2 };
  11055. if (!(s(C, g) && s(I, g) && s(a, g))) return !1;
  11056. }
  11057. if (A) {
  11058. let i = [];
  11059. return i.push(e[0]), i.push(e[e.length - 1]), i.push(t[0]), i.push(t[t.length - 1]), o.push(i), !1;
  11060. }
  11061. return !0;
  11062. }
  11063. function s(t, e) {
  11064. for (var i = 0; i < e.length; ++i) {
  11065. if (a(t, e[i])) return !0;
  11066. }
  11067. return !!(function(t, e) {
  11068. for (var i = t.x, n = t.y, g = !1, A = 0, r = e.length - 1; A < e.length; r = A++) {
  11069. var o = e[A],
  11070. C = e[r],
  11071. I = o.x,
  11072. s = o.y,
  11073. a = C.x,
  11074. l = C.y;
  11075. s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g);
  11076. }
  11077. return g;
  11078. })(t, e);
  11079. }
  11080. function a(t, e) {
  11081. return t.x == e.x && t.y == e.y;
  11082. }
  11083. let l = t.wall.map((e) => ({ p1: t.vertex.find(({ id: t }) => e.p1 === t), p2: t.vertex.find(({ id: t }) => e.p2 === t), id: e.id }));
  11084. function u(t, e, i) {
  11085. return (t.x * e.y + e.x * i.y + i.x * t.y - e.x * t.y - i.x * e.y - t.x * i.y) / 2;
  11086. }
  11087. !(function(t) {
  11088. for (let e = 0; e < t.length; ++e) {
  11089. let i = [],
  11090. n = [],
  11091. g = [],
  11092. A = [];
  11093. for (let t = 0; t <= e; ++t) i.push(t);
  11094. let r = t[e],
  11095. o = r.p1.id,
  11096. I = r.p2.id;
  11097. g.push(I), A.push(r.id);
  11098. let s = null;
  11099. for (let r = e + 1; r < t.length; ++r) {
  11100. let e = t[r];
  11101. if (o == e.p1.id || o == e.p2.id) {
  11102. let a = JSON.parse(JSON.stringify(g)),
  11103. l = JSON.parse(JSON.stringify(A)),
  11104. u = JSON.parse(JSON.stringify(i)),
  11105. c = JSON.parse(JSON.stringify(n)),
  11106. h = o;
  11107. a.push(o), l.push(e.id), u.push(r), (s = h == e.p1.id ? e.p2.id : e.p1.id), c.push(h), C(t, I, a, l, u, c, s);
  11108. }
  11109. }
  11110. }
  11111. })(l),
  11112. (r = r.map((e) => e.map((e) => t.vertex.find(({ id: t }) => e === t)))),
  11113. (n = n.map((t) => t.map((t) => l.find(({ id: e }) => t === e)))),
  11114. (function() {
  11115. for (var t = 0; t < r.length; ++t)
  11116. for (var e = t + 1; e < r.length; ++e)
  11117. if (I(n[t], n[e], r[t], r[e])) r.splice(e, 1), n.splice(e, 1), --e;
  11118. else if (I(n[e], n[t], r[e], r[t])) {
  11119. r.splice(t, 1), n.splice(t, 1), --t, --e;
  11120. break;
  11121. }
  11122. })(),
  11123. (function() {
  11124. let t = [];
  11125. for (let e = 0; e < o.length; ++e) {
  11126. let i = o[e],
  11127. g = [];
  11128. (g[0] = null), (g[1] = null);
  11129. for (
  11130. let t = 0;
  11131. t < n.length &&
  11132. (i[0] == n[t][0] && i[1] == n[t][n[t].length - 1] ? (g[0] = t) : i[2] == n[t][0] && i[3] == n[t][n[t].length - 1] && (g[1] = t),
  11133. null == g[0] || null == g[1]);
  11134. ++t
  11135. );
  11136. null != g[0] && null != g[1] && t.push(g);
  11137. }
  11138. o = t;
  11139. })(),
  11140. (t.room = n.map((t, e) => ({ wall: t.map(({ id: t }) => t), ground: r[e] })));
  11141. let c = Date.now();
  11142. return (
  11143. console.warn("计算完毕,耗时" + (c - i)),
  11144. e &&
  11145. (window.testCenterPoints && e.processing.render.remove(...window.testCenterPoints),
  11146. (window.testCenterPoints = r.map((t) => {
  11147. let i = (function(t) {
  11148. for (var e = 0, i = 0, n = 0, g = t[1], A = 2; A < t.length; A++) {
  11149. var r = t[A],
  11150. o = u(t[0], g, r);
  11151. (n += o), (e += (t[0].x + g.x + r.x) * o), (i += (t[0].y + g.y + r.y) * o), (g = r);
  11152. }
  11153. return { x: e / n / 3, y: i / n / 3 };
  11154. })(t.map((t) => ({ ...t, y: -t.y }))),
  11155. n = "rgba(" + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + ",0.8)",
  11156. A = new g.a({ fillColor: n, storkeColor: n, x: i.x, y: i.y, renderer: e.processing.render });
  11157. return e.processing.render.push(A), A;
  11158. })),
  11159. window.testCenterPoints.forEach((i, g) => {
  11160. t.room[g].ground.map((t) => e.processing.points.find(({ id: e }) => e === t.id).ele.real),
  11161. n[g].map((t) => e.processing.lines.find(({ id: e }) => e === t.id).ele.real),
  11162. i.real,
  11163. r[g],
  11164. n[g];
  11165. console.log(r[g], r[g]);
  11166. })),
  11167. r
  11168. );
  11169. }
  11170. },
  11171. function(t, e, i) {
  11172. "use strict";
  11173. var n =
  11174. (this && this.__awaiter) ||
  11175. function(t, e, i, n) {
  11176. return new (i || (i = Promise))(function(g, A) {
  11177. function r(t) {
  11178. try {
  11179. C(n.next(t));
  11180. } catch (t) {
  11181. A(t);
  11182. }
  11183. }
  11184. function o(t) {
  11185. try {
  11186. C(n.throw(t));
  11187. } catch (t) {
  11188. A(t);
  11189. }
  11190. }
  11191. function C(t) {
  11192. var e;
  11193. t.done
  11194. ? g(t.value)
  11195. : ((e = t.value),
  11196. e instanceof i
  11197. ? e
  11198. : new i(function(t) {
  11199. t(e);
  11200. })).then(r, o);
  11201. }
  11202. C((n = n.apply(t, e || [])).next());
  11203. });
  11204. },
  11205. g =
  11206. (this && this.__generator) ||
  11207. function(t, e) {
  11208. var i,
  11209. n,
  11210. g,
  11211. A,
  11212. r = {
  11213. label: 0,
  11214. sent: function() {
  11215. if (1 & g[0]) throw g[1];
  11216. return g[1];
  11217. },
  11218. trys: [],
  11219. ops: [],
  11220. };
  11221. return (
  11222. (A = { next: o(0), throw: o(1), return: o(2) }),
  11223. "function" == typeof Symbol &&
  11224. (A[Symbol.iterator] = function() {
  11225. return this;
  11226. }),
  11227. A
  11228. );
  11229. function o(A) {
  11230. return function(o) {
  11231. return (function(A) {
  11232. if (i) throw new TypeError("Generator is already executing.");
  11233. for (; r; )
  11234. try {
  11235. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  11236. return g;
  11237. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  11238. case 0:
  11239. case 1:
  11240. g = A;
  11241. break;
  11242. case 4:
  11243. return r.label++, { value: A[1], done: !1 };
  11244. case 5:
  11245. r.label++, (n = A[1]), (A = [0]);
  11246. continue;
  11247. case 7:
  11248. (A = r.ops.pop()), r.trys.pop();
  11249. continue;
  11250. default:
  11251. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  11252. r = 0;
  11253. continue;
  11254. }
  11255. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  11256. r.label = A[1];
  11257. break;
  11258. }
  11259. if (6 === A[0] && r.label < g[1]) {
  11260. (r.label = g[1]), (g = A);
  11261. break;
  11262. }
  11263. if (g && r.label < g[2]) {
  11264. (r.label = g[2]), r.ops.push(A);
  11265. break;
  11266. }
  11267. g[2] && r.ops.pop(), r.trys.pop();
  11268. continue;
  11269. }
  11270. A = e.call(t, r);
  11271. } catch (t) {
  11272. (A = [6, t]), (n = 0);
  11273. } finally {
  11274. i = g = 0;
  11275. }
  11276. if (5 & A[0]) throw A[1];
  11277. return { value: A[0] ? A[1] : void 0, done: !0 };
  11278. })([A, o]);
  11279. };
  11280. }
  11281. },
  11282. A =
  11283. (this && this.__spreadArrays) ||
  11284. function() {
  11285. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  11286. var n = Array(t),
  11287. g = 0;
  11288. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  11289. return n;
  11290. };
  11291. Object.defineProperty(e, "__esModule", { value: !0 });
  11292. e.default = function(t, e) {
  11293. return n(void 0, void 0, void 0, function() {
  11294. var i, n, r, o, C, I, s, a, l, u;
  11295. return g(this, function(g) {
  11296. switch (g.label) {
  11297. case 0:
  11298. return (
  11299. (i = 3),
  11300. (n = t.processing.render.layer),
  11301. (r = t.processing.render.g),
  11302. (o = (t.processing.render.layer.offsetWidth || parseInt(getComputedStyle(t.processing.render.layer).width)) * i),
  11303. (C = (t.processing.render.layer.offsetHeight || parseInt(getComputedStyle(t.processing.render.layer).height)) * i),
  11304. (n.style.visibility = "hidden"),
  11305. t.processing.doors.forEach(function(t) {
  11306. t.ele.showStart = !1;
  11307. }),
  11308. (I = A(
  11309. t.processing.points,
  11310. t.processing.lines,
  11311. t.processing.doors,
  11312. t.processing.columns,
  11313. t.processing.cases,
  11314. t.processing.bayCases,
  11315. t.processing.slideDoors,
  11316. t.processing.groundCases,
  11317. t.processing.furnFlues,
  11318. t.processing.furnColumns
  11319. )).length
  11320. ? [
  11321. 4,
  11322. Promise.all(
  11323. I.map(function(t) {
  11324. var e = t.ele;
  11325. return new Promise(function(t) {
  11326. return e.nextTick(t);
  11327. });
  11328. })
  11329. ),
  11330. ]
  11331. : [2]
  11332. );
  11333. case 1:
  11334. return g.sent(), (s = n.querySelector(".sign")), [4, t.hideSign()];
  11335. case 2:
  11336. g.sent(), (g.label = 3);
  11337. case 3:
  11338. return (
  11339. g.trys.push([3, 5, , 6]),
  11340. [
  11341. 4,
  11342. t.screenshot({
  11343. width: o,
  11344. height: C,
  11345. bgColor: "rgba(0,0,0,0)",
  11346. padding: t.padding * i,
  11347. showGauge: !1,
  11348. lineWidth: 2,
  11349. showDire: !1,
  11350. showTags: !1,
  11351. showDoorStart: !1,
  11352. errreturn: !0,
  11353. }),
  11354. ]
  11355. );
  11356. case 4:
  11357. for (a = g.sent().file, n.style.backgroundImage = "url(" + URL.createObjectURL(a) + ")", l = 0; l < r.children.length; l++)
  11358. r.children[l] !== s && r.removeChild(r.children[l--]);
  11359. return [3, 6];
  11360. case 5:
  11361. return (
  11362. (u = g.sent()),
  11363. console.error(u),
  11364. (t.padding = t.padding * i),
  11365. (t.processing.render.layer.style.transformOrigin = "left top"),
  11366. (t.processing.render.layer.style.transform = "scale(" + 1 / i + ")"),
  11367. t.setDefaultSignStyle({ r: 5 * i }),
  11368. t.adapt(t.processing.data, o, C),
  11369. [3, 6]
  11370. );
  11371. case 6:
  11372. return (s.style.display = "block"), (n.style.visibility = "visible"), [4, t.showSign()];
  11373. case 7:
  11374. return g.sent(), e && e(), [2];
  11375. }
  11376. });
  11377. });
  11378. };
  11379. },
  11380. ]);