10.js 215 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335
  1. (window.webpackJsonpNVIV = window.webpackJsonpNVIV || []).push([[10], {
  2. 1670: function(e, t, n) {
  3. "use strict";
  4. Object.defineProperty(t, "__esModule", {
  5. value: !0
  6. });
  7. var o = n(0)
  8. , r = (n(1928),
  9. n(1928))
  10. , i = n(125);
  11. o.enableProdMode(),
  12. t.bootstrapApp = function() {
  13. return i.platformBrowser().bootstrapModule(r.MainModule)
  14. }
  15. },
  16. 1692: function(e, t, n) {
  17. "use strict";
  18. Object.defineProperty(t, "__esModule", {
  19. value: !0
  20. });
  21. var o = n(0)
  22. , r = n(210)
  23. , i = n(0)
  24. , a = function() {
  25. function e(e, t) {
  26. this.renderer = e,
  27. this.el = t
  28. }
  29. return e.prototype.ngAfterViewInit = function() {
  30. var e = this.el.nativeElement.attributes.getNamedItem("src").value
  31. , t = r.makeUrlAbsolute(e);
  32. this.renderer.setAttribute(this.el.nativeElement, "src", t)
  33. }
  34. ,
  35. e.ɵfac = function(t) {
  36. return new (t || e)(i.ɵɵdirectiveInject(i.Renderer2),i.ɵɵdirectiveInject(i.ElementRef))
  37. }
  38. ,
  39. e.ɵdir = i.ɵɵdefineDirective({
  40. type: e,
  41. selectors: [["img"]]
  42. }),
  43. e
  44. }();
  45. t.AddBaseUrlDirective = a,
  46. i.ɵsetClassMetadata(a, [{
  47. type: o.Directive,
  48. args: [{
  49. selector: "img"
  50. }]
  51. }], (function() {
  52. return [{
  53. type: i.Renderer2
  54. }, {
  55. type: i.ElementRef
  56. }]
  57. }
  58. ), null)
  59. },
  60. 1693: function(e, t, n) {
  61. "use strict";
  62. Object.defineProperty(t, "__esModule", {
  63. value: !0
  64. });
  65. var o = n(8)
  66. , r = n(230)
  67. , i = n(0)
  68. , a = function() {
  69. function e(e, t, n) {
  70. this.loader = e,
  71. this.injector = t,
  72. this.vcr = n
  73. }
  74. return e.prototype.ngOnInit = function() {
  75. this.loadComponent().catch(o.handleWarning)
  76. }
  77. ,
  78. e.prototype.loadComponent = function() {
  79. var e = this;
  80. return r.runWithBaseHref((function() {
  81. return e.loader.load(e.modulePath).then((function(t) {
  82. var n = t.create(e.injector)
  83. , o = n.injector.get(e.componentId)
  84. , r = n.componentFactoryResolver.resolveComponentFactory(o);
  85. return e.vcr.createComponent(r)
  86. }
  87. ))
  88. }
  89. ))
  90. }
  91. ,
  92. e.ɵfac = function(t) {
  93. return new (t || e)(i.ɵɵdirectiveInject(i.NgModuleFactoryLoader),i.ɵɵdirectiveInject(i.Injector),i.ɵɵdirectiveInject(i.ViewContainerRef))
  94. }
  95. ,
  96. e.ɵdir = i.ɵɵdefineDirective({
  97. type: e
  98. }),
  99. e
  100. }();
  101. t.AbstractLazyComponent = a
  102. },
  103. 1696: function(e, t, n) {
  104. "use strict";
  105. Object.defineProperty(t, "__esModule", {
  106. value: !0
  107. });
  108. var o, r = n(0), i = n(168), a = n(440), s = n(3), c = n(625), l = n(1707), u = n(0), p = n(440), d = n(3), h = n(1689), f = n(625);
  109. function m(e, t) {
  110. if (1 & e && (u.ɵɵelementStart(0, "p"),
  111. u.ɵɵtext(1),
  112. u.ɵɵelementEnd()),
  113. 2 & e) {
  114. var n = u.ɵɵnextContext();
  115. u.ɵɵadvance(1),
  116. u.ɵɵtextInterpolate(n.bodyText)
  117. }
  118. }
  119. function g(e, t) {
  120. 1 & e && u.ɵɵelementContainer(0)
  121. }
  122. function v(e, t) {
  123. if (1 & e) {
  124. var n = u.ɵɵgetCurrentView();
  125. u.ɵɵelementStart(0, "button", 6),
  126. u.ɵɵlistener("click", (function() {
  127. return u.ɵɵrestoreView(n),
  128. u.ɵɵnextContext().cancel()
  129. }
  130. )),
  131. u.ɵɵtext(1),
  132. u.ɵɵelementEnd()
  133. }
  134. if (2 & e) {
  135. var o = u.ɵɵnextContext();
  136. u.ɵɵadvance(1),
  137. u.ɵɵtextInterpolate1(" ", o.cancelButtonText, " ")
  138. }
  139. }
  140. function y(e, t) {
  141. if (1 & e) {
  142. var n = u.ɵɵgetCurrentView();
  143. u.ɵɵelementStart(0, "button", 6),
  144. u.ɵɵlistener("click", (function() {
  145. return u.ɵɵrestoreView(n),
  146. u.ɵɵnextContext().decline()
  147. }
  148. )),
  149. u.ɵɵtext(1),
  150. u.ɵɵelementEnd()
  151. }
  152. if (2 & e) {
  153. var o = u.ɵɵnextContext();
  154. u.ɵɵadvance(1),
  155. u.ɵɵtextInterpolate1(" ", o.declineButtonText, " ")
  156. }
  157. }
  158. function M(e, t) {
  159. if (1 & e) {
  160. var n = u.ɵɵgetCurrentView();
  161. u.ɵɵelementStart(0, "button", 7),
  162. u.ɵɵlistener("click", (function() {
  163. return u.ɵɵrestoreView(n),
  164. u.ɵɵnextContext().confirm()
  165. }
  166. )),
  167. u.ɵɵtext(1),
  168. u.ɵɵelementEnd()
  169. }
  170. if (2 & e) {
  171. var o = u.ɵɵnextContext();
  172. u.ɵɵproperty("color", o.confirmButtonColor),
  173. u.ɵɵadvance(1),
  174. u.ɵɵtextInterpolate1(" ", o.confirmButtonText, " ")
  175. }
  176. }
  177. !function(e) {
  178. e[e.CONFIRMED = 0] = "CONFIRMED",
  179. e[e.DECLINED = 1] = "DECLINED",
  180. e[e.CANCELLED = 2] = "CANCELLED"
  181. }(o = t.AlertDialogResult || (t.AlertDialogResult = {}));
  182. var C = function() {
  183. function e(e, t) {
  184. var n;
  185. this.dialogRef = e,
  186. this.data = t,
  187. this.confirmButtonColor = "primary",
  188. this.data && (this.title = t.title,
  189. this.confirmButtonColor = null !== (n = t.confirmButtonColor) && void 0 !== n ? n : "primary",
  190. t.body instanceof r.TemplateRef ? this.bodyTemplate = t.body : "string" == typeof t.body && (this.bodyText = t.body),
  191. !1 !== t.cancelButton && (this.cancelButtonText = t.cancelButton ? "" + t.cancelButton : i.translate("Cancel")),
  192. !1 !== t.declineButton && (this.declineButtonText = t.declineButton ? "" + t.declineButton : i.translate("Decline")),
  193. !1 !== t.confirmButton && (this.confirmButtonText = t.confirmButton ? "" + t.confirmButton : i.translate("Confirm")))
  194. }
  195. return e.prototype.beforeUnload = function(e) {
  196. e.returnValue = i.translate("Do you want to navigate away from the current page?")
  197. }
  198. ,
  199. e.prototype.confirm = function() {
  200. this.dialogRef.close(o.CONFIRMED)
  201. }
  202. ,
  203. e.prototype.decline = function() {
  204. this.dialogRef.close(o.DECLINED)
  205. }
  206. ,
  207. e.prototype.cancel = function() {
  208. this.dialogRef.close(o.CANCELLED)
  209. }
  210. ,
  211. e.ɵfac = function(t) {
  212. return new (t || e)(u.ɵɵdirectiveInject(p.MatDialogRef),u.ɵɵdirectiveInject(a.MAT_DIALOG_DATA))
  213. }
  214. ,
  215. e.ɵcmp = u.ɵɵdefineComponent({
  216. type: e,
  217. selectors: [["alert-dialog"]],
  218. hostBindings: function(e, t) {
  219. 1 & e && u.ɵɵlistener("beforeunload", (function(e) {
  220. return t.beforeUnload(e)
  221. }
  222. ), !1, u.ɵɵresolveWindow)
  223. },
  224. decls: 10,
  225. vars: 6,
  226. consts: [["mat-dialog-title", ""], [4, "ngIf"], [4, "ngTemplateOutlet"], ["mat-stroked-button", "", 3, "click", 4, "ngIf"], ["fxFlex", "1 1 auto"], ["mat-flat-button", "", 3, "color", "click", 4, "ngIf"], ["mat-stroked-button", "", 3, "click"], ["mat-flat-button", "", 3, "color", "click"]],
  227. template: function(e, t) {
  228. 1 & e && (u.ɵɵelementStart(0, "h4", 0),
  229. u.ɵɵtext(1),
  230. u.ɵɵelementEnd(),
  231. u.ɵɵelementStart(2, "mat-dialog-content"),
  232. u.ɵɵtemplate(3, m, 2, 1, "p", 1),
  233. u.ɵɵtemplate(4, g, 1, 0, "ng-container", 2),
  234. u.ɵɵelementEnd(),
  235. u.ɵɵelementStart(5, "mat-dialog-actions"),
  236. u.ɵɵtemplate(6, v, 2, 1, "button", 3),
  237. u.ɵɵelement(7, "div", 4),
  238. u.ɵɵtemplate(8, y, 2, 1, "button", 3),
  239. u.ɵɵtemplate(9, M, 2, 2, "button", 5),
  240. u.ɵɵelementEnd()),
  241. 2 & e && (u.ɵɵadvance(1),
  242. u.ɵɵtextInterpolate(t.title),
  243. u.ɵɵadvance(2),
  244. u.ɵɵproperty("ngIf", t.bodyText),
  245. u.ɵɵadvance(1),
  246. u.ɵɵproperty("ngTemplateOutlet", t.bodyTemplate),
  247. u.ɵɵadvance(2),
  248. u.ɵɵproperty("ngIf", t.cancelButtonText),
  249. u.ɵɵadvance(2),
  250. u.ɵɵproperty("ngIf", t.declineButtonText),
  251. u.ɵɵadvance(1),
  252. u.ɵɵproperty("ngIf", t.confirmButtonText))
  253. },
  254. directives: [p.MatDialogTitle, p.MatDialogContent, d.NgIf, d.NgTemplateOutlet, p.MatDialogActions, h.DefaultFlexDirective, f.MatButton],
  255. encapsulation: 2
  256. }),
  257. e
  258. }();
  259. t.AlertDialogComponent = C,
  260. u.ɵsetClassMetadata(C, [{
  261. type: r.Component,
  262. args: [{
  263. selector: "alert-dialog",
  264. templateUrl: "./AlertDialog.ng.html"
  265. }]
  266. }], (function() {
  267. return [{
  268. type: p.MatDialogRef
  269. }, {
  270. type: void 0,
  271. decorators: [{
  272. type: r.Inject,
  273. args: [a.MAT_DIALOG_DATA]
  274. }]
  275. }]
  276. }
  277. ), {
  278. beforeUnload: [{
  279. type: r.HostListener,
  280. args: ["window:beforeunload", ["$event"]]
  281. }]
  282. });
  283. var w = function() {
  284. function e() {}
  285. return e.ɵmod = u.ɵɵdefineNgModule({
  286. type: e
  287. }),
  288. e.ɵinj = u.ɵɵdefineInjector({
  289. factory: function(t) {
  290. return new (t || e)
  291. },
  292. imports: [[s.CommonModule, l.FlexLayoutModule, a.MatDialogModule, c.MatButtonModule]]
  293. }),
  294. e
  295. }();
  296. t.AlertDialogModule = w,
  297. ("undefined" == typeof ngJitMode || ngJitMode) && u.ɵɵsetNgModuleScope(w, {
  298. declarations: [C],
  299. imports: [s.CommonModule, l.FlexLayoutModule, a.MatDialogModule, c.MatButtonModule],
  300. exports: [C]
  301. }),
  302. u.ɵsetClassMetadata(w, [{
  303. type: r.NgModule,
  304. args: [{
  305. imports: [s.CommonModule, l.FlexLayoutModule, a.MatDialogModule, c.MatButtonModule],
  306. declarations: [C],
  307. exports: [C]
  308. }]
  309. }], null, null)
  310. },
  311. 1697: function(e, t, n) {
  312. "use strict";
  313. Object.defineProperty(t, "__esModule", {
  314. value: !0
  315. });
  316. var o = n(0)
  317. , r = n(624)
  318. , i = n(2)
  319. , a = n(6)
  320. , s = n(3)
  321. , c = n(0)
  322. , l = function() {
  323. function e(e) {
  324. this.ElementRef = e,
  325. this.valueChange = new o.EventEmitter,
  326. this.disabled = !1,
  327. this.ident = void 0
  328. }
  329. return e.prototype.ngOnInit = function() {
  330. this.ident = this.ElementRef.nativeElement.getAttribute("id"),
  331. this.ElementRef.nativeElement.setAttribute("id", void 0)
  332. }
  333. ,
  334. e.prototype.registerOnChange = function(e) {
  335. this.changeFn = e
  336. }
  337. ,
  338. e.prototype.registerOnTouched = function(e) {
  339. this.touchFn = e
  340. }
  341. ,
  342. e.prototype.setDisabledState = function(e) {
  343. this.disabled = e
  344. }
  345. ,
  346. e.prototype.writeValue = function(e) {
  347. this.value = e,
  348. this.valueChange.emit(this.value),
  349. this.changeFn && this.changeFn(this.value)
  350. }
  351. ,
  352. e.prototype.onInputTouched = function() {
  353. this.disabled || (this.touchFn && this.touchFn(),
  354. this.writeValue(!this.value))
  355. }
  356. ,
  357. e.ɵfac = function(t) {
  358. return new (t || e)(c.ɵɵdirectiveInject(c.ElementRef))
  359. }
  360. ,
  361. e.ɵcmp = c.ɵɵdefineComponent({
  362. type: e,
  363. selectors: [["toggle-switch"]],
  364. inputs: {
  365. title: "title",
  366. value: "value"
  367. },
  368. outputs: {
  369. valueChange: "valueChange"
  370. },
  371. features: [c.ɵɵProvidersFeature([{
  372. provide: r.NG_VALUE_ACCESSOR,
  373. useExisting: o.forwardRef((function() {
  374. return e
  375. }
  376. )),
  377. multi: !0
  378. }])],
  379. decls: 3,
  380. vars: 3,
  381. consts: [[1, "toggle-switch", 3, "title"], ["type", "checkbox", 3, "id", "checked", "click"], [1, "slider"]],
  382. template: function(e, t) {
  383. 1 & e && (c.ɵɵelementStart(0, "label", 0),
  384. c.ɵɵelementStart(1, "input", 1),
  385. c.ɵɵlistener("click", (function() {
  386. return t.onInputTouched()
  387. }
  388. )),
  389. c.ɵɵelementEnd(),
  390. c.ɵɵelement(2, "span", 2),
  391. c.ɵɵelementEnd()),
  392. 2 & e && (c.ɵɵproperty("title", t.title),
  393. c.ɵɵadvance(1),
  394. c.ɵɵproperty("id", t.ident)("checked", t.value))
  395. },
  396. styles: ['[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center}.toggle-switch[_ngcontent-%COMP%], [_nghost-%COMP%]{width:30px;height:17px}.toggle-switch[_ngcontent-%COMP%]{position:relative;display:inline-block;margin:0}.toggle-switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.toggle-switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#3398c7}.toggle-switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #3398c7}.toggle-switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{-webkit-transform:translateX(13px);-ms-transform:translateX(13px);transform:translateX(13px)}.toggle-switch[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;border-radius:17px}.toggle-switch[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%], .toggle-switch[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:before{position:absolute;-webkit-transition:.4s;transition:.4s}.toggle-switch[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:before{content:"";height:13px;width:13px;left:2px;bottom:2px;background-color:#fff;border-radius:50%}']
  397. }),
  398. e
  399. }();
  400. t.ToggleSwitchComponent = l,
  401. c.ɵsetClassMetadata(l, [{
  402. type: o.Component,
  403. args: [{
  404. selector: "toggle-switch",
  405. templateUrl: "./ToggleSwitch.ng.html",
  406. styleUrls: ["./ToggleSwitch.ng.scss"],
  407. providers: [{
  408. provide: r.NG_VALUE_ACCESSOR,
  409. useExisting: o.forwardRef((function() {
  410. return l
  411. }
  412. )),
  413. multi: !0
  414. }]
  415. }]
  416. }], (function() {
  417. return [{
  418. type: c.ElementRef
  419. }]
  420. }
  421. ), {
  422. title: [{
  423. type: o.Input
  424. }],
  425. value: [{
  426. type: o.Input
  427. }],
  428. valueChange: [{
  429. type: o.Output
  430. }]
  431. }),
  432. i.module("IVWebApp").directive("toggleSwitch", a.downgradeComponent({
  433. component: l
  434. }));
  435. var u = function() {
  436. function e() {}
  437. return e.ɵmod = c.ɵɵdefineNgModule({
  438. type: e
  439. }),
  440. e.ɵinj = c.ɵɵdefineInjector({
  441. factory: function(t) {
  442. return new (t || e)
  443. },
  444. imports: [[s.CommonModule]]
  445. }),
  446. e
  447. }();
  448. t.ToggleSwitchModule = u,
  449. ("undefined" == typeof ngJitMode || ngJitMode) && c.ɵɵsetNgModuleScope(u, {
  450. declarations: [l],
  451. imports: [s.CommonModule],
  452. exports: [l]
  453. }),
  454. c.ɵsetClassMetadata(u, [{
  455. type: o.NgModule,
  456. args: [{
  457. imports: [s.CommonModule],
  458. declarations: [l],
  459. exports: [l]
  460. }]
  461. }], null, null)
  462. },
  463. 1700: function(e, t, n) {
  464. "use strict";
  465. Object.defineProperty(t, "__esModule", {
  466. value: !0
  467. });
  468. var o = n(0)
  469. , r = (n(130),
  470. n(0))
  471. , i = n(130)
  472. , a = function() {
  473. function e(e) {
  474. this.UoMService = e
  475. }
  476. return e.prototype.transform = function(e, t, n, o, r) {
  477. return void 0 === n && (n = 2),
  478. void 0 === o && (o = 0),
  479. void 0 === r && (r = !1),
  480. this.UoMService.convert(e, t, n, void 0, o, r)
  481. }
  482. ,
  483. e.ɵfac = function(t) {
  484. return new (t || e)(r.ɵɵdirectiveInject(i.UoMService))
  485. }
  486. ,
  487. e.ɵpipe = r.ɵɵdefinePipe({
  488. name: "uom",
  489. type: e,
  490. pure: !0
  491. }),
  492. e
  493. }();
  494. t.UoMPipe = a,
  495. r.ɵsetClassMetadata(a, [{
  496. type: o.Pipe,
  497. args: [{
  498. name: "uom"
  499. }]
  500. }], (function() {
  501. return [{
  502. type: i.UoMService
  503. }]
  504. }
  505. ), null)
  506. },
  507. 1704: function(e, t, n) {
  508. "use strict";
  509. Object.defineProperty(t, "__esModule", {
  510. value: !0
  511. });
  512. var o = n(0)
  513. , r = (n(17),
  514. n(0))
  515. , i = n(17)
  516. , a = function() {
  517. function e(e) {
  518. this.ViewService = e,
  519. this.focusWhitelist = ["input", "select", "textarea"]
  520. }
  521. return e.prototype.ngDoCheck = function() {
  522. var e = document.activeElement
  523. , t = this.ViewService.mainView.divContainer.container;
  524. e !== t && -1 === this.focusWhitelist.indexOf(e.localName) && t.focus()
  525. }
  526. ,
  527. e.ɵfac = function(t) {
  528. return new (t || e)(r.ɵɵdirectiveInject(i.ViewService))
  529. }
  530. ,
  531. e.ɵdir = r.ɵɵdefineDirective({
  532. type: e,
  533. selectors: [["", "redirectFocusToScene", ""]]
  534. }),
  535. e
  536. }();
  537. t.RedirectFocusToMainViewDirective = a,
  538. r.ɵsetClassMetadata(a, [{
  539. type: o.Directive,
  540. args: [{
  541. selector: "[redirectFocusToScene]"
  542. }]
  543. }], (function() {
  544. return [{
  545. type: i.ViewService
  546. }]
  547. }
  548. ), null)
  549. },
  550. 1705: function(e, t, n) {
  551. "use strict";
  552. Object.defineProperty(t, "__esModule", {
  553. value: !0
  554. });
  555. var o = n(0)
  556. , r = n(2)
  557. , i = n(6)
  558. , a = n(0)
  559. , s = function() {
  560. function e() {
  561. this.zoomIn = new o.EventEmitter,
  562. this.zoomOut = new o.EventEmitter
  563. }
  564. return e.prototype.fireZoomIn = function(e) {
  565. this.zoomIn.emit()
  566. }
  567. ,
  568. e.prototype.fireZoomOut = function(e) {
  569. this.zoomOut.emit()
  570. }
  571. ,
  572. e.ɵfac = function(t) {
  573. return new (t || e)
  574. }
  575. ,
  576. e.ɵcmp = a.ɵɵdefineComponent({
  577. type: e,
  578. selectors: [["zoom-control"]],
  579. outputs: {
  580. zoomIn: "zoomIn",
  581. zoomOut: "zoomOut"
  582. },
  583. decls: 5,
  584. vars: 0,
  585. consts: [[1, "btn-group-vertical", 3, "dblclick"], ["type", "button", 1, "btn", "btn-default", 3, "click"], [1, "fa", "fa-plus"], [1, "fa", "fa-minus"]],
  586. template: function(e, t) {
  587. 1 & e && (a.ɵɵelementStart(0, "div", 0),
  588. a.ɵɵlistener("dblclick", (function(e) {
  589. return e.stopPropagation()
  590. }
  591. )),
  592. a.ɵɵelementStart(1, "button", 1),
  593. a.ɵɵlistener("click", (function(e) {
  594. return t.fireZoomIn(e)
  595. }
  596. )),
  597. a.ɵɵelement(2, "i", 2),
  598. a.ɵɵelementEnd(),
  599. a.ɵɵelementStart(3, "button", 1),
  600. a.ɵɵlistener("click", (function(e) {
  601. return t.fireZoomOut(e)
  602. }
  603. )),
  604. a.ɵɵelement(4, "i", 3),
  605. a.ɵɵelementEnd(),
  606. a.ɵɵelementEnd())
  607. },
  608. styles: ["div[_ngcontent-%COMP%]{width:100%}div[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:none}"]
  609. }),
  610. e
  611. }();
  612. t.ZoomControlComponent = s,
  613. a.ɵsetClassMetadata(s, [{
  614. type: o.Component,
  615. args: [{
  616. selector: "zoom-control",
  617. templateUrl: "ZoomControl.ng.html",
  618. styleUrls: ["ZoomControl.ng.scss"]
  619. }]
  620. }], null, {
  621. zoomIn: [{
  622. type: o.Output
  623. }],
  624. zoomOut: [{
  625. type: o.Output
  626. }]
  627. }),
  628. r.module("IVWebApp").directive("zoomControl", i.downgradeComponent({
  629. component: s
  630. }))
  631. },
  632. 1711: function(e, t, n) {
  633. "use strict";
  634. Object.defineProperty(t, "__esModule", {
  635. value: !0
  636. });
  637. var o = n(0)
  638. , r = n(1692)
  639. , i = n(3)
  640. , a = n(1700)
  641. , s = n(1704)
  642. , c = n(1697)
  643. , l = n(1696)
  644. , u = n(1705)
  645. , p = n(0)
  646. , d = function() {
  647. function e() {}
  648. return e.ɵmod = p.ɵɵdefineNgModule({
  649. type: e
  650. }),
  651. e.ɵinj = p.ɵɵdefineInjector({
  652. factory: function(t) {
  653. return new (t || e)
  654. },
  655. providers: [],
  656. imports: [[i.CommonModule, c.ToggleSwitchModule, l.AlertDialogModule]]
  657. }),
  658. e
  659. }();
  660. t.SharedModule = d,
  661. ("undefined" == typeof ngJitMode || ngJitMode) && p.ɵɵsetNgModuleScope(d, {
  662. declarations: [r.AddBaseUrlDirective, s.RedirectFocusToMainViewDirective, a.UoMPipe, u.ZoomControlComponent],
  663. imports: [i.CommonModule, c.ToggleSwitchModule, l.AlertDialogModule],
  664. exports: [r.AddBaseUrlDirective, s.RedirectFocusToMainViewDirective, a.UoMPipe, u.ZoomControlComponent]
  665. }),
  666. p.ɵsetClassMetadata(d, [{
  667. type: o.NgModule,
  668. args: [{
  669. imports: [i.CommonModule, c.ToggleSwitchModule, l.AlertDialogModule],
  670. declarations: [r.AddBaseUrlDirective, s.RedirectFocusToMainViewDirective, a.UoMPipe, u.ZoomControlComponent],
  671. entryComponents: [u.ZoomControlComponent],
  672. exports: [r.AddBaseUrlDirective, s.RedirectFocusToMainViewDirective, a.UoMPipe, u.ZoomControlComponent],
  673. providers: []
  674. }]
  675. }], null, null)
  676. },
  677. 1849: function(e, t, n) {
  678. "use strict";
  679. var o;
  680. Object.defineProperty(t, "__esModule", {
  681. value: !0
  682. }),
  683. function(e) {
  684. e[e.LOADING = 0] = "LOADING",
  685. e[e.LOADED = 1] = "LOADED",
  686. e[e.PENDING = 2] = "PENDING"
  687. }(o = t.Status || (t.Status = {}));
  688. var r = function(e, t, n, r) {
  689. this.name = e,
  690. this.active = t,
  691. this.available = n,
  692. this.path = r,
  693. this.status = o.PENDING
  694. };
  695. t.DatasetState = r
  696. },
  697. 1860: function(e, t, n) {
  698. "use strict";
  699. function o(e) {
  700. this.content = [],
  701. this.scoreFunction = e
  702. }
  703. n.r(t),
  704. n.d(t, "BinaryHeap", (function() {
  705. return o
  706. }
  707. )),
  708. o.prototype = {
  709. push: function(e) {
  710. this.content.push(e),
  711. this.bubbleUp(this.content.length - 1)
  712. },
  713. empty: function() {
  714. return 0 === this.size()
  715. },
  716. clean: function() {
  717. this.content = []
  718. },
  719. peek: function() {
  720. return this.content[0]
  721. },
  722. pop: function() {
  723. var e = this.content[0]
  724. , t = this.content.pop();
  725. return this.content.length > 0 && (this.content[0] = t,
  726. this.sinkDown(0)),
  727. e
  728. },
  729. remove: function(e) {
  730. for (var t = this.content.length, n = 0; n < t; n++)
  731. if (this.content[n] == e) {
  732. var o = this.content.pop();
  733. if (n == t - 1)
  734. break;
  735. this.content[n] = o,
  736. this.bubbleUp(n),
  737. this.sinkDown(n);
  738. break
  739. }
  740. },
  741. size: function() {
  742. return this.content.length
  743. },
  744. bubbleUp: function(e) {
  745. for (var t = this.content[e], n = this.scoreFunction(t); e > 0; ) {
  746. var o = Math.floor((e + 1) / 2) - 1
  747. , r = this.content[o];
  748. if (n >= this.scoreFunction(r))
  749. break;
  750. this.content[o] = t,
  751. this.content[e] = r,
  752. e = o
  753. }
  754. },
  755. sinkDown: function(e) {
  756. for (var t = this.content.length, n = this.content[e], o = this.scoreFunction(n); ; ) {
  757. var r = 2 * (e + 1)
  758. , i = r - 1
  759. , a = null;
  760. if (i < t) {
  761. var s = this.content[i]
  762. , c = this.scoreFunction(s);
  763. c < o && (a = i)
  764. }
  765. if (r < t) {
  766. var l = this.content[r];
  767. this.scoreFunction(l) < (null == a ? o : c) && (a = r)
  768. }
  769. if (null == a)
  770. break;
  771. this.content[e] = this.content[a],
  772. this.content[a] = n,
  773. e = a
  774. }
  775. }
  776. }
  777. },
  778. 1867: function(e, t, n) {
  779. var o = {
  780. "./af": 1713,
  781. "./af.js": 1713,
  782. "./ar": 1714,
  783. "./ar-dz": 1715,
  784. "./ar-dz.js": 1715,
  785. "./ar-kw": 1716,
  786. "./ar-kw.js": 1716,
  787. "./ar-ly": 1717,
  788. "./ar-ly.js": 1717,
  789. "./ar-ma": 1718,
  790. "./ar-ma.js": 1718,
  791. "./ar-sa": 1719,
  792. "./ar-sa.js": 1719,
  793. "./ar-tn": 1720,
  794. "./ar-tn.js": 1720,
  795. "./ar.js": 1714,
  796. "./az": 1721,
  797. "./az.js": 1721,
  798. "./be": 1722,
  799. "./be.js": 1722,
  800. "./bg": 1723,
  801. "./bg.js": 1723,
  802. "./bm": 1724,
  803. "./bm.js": 1724,
  804. "./bn": 1725,
  805. "./bn.js": 1725,
  806. "./bo": 1726,
  807. "./bo.js": 1726,
  808. "./br": 1727,
  809. "./br.js": 1727,
  810. "./bs": 1728,
  811. "./bs.js": 1728,
  812. "./ca": 1729,
  813. "./ca.js": 1729,
  814. "./cs": 1730,
  815. "./cs.js": 1730,
  816. "./cv": 1731,
  817. "./cv.js": 1731,
  818. "./cy": 1732,
  819. "./cy.js": 1732,
  820. "./da": 1733,
  821. "./da.js": 1733,
  822. "./de": 1734,
  823. "./de-at": 1735,
  824. "./de-at.js": 1735,
  825. "./de-ch": 1736,
  826. "./de-ch.js": 1736,
  827. "./de.js": 1734,
  828. "./dv": 1737,
  829. "./dv.js": 1737,
  830. "./el": 1738,
  831. "./el.js": 1738,
  832. "./en-au": 1739,
  833. "./en-au.js": 1739,
  834. "./en-ca": 1740,
  835. "./en-ca.js": 1740,
  836. "./en-gb": 1741,
  837. "./en-gb.js": 1741,
  838. "./en-ie": 1742,
  839. "./en-ie.js": 1742,
  840. "./en-il": 1743,
  841. "./en-il.js": 1743,
  842. "./en-in": 1744,
  843. "./en-in.js": 1744,
  844. "./en-nz": 1745,
  845. "./en-nz.js": 1745,
  846. "./en-sg": 1746,
  847. "./en-sg.js": 1746,
  848. "./eo": 1747,
  849. "./eo.js": 1747,
  850. "./es": 1748,
  851. "./es-do": 1749,
  852. "./es-do.js": 1749,
  853. "./es-us": 1750,
  854. "./es-us.js": 1750,
  855. "./es.js": 1748,
  856. "./et": 1751,
  857. "./et.js": 1751,
  858. "./eu": 1752,
  859. "./eu.js": 1752,
  860. "./fa": 1753,
  861. "./fa.js": 1753,
  862. "./fi": 1754,
  863. "./fi.js": 1754,
  864. "./fil": 1755,
  865. "./fil.js": 1755,
  866. "./fo": 1756,
  867. "./fo.js": 1756,
  868. "./fr": 1757,
  869. "./fr-ca": 1758,
  870. "./fr-ca.js": 1758,
  871. "./fr-ch": 1759,
  872. "./fr-ch.js": 1759,
  873. "./fr.js": 1757,
  874. "./fy": 1760,
  875. "./fy.js": 1760,
  876. "./ga": 1761,
  877. "./ga.js": 1761,
  878. "./gd": 1762,
  879. "./gd.js": 1762,
  880. "./gl": 1763,
  881. "./gl.js": 1763,
  882. "./gom-deva": 1764,
  883. "./gom-deva.js": 1764,
  884. "./gom-latn": 1765,
  885. "./gom-latn.js": 1765,
  886. "./gu": 1766,
  887. "./gu.js": 1766,
  888. "./he": 1767,
  889. "./he.js": 1767,
  890. "./hi": 1768,
  891. "./hi.js": 1768,
  892. "./hr": 1769,
  893. "./hr.js": 1769,
  894. "./hu": 1770,
  895. "./hu.js": 1770,
  896. "./hy-am": 1771,
  897. "./hy-am.js": 1771,
  898. "./id": 1772,
  899. "./id.js": 1772,
  900. "./is": 1773,
  901. "./is.js": 1773,
  902. "./it": 1774,
  903. "./it-ch": 1775,
  904. "./it-ch.js": 1775,
  905. "./it.js": 1774,
  906. "./ja": 1776,
  907. "./ja.js": 1776,
  908. "./jv": 1777,
  909. "./jv.js": 1777,
  910. "./ka": 1778,
  911. "./ka.js": 1778,
  912. "./kk": 1779,
  913. "./kk.js": 1779,
  914. "./km": 1780,
  915. "./km.js": 1780,
  916. "./kn": 1781,
  917. "./kn.js": 1781,
  918. "./ko": 1782,
  919. "./ko.js": 1782,
  920. "./ku": 1783,
  921. "./ku.js": 1783,
  922. "./ky": 1784,
  923. "./ky.js": 1784,
  924. "./lb": 1785,
  925. "./lb.js": 1785,
  926. "./lo": 1786,
  927. "./lo.js": 1786,
  928. "./lt": 1787,
  929. "./lt.js": 1787,
  930. "./lv": 1788,
  931. "./lv.js": 1788,
  932. "./me": 1789,
  933. "./me.js": 1789,
  934. "./mi": 1790,
  935. "./mi.js": 1790,
  936. "./mk": 1791,
  937. "./mk.js": 1791,
  938. "./ml": 1792,
  939. "./ml.js": 1792,
  940. "./mn": 1793,
  941. "./mn.js": 1793,
  942. "./mr": 1794,
  943. "./mr.js": 1794,
  944. "./ms": 1795,
  945. "./ms-my": 1796,
  946. "./ms-my.js": 1796,
  947. "./ms.js": 1795,
  948. "./mt": 1797,
  949. "./mt.js": 1797,
  950. "./my": 1798,
  951. "./my.js": 1798,
  952. "./nb": 1799,
  953. "./nb.js": 1799,
  954. "./ne": 1800,
  955. "./ne.js": 1800,
  956. "./nl": 1801,
  957. "./nl-be": 1802,
  958. "./nl-be.js": 1802,
  959. "./nl.js": 1801,
  960. "./nn": 1803,
  961. "./nn.js": 1803,
  962. "./oc-lnc": 1804,
  963. "./oc-lnc.js": 1804,
  964. "./pa-in": 1805,
  965. "./pa-in.js": 1805,
  966. "./pl": 1806,
  967. "./pl.js": 1806,
  968. "./pt": 1807,
  969. "./pt-br": 1808,
  970. "./pt-br.js": 1808,
  971. "./pt.js": 1807,
  972. "./ro": 1809,
  973. "./ro.js": 1809,
  974. "./ru": 1810,
  975. "./ru.js": 1810,
  976. "./sd": 1811,
  977. "./sd.js": 1811,
  978. "./se": 1812,
  979. "./se.js": 1812,
  980. "./si": 1813,
  981. "./si.js": 1813,
  982. "./sk": 1814,
  983. "./sk.js": 1814,
  984. "./sl": 1815,
  985. "./sl.js": 1815,
  986. "./sq": 1816,
  987. "./sq.js": 1816,
  988. "./sr": 1817,
  989. "./sr-cyrl": 1818,
  990. "./sr-cyrl.js": 1818,
  991. "./sr.js": 1817,
  992. "./ss": 1819,
  993. "./ss.js": 1819,
  994. "./sv": 1820,
  995. "./sv.js": 1820,
  996. "./sw": 1821,
  997. "./sw.js": 1821,
  998. "./ta": 1822,
  999. "./ta.js": 1822,
  1000. "./te": 1823,
  1001. "./te.js": 1823,
  1002. "./tet": 1824,
  1003. "./tet.js": 1824,
  1004. "./tg": 1825,
  1005. "./tg.js": 1825,
  1006. "./th": 1826,
  1007. "./th.js": 1826,
  1008. "./tk": 1827,
  1009. "./tk.js": 1827,
  1010. "./tl-ph": 1828,
  1011. "./tl-ph.js": 1828,
  1012. "./tlh": 1829,
  1013. "./tlh.js": 1829,
  1014. "./tr": 1830,
  1015. "./tr.js": 1830,
  1016. "./tzl": 1831,
  1017. "./tzl.js": 1831,
  1018. "./tzm": 1832,
  1019. "./tzm-latn": 1833,
  1020. "./tzm-latn.js": 1833,
  1021. "./tzm.js": 1832,
  1022. "./ug-cn": 1834,
  1023. "./ug-cn.js": 1834,
  1024. "./uk": 1835,
  1025. "./uk.js": 1835,
  1026. "./ur": 1836,
  1027. "./ur.js": 1836,
  1028. "./uz": 1837,
  1029. "./uz-latn": 1838,
  1030. "./uz-latn.js": 1838,
  1031. "./uz.js": 1837,
  1032. "./vi": 1839,
  1033. "./vi.js": 1839,
  1034. "./x-pseudo": 1840,
  1035. "./x-pseudo.js": 1840,
  1036. "./yo": 1841,
  1037. "./yo.js": 1841,
  1038. "./zh-cn": 1842,
  1039. "./zh-cn.js": 1842,
  1040. "./zh-hk": 1843,
  1041. "./zh-hk.js": 1843,
  1042. "./zh-mo": 1844,
  1043. "./zh-mo.js": 1844,
  1044. "./zh-tw": 1845,
  1045. "./zh-tw.js": 1845
  1046. };
  1047. function r(e) {
  1048. var t = i(e);
  1049. return n(t)
  1050. }
  1051. function i(e) {
  1052. if (!n.o(o, e)) {
  1053. var t = new Error("Cannot find module '" + e + "'");
  1054. throw t.code = "MODULE_NOT_FOUND",
  1055. t
  1056. }
  1057. return o[e]
  1058. }
  1059. r.keys = function() {
  1060. return Object.keys(o)
  1061. }
  1062. ,
  1063. r.resolve = i,
  1064. e.exports = r,
  1065. r.id = 1867
  1066. },
  1067. 1868: function(e, t, n) {
  1068. "use strict";
  1069. Object.defineProperty(t, "__esModule", {
  1070. value: !0
  1071. });
  1072. var o = function() {
  1073. function e() {
  1074. this.vertexBudget = 5e6,
  1075. this.loadersCount = 0,
  1076. this.bshpherePixelDiameter = 10,
  1077. this.maxDistance = 25,
  1078. this.maxLoadRequests = 1,
  1079. this.showWireframe = !1,
  1080. this.lod = 0
  1081. }
  1082. return e.prototype.getCurrentVertexBudget = function() {
  1083. return this.vertexBudget / this.loadersCount
  1084. }
  1085. ,
  1086. e
  1087. }();
  1088. t.MeshLoaderConfig = o
  1089. },
  1090. 1887: function(e, t, n) {
  1091. "use strict";
  1092. var o, r = this && this.__extends || (o = function(e, t) {
  1093. return (o = Object.setPrototypeOf || {
  1094. __proto__: []
  1095. }instanceof Array && function(e, t) {
  1096. e.__proto__ = t
  1097. }
  1098. || function(e, t) {
  1099. for (var n in t)
  1100. t.hasOwnProperty(n) && (e[n] = t[n])
  1101. }
  1102. )(e, t)
  1103. }
  1104. ,
  1105. function(e, t) {
  1106. function n() {
  1107. this.constructor = e
  1108. }
  1109. o(e, t),
  1110. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  1111. new n)
  1112. }
  1113. );
  1114. Object.defineProperty(t, "__esModule", {
  1115. value: !0
  1116. });
  1117. var i = n(0)
  1118. , a = n(2)
  1119. , s = n(6)
  1120. , c = n(1693)
  1121. , l = n(0);
  1122. t.MEASUREMENTS_COMPONENT = "MEASUREMENTS_COMPONENT";
  1123. var u = function(e) {
  1124. function n(n, o, r) {
  1125. var i = e.call(this, n, o, r) || this;
  1126. return i.modulePath = "./MeasurementsModule#MeasurementsModule",
  1127. i.componentId = t.MEASUREMENTS_COMPONENT,
  1128. i
  1129. }
  1130. return r(n, e),
  1131. n.ɵfac = function(e) {
  1132. return new (e || n)(l.ɵɵdirectiveInject(l.NgModuleFactoryLoader),l.ɵɵdirectiveInject(l.Injector),l.ɵɵdirectiveInject(l.ViewContainerRef))
  1133. }
  1134. ,
  1135. n.ɵcmp = l.ɵɵdefineComponent({
  1136. type: n,
  1137. selectors: [["measurements-lazy"]],
  1138. features: [l.ɵɵInheritDefinitionFeature],
  1139. decls: 0,
  1140. vars: 0,
  1141. template: function(e, t) {},
  1142. encapsulation: 2
  1143. }),
  1144. n
  1145. }(c.AbstractLazyComponent);
  1146. t.MeasurementsLazyComponent = u,
  1147. l.ɵsetClassMetadata(u, [{
  1148. type: i.Component,
  1149. args: [{
  1150. selector: "measurements-lazy",
  1151. template: ""
  1152. }]
  1153. }], (function() {
  1154. return [{
  1155. type: l.NgModuleFactoryLoader
  1156. }, {
  1157. type: l.Injector
  1158. }, {
  1159. type: l.ViewContainerRef
  1160. }]
  1161. }
  1162. ), null),
  1163. a.module("IVWebApp").directive("measurementsLazy", s.downgradeComponent({
  1164. component: u
  1165. }))
  1166. },
  1167. 1888: function(e, t, n) {
  1168. "use strict";
  1169. var o, r = this && this.__extends || (o = function(e, t) {
  1170. return (o = Object.setPrototypeOf || {
  1171. __proto__: []
  1172. }instanceof Array && function(e, t) {
  1173. e.__proto__ = t
  1174. }
  1175. || function(e, t) {
  1176. for (var n in t)
  1177. t.hasOwnProperty(n) && (e[n] = t[n])
  1178. }
  1179. )(e, t)
  1180. }
  1181. ,
  1182. function(e, t) {
  1183. function n() {
  1184. this.constructor = e
  1185. }
  1186. o(e, t),
  1187. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  1188. new n)
  1189. }
  1190. );
  1191. Object.defineProperty(t, "__esModule", {
  1192. value: !0
  1193. });
  1194. var i = n(0)
  1195. , a = n(2)
  1196. , s = n(6)
  1197. , c = n(1693)
  1198. , l = n(0);
  1199. t.CLOUD_UPLOAD_COMPONENT = "CLOUD_UPLOAD_COMPONENT";
  1200. var u = function(e) {
  1201. function n(n, o, r) {
  1202. var i = e.call(this, n, o, r) || this;
  1203. return i.loader = n,
  1204. i.injector = o,
  1205. i.vcr = r,
  1206. i.modulePath = "./CloudProcessingModule#CloudProcessingModule",
  1207. i.componentId = t.CLOUD_UPLOAD_COMPONENT,
  1208. i
  1209. }
  1210. return r(n, e),
  1211. n.ɵfac = function(e) {
  1212. return new (e || n)(l.ɵɵdirectiveInject(l.NgModuleFactoryLoader),l.ɵɵdirectiveInject(l.Injector),l.ɵɵdirectiveInject(l.ViewContainerRef))
  1213. }
  1214. ,
  1215. n.ɵcmp = l.ɵɵdefineComponent({
  1216. type: n,
  1217. selectors: [["cloud-upload-lazy"]],
  1218. features: [l.ɵɵInheritDefinitionFeature],
  1219. decls: 0,
  1220. vars: 0,
  1221. template: function(e, t) {},
  1222. encapsulation: 2
  1223. }),
  1224. n
  1225. }(c.AbstractLazyComponent);
  1226. t.CloudUploadLazyComponent = u,
  1227. l.ɵsetClassMetadata(u, [{
  1228. type: i.Component,
  1229. args: [{
  1230. selector: "cloud-upload-lazy",
  1231. template: ""
  1232. }]
  1233. }], (function() {
  1234. return [{
  1235. type: l.NgModuleFactoryLoader
  1236. }, {
  1237. type: l.Injector
  1238. }, {
  1239. type: l.ViewContainerRef
  1240. }]
  1241. }
  1242. ), null),
  1243. a.module("IVWebApp").directive("cloudUploadLazy", s.downgradeComponent({
  1244. component: u
  1245. }))
  1246. },
  1247. 1889: function(e, t, n) {
  1248. "use strict";
  1249. var o, r = this && this.__extends || (o = function(e, t) {
  1250. return (o = Object.setPrototypeOf || {
  1251. __proto__: []
  1252. }instanceof Array && function(e, t) {
  1253. e.__proto__ = t
  1254. }
  1255. || function(e, t) {
  1256. for (var n in t)
  1257. t.hasOwnProperty(n) && (e[n] = t[n])
  1258. }
  1259. )(e, t)
  1260. }
  1261. ,
  1262. function(e, t) {
  1263. function n() {
  1264. this.constructor = e
  1265. }
  1266. o(e, t),
  1267. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  1268. new n)
  1269. }
  1270. );
  1271. Object.defineProperty(t, "__esModule", {
  1272. value: !0
  1273. });
  1274. var i = n(0)
  1275. , a = n(2)
  1276. , s = n(6)
  1277. , c = n(1693)
  1278. , l = n(0);
  1279. t.PROCESSED_DATA_COMPONENT = "PROCESSED_DATA_COMPONENT";
  1280. var u = function(e) {
  1281. function n(n, o, r) {
  1282. var i = e.call(this, n, o, r) || this;
  1283. return i.loader = n,
  1284. i.injector = o,
  1285. i.vcr = r,
  1286. i.modulePath = "./CloudProcessingModule#CloudProcessingModule",
  1287. i.componentId = t.PROCESSED_DATA_COMPONENT,
  1288. i
  1289. }
  1290. return r(n, e),
  1291. n.ɵfac = function(e) {
  1292. return new (e || n)(l.ɵɵdirectiveInject(l.NgModuleFactoryLoader),l.ɵɵdirectiveInject(l.Injector),l.ɵɵdirectiveInject(l.ViewContainerRef))
  1293. }
  1294. ,
  1295. n.ɵcmp = l.ɵɵdefineComponent({
  1296. type: n,
  1297. selectors: [["processed-data-lazy"]],
  1298. features: [l.ɵɵInheritDefinitionFeature],
  1299. decls: 0,
  1300. vars: 0,
  1301. template: function(e, t) {},
  1302. encapsulation: 2
  1303. }),
  1304. n
  1305. }(c.AbstractLazyComponent);
  1306. t.ProcessedDataLazyComponent = u,
  1307. l.ɵsetClassMetadata(u, [{
  1308. type: i.Component,
  1309. args: [{
  1310. selector: "processed-data-lazy",
  1311. template: ""
  1312. }]
  1313. }], (function() {
  1314. return [{
  1315. type: l.NgModuleFactoryLoader
  1316. }, {
  1317. type: l.Injector
  1318. }, {
  1319. type: l.ViewContainerRef
  1320. }]
  1321. }
  1322. ), null),
  1323. a.module("IVWebApp").directive("processedDataLazy", s.downgradeComponent({
  1324. component: u
  1325. }))
  1326. },
  1327. 1890: function(e, t, n) {
  1328. "use strict";
  1329. var o, r = this && this.__extends || (o = function(e, t) {
  1330. return (o = Object.setPrototypeOf || {
  1331. __proto__: []
  1332. }instanceof Array && function(e, t) {
  1333. e.__proto__ = t
  1334. }
  1335. || function(e, t) {
  1336. for (var n in t)
  1337. t.hasOwnProperty(n) && (e[n] = t[n])
  1338. }
  1339. )(e, t)
  1340. }
  1341. ,
  1342. function(e, t) {
  1343. function n() {
  1344. this.constructor = e
  1345. }
  1346. o(e, t),
  1347. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  1348. new n)
  1349. }
  1350. );
  1351. Object.defineProperty(t, "__esModule", {
  1352. value: !0
  1353. });
  1354. var i = n(0)
  1355. , a = n(2)
  1356. , s = n(6)
  1357. , c = n(1693)
  1358. , l = n(0);
  1359. t.PROCESSING_TASK_COMPONENT = "PROCESSING_TASK_COMPONENT";
  1360. var u = function(e) {
  1361. function n(n, o, r) {
  1362. var i = e.call(this, n, o, r) || this;
  1363. return i.loader = n,
  1364. i.injector = o,
  1365. i.vcr = r,
  1366. i.modulePath = "./CloudProcessingModule#CloudProcessingModule",
  1367. i.componentId = t.PROCESSING_TASK_COMPONENT,
  1368. i
  1369. }
  1370. return r(n, e),
  1371. n.ɵfac = function(e) {
  1372. return new (e || n)(l.ɵɵdirectiveInject(l.NgModuleFactoryLoader),l.ɵɵdirectiveInject(l.Injector),l.ɵɵdirectiveInject(l.ViewContainerRef))
  1373. }
  1374. ,
  1375. n.ɵcmp = l.ɵɵdefineComponent({
  1376. type: n,
  1377. selectors: [["processing-task-lazy"]],
  1378. features: [l.ɵɵInheritDefinitionFeature],
  1379. decls: 0,
  1380. vars: 0,
  1381. template: function(e, t) {},
  1382. encapsulation: 2
  1383. }),
  1384. n
  1385. }(c.AbstractLazyComponent);
  1386. t.ProcessingTaskLazyComponent = u,
  1387. l.ɵsetClassMetadata(u, [{
  1388. type: i.Component,
  1389. args: [{
  1390. selector: "processing-task-lazy",
  1391. template: ""
  1392. }]
  1393. }], (function() {
  1394. return [{
  1395. type: l.NgModuleFactoryLoader
  1396. }, {
  1397. type: l.Injector
  1398. }, {
  1399. type: l.ViewContainerRef
  1400. }]
  1401. }
  1402. ), null),
  1403. a.module("IVWebApp").directive("processingTaskLazy", s.downgradeComponent({
  1404. component: u
  1405. }))
  1406. },
  1407. 1891: function(e, t, n) {
  1408. "use strict";
  1409. var o, r = this && this.__extends || (o = function(e, t) {
  1410. return (o = Object.setPrototypeOf || {
  1411. __proto__: []
  1412. }instanceof Array && function(e, t) {
  1413. e.__proto__ = t
  1414. }
  1415. || function(e, t) {
  1416. for (var n in t)
  1417. t.hasOwnProperty(n) && (e[n] = t[n])
  1418. }
  1419. )(e, t)
  1420. }
  1421. ,
  1422. function(e, t) {
  1423. function n() {
  1424. this.constructor = e
  1425. }
  1426. o(e, t),
  1427. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  1428. new n)
  1429. }
  1430. );
  1431. Object.defineProperty(t, "__esModule", {
  1432. value: !0
  1433. });
  1434. var i = n(0)
  1435. , a = n(2)
  1436. , s = n(6)
  1437. , c = n(1693)
  1438. , l = n(0);
  1439. t.DEVELOPER_COMPONENT = "DEVELOPER_MENU_PANEL_COMPONENT";
  1440. var u = function(e) {
  1441. function n(n, o, r) {
  1442. var i = e.call(this, n, o, r) || this;
  1443. return i.modulePath = "./DeveloperModule#DeveloperModule",
  1444. i.componentId = t.DEVELOPER_COMPONENT,
  1445. i
  1446. }
  1447. return r(n, e),
  1448. n.ɵfac = function(e) {
  1449. return new (e || n)(l.ɵɵdirectiveInject(l.NgModuleFactoryLoader),l.ɵɵdirectiveInject(l.Injector),l.ɵɵdirectiveInject(l.ViewContainerRef))
  1450. }
  1451. ,
  1452. n.ɵcmp = l.ɵɵdefineComponent({
  1453. type: n,
  1454. selectors: [["developer-lazy"]],
  1455. features: [l.ɵɵInheritDefinitionFeature],
  1456. decls: 0,
  1457. vars: 0,
  1458. template: function(e, t) {},
  1459. encapsulation: 2
  1460. }),
  1461. n
  1462. }(c.AbstractLazyComponent);
  1463. t.DeveloperLazyComponent = u,
  1464. l.ɵsetClassMetadata(u, [{
  1465. type: i.Component,
  1466. args: [{
  1467. selector: "developer-lazy",
  1468. template: ""
  1469. }]
  1470. }], (function() {
  1471. return [{
  1472. type: l.NgModuleFactoryLoader
  1473. }, {
  1474. type: l.Injector
  1475. }, {
  1476. type: l.ViewContainerRef
  1477. }]
  1478. }
  1479. ), null),
  1480. a.module("IVWebApp").directive("developerLazy", s.downgradeComponent({
  1481. component: u
  1482. }))
  1483. },
  1484. 1893: function(e, t, n) {
  1485. "use strict";
  1486. var o, r = this && this.__extends || (o = function(e, t) {
  1487. return (o = Object.setPrototypeOf || {
  1488. __proto__: []
  1489. }instanceof Array && function(e, t) {
  1490. e.__proto__ = t
  1491. }
  1492. || function(e, t) {
  1493. for (var n in t)
  1494. t.hasOwnProperty(n) && (e[n] = t[n])
  1495. }
  1496. )(e, t)
  1497. }
  1498. ,
  1499. function(e, t) {
  1500. function n() {
  1501. this.constructor = e
  1502. }
  1503. o(e, t),
  1504. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  1505. new n)
  1506. }
  1507. );
  1508. Object.defineProperty(t, "__esModule", {
  1509. value: !0
  1510. });
  1511. var i = n(0)
  1512. , a = n(2)
  1513. , s = n(6)
  1514. , c = n(1693)
  1515. , l = n(0);
  1516. t.AUDIT_PANEL_COMPONENT = "AUDIT_PANEL_COMPONENT";
  1517. var u = function(e) {
  1518. function n(n, o, r) {
  1519. var i = e.call(this, n, o, r) || this;
  1520. return i.loader = n,
  1521. i.injector = o,
  1522. i.vcr = r,
  1523. i.modulePath = "./AuditPanelModule#AuditPanelModule",
  1524. i.componentId = t.AUDIT_PANEL_COMPONENT,
  1525. i
  1526. }
  1527. return r(n, e),
  1528. n.ɵfac = function(e) {
  1529. return new (e || n)(l.ɵɵdirectiveInject(l.NgModuleFactoryLoader),l.ɵɵdirectiveInject(l.Injector),l.ɵɵdirectiveInject(l.ViewContainerRef))
  1530. }
  1531. ,
  1532. n.ɵcmp = l.ɵɵdefineComponent({
  1533. type: n,
  1534. selectors: [["audit-panel-lazy"]],
  1535. features: [l.ɵɵInheritDefinitionFeature],
  1536. decls: 0,
  1537. vars: 0,
  1538. template: function(e, t) {},
  1539. encapsulation: 2
  1540. }),
  1541. n
  1542. }(c.AbstractLazyComponent);
  1543. t.AuditPanelLazyComponent = u,
  1544. l.ɵsetClassMetadata(u, [{
  1545. type: i.Component,
  1546. args: [{
  1547. selector: "audit-panel-lazy",
  1548. template: ""
  1549. }]
  1550. }], (function() {
  1551. return [{
  1552. type: l.NgModuleFactoryLoader
  1553. }, {
  1554. type: l.Injector
  1555. }, {
  1556. type: l.ViewContainerRef
  1557. }]
  1558. }
  1559. ), null),
  1560. a.module("IVWebApp").directive("auditPanelLazy", s.downgradeComponent({
  1561. component: u
  1562. }))
  1563. },
  1564. 1894: function(e, t, n) {
  1565. "use strict";
  1566. var o, r = this && this.__extends || (o = function(e, t) {
  1567. return (o = Object.setPrototypeOf || {
  1568. __proto__: []
  1569. }instanceof Array && function(e, t) {
  1570. e.__proto__ = t
  1571. }
  1572. || function(e, t) {
  1573. for (var n in t)
  1574. t.hasOwnProperty(n) && (e[n] = t[n])
  1575. }
  1576. )(e, t)
  1577. }
  1578. ,
  1579. function(e, t) {
  1580. function n() {
  1581. this.constructor = e
  1582. }
  1583. o(e, t),
  1584. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  1585. new n)
  1586. }
  1587. );
  1588. Object.defineProperty(t, "__esModule", {
  1589. value: !0
  1590. });
  1591. var i = n(0)
  1592. , a = n(2)
  1593. , s = n(6)
  1594. , c = n(1693)
  1595. , l = n(0);
  1596. t.THEME_PANEL_COMPONENT = "THEME_PANEL_COMPONENT";
  1597. var u = function(e) {
  1598. function n(n, o, r) {
  1599. var i = e.call(this, n, o, r) || this;
  1600. return i.loader = n,
  1601. i.injector = o,
  1602. i.vcr = r,
  1603. i.modulePath = "../ThemePanelUI/ThemePanelModule#ThemePanelModule",
  1604. i.componentId = t.THEME_PANEL_COMPONENT,
  1605. i
  1606. }
  1607. return r(n, e),
  1608. n.ɵfac = function(e) {
  1609. return new (e || n)(l.ɵɵdirectiveInject(l.NgModuleFactoryLoader),l.ɵɵdirectiveInject(l.Injector),l.ɵɵdirectiveInject(l.ViewContainerRef))
  1610. }
  1611. ,
  1612. n.ɵcmp = l.ɵɵdefineComponent({
  1613. type: n,
  1614. selectors: [["theme-panel-lazy"]],
  1615. features: [l.ɵɵInheritDefinitionFeature],
  1616. decls: 0,
  1617. vars: 0,
  1618. template: function(e, t) {},
  1619. encapsulation: 2
  1620. }),
  1621. n
  1622. }(c.AbstractLazyComponent);
  1623. t.ThemePanelLazyComponent = u,
  1624. l.ɵsetClassMetadata(u, [{
  1625. type: i.Component,
  1626. args: [{
  1627. selector: "theme-panel-lazy",
  1628. template: ""
  1629. }]
  1630. }], (function() {
  1631. return [{
  1632. type: l.NgModuleFactoryLoader
  1633. }, {
  1634. type: l.Injector
  1635. }, {
  1636. type: l.ViewContainerRef
  1637. }]
  1638. }
  1639. ), null),
  1640. a.module("IVWebApp").directive("themePanelLazy", s.downgradeComponent({
  1641. component: u
  1642. }))
  1643. },
  1644. 1896: function(e, t, n) {
  1645. "use strict";
  1646. var o, r = this && this.__extends || (o = function(e, t) {
  1647. return (o = Object.setPrototypeOf || {
  1648. __proto__: []
  1649. }instanceof Array && function(e, t) {
  1650. e.__proto__ = t
  1651. }
  1652. || function(e, t) {
  1653. for (var n in t)
  1654. t.hasOwnProperty(n) && (e[n] = t[n])
  1655. }
  1656. )(e, t)
  1657. }
  1658. ,
  1659. function(e, t) {
  1660. function n() {
  1661. this.constructor = e
  1662. }
  1663. o(e, t),
  1664. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  1665. new n)
  1666. }
  1667. );
  1668. Object.defineProperty(t, "__esModule", {
  1669. value: !0
  1670. });
  1671. var i = n(0)
  1672. , a = n(2)
  1673. , s = n(6)
  1674. , c = n(1897)
  1675. , l = n(0);
  1676. t.CKE_WRAPPER_COMPONENT = "CKE_WRAPPER_LAZY_COMPONENT";
  1677. var u = function(e) {
  1678. function n(n, o, r) {
  1679. var i = e.call(this, n, o, r) || this;
  1680. return i.modulePath = "../PoiUI/CKEWrapper/CKEWrapperModule#CKEWrapperModule",
  1681. i.componentId = t.CKE_WRAPPER_COMPONENT,
  1682. i
  1683. }
  1684. return r(n, e),
  1685. n.ɵfac = function(e) {
  1686. return new (e || n)(l.ɵɵdirectiveInject(l.NgModuleFactoryLoader),l.ɵɵdirectiveInject(l.Injector),l.ɵɵdirectiveInject(l.ViewContainerRef))
  1687. }
  1688. ,
  1689. n.ɵcmp = l.ɵɵdefineComponent({
  1690. type: n,
  1691. selectors: [["cke-wrapper-lazy"]],
  1692. features: [l.ɵɵInheritDefinitionFeature],
  1693. decls: 0,
  1694. vars: 0,
  1695. template: function(e, t) {},
  1696. encapsulation: 2
  1697. }),
  1698. n
  1699. }(c.AbstractLazyFormComponent);
  1700. t.CKEWrapperLazyComponent = u,
  1701. l.ɵsetClassMetadata(u, [{
  1702. type: i.Component,
  1703. args: [{
  1704. selector: "cke-wrapper-lazy",
  1705. template: ""
  1706. }]
  1707. }], (function() {
  1708. return [{
  1709. type: l.NgModuleFactoryLoader
  1710. }, {
  1711. type: l.Injector
  1712. }, {
  1713. type: l.ViewContainerRef
  1714. }]
  1715. }
  1716. ), null),
  1717. a.module("IVWebApp").directive("ckeWrapperLazy", s.downgradeComponent({
  1718. component: u
  1719. }))
  1720. },
  1721. 1897: function(e, t, n) {
  1722. "use strict";
  1723. var o, r = this && this.__extends || (o = function(e, t) {
  1724. return (o = Object.setPrototypeOf || {
  1725. __proto__: []
  1726. }instanceof Array && function(e, t) {
  1727. e.__proto__ = t
  1728. }
  1729. || function(e, t) {
  1730. for (var n in t)
  1731. t.hasOwnProperty(n) && (e[n] = t[n])
  1732. }
  1733. )(e, t)
  1734. }
  1735. ,
  1736. function(e, t) {
  1737. function n() {
  1738. this.constructor = e
  1739. }
  1740. o(e, t),
  1741. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  1742. new n)
  1743. }
  1744. );
  1745. Object.defineProperty(t, "__esModule", {
  1746. value: !0
  1747. });
  1748. var i = n(1693)
  1749. , a = n(8)
  1750. , s = n(0)
  1751. , c = function(e) {
  1752. function t() {
  1753. return null !== e && e.apply(this, arguments) || this
  1754. }
  1755. return r(t, e),
  1756. t.prototype.ngOnInit = function() {
  1757. var e = this;
  1758. this.loadComponent().then((function(t) {
  1759. return e.typeCheckComponent(t)
  1760. }
  1761. )).then((function(t) {
  1762. return e.initializeCvaComponent(t)
  1763. }
  1764. )).catch(a.handleWarning)
  1765. }
  1766. ,
  1767. t.prototype.typeCheckComponent = function(e) {
  1768. var t = null == e ? void 0 : e.instance;
  1769. if (!t)
  1770. throw new Error("Lazy component not loaded.");
  1771. if (!t.registerOnChange || !t.registerOnTouched || !t.writeValue)
  1772. throw new Error(e.componentType.name + " does not implement \n\t\t\t\t\tthe ControlValueAccessor interface. ControlValueAccessor function calls \n\t\t\t\t\twon't be proxied.");
  1773. return e
  1774. }
  1775. ,
  1776. t.prototype.initializeCvaComponent = function(e) {
  1777. this.cvaComponent = e.instance,
  1778. this.cachedOnChange && (this.cvaComponent.registerOnChange(this.cachedOnChange),
  1779. this.cachedOnChange = void 0),
  1780. this.cachedOnTouched && (this.cvaComponent.registerOnTouched(this.cachedOnTouched),
  1781. this.cachedOnTouched = void 0),
  1782. this.cachedValue && (this.cvaComponent.writeValue(this.cachedValue),
  1783. this.cachedValue = void 0),
  1784. void 0 !== this.cachedDisabledState && this.cvaComponent.setDisabledState && (this.cvaComponent.setDisabledState(this.cachedDisabledState),
  1785. this.cachedDisabledState = void 0)
  1786. }
  1787. ,
  1788. t.prototype.registerOnChange = function(e) {
  1789. this.cvaComponent ? this.cvaComponent.registerOnChange(e) : this.cachedOnChange = e
  1790. }
  1791. ,
  1792. t.prototype.registerOnTouched = function(e) {
  1793. this.cvaComponent ? this.cvaComponent.registerOnTouched(e) : this.cachedOnTouched = e
  1794. }
  1795. ,
  1796. t.prototype.setDisabledState = function(e) {
  1797. this.cvaComponent ? this.cvaComponent.setDisabledState(e) : this.cachedDisabledState = e
  1798. }
  1799. ,
  1800. t.prototype.writeValue = function(e) {
  1801. this.cvaComponent ? this.cvaComponent.writeValue(e) : this.cachedValue = e
  1802. }
  1803. ,
  1804. t.ɵfac = function(e) {
  1805. return l(e || t)
  1806. }
  1807. ,
  1808. t.ɵdir = s.ɵɵdefineDirective({
  1809. type: t,
  1810. features: [s.ɵɵInheritDefinitionFeature]
  1811. }),
  1812. t
  1813. }(i.AbstractLazyComponent);
  1814. t.AbstractLazyFormComponent = c;
  1815. var l = s.ɵɵgetInheritedFactory(c)
  1816. },
  1817. 1898: function(e, t, n) {
  1818. "use strict";
  1819. var o, r = this && this.__extends || (o = function(e, t) {
  1820. return (o = Object.setPrototypeOf || {
  1821. __proto__: []
  1822. }instanceof Array && function(e, t) {
  1823. e.__proto__ = t
  1824. }
  1825. || function(e, t) {
  1826. for (var n in t)
  1827. t.hasOwnProperty(n) && (e[n] = t[n])
  1828. }
  1829. )(e, t)
  1830. }
  1831. ,
  1832. function(e, t) {
  1833. function n() {
  1834. this.constructor = e
  1835. }
  1836. o(e, t),
  1837. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  1838. new n)
  1839. }
  1840. );
  1841. Object.defineProperty(t, "__esModule", {
  1842. value: !0
  1843. });
  1844. var i = n(80)
  1845. , a = n(4)
  1846. , s = n(152)
  1847. , c = n(1899)
  1848. , l = n(1900)
  1849. , u = n(1849)
  1850. , p = n(1901)
  1851. , d = n(1860)
  1852. , h = n(8)
  1853. , f = n(1868)
  1854. , m = n(7)
  1855. , g = function(e) {
  1856. function t(t, n, o, r, i) {
  1857. var s = e.call(this, t, n) || this;
  1858. return s.viewMenuService = o,
  1859. s.jwtTokenService = r,
  1860. s.datasetRepository = i,
  1861. s.loaderConfig = new f.MeshLoaderConfig,
  1862. s.datasets = [],
  1863. s.loaders = {},
  1864. s.frustum = new a.Frustum,
  1865. s.meshQueue = new d.BinaryHeap((function(e) {
  1866. return e.weight
  1867. }
  1868. )),
  1869. s.maxGPULoads = 3,
  1870. s.showBBoxThree = !1,
  1871. s.showBBoxGLTF = !1,
  1872. s.sceneGroup.name = "MeshLayer",
  1873. s.dracoLoadingManager = new a.LoadingManager,
  1874. s.dracoLoadingManager.setURLModifier((function(e) {
  1875. return s.getAuthorizationUrl(e)
  1876. }
  1877. )),
  1878. s.dracoLoader = new c.DRACOLoader(s.dracoLoadingManager),
  1879. s.gltfLoader = new l.GLTFLoader,
  1880. s.dracoLoader.setDecoderPath("draco/"),
  1881. s.dracoLoader.setDecoderConfig({
  1882. type: "js"
  1883. }),
  1884. s.gltfLoader.setParserOnly(!0),
  1885. s.gltfLoader.setDRACOLoader(s.dracoLoader),
  1886. s.registerEventCallbacks(),
  1887. s
  1888. }
  1889. return r(t, e),
  1890. t.prototype.onBeforeRender = function() {
  1891. var e = this;
  1892. this.visible && this.loadGLTFJson().then((function() {
  1893. return e.processClosestMeshes().then((function() {
  1894. return e.processMeshQueue()
  1895. }
  1896. ))
  1897. }
  1898. )).catch(h.handleWarning)
  1899. }
  1900. ,
  1901. t.prototype.reload = function(e, t, n) {
  1902. for (a.Cache.enabled = !1,
  1903. a.Cache.clear(),
  1904. this.clean(); this.sceneGroup.children.length > 0; )
  1905. this.sceneGroup.remove(this.sceneGroup.children[0]);
  1906. a.Cache.enabled = !0,
  1907. this.maxGPULoads = e,
  1908. this.showBBoxThree = t,
  1909. this.showBBoxGLTF = n,
  1910. this.updateDatasetState()
  1911. }
  1912. ,
  1913. t.prototype.processClosestMeshes = function() {
  1914. var e = this
  1915. , t = this.view.getCamera()
  1916. , n = this.getViewport();
  1917. return this.updateFrustum(t),
  1918. Promise.all(m.map(this.loaders, (function(e) {
  1919. return e
  1920. }
  1921. )).map((function(o) {
  1922. return o.getClosestMeshes(t, n, e.frustum)
  1923. }
  1924. ))).then((function(t) {
  1925. t.forEach((function(t) {
  1926. t.filter((function(e) {
  1927. return e
  1928. }
  1929. )).forEach((function(t) {
  1930. return e.meshQueue.push(t)
  1931. }
  1932. ))
  1933. }
  1934. ))
  1935. }
  1936. ))
  1937. }
  1938. ,
  1939. t.prototype.processMeshQueue = function() {
  1940. for (var e, t = this, n = 0, o = function() {
  1941. var o = r.meshQueue.pop()
  1942. , i = r.view.getCamera();
  1943. r.updateFrustum(i),
  1944. o.geometry.computeBoundingBox();
  1945. var s = o.geometry.boundingBox
  1946. , c = s.distanceToPoint(i.position)
  1947. , l = [];
  1948. l.push((function() {
  1949. return !t.frustum.intersectsBox(s)
  1950. }
  1951. )),
  1952. l.push((function() {
  1953. return !t.isDatasetActive(o.datasetName)
  1954. }
  1955. )),
  1956. l.push((function() {
  1957. return c >= t.loaderConfig.maxDistance
  1958. }
  1959. )),
  1960. l.some((function(e) {
  1961. return e()
  1962. }
  1963. )) ? null === (e = r.loaders[o.datasetName]) || void 0 === e || e.remove(o) : (r.showBBoxThree && r.sceneGroup.add(new a.BoxHelper(o,new a.Color(1,0,0))),
  1964. r.showBBoxGLTF && r.sceneGroup.add(new a.Box3Helper(o.GLTFBox,new a.Color(1,0,0))),
  1965. r.sceneGroup.add(o),
  1966. n++),
  1967. r.view.invalidateScene()
  1968. }, r = this; !this.meshQueue.empty() && n < this.maxGPULoads; )
  1969. o()
  1970. }
  1971. ,
  1972. t.prototype.updateVisibility = function(e) {
  1973. a.Cache.enabled = e,
  1974. e || (a.Cache.clear(),
  1975. this.clean()),
  1976. this.visible = e,
  1977. this.sceneGroup.visible = e,
  1978. this.updateDatasetState(),
  1979. this.view.invalidateScene()
  1980. }
  1981. ,
  1982. t.prototype.clean = function() {
  1983. var e = this;
  1984. this.cleanQueue(),
  1985. Object.keys(this.loaders).forEach((function(t) {
  1986. var n;
  1987. return null === (n = e.loaders[t]) || void 0 === n ? void 0 : n.clean()
  1988. }
  1989. )),
  1990. this.loaders = {},
  1991. this.loaderConfig.loadersCount = 0,
  1992. this.view.invalidateScene()
  1993. }
  1994. ,
  1995. t.prototype.cleanQueue = function() {
  1996. for (var e; !this.meshQueue.empty(); ) {
  1997. var t = this.meshQueue.pop();
  1998. null === (e = this.loaders[null == t ? void 0 : t.datasetName]) || void 0 === e || e.clean()
  1999. }
  2000. this.meshQueue.clean()
  2001. }
  2002. ,
  2003. t.prototype.loadGLTFJson = function() {
  2004. var e = this
  2005. , t = {};
  2006. return this.jwtTokenService.setJwtHeaderOnConfig(t),
  2007. this.jwtTokenService.isNotExpired() ? Promise.all(this.datasets.filter((function(e) {
  2008. return e.available && e.active && e.status === u.Status.PENDING
  2009. }
  2010. )).map((function(n) {
  2011. return new Promise((function(o, r) {
  2012. n.status = u.Status.LOADING,
  2013. e.gltfLoader.setRequestHeader(t),
  2014. e.gltfLoader.load(n.path, (function(t) {
  2015. var r = t.parser;
  2016. e.setQueryStringAuthParameter(r.json),
  2017. n.status = u.Status.LOADED,
  2018. e.loaderConfig.loadersCount++,
  2019. e.loaders[n.name] = new p.MeshLoader(n.name,e.loaderConfig,t,e.sceneGroup,e.view),
  2020. e.view.invalidateScene(),
  2021. o()
  2022. }
  2023. ), void 0, (function(e) {
  2024. n.available = !1,
  2025. r(e)
  2026. }
  2027. ))
  2028. }
  2029. ))
  2030. }
  2031. ))).then((function() {}
  2032. )) : Promise.reject("Authorization failed!")
  2033. }
  2034. ,
  2035. t.prototype.setQueryStringAuthParameter = function(e) {
  2036. var t, n = this;
  2037. null === (t = e.images) || void 0 === t || t.forEach((function(e) {
  2038. e.uri = n.getAuthorizationUrl(e.uri)
  2039. }
  2040. ))
  2041. }
  2042. ,
  2043. t.prototype.getAuthorizationUrl = function(e) {
  2044. return e + "?" + this.jwtTokenService.getJwtUrlParamKey() + "=" + this.jwtTokenService.getJwt()
  2045. }
  2046. ,
  2047. t.prototype.registerEventCallbacks = function() {
  2048. var e = this;
  2049. this.trackSignal(this.viewMenuService.onShowMeshesChanged).connect((function(t) {
  2050. e.updateVisibility(t)
  2051. }
  2052. )),
  2053. this.trackSignal(this.datasetRepository.entityChanged).connect((function() {
  2054. e.updateDatasetState(),
  2055. e.removeDatasetMeshes(),
  2056. e.view.invalidateScene()
  2057. }
  2058. ))
  2059. }
  2060. ,
  2061. t.prototype.isDatasetActive = function(e) {
  2062. return void 0 !== this.datasetRepository.data.find((function(t) {
  2063. return t.pointCloudVisible && t.name === e
  2064. }
  2065. ))
  2066. }
  2067. ,
  2068. t.prototype.removeDatasetMeshes = function() {
  2069. var e = this;
  2070. this.datasetRepository.data.filter((function(t) {
  2071. return !t.pointCloudVisible && e.loaders[t.name]
  2072. }
  2073. )).forEach((function(t) {
  2074. e.loaders[t.name].clean(),
  2075. delete e.loaders[t.name],
  2076. e.loaderConfig.loadersCount--
  2077. }
  2078. ))
  2079. }
  2080. ,
  2081. t.prototype.updateDatasetState = function() {
  2082. this.datasets = this.datasetRepository.data.map((function(e) {
  2083. return new u.DatasetState(e.name,e.pointCloudVisible || !1,e.hasWebmesh || !1,"" + s.getBaseUrl() + e.getMeshConfigFilename())
  2084. }
  2085. ))
  2086. }
  2087. ,
  2088. t.prototype.updateFrustum = function(e) {
  2089. e.updateProjectionMatrix(),
  2090. e.matrixWorld.getInverse(e.matrixWorldInverse),
  2091. this.frustum.setFromProjectionMatrix((new a.Matrix4).multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse))
  2092. }
  2093. ,
  2094. t.prototype.getViewport = function() {
  2095. var e = new a.Vector4;
  2096. return e.x = this.view.getDefaultViewport().left,
  2097. e.y = this.view.getDefaultViewport().bottom,
  2098. e.z = this.view.getDefaultViewport().screenWidth,
  2099. e.w = this.view.getDefaultViewport().screenHeight,
  2100. e
  2101. }
  2102. ,
  2103. t
  2104. }(i.SceneLayer);
  2105. t.MeshLayer = g
  2106. },
  2107. 1900: function(e, t, n) {
  2108. "use strict";
  2109. n.r(t),
  2110. n.d(t, "GLTFLoader", (function() {
  2111. return i
  2112. }
  2113. ));
  2114. var o = n(4);
  2115. function r(e) {
  2116. return (r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  2117. return typeof e
  2118. }
  2119. : function(e) {
  2120. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
  2121. }
  2122. )(e)
  2123. }
  2124. var i = function() {
  2125. function e(e) {
  2126. o.Loader.call(this, e),
  2127. this.dracoLoader = null,
  2128. this.ddsLoader = null,
  2129. this.requestHeader = {},
  2130. this.parserOnly = !1
  2131. }
  2132. function t() {
  2133. var e = {};
  2134. return {
  2135. get: function(t) {
  2136. return e[t]
  2137. },
  2138. add: function(t, n) {
  2139. e[t] = n
  2140. },
  2141. remove: function(t) {
  2142. delete e[t]
  2143. },
  2144. removeAll: function() {
  2145. e = {}
  2146. }
  2147. }
  2148. }
  2149. e.prototype = Object.assign(Object.create(o.Loader.prototype), {
  2150. constructor: e,
  2151. load: function(e, t, n, r) {
  2152. var i, a = this;
  2153. i = "" !== this.resourcePath ? this.resourcePath : "" !== this.path ? this.path : o.LoaderUtils.extractUrlBase(e),
  2154. a.manager.itemStart(e);
  2155. var s = function(t) {
  2156. r ? r(t) : console.error(t),
  2157. a.manager.itemError(e),
  2158. a.manager.itemEnd(e)
  2159. }
  2160. , c = new o.FileLoader(a.manager);
  2161. c.setPath(this.path),
  2162. c.setResponseType("arraybuffer"),
  2163. c.setRequestHeader(this.requestHeader),
  2164. "use-credentials" === a.crossOrigin && c.setWithCredentials(!0),
  2165. c.load(e, (function(n) {
  2166. try {
  2167. a.parse(n, i, (function(n) {
  2168. t(n),
  2169. a.manager.itemEnd(e)
  2170. }
  2171. ), s)
  2172. } catch (e) {
  2173. s(e)
  2174. }
  2175. }
  2176. ), n, s)
  2177. },
  2178. setDRACOLoader: function(e) {
  2179. return this.dracoLoader = e,
  2180. this
  2181. },
  2182. setDDSLoader: function(e) {
  2183. return this.ddsLoader = e,
  2184. this
  2185. },
  2186. setRequestHeader: function(e) {
  2187. return this.requestHeader = e,
  2188. this
  2189. },
  2190. setParserOnly: function(e) {
  2191. return this.parserOnly = e,
  2192. this
  2193. },
  2194. parse: function(e, t, r, l) {
  2195. var u, f = {};
  2196. if ("string" == typeof e)
  2197. u = e;
  2198. else if (o.LoaderUtils.decodeText(new Uint8Array(e,0,4)) === c) {
  2199. try {
  2200. f[n.KHR_BINARY_GLTF] = new p(e)
  2201. } catch (e) {
  2202. return void (l && l(e))
  2203. }
  2204. u = f[n.KHR_BINARY_GLTF].content
  2205. } else
  2206. u = o.LoaderUtils.decodeText(new Uint8Array(e));
  2207. var v = JSON.parse(u);
  2208. if (void 0 === v.asset || v.asset.version[0] < 2)
  2209. l && l(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));
  2210. else {
  2211. if (v.extensionsUsed)
  2212. for (var y = 0; y < v.extensionsUsed.length; ++y) {
  2213. var M = v.extensionsUsed[y]
  2214. , C = v.extensionsRequired || [];
  2215. switch (M) {
  2216. case n.KHR_LIGHTS_PUNCTUAL:
  2217. f[M] = new a(v);
  2218. break;
  2219. case n.KHR_MATERIALS_UNLIT:
  2220. f[M] = new s;
  2221. break;
  2222. case n.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:
  2223. f[M] = new m;
  2224. break;
  2225. case n.KHR_DRACO_MESH_COMPRESSION:
  2226. f[M] = new d(v,this.dracoLoader);
  2227. break;
  2228. case n.MSFT_TEXTURE_DDS:
  2229. f[M] = new i(this.ddsLoader);
  2230. break;
  2231. case n.KHR_TEXTURE_TRANSFORM:
  2232. f[M] = new h;
  2233. break;
  2234. case n.KHR_MESH_QUANTIZATION:
  2235. f[M] = new g;
  2236. break;
  2237. default:
  2238. C.indexOf(M) >= 0 && console.warn('THREE.GLTFLoader: Unknown extension "' + M + '".')
  2239. }
  2240. }
  2241. var w = new B(v,f,{
  2242. path: t || this.resourcePath || "",
  2243. crossOrigin: this.crossOrigin,
  2244. manager: this.manager
  2245. });
  2246. w.fileLoader.setRequestHeader(this.requestHeader),
  2247. this.parserOnly ? r({
  2248. parser: w
  2249. }) : w.parse(r, l)
  2250. }
  2251. }
  2252. });
  2253. var n = {
  2254. KHR_BINARY_GLTF: "KHR_binary_glTF",
  2255. KHR_DRACO_MESH_COMPRESSION: "KHR_draco_mesh_compression",
  2256. KHR_LIGHTS_PUNCTUAL: "KHR_lights_punctual",
  2257. KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS: "KHR_materials_pbrSpecularGlossiness",
  2258. KHR_MATERIALS_UNLIT: "KHR_materials_unlit",
  2259. KHR_TEXTURE_TRANSFORM: "KHR_texture_transform",
  2260. KHR_MESH_QUANTIZATION: "KHR_mesh_quantization",
  2261. MSFT_TEXTURE_DDS: "MSFT_texture_dds"
  2262. };
  2263. function i(e) {
  2264. if (!e)
  2265. throw new Error("THREE.GLTFLoader: Attempting to load .dds texture without importing DDSLoader");
  2266. this.name = n.MSFT_TEXTURE_DDS,
  2267. this.ddsLoader = e
  2268. }
  2269. function a(e) {
  2270. this.name = n.KHR_LIGHTS_PUNCTUAL;
  2271. var t = e.extensions && e.extensions[n.KHR_LIGHTS_PUNCTUAL] || {};
  2272. this.lightDefs = t.lights || []
  2273. }
  2274. function s() {
  2275. this.name = n.KHR_MATERIALS_UNLIT
  2276. }
  2277. a.prototype.loadLight = function(e) {
  2278. var t, n = this.lightDefs[e], r = new o.Color(16777215);
  2279. void 0 !== n.color && r.fromArray(n.color);
  2280. var i = void 0 !== n.range ? n.range : 0;
  2281. switch (n.type) {
  2282. case "directional":
  2283. (t = new o.DirectionalLight(r)).target.position.set(0, 0, -1),
  2284. t.add(t.target);
  2285. break;
  2286. case "point":
  2287. (t = new o.PointLight(r)).distance = i;
  2288. break;
  2289. case "spot":
  2290. (t = new o.SpotLight(r)).distance = i,
  2291. n.spot = n.spot || {},
  2292. n.spot.innerConeAngle = void 0 !== n.spot.innerConeAngle ? n.spot.innerConeAngle : 0,
  2293. n.spot.outerConeAngle = void 0 !== n.spot.outerConeAngle ? n.spot.outerConeAngle : Math.PI / 4,
  2294. t.angle = n.spot.outerConeAngle,
  2295. t.penumbra = 1 - n.spot.innerConeAngle / n.spot.outerConeAngle,
  2296. t.target.position.set(0, 0, -1),
  2297. t.add(t.target);
  2298. break;
  2299. default:
  2300. throw new Error('THREE.GLTFLoader: Unexpected light type, "' + n.type + '".')
  2301. }
  2302. return t.position.set(0, 0, 0),
  2303. t.decay = 2,
  2304. void 0 !== n.intensity && (t.intensity = n.intensity),
  2305. t.name = n.name || "light_" + e,
  2306. Promise.resolve(t)
  2307. }
  2308. ,
  2309. s.prototype.getMaterialType = function() {
  2310. return o.MeshBasicMaterial
  2311. }
  2312. ,
  2313. s.prototype.extendParams = function(e, t, n) {
  2314. var r = [];
  2315. e.color = new o.Color(1,1,1),
  2316. e.opacity = 1;
  2317. var i = t.pbrMetallicRoughness;
  2318. if (i) {
  2319. if (Array.isArray(i.baseColorFactor)) {
  2320. var a = i.baseColorFactor;
  2321. e.color.fromArray(a),
  2322. e.opacity = a[3]
  2323. }
  2324. void 0 !== i.baseColorTexture && r.push(n.assignTexture(e, "map", i.baseColorTexture))
  2325. }
  2326. return Promise.all(r)
  2327. }
  2328. ;
  2329. var c = "glTF"
  2330. , l = 1313821514
  2331. , u = 5130562;
  2332. function p(e) {
  2333. this.name = n.KHR_BINARY_GLTF,
  2334. this.content = null,
  2335. this.body = null;
  2336. var t = new DataView(e,0,12);
  2337. if (this.header = {
  2338. magic: o.LoaderUtils.decodeText(new Uint8Array(e.slice(0, 4))),
  2339. version: t.getUint32(4, !0),
  2340. length: t.getUint32(8, !0)
  2341. },
  2342. this.header.magic !== c)
  2343. throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
  2344. if (this.header.version < 2)
  2345. throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
  2346. for (var r = new DataView(e,12), i = 0; i < r.byteLength; ) {
  2347. var a = r.getUint32(i, !0);
  2348. i += 4;
  2349. var s = r.getUint32(i, !0);
  2350. if (i += 4,
  2351. s === l) {
  2352. var p = new Uint8Array(e,12 + i,a);
  2353. this.content = o.LoaderUtils.decodeText(p)
  2354. } else if (s === u) {
  2355. var d = 12 + i;
  2356. this.body = e.slice(d, d + a)
  2357. }
  2358. i += a
  2359. }
  2360. if (null === this.content)
  2361. throw new Error("THREE.GLTFLoader: JSON content not found.")
  2362. }
  2363. function d(e, t) {
  2364. if (!t)
  2365. throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");
  2366. this.name = n.KHR_DRACO_MESH_COMPRESSION,
  2367. this.json = e,
  2368. this.dracoLoader = t,
  2369. this.dracoLoader.preload()
  2370. }
  2371. function h() {
  2372. this.name = n.KHR_TEXTURE_TRANSFORM
  2373. }
  2374. function f(e) {
  2375. o.MeshStandardMaterial.call(this),
  2376. this.isGLTFSpecularGlossinessMaterial = !0;
  2377. var t = ["#ifdef USE_SPECULARMAP", "\tuniform sampler2D specularMap;", "#endif"].join("\n")
  2378. , n = ["#ifdef USE_GLOSSINESSMAP", "\tuniform sampler2D glossinessMap;", "#endif"].join("\n")
  2379. , r = ["vec3 specularFactor = specular;", "#ifdef USE_SPECULARMAP", "\tvec4 texelSpecular = texture2D( specularMap, vUv );", "\ttexelSpecular = sRGBToLinear( texelSpecular );", "\t// reads channel RGB, compatible with a glTF Specular-Glossiness (RGBA) texture", "\tspecularFactor *= texelSpecular.rgb;", "#endif"].join("\n")
  2380. , i = ["float glossinessFactor = glossiness;", "#ifdef USE_GLOSSINESSMAP", "\tvec4 texelGlossiness = texture2D( glossinessMap, vUv );", "\t// reads channel A, compatible with a glTF Specular-Glossiness (RGBA) texture", "\tglossinessFactor *= texelGlossiness.a;", "#endif"].join("\n")
  2381. , a = ["PhysicalMaterial material;", "material.diffuseColor = diffuseColor.rgb;", "vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );", "float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );", "material.specularRoughness = max( 1.0 - glossinessFactor, 0.0525 );// 0.0525 corresponds to the base mip of a 256 cubemap.", "material.specularRoughness += geometryRoughness;", "material.specularRoughness = min( material.specularRoughness, 1.0 );", "material.specularColor = specularFactor.rgb;"].join("\n")
  2382. , s = {
  2383. specular: {
  2384. value: (new o.Color).setHex(16777215)
  2385. },
  2386. glossiness: {
  2387. value: 1
  2388. },
  2389. specularMap: {
  2390. value: null
  2391. },
  2392. glossinessMap: {
  2393. value: null
  2394. }
  2395. };
  2396. this._extraUniforms = s,
  2397. this.onBeforeCompile = function(e) {
  2398. for (var o in s)
  2399. e.uniforms[o] = s[o];
  2400. e.fragmentShader = e.fragmentShader.replace("uniform float roughness;", "uniform vec3 specular;"),
  2401. e.fragmentShader = e.fragmentShader.replace("uniform float metalness;", "uniform float glossiness;"),
  2402. e.fragmentShader = e.fragmentShader.replace("#include <roughnessmap_pars_fragment>", t),
  2403. e.fragmentShader = e.fragmentShader.replace("#include <metalnessmap_pars_fragment>", n),
  2404. e.fragmentShader = e.fragmentShader.replace("#include <roughnessmap_fragment>", r),
  2405. e.fragmentShader = e.fragmentShader.replace("#include <metalnessmap_fragment>", i),
  2406. e.fragmentShader = e.fragmentShader.replace("#include <lights_physical_fragment>", a)
  2407. }
  2408. ,
  2409. Object.defineProperties(this, {
  2410. specular: {
  2411. get: function() {
  2412. return s.specular.value
  2413. },
  2414. set: function(e) {
  2415. s.specular.value = e
  2416. }
  2417. },
  2418. specularMap: {
  2419. get: function() {
  2420. return s.specularMap.value
  2421. },
  2422. set: function(e) {
  2423. s.specularMap.value = e
  2424. }
  2425. },
  2426. glossiness: {
  2427. get: function() {
  2428. return s.glossiness.value
  2429. },
  2430. set: function(e) {
  2431. s.glossiness.value = e
  2432. }
  2433. },
  2434. glossinessMap: {
  2435. get: function() {
  2436. return s.glossinessMap.value
  2437. },
  2438. set: function(e) {
  2439. s.glossinessMap.value = e,
  2440. e ? (this.defines.USE_GLOSSINESSMAP = "",
  2441. this.defines.USE_ROUGHNESSMAP = "") : (delete this.defines.USE_ROUGHNESSMAP,
  2442. delete this.defines.USE_GLOSSINESSMAP)
  2443. }
  2444. }
  2445. }),
  2446. delete this.metalness,
  2447. delete this.roughness,
  2448. delete this.metalnessMap,
  2449. delete this.roughnessMap,
  2450. this.setValues(e)
  2451. }
  2452. function m() {
  2453. return {
  2454. name: n.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS,
  2455. specularGlossinessParams: ["color", "map", "lightMap", "lightMapIntensity", "aoMap", "aoMapIntensity", "emissive", "emissiveIntensity", "emissiveMap", "bumpMap", "bumpScale", "normalMap", "normalMapType", "displacementMap", "displacementScale", "displacementBias", "specularMap", "specular", "glossinessMap", "glossiness", "alphaMap", "envMap", "envMapIntensity", "refractionRatio"],
  2456. getMaterialType: function() {
  2457. return f
  2458. },
  2459. extendParams: function(e, t, n) {
  2460. var r = t.extensions[this.name];
  2461. e.color = new o.Color(1,1,1),
  2462. e.opacity = 1;
  2463. var i = [];
  2464. if (Array.isArray(r.diffuseFactor)) {
  2465. var a = r.diffuseFactor;
  2466. e.color.fromArray(a),
  2467. e.opacity = a[3]
  2468. }
  2469. if (void 0 !== r.diffuseTexture && i.push(n.assignTexture(e, "map", r.diffuseTexture)),
  2470. e.emissive = new o.Color(0,0,0),
  2471. e.glossiness = void 0 !== r.glossinessFactor ? r.glossinessFactor : 1,
  2472. e.specular = new o.Color(1,1,1),
  2473. Array.isArray(r.specularFactor) && e.specular.fromArray(r.specularFactor),
  2474. void 0 !== r.specularGlossinessTexture) {
  2475. var s = r.specularGlossinessTexture;
  2476. i.push(n.assignTexture(e, "glossinessMap", s)),
  2477. i.push(n.assignTexture(e, "specularMap", s))
  2478. }
  2479. return Promise.all(i)
  2480. },
  2481. createMaterial: function(e) {
  2482. var t = new f(e);
  2483. return t.fog = !0,
  2484. t.color = e.color,
  2485. t.map = void 0 === e.map ? null : e.map,
  2486. t.lightMap = null,
  2487. t.lightMapIntensity = 1,
  2488. t.aoMap = void 0 === e.aoMap ? null : e.aoMap,
  2489. t.aoMapIntensity = 1,
  2490. t.emissive = e.emissive,
  2491. t.emissiveIntensity = 1,
  2492. t.emissiveMap = void 0 === e.emissiveMap ? null : e.emissiveMap,
  2493. t.bumpMap = void 0 === e.bumpMap ? null : e.bumpMap,
  2494. t.bumpScale = 1,
  2495. t.normalMap = void 0 === e.normalMap ? null : e.normalMap,
  2496. t.normalMapType = o.TangentSpaceNormalMap,
  2497. e.normalScale && (t.normalScale = e.normalScale),
  2498. t.displacementMap = null,
  2499. t.displacementScale = 1,
  2500. t.displacementBias = 0,
  2501. t.specularMap = void 0 === e.specularMap ? null : e.specularMap,
  2502. t.specular = e.specular,
  2503. t.glossinessMap = void 0 === e.glossinessMap ? null : e.glossinessMap,
  2504. t.glossiness = e.glossiness,
  2505. t.alphaMap = null,
  2506. t.envMap = void 0 === e.envMap ? null : e.envMap,
  2507. t.envMapIntensity = 1,
  2508. t.refractionRatio = .98,
  2509. t
  2510. }
  2511. }
  2512. }
  2513. function g() {
  2514. this.name = n.KHR_MESH_QUANTIZATION
  2515. }
  2516. function v(e, t, n, r) {
  2517. o.Interpolant.call(this, e, t, n, r)
  2518. }
  2519. d.prototype.decodePrimitive = function(e, t) {
  2520. var n = this.json
  2521. , o = this.dracoLoader
  2522. , r = e.extensions[this.name].bufferView
  2523. , i = e.extensions[this.name].attributes
  2524. , a = {}
  2525. , s = {}
  2526. , c = {};
  2527. for (var l in i) {
  2528. var u = P[l] || l.toLowerCase();
  2529. a[u] = i[l]
  2530. }
  2531. for (l in e.attributes) {
  2532. u = P[l] || l.toLowerCase();
  2533. if (void 0 !== i[l]) {
  2534. var p = n.accessors[e.attributes[l]]
  2535. , d = _[p.componentType];
  2536. c[u] = d,
  2537. s[u] = !0 === p.normalized
  2538. }
  2539. }
  2540. return t.getDependency("bufferView", r).then((function(e) {
  2541. return new Promise((function(t) {
  2542. o.decodeDracoFile(e, (function(e) {
  2543. for (var n in e.attributes) {
  2544. var o = e.attributes[n]
  2545. , r = s[n];
  2546. void 0 !== r && (o.normalized = r)
  2547. }
  2548. t(e)
  2549. }
  2550. ), a, c)
  2551. }
  2552. ))
  2553. }
  2554. ))
  2555. }
  2556. ,
  2557. h.prototype.extendTexture = function(e, t) {
  2558. return e = e.clone(),
  2559. void 0 !== t.offset && e.offset.fromArray(t.offset),
  2560. void 0 !== t.rotation && (e.rotation = t.rotation),
  2561. void 0 !== t.scale && e.repeat.fromArray(t.scale),
  2562. void 0 !== t.texCoord && console.warn('THREE.GLTFLoader: Custom UV sets in "' + this.name + '" extension not yet supported.'),
  2563. e.needsUpdate = !0,
  2564. e
  2565. }
  2566. ,
  2567. f.prototype = Object.create(o.MeshStandardMaterial.prototype),
  2568. f.prototype.constructor = f,
  2569. f.prototype.copy = function(e) {
  2570. return o.MeshStandardMaterial.prototype.copy.call(this, e),
  2571. this.specularMap = e.specularMap,
  2572. this.specular.copy(e.specular),
  2573. this.glossinessMap = e.glossinessMap,
  2574. this.glossiness = e.glossiness,
  2575. delete this.metalness,
  2576. delete this.roughness,
  2577. delete this.metalnessMap,
  2578. delete this.roughnessMap,
  2579. this
  2580. }
  2581. ,
  2582. v.prototype = Object.create(o.Interpolant.prototype),
  2583. v.prototype.constructor = v,
  2584. v.prototype.copySampleValue_ = function(e) {
  2585. for (var t = this.resultBuffer, n = this.sampleValues, o = this.valueSize, r = e * o * 3 + o, i = 0; i !== o; i++)
  2586. t[i] = n[r + i];
  2587. return t
  2588. }
  2589. ,
  2590. v.prototype.beforeStart_ = v.prototype.copySampleValue_,
  2591. v.prototype.afterEnd_ = v.prototype.copySampleValue_,
  2592. v.prototype.interpolate_ = function(e, t, n, o) {
  2593. for (var r = this.resultBuffer, i = this.sampleValues, a = this.valueSize, s = 2 * a, c = 3 * a, l = o - t, u = (n - t) / l, p = u * u, d = p * u, h = e * c, f = h - c, m = -2 * d + 3 * p, g = d - p, v = 1 - m, y = g - p + u, M = 0; M !== a; M++) {
  2594. var C = i[f + M + a]
  2595. , w = i[f + M + s] * l
  2596. , S = i[h + M + a]
  2597. , b = i[h + M] * l;
  2598. r[M] = v * C + y * w + m * S + g * b
  2599. }
  2600. return r
  2601. }
  2602. ;
  2603. var y = 0
  2604. , M = 1
  2605. , C = 2
  2606. , w = 3
  2607. , S = 4
  2608. , b = 5
  2609. , T = 6
  2610. , _ = {
  2611. 5120: Int8Array,
  2612. 5121: Uint8Array,
  2613. 5122: Int16Array,
  2614. 5123: Uint16Array,
  2615. 5125: Uint32Array,
  2616. 5126: Float32Array
  2617. }
  2618. , x = {
  2619. 9728: o.NearestFilter,
  2620. 9729: o.LinearFilter,
  2621. 9984: o.NearestMipmapNearestFilter,
  2622. 9985: o.LinearMipmapNearestFilter,
  2623. 9986: o.NearestMipmapLinearFilter,
  2624. 9987: o.LinearMipmapLinearFilter
  2625. }
  2626. , E = {
  2627. 33071: o.ClampToEdgeWrapping,
  2628. 33648: o.MirroredRepeatWrapping,
  2629. 10497: o.RepeatWrapping
  2630. }
  2631. , L = {
  2632. SCALAR: 1,
  2633. VEC2: 2,
  2634. VEC3: 3,
  2635. VEC4: 4,
  2636. MAT2: 4,
  2637. MAT3: 9,
  2638. MAT4: 16
  2639. }
  2640. , P = {
  2641. POSITION: "position",
  2642. NORMAL: "normal",
  2643. TANGENT: "tangent",
  2644. TEXCOORD_0: "uv",
  2645. TEXCOORD_1: "uv2",
  2646. COLOR_0: "color",
  2647. WEIGHTS_0: "skinWeight",
  2648. JOINTS_0: "skinIndex"
  2649. }
  2650. , O = {
  2651. scale: "scale",
  2652. translation: "position",
  2653. rotation: "quaternion",
  2654. weights: "morphTargetInfluences"
  2655. }
  2656. , A = {
  2657. CUBICSPLINE: void 0,
  2658. LINEAR: o.InterpolateLinear,
  2659. STEP: o.InterpolateDiscrete
  2660. }
  2661. , D = "OPAQUE"
  2662. , j = "MASK"
  2663. , I = "BLEND"
  2664. , R = {
  2665. "image/png": o.RGBAFormat,
  2666. "image/jpeg": o.RGBFormat
  2667. };
  2668. function N(e, t) {
  2669. return "string" != typeof e || "" === e ? "" : (/^https?:\/\//i.test(t) && /^\//.test(e) && (t = t.replace(/(^https?:\/\/[^\/]+).*/i, "$1")),
  2670. /^(https?:)?\/\//i.test(e) || /^data:.*,.*$/i.test(e) || /^blob:.*$/i.test(e) ? e : t + e)
  2671. }
  2672. function F(e, t, n) {
  2673. for (var o in n.extensions)
  2674. void 0 === e[o] && (t.userData.gltfExtensions = t.userData.gltfExtensions || {},
  2675. t.userData.gltfExtensions[o] = n.extensions[o])
  2676. }
  2677. function V(e, t) {
  2678. void 0 !== t.extras && ("object" === r(t.extras) ? Object.assign(e.userData, t.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + t.extras))
  2679. }
  2680. function U(e, t) {
  2681. if (e.updateMorphTargets(),
  2682. void 0 !== t.weights)
  2683. for (var n = 0, o = t.weights.length; n < o; n++)
  2684. e.morphTargetInfluences[n] = t.weights[n];
  2685. if (t.extras && Array.isArray(t.extras.targetNames)) {
  2686. var r = t.extras.targetNames;
  2687. if (e.morphTargetInfluences.length === r.length) {
  2688. e.morphTargetDictionary = {};
  2689. for (n = 0,
  2690. o = r.length; n < o; n++)
  2691. e.morphTargetDictionary[r[n]] = n
  2692. } else
  2693. console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")
  2694. }
  2695. }
  2696. function k(e) {
  2697. for (var t = "", n = Object.keys(e).sort(), o = 0, r = n.length; o < r; o++)
  2698. t += n[o] + ":" + e[n[o]] + ";";
  2699. return t
  2700. }
  2701. function B(e, n, r) {
  2702. this.json = e || {},
  2703. this.extensions = n || {},
  2704. this.options = r || {},
  2705. this.cache = new t,
  2706. this.primitiveCache = {},
  2707. this.textureLoader = new o.TextureLoader(this.options.manager),
  2708. this.textureLoader.setCrossOrigin(this.options.crossOrigin),
  2709. this.fileLoader = new o.FileLoader(this.options.manager),
  2710. this.fileLoader.setResponseType("arraybuffer"),
  2711. "use-credentials" === this.options.crossOrigin && this.fileLoader.setWithCredentials(!0)
  2712. }
  2713. function z(e, t, n) {
  2714. var r = t.attributes
  2715. , i = [];
  2716. function a(t, o) {
  2717. return n.getDependency("accessor", t).then((function(t) {
  2718. e.setAttribute(o, t)
  2719. }
  2720. ))
  2721. }
  2722. for (var s in r) {
  2723. var c = P[s] || s.toLowerCase();
  2724. c in e.attributes || i.push(a(r[s], c))
  2725. }
  2726. if (void 0 !== t.indices && !e.index) {
  2727. var l = n.getDependency("accessor", t.indices).then((function(t) {
  2728. e.setIndex(t)
  2729. }
  2730. ));
  2731. i.push(l)
  2732. }
  2733. return V(e, t),
  2734. function(e, t, n) {
  2735. var r = t.attributes
  2736. , i = new o.Box3;
  2737. if (void 0 !== r.POSITION) {
  2738. var a = (h = n.json.accessors[r.POSITION]).min
  2739. , s = h.max;
  2740. if (void 0 !== a && void 0 !== s) {
  2741. i.set(new o.Vector3(a[0],a[1],a[2]), new o.Vector3(s[0],s[1],s[2]));
  2742. var c = t.targets;
  2743. if (void 0 !== c)
  2744. for (var l = new o.Vector3, u = 0, p = c.length; u < p; u++) {
  2745. var d = c[u];
  2746. if (void 0 !== d.POSITION) {
  2747. var h;
  2748. a = (h = n.json.accessors[d.POSITION]).min,
  2749. s = h.max;
  2750. void 0 !== a && void 0 !== s ? (l.setX(Math.max(Math.abs(a[0]), Math.abs(s[0]))),
  2751. l.setY(Math.max(Math.abs(a[1]), Math.abs(s[1]))),
  2752. l.setZ(Math.max(Math.abs(a[2]), Math.abs(s[2]))),
  2753. i.expandByVector(l)) : console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")
  2754. }
  2755. }
  2756. e.boundingBox = i;
  2757. var f = new o.Sphere;
  2758. i.getCenter(f.center),
  2759. f.radius = i.min.distanceTo(i.max) / 2,
  2760. e.boundingSphere = f
  2761. } else
  2762. console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")
  2763. }
  2764. }(e, t, n),
  2765. Promise.all(i).then((function() {
  2766. return void 0 !== t.targets ? function(e, t, n) {
  2767. for (var o = !1, r = !1, i = 0, a = t.length; i < a; i++) {
  2768. if (void 0 !== (l = t[i]).POSITION && (o = !0),
  2769. void 0 !== l.NORMAL && (r = !0),
  2770. o && r)
  2771. break
  2772. }
  2773. if (!o && !r)
  2774. return Promise.resolve(e);
  2775. var s = []
  2776. , c = [];
  2777. for (i = 0,
  2778. a = t.length; i < a; i++) {
  2779. var l = t[i];
  2780. if (o) {
  2781. var u = void 0 !== l.POSITION ? n.getDependency("accessor", l.POSITION) : e.attributes.position;
  2782. s.push(u)
  2783. }
  2784. if (r) {
  2785. u = void 0 !== l.NORMAL ? n.getDependency("accessor", l.NORMAL) : e.attributes.normal;
  2786. c.push(u)
  2787. }
  2788. }
  2789. return Promise.all([Promise.all(s), Promise.all(c)]).then((function(t) {
  2790. var n = t[0]
  2791. , i = t[1];
  2792. return o && (e.morphAttributes.position = n),
  2793. r && (e.morphAttributes.normal = i),
  2794. e.morphTargetsRelative = !0,
  2795. e
  2796. }
  2797. ))
  2798. }(e, t.targets, n) : e
  2799. }
  2800. ))
  2801. }
  2802. function G(e, t) {
  2803. var n = e.getIndex();
  2804. if (null === n) {
  2805. var r = []
  2806. , i = e.getAttribute("position");
  2807. if (void 0 === i)
  2808. return console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),
  2809. e;
  2810. for (var a = 0; a < i.count; a++)
  2811. r.push(a);
  2812. e.setIndex(r),
  2813. n = e.getIndex()
  2814. }
  2815. var s = n.count - 2
  2816. , c = [];
  2817. if (t === o.TriangleFanDrawMode)
  2818. for (a = 1; a <= s; a++)
  2819. c.push(n.getX(0)),
  2820. c.push(n.getX(a)),
  2821. c.push(n.getX(a + 1));
  2822. else
  2823. for (a = 0; a < s; a++)
  2824. a % 2 == 0 ? (c.push(n.getX(a)),
  2825. c.push(n.getX(a + 1)),
  2826. c.push(n.getX(a + 2))) : (c.push(n.getX(a + 2)),
  2827. c.push(n.getX(a + 1)),
  2828. c.push(n.getX(a)));
  2829. c.length / 3 !== s && console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");
  2830. var l = e.clone();
  2831. return l.setIndex(c),
  2832. l
  2833. }
  2834. return B.prototype.parse = function(e, t) {
  2835. var n = this
  2836. , o = this.json
  2837. , r = this.extensions;
  2838. this.cache.removeAll(),
  2839. this.markDefs(),
  2840. Promise.all([this.getDependencies("scene"), this.getDependencies("animation"), this.getDependencies("camera")]).then((function(t) {
  2841. var i = {
  2842. scene: t[0][o.scene || 0],
  2843. scenes: t[0],
  2844. animations: t[1],
  2845. cameras: t[2],
  2846. asset: o.asset,
  2847. parser: n,
  2848. userData: {}
  2849. };
  2850. F(r, i, o),
  2851. V(i, o),
  2852. e(i)
  2853. }
  2854. )).catch(t)
  2855. }
  2856. ,
  2857. B.prototype.markDefs = function() {
  2858. for (var e = this.json.nodes || [], t = this.json.skins || [], n = this.json.meshes || [], o = {}, r = {}, i = 0, a = t.length; i < a; i++)
  2859. for (var s = t[i].joints, c = 0, l = s.length; c < l; c++)
  2860. e[s[c]].isBone = !0;
  2861. for (var u = 0, p = e.length; u < p; u++) {
  2862. var d = e[u];
  2863. void 0 !== d.mesh && (void 0 === o[d.mesh] && (o[d.mesh] = r[d.mesh] = 0),
  2864. o[d.mesh]++,
  2865. void 0 !== d.skin && (n[d.mesh].isSkinnedMesh = !0))
  2866. }
  2867. this.json.meshReferences = o,
  2868. this.json.meshUses = r
  2869. }
  2870. ,
  2871. B.prototype.getDependency = function(e, t) {
  2872. var o = e + ":" + t
  2873. , r = this.cache.get(o);
  2874. if (!r) {
  2875. switch (e) {
  2876. case "scene":
  2877. r = this.loadScene(t);
  2878. break;
  2879. case "node":
  2880. r = this.loadNode(t);
  2881. break;
  2882. case "mesh":
  2883. r = this.loadMesh(t);
  2884. break;
  2885. case "accessor":
  2886. r = this.loadAccessor(t);
  2887. break;
  2888. case "bufferView":
  2889. r = this.loadBufferView(t);
  2890. break;
  2891. case "buffer":
  2892. r = this.loadBuffer(t);
  2893. break;
  2894. case "material":
  2895. r = this.loadMaterial(t);
  2896. break;
  2897. case "texture":
  2898. r = this.loadTexture(t);
  2899. break;
  2900. case "skin":
  2901. r = this.loadSkin(t);
  2902. break;
  2903. case "animation":
  2904. r = this.loadAnimation(t);
  2905. break;
  2906. case "camera":
  2907. r = this.loadCamera(t);
  2908. break;
  2909. case "light":
  2910. r = this.extensions[n.KHR_LIGHTS_PUNCTUAL].loadLight(t);
  2911. break;
  2912. default:
  2913. throw new Error("Unknown type: " + e)
  2914. }
  2915. this.cache.add(o, r)
  2916. }
  2917. return r
  2918. }
  2919. ,
  2920. B.prototype.getDependencies = function(e) {
  2921. var t = this.cache.get(e);
  2922. if (!t) {
  2923. var n = this
  2924. , o = this.json[e + ("mesh" === e ? "es" : "s")] || [];
  2925. t = Promise.all(o.map((function(t, o) {
  2926. return n.getDependency(e, o)
  2927. }
  2928. ))),
  2929. this.cache.add(e, t)
  2930. }
  2931. return t
  2932. }
  2933. ,
  2934. B.prototype.loadBuffer = function(e) {
  2935. var t = this.json.buffers[e]
  2936. , o = this.fileLoader;
  2937. if (t.type && "arraybuffer" !== t.type)
  2938. throw new Error("THREE.GLTFLoader: " + t.type + " buffer type is not supported.");
  2939. if (void 0 === t.uri && 0 === e)
  2940. return Promise.resolve(this.extensions[n.KHR_BINARY_GLTF].body);
  2941. var r = this.options;
  2942. return new Promise((function(e, n) {
  2943. o.load(N(t.uri, r.path), e, void 0, (function() {
  2944. n(new Error('THREE.GLTFLoader: Failed to load buffer "' + t.uri + '".'))
  2945. }
  2946. ))
  2947. }
  2948. ))
  2949. }
  2950. ,
  2951. B.prototype.loadBufferView = function(e) {
  2952. var t = this.json.bufferViews[e];
  2953. return this.getDependency("buffer", t.buffer).then((function(e) {
  2954. var n = t.byteLength || 0
  2955. , o = t.byteOffset || 0;
  2956. return e.slice(o, o + n)
  2957. }
  2958. ))
  2959. }
  2960. ,
  2961. B.prototype.loadAccessor = function(e) {
  2962. var t = this
  2963. , n = this.json
  2964. , r = this.json.accessors[e];
  2965. if (void 0 === r.bufferView && void 0 === r.sparse)
  2966. return Promise.resolve(null);
  2967. var i = [];
  2968. return void 0 !== r.bufferView ? i.push(this.getDependency("bufferView", r.bufferView)) : i.push(null),
  2969. void 0 !== r.sparse && (i.push(this.getDependency("bufferView", r.sparse.indices.bufferView)),
  2970. i.push(this.getDependency("bufferView", r.sparse.values.bufferView))),
  2971. Promise.all(i).then((function(e) {
  2972. var i, a, s = e[0], c = L[r.type], l = _[r.componentType], u = l.BYTES_PER_ELEMENT, p = u * c, d = r.byteOffset || 0, h = void 0 !== r.bufferView ? n.bufferViews[r.bufferView].byteStride : void 0, f = !0 === r.normalized;
  2973. if (h && h !== p) {
  2974. var m = Math.floor(d / h)
  2975. , g = "InterleavedBuffer:" + r.bufferView + ":" + r.componentType + ":" + m + ":" + r.count
  2976. , v = t.cache.get(g);
  2977. v || (i = new l(s,m * h,r.count * h / u),
  2978. v = new o.InterleavedBuffer(i,h / u),
  2979. t.cache.add(g, v)),
  2980. a = new o.InterleavedBufferAttribute(v,c,d % h / u,f)
  2981. } else
  2982. i = null === s ? new l(r.count * c) : new l(s,d,r.count * c),
  2983. a = new o.BufferAttribute(i,c,f);
  2984. if (void 0 !== r.sparse) {
  2985. var y = L.SCALAR
  2986. , M = _[r.sparse.indices.componentType]
  2987. , C = r.sparse.indices.byteOffset || 0
  2988. , w = r.sparse.values.byteOffset || 0
  2989. , S = new M(e[1],C,r.sparse.count * y)
  2990. , b = new l(e[2],w,r.sparse.count * c);
  2991. null !== s && (a = new o.BufferAttribute(a.array.slice(),a.itemSize,a.normalized));
  2992. for (var T = 0, x = S.length; T < x; T++) {
  2993. var E = S[T];
  2994. if (a.setX(E, b[T * c]),
  2995. c >= 2 && a.setY(E, b[T * c + 1]),
  2996. c >= 3 && a.setZ(E, b[T * c + 2]),
  2997. c >= 4 && a.setW(E, b[T * c + 3]),
  2998. c >= 5)
  2999. throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")
  3000. }
  3001. }
  3002. return a
  3003. }
  3004. ))
  3005. }
  3006. ,
  3007. B.prototype.loadTexture = function(e) {
  3008. var t, r = this, i = this.json, a = this.options, s = this.textureLoader, c = window.URL || window.webkitURL, l = i.textures[e], u = l.extensions || {}, p = (t = u[n.MSFT_TEXTURE_DDS] ? i.images[u[n.MSFT_TEXTURE_DDS].source] : i.images[l.source]).uri, d = !1;
  3009. return void 0 !== t.bufferView && (p = r.getDependency("bufferView", t.bufferView).then((function(e) {
  3010. d = !0;
  3011. var n = new Blob([e],{
  3012. type: t.mimeType
  3013. });
  3014. return p = c.createObjectURL(n)
  3015. }
  3016. ))),
  3017. Promise.resolve(p).then((function(e) {
  3018. var t = a.manager.getHandler(e);
  3019. return t || (t = u[n.MSFT_TEXTURE_DDS] ? r.extensions[n.MSFT_TEXTURE_DDS].ddsLoader : s),
  3020. new Promise((function(n, o) {
  3021. t.load(N(e, a.path), n, void 0, o)
  3022. }
  3023. ))
  3024. }
  3025. )).then((function(e) {
  3026. !0 === d && c.revokeObjectURL(p),
  3027. e.flipY = !1,
  3028. l.name && (e.name = l.name),
  3029. t.mimeType in R && (e.format = R[t.mimeType]);
  3030. var n = (i.samplers || {})[l.sampler] || {};
  3031. return e.magFilter = x[n.magFilter] || o.LinearFilter,
  3032. e.minFilter = x[n.minFilter] || o.LinearMipmapLinearFilter,
  3033. e.wrapS = E[n.wrapS] || o.RepeatWrapping,
  3034. e.wrapT = E[n.wrapT] || o.RepeatWrapping,
  3035. e
  3036. }
  3037. ))
  3038. }
  3039. ,
  3040. B.prototype.assignTexture = function(e, t, r) {
  3041. var i = this;
  3042. return this.getDependency("texture", r.index).then((function(a) {
  3043. if (!a.isCompressedTexture)
  3044. switch (t) {
  3045. case "aoMap":
  3046. case "emissiveMap":
  3047. case "metalnessMap":
  3048. case "normalMap":
  3049. case "roughnessMap":
  3050. a.format = o.RGBFormat
  3051. }
  3052. if (void 0 === r.texCoord || 0 == r.texCoord || "aoMap" === t && 1 == r.texCoord || console.warn("THREE.GLTFLoader: Custom UV set " + r.texCoord + " for texture " + t + " not yet supported."),
  3053. i.extensions[n.KHR_TEXTURE_TRANSFORM]) {
  3054. var s = void 0 !== r.extensions ? r.extensions[n.KHR_TEXTURE_TRANSFORM] : void 0;
  3055. s && (a = i.extensions[n.KHR_TEXTURE_TRANSFORM].extendTexture(a, s))
  3056. }
  3057. e[t] = a
  3058. }
  3059. ))
  3060. }
  3061. ,
  3062. B.prototype.assignFinalMaterial = function(e) {
  3063. var t = e.geometry
  3064. , n = e.material
  3065. , r = void 0 !== t.attributes.tangent
  3066. , i = void 0 !== t.attributes.color
  3067. , a = void 0 === t.attributes.normal
  3068. , s = !0 === e.isSkinnedMesh
  3069. , c = Object.keys(t.morphAttributes).length > 0
  3070. , l = c && void 0 !== t.morphAttributes.normal;
  3071. if (e.isPoints) {
  3072. var u = "PointsMaterial:" + n.uuid
  3073. , p = this.cache.get(u);
  3074. p || (p = new o.PointsMaterial,
  3075. o.Material.prototype.copy.call(p, n),
  3076. p.color.copy(n.color),
  3077. p.map = n.map,
  3078. p.sizeAttenuation = !1,
  3079. this.cache.add(u, p)),
  3080. n = p
  3081. } else if (e.isLine) {
  3082. u = "LineBasicMaterial:" + n.uuid;
  3083. var d = this.cache.get(u);
  3084. d || (d = new o.LineBasicMaterial,
  3085. o.Material.prototype.copy.call(d, n),
  3086. d.color.copy(n.color),
  3087. this.cache.add(u, d)),
  3088. n = d
  3089. }
  3090. if (r || i || a || s || c) {
  3091. u = "ClonedMaterial:" + n.uuid + ":";
  3092. n.isGLTFSpecularGlossinessMaterial && (u += "specular-glossiness:"),
  3093. s && (u += "skinning:"),
  3094. r && (u += "vertex-tangents:"),
  3095. i && (u += "vertex-colors:"),
  3096. a && (u += "flat-shading:"),
  3097. c && (u += "morph-targets:"),
  3098. l && (u += "morph-normals:");
  3099. var h = this.cache.get(u);
  3100. h || (h = n.clone(),
  3101. s && (h.skinning = !0),
  3102. r && (h.vertexTangents = !0),
  3103. i && (h.vertexColors = !0),
  3104. a && (h.flatShading = !0),
  3105. c && (h.morphTargets = !0),
  3106. l && (h.morphNormals = !0),
  3107. this.cache.add(u, h)),
  3108. n = h
  3109. }
  3110. n.aoMap && void 0 === t.attributes.uv2 && void 0 !== t.attributes.uv && t.setAttribute("uv2", new o.BufferAttribute(t.attributes.uv.array,2)),
  3111. n.normalScale && !r && (n.normalScale.y = -n.normalScale.y),
  3112. e.material = n
  3113. }
  3114. ,
  3115. B.prototype.loadMaterial = function(e) {
  3116. var t, r = this.json, i = this.extensions, a = r.materials[e], s = {}, c = a.extensions || {}, l = [];
  3117. if (c[n.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]) {
  3118. var u = i[n.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];
  3119. t = u.getMaterialType(),
  3120. l.push(u.extendParams(s, a, this))
  3121. } else if (c[n.KHR_MATERIALS_UNLIT]) {
  3122. var p = i[n.KHR_MATERIALS_UNLIT];
  3123. t = p.getMaterialType(),
  3124. l.push(p.extendParams(s, a, this))
  3125. } else {
  3126. t = o.MeshStandardMaterial;
  3127. var d = a.pbrMetallicRoughness || {};
  3128. if (s.color = new o.Color(1,1,1),
  3129. s.opacity = 1,
  3130. Array.isArray(d.baseColorFactor)) {
  3131. var h = d.baseColorFactor;
  3132. s.color.fromArray(h),
  3133. s.opacity = h[3]
  3134. }
  3135. void 0 !== d.baseColorTexture && l.push(this.assignTexture(s, "map", d.baseColorTexture)),
  3136. s.metalness = void 0 !== d.metallicFactor ? d.metallicFactor : 1,
  3137. s.roughness = void 0 !== d.roughnessFactor ? d.roughnessFactor : 1,
  3138. void 0 !== d.metallicRoughnessTexture && (l.push(this.assignTexture(s, "metalnessMap", d.metallicRoughnessTexture)),
  3139. l.push(this.assignTexture(s, "roughnessMap", d.metallicRoughnessTexture)))
  3140. }
  3141. !0 === a.doubleSided && (s.side = o.DoubleSide);
  3142. var m = a.alphaMode || D;
  3143. return m === I ? (s.transparent = !0,
  3144. s.depthWrite = !1) : (s.transparent = !1,
  3145. m === j && (s.alphaTest = void 0 !== a.alphaCutoff ? a.alphaCutoff : .5)),
  3146. void 0 !== a.normalTexture && t !== o.MeshBasicMaterial && (l.push(this.assignTexture(s, "normalMap", a.normalTexture)),
  3147. s.normalScale = new o.Vector2(1,1),
  3148. void 0 !== a.normalTexture.scale && s.normalScale.set(a.normalTexture.scale, a.normalTexture.scale)),
  3149. void 0 !== a.occlusionTexture && t !== o.MeshBasicMaterial && (l.push(this.assignTexture(s, "aoMap", a.occlusionTexture)),
  3150. void 0 !== a.occlusionTexture.strength && (s.aoMapIntensity = a.occlusionTexture.strength)),
  3151. void 0 !== a.emissiveFactor && t !== o.MeshBasicMaterial && (s.emissive = (new o.Color).fromArray(a.emissiveFactor)),
  3152. void 0 !== a.emissiveTexture && t !== o.MeshBasicMaterial && l.push(this.assignTexture(s, "emissiveMap", a.emissiveTexture)),
  3153. Promise.all(l).then((function() {
  3154. var e;
  3155. return e = t === f ? i[n.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(s) : new t(s),
  3156. a.name && (e.name = a.name),
  3157. e.map && (e.map.encoding = o.sRGBEncoding),
  3158. e.emissiveMap && (e.emissiveMap.encoding = o.sRGBEncoding),
  3159. V(e, a),
  3160. a.extensions && F(i, e, a),
  3161. e
  3162. }
  3163. ))
  3164. }
  3165. ,
  3166. B.prototype.loadGeometries = function(e) {
  3167. var t = this
  3168. , r = this.extensions
  3169. , i = this.primitiveCache;
  3170. function a(e) {
  3171. return r[n.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e, t).then((function(n) {
  3172. return z(n, e, t)
  3173. }
  3174. ))
  3175. }
  3176. for (var s, c, l = [], u = 0, p = e.length; u < p; u++) {
  3177. var d, h = e[u], f = (c = void 0,
  3178. (c = (s = h).extensions && s.extensions[n.KHR_DRACO_MESH_COMPRESSION]) ? "draco:" + c.bufferView + ":" + c.indices + ":" + k(c.attributes) : s.indices + ":" + k(s.attributes) + ":" + s.mode), m = i[f];
  3179. if (m)
  3180. l.push(m.promise);
  3181. else
  3182. d = h.extensions && h.extensions[n.KHR_DRACO_MESH_COMPRESSION] ? a(h) : z(new o.BufferGeometry, h, t),
  3183. i[f] = {
  3184. primitive: h,
  3185. promise: d
  3186. },
  3187. l.push(d)
  3188. }
  3189. return Promise.all(l)
  3190. }
  3191. ,
  3192. B.prototype.loadMesh = function(e) {
  3193. for (var t, n = this, r = this.json.meshes[e], i = r.primitives, a = [], s = 0, c = i.length; s < c; s++) {
  3194. var l = void 0 === i[s].material ? (void 0 === (t = this.cache).DefaultMaterial && (t.DefaultMaterial = new o.MeshStandardMaterial({
  3195. color: 16777215,
  3196. emissive: 0,
  3197. metalness: 1,
  3198. roughness: 1,
  3199. transparent: !1,
  3200. depthTest: !0,
  3201. side: o.FrontSide
  3202. })),
  3203. t.DefaultMaterial) : this.getDependency("material", i[s].material);
  3204. a.push(l)
  3205. }
  3206. return a.push(n.loadGeometries(i)),
  3207. Promise.all(a).then((function(t) {
  3208. for (var a = t.slice(0, t.length - 1), s = t[t.length - 1], c = [], l = 0, u = s.length; l < u; l++) {
  3209. var p, d = s[l], h = i[l], f = a[l];
  3210. if (h.mode === S || h.mode === b || h.mode === T || void 0 === h.mode)
  3211. !0 !== (p = !0 === r.isSkinnedMesh ? new o.SkinnedMesh(d,f) : new o.Mesh(d,f)).isSkinnedMesh || p.geometry.attributes.skinWeight.normalized || p.normalizeSkinWeights(),
  3212. h.mode === b ? p.geometry = G(p.geometry, o.TriangleStripDrawMode) : h.mode === T && (p.geometry = G(p.geometry, o.TriangleFanDrawMode));
  3213. else if (h.mode === M)
  3214. p = new o.LineSegments(d,f);
  3215. else if (h.mode === w)
  3216. p = new o.Line(d,f);
  3217. else if (h.mode === C)
  3218. p = new o.LineLoop(d,f);
  3219. else {
  3220. if (h.mode !== y)
  3221. throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + h.mode);
  3222. p = new o.Points(d,f)
  3223. }
  3224. Object.keys(p.geometry.morphAttributes).length > 0 && U(p, r),
  3225. p.name = r.name || "mesh_" + e,
  3226. s.length > 1 && (p.name += "_" + l),
  3227. V(p, r),
  3228. n.assignFinalMaterial(p),
  3229. c.push(p)
  3230. }
  3231. if (1 === c.length)
  3232. return c[0];
  3233. var m = new o.Group;
  3234. for (l = 0,
  3235. u = c.length; l < u; l++)
  3236. m.add(c[l]);
  3237. return m
  3238. }
  3239. ))
  3240. }
  3241. ,
  3242. B.prototype.loadCamera = function(e) {
  3243. var t, n = this.json.cameras[e], r = n[n.type];
  3244. if (r)
  3245. return "perspective" === n.type ? t = new o.PerspectiveCamera(o.MathUtils.radToDeg(r.yfov),r.aspectRatio || 1,r.znear || 1,r.zfar || 2e6) : "orthographic" === n.type && (t = new o.OrthographicCamera(r.xmag / -2,r.xmag / 2,r.ymag / 2,r.ymag / -2,r.znear,r.zfar)),
  3246. n.name && (t.name = n.name),
  3247. V(t, n),
  3248. Promise.resolve(t);
  3249. console.warn("THREE.GLTFLoader: Missing camera parameters.")
  3250. }
  3251. ,
  3252. B.prototype.loadSkin = function(e) {
  3253. var t = this.json.skins[e]
  3254. , n = {
  3255. joints: t.joints
  3256. };
  3257. return void 0 === t.inverseBindMatrices ? Promise.resolve(n) : this.getDependency("accessor", t.inverseBindMatrices).then((function(e) {
  3258. return n.inverseBindMatrices = e,
  3259. n
  3260. }
  3261. ))
  3262. }
  3263. ,
  3264. B.prototype.loadAnimation = function(e) {
  3265. for (var t = this.json.animations[e], n = [], r = [], i = [], a = [], s = [], c = 0, l = t.channels.length; c < l; c++) {
  3266. var u = t.channels[c]
  3267. , p = t.samplers[u.sampler]
  3268. , d = u.target
  3269. , h = void 0 !== d.node ? d.node : d.id
  3270. , f = void 0 !== t.parameters ? t.parameters[p.input] : p.input
  3271. , m = void 0 !== t.parameters ? t.parameters[p.output] : p.output;
  3272. n.push(this.getDependency("node", h)),
  3273. r.push(this.getDependency("accessor", f)),
  3274. i.push(this.getDependency("accessor", m)),
  3275. a.push(p),
  3276. s.push(d)
  3277. }
  3278. return Promise.all([Promise.all(n), Promise.all(r), Promise.all(i), Promise.all(a), Promise.all(s)]).then((function(n) {
  3279. for (var r = n[0], i = n[1], a = n[2], s = n[3], c = n[4], l = [], u = 0, p = r.length; u < p; u++) {
  3280. var d = r[u]
  3281. , h = i[u]
  3282. , f = a[u]
  3283. , m = s[u]
  3284. , g = c[u];
  3285. if (void 0 !== d) {
  3286. var y;
  3287. switch (d.updateMatrix(),
  3288. d.matrixAutoUpdate = !0,
  3289. O[g.path]) {
  3290. case O.weights:
  3291. y = o.NumberKeyframeTrack;
  3292. break;
  3293. case O.rotation:
  3294. y = o.QuaternionKeyframeTrack;
  3295. break;
  3296. case O.position:
  3297. case O.scale:
  3298. default:
  3299. y = o.VectorKeyframeTrack
  3300. }
  3301. var M = d.name ? d.name : d.uuid
  3302. , C = void 0 !== m.interpolation ? A[m.interpolation] : o.InterpolateLinear
  3303. , w = [];
  3304. O[g.path] === O.weights ? d.traverse((function(e) {
  3305. !0 === e.isMesh && e.morphTargetInfluences && w.push(e.name ? e.name : e.uuid)
  3306. }
  3307. )) : w.push(M);
  3308. var S = f.array;
  3309. if (f.normalized) {
  3310. var b;
  3311. if (S.constructor === Int8Array)
  3312. b = 1 / 127;
  3313. else if (S.constructor === Uint8Array)
  3314. b = 1 / 255;
  3315. else if (S.constructor == Int16Array)
  3316. b = 1 / 32767;
  3317. else {
  3318. if (S.constructor !== Uint16Array)
  3319. throw new Error("THREE.GLTFLoader: Unsupported output accessor component type.");
  3320. b = 1 / 65535
  3321. }
  3322. for (var T = new Float32Array(S.length), _ = 0, x = S.length; _ < x; _++)
  3323. T[_] = S[_] * b;
  3324. S = T
  3325. }
  3326. for (_ = 0,
  3327. x = w.length; _ < x; _++) {
  3328. var E = new y(w[_] + "." + O[g.path],h.array,S,C);
  3329. "CUBICSPLINE" === m.interpolation && (E.createInterpolant = function(e) {
  3330. return new v(this.times,this.values,this.getValueSize() / 3,e)
  3331. }
  3332. ,
  3333. E.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0),
  3334. l.push(E)
  3335. }
  3336. }
  3337. }
  3338. var L = t.name ? t.name : "animation_" + e;
  3339. return new o.AnimationClip(L,void 0,l)
  3340. }
  3341. ))
  3342. }
  3343. ,
  3344. B.prototype.loadNode = function(e) {
  3345. var t, r = this.json, i = this.extensions, a = this, s = r.meshReferences, c = r.meshUses, l = r.nodes[e];
  3346. return (t = [],
  3347. void 0 !== l.mesh && t.push(a.getDependency("mesh", l.mesh).then((function(e) {
  3348. var t;
  3349. if (s[l.mesh] > 1) {
  3350. var n = c[l.mesh]++;
  3351. (t = e.clone()).name += "_instance_" + n
  3352. } else
  3353. t = e;
  3354. return void 0 !== l.weights && t.traverse((function(e) {
  3355. if (e.isMesh)
  3356. for (var t = 0, n = l.weights.length; t < n; t++)
  3357. e.morphTargetInfluences[t] = l.weights[t]
  3358. }
  3359. )),
  3360. t
  3361. }
  3362. ))),
  3363. void 0 !== l.camera && t.push(a.getDependency("camera", l.camera)),
  3364. l.extensions && l.extensions[n.KHR_LIGHTS_PUNCTUAL] && void 0 !== l.extensions[n.KHR_LIGHTS_PUNCTUAL].light && t.push(a.getDependency("light", l.extensions[n.KHR_LIGHTS_PUNCTUAL].light)),
  3365. Promise.all(t)).then((function(e) {
  3366. var t;
  3367. if ((t = !0 === l.isBone ? new o.Bone : e.length > 1 ? new o.Group : 1 === e.length ? e[0] : new o.Object3D) !== e[0])
  3368. for (var n = 0, r = e.length; n < r; n++)
  3369. t.add(e[n]);
  3370. if (l.name && (t.userData.name = l.name,
  3371. t.name = o.PropertyBinding.sanitizeNodeName(l.name)),
  3372. V(t, l),
  3373. l.extensions && F(i, t, l),
  3374. void 0 !== l.matrix) {
  3375. var a = new o.Matrix4;
  3376. a.fromArray(l.matrix),
  3377. t.applyMatrix4(a)
  3378. } else
  3379. void 0 !== l.translation && t.position.fromArray(l.translation),
  3380. void 0 !== l.rotation && t.quaternion.fromArray(l.rotation),
  3381. void 0 !== l.scale && t.scale.fromArray(l.scale);
  3382. return t
  3383. }
  3384. ))
  3385. }
  3386. ,
  3387. B.prototype.loadScene = function() {
  3388. function e(t, n, r, i) {
  3389. var a = r.nodes[t];
  3390. return i.getDependency("node", t).then((function(e) {
  3391. return void 0 === a.skin ? e : i.getDependency("skin", a.skin).then((function(e) {
  3392. for (var n = [], o = 0, r = (t = e).joints.length; o < r; o++)
  3393. n.push(i.getDependency("node", t.joints[o]));
  3394. return Promise.all(n)
  3395. }
  3396. )).then((function(n) {
  3397. return e.traverse((function(e) {
  3398. if (e.isMesh) {
  3399. for (var r = [], i = [], a = 0, s = n.length; a < s; a++) {
  3400. var c = n[a];
  3401. if (c) {
  3402. r.push(c);
  3403. var l = new o.Matrix4;
  3404. void 0 !== t.inverseBindMatrices && l.fromArray(t.inverseBindMatrices.array, 16 * a),
  3405. i.push(l)
  3406. } else
  3407. console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', t.joints[a])
  3408. }
  3409. e.bind(new o.Skeleton(r,i), e.matrixWorld)
  3410. }
  3411. }
  3412. )),
  3413. e
  3414. }
  3415. ));
  3416. var t
  3417. }
  3418. )).then((function(t) {
  3419. n.add(t);
  3420. var o = [];
  3421. if (a.children)
  3422. for (var s = a.children, c = 0, l = s.length; c < l; c++) {
  3423. var u = s[c];
  3424. o.push(e(u, t, r, i))
  3425. }
  3426. return Promise.all(o)
  3427. }
  3428. ))
  3429. }
  3430. return function(t) {
  3431. var n = this.json
  3432. , r = this.extensions
  3433. , i = this.json.scenes[t]
  3434. , a = new o.Group;
  3435. i.name && (a.name = i.name),
  3436. V(a, i),
  3437. i.extensions && F(r, a, i);
  3438. for (var s = i.nodes || [], c = [], l = 0, u = s.length; l < u; l++)
  3439. c.push(e(s[l], a, n, this));
  3440. return Promise.all(c).then((function() {
  3441. return a
  3442. }
  3443. ))
  3444. }
  3445. }(),
  3446. e
  3447. }()
  3448. },
  3449. 1901: function(e, t, n) {
  3450. "use strict";
  3451. Object.defineProperty(t, "__esModule", {
  3452. value: !0
  3453. });
  3454. var o = n(4)
  3455. , r = n(1860)
  3456. , i = n(1902)
  3457. , a = n(1903)
  3458. , s = n(8)
  3459. , c = n(1849)
  3460. , l = function() {
  3461. function e(e, t, n, o, i) {
  3462. this.datasetName = e,
  3463. this.config = t,
  3464. this.sceneGroup = o,
  3465. this.view = i,
  3466. this.gltfMeshes = {},
  3467. this.currentVertexCount = 0,
  3468. this.requestQueue = new r.BinaryHeap((function(e) {
  3469. return e.weight
  3470. }
  3471. )),
  3472. this.MAX_REQUEST_QUEUE_SIZE = 3e3,
  3473. this.CAMERA_VELOCITY_THRESHOLD = .25,
  3474. this.active = !0,
  3475. this.parser = n.parser,
  3476. this.parseGLTFMeshes()
  3477. }
  3478. return e.prototype.getClosestMeshes = function(e, t, n) {
  3479. return this.buildRequestQueue(e, t, n),
  3480. Promise.all(this.processRequestQueues(e, n))
  3481. }
  3482. ,
  3483. e.prototype.clean = function() {
  3484. var e = this;
  3485. this.active = !1,
  3486. this.requestQueue.clean(),
  3487. Object.keys(this.gltfMeshes).forEach((function(t) {
  3488. return e.removeMesh(e.gltfMeshes[t])
  3489. }
  3490. )),
  3491. this.gltfMeshes = {}
  3492. }
  3493. ,
  3494. e.prototype.remove = function(e) {
  3495. var t = this.gltfMeshes[e.name];
  3496. this.removeMesh(t)
  3497. }
  3498. ,
  3499. e.prototype.parseGLTFMeshes = function() {
  3500. for (var e = 0, t = this.parser.json, n = 0, r = t.meshes; n < r.length; n++) {
  3501. var a = r[n];
  3502. a.name += "_" + this.datasetName;
  3503. for (var s = 0, c = a.primitives; s < c.length; s++) {
  3504. var l = c[s].attributes.POSITION;
  3505. if (void 0 !== l) {
  3506. var u = t.accessors[l]
  3507. , p = new o.Box3((new o.Vector3).fromArray(u.min),(new o.Vector3).fromArray(u.max))
  3508. , d = a.primitives.map((function(e) {
  3509. return e.material
  3510. }
  3511. ));
  3512. this.gltfMeshes[a.name] = new i.GLTFMeshItem(e,p,u.count,a.name,d,!1)
  3513. }
  3514. }
  3515. e++
  3516. }
  3517. }
  3518. ,
  3519. e.prototype.buildRequestQueue = function(t, n, r) {
  3520. var a = this
  3521. , s = function(s) {
  3522. var l = c.gltfMeshes[s]
  3523. , u = new o.Sphere
  3524. , p = l.box.clone();
  3525. p.getBoundingSphere(u);
  3526. var d = p.distanceToPoint(t.position)
  3527. , h = e.projectSphereDiameter(u.radius, t.fov, d, n.w)
  3528. , f = [];
  3529. if (f.push((function() {
  3530. return !r.intersectsBox(p)
  3531. }
  3532. )),
  3533. f.push((function() {
  3534. return h <= a.config.bshpherePixelDiameter
  3535. }
  3536. )),
  3537. f.push((function() {
  3538. return a.currentVertexCount >= a.config.getCurrentVertexBudget()
  3539. }
  3540. )),
  3541. f.push((function() {
  3542. return d >= a.config.maxDistance
  3543. }
  3544. )),
  3545. f.some((function(e) {
  3546. return e()
  3547. }
  3548. )))
  3549. return c.removeMesh(l),
  3550. "continue";
  3551. l.requested || (c.requestQueue.push(new i.RequestQueueItem(l.id,s,l.vertexCount,d,c.setLOD(l))),
  3552. l.requested = !0)
  3553. }
  3554. , c = this;
  3555. for (var l in this.gltfMeshes)
  3556. s(l)
  3557. }
  3558. ,
  3559. e.prototype.setLOD = function(e) {
  3560. var t = this
  3561. , n = e.materials.map((function(e) {
  3562. return t.parser.json.materials[e]
  3563. }
  3564. )).filter((function(e) {
  3565. return e.extensions && e.extensions.MSFT_lod
  3566. }
  3567. )).map((function(e) {
  3568. return e.extensions.MSFT_lod.ids
  3569. }
  3570. ));
  3571. return 0 === n.length ? [] : (this.parser.json.meshes[e.id].primitives.forEach((function(e, t) {
  3572. e.material = n[t].slice(-1).pop()
  3573. }
  3574. )),
  3575. n[0])
  3576. }
  3577. ,
  3578. e.projectSphereDiameter = function(e, t, n, o) {
  3579. var r = t / 2 * Math.PI / 180
  3580. , i = e / Math.tan(r) / Math.sqrt(n * n - e * e);
  3581. return 2 * Math.floor(i * o * .5) || 1 / 0
  3582. }
  3583. ,
  3584. e.prototype.getDistance = function(e, t) {
  3585. var n = this.gltfMeshes[t]
  3586. , r = new o.Sphere
  3587. , i = n.box.clone();
  3588. return i.getBoundingSphere(r),
  3589. i.distanceToPoint(e.position)
  3590. }
  3591. ,
  3592. e.prototype.processRequestQueues = function(e, t) {
  3593. for (var n = this, o = 0, r = [], i = function() {
  3594. var i = a.requestQueue.pop();
  3595. if (a.currentVertexCount + i.vertexCount > a.config.getCurrentVertexBudget())
  3596. return a.requestQueue.push(i),
  3597. "break";
  3598. var s = [];
  3599. if (s.push((function() {
  3600. return t.intersectsBox(n.gltfMeshes[i.meshName].box)
  3601. }
  3602. )),
  3603. s.push((function() {
  3604. return n.getDistance(e, i.meshName) <= i.weight
  3605. }
  3606. )),
  3607. s.every((function(e) {
  3608. return e()
  3609. }
  3610. )))
  3611. return r.push(a.requestMesh(i, e)),
  3612. a.currentVertexCount += i.vertexCount,
  3613. o++,
  3614. "continue";
  3615. a.gltfMeshes[i.meshName].requested = !1
  3616. }, a = this; !this.requestQueue.empty() && o <= this.config.maxLoadRequests; ) {
  3617. if ("break" === i())
  3618. break
  3619. }
  3620. return this.requestQueue.size() > this.MAX_REQUEST_QUEUE_SIZE && this.requestQueue.clean(),
  3621. r
  3622. }
  3623. ,
  3624. e.prototype.requestMesh = function(e, t) {
  3625. var n = this;
  3626. return this.parser.getDependency("mesh", e.id).then((function(o) {
  3627. if (n.active) {
  3628. var r = new a.GLTFMesh(o,e.weight,n.datasetName,n.config.showWireframe,n.gltfMeshes[e.meshName].box);
  3629. return r.time = Date.now(),
  3630. r.cameraPosition = t.position.clone(),
  3631. r.onAfterRender = n.getOnAfterRender(e, r),
  3632. r
  3633. }
  3634. }
  3635. ))
  3636. }
  3637. ,
  3638. e.prototype.requestMaterial = function(e, t) {
  3639. var n = this;
  3640. return this.parser.getDependency("material", e).then((function(e) {
  3641. if (n.active) {
  3642. var o = t.material;
  3643. o.name = e.name,
  3644. o.uniforms.tDiffuse.value.dispose(),
  3645. o.uniforms.tDiffuse = {
  3646. value: e.map
  3647. },
  3648. o.uniformsNeedUpdate = !0,
  3649. t.textureLoading = c.Status.LOADED,
  3650. n.view.invalidateScene()
  3651. }
  3652. }
  3653. ))
  3654. }
  3655. ,
  3656. e.prototype.getOnAfterRender = function(e, t) {
  3657. var n = this;
  3658. return function(o, r, i, a) {
  3659. a.computeBoundingBox();
  3660. var l = a.boundingBox.distanceToPoint(i.position)
  3661. , u = i.position.distanceTo(t.cameraPosition)
  3662. , p = Date.now() - t.time
  3663. , d = u / p / 1e3;
  3664. if (l <= n.config.maxDistance / 3 && p < 50 && d < n.CAMERA_VELOCITY_THRESHOLD && t.textureLoading === c.Status.PENDING && (t.textureLoading = c.Status.LOADING,
  3665. e.LOD.length > 0)) {
  3666. var h = 0;
  3667. n.config.lod >= 0 && e.LOD.length > n.config.lod && (h = n.config.lod),
  3668. n.requestMaterial(e.LOD[h], t).catch(s.handleWarning)
  3669. }
  3670. t.cameraPosition = i.position.clone(),
  3671. t.time = Date.now()
  3672. }
  3673. }
  3674. ,
  3675. e.prototype.removeMesh = function(e) {
  3676. e.requested = !1;
  3677. for (var t = this.sceneGroup.getObjectByName(e.name); void 0 !== t; )
  3678. this.currentVertexCount -= e.vertexCount,
  3679. this.sceneGroup.remove(t),
  3680. this.disposeMesh(t, !0),
  3681. t = this.sceneGroup.getObjectByName(e.name)
  3682. }
  3683. ,
  3684. e.prototype.disposeMesh = function(e, t) {
  3685. var n, o;
  3686. if (e) {
  3687. this.gltfMeshes[e.name].requested = !1,
  3688. t && e.geometry.dispose();
  3689. var r = e.material
  3690. , i = null === (o = null === (n = r.uniforms) || void 0 === n ? void 0 : n.tDiffuse) || void 0 === o ? void 0 : o.value;
  3691. i && i.dispose(),
  3692. r.dispose()
  3693. }
  3694. }
  3695. ,
  3696. e
  3697. }();
  3698. t.MeshLoader = l
  3699. },
  3700. 1902: function(e, t, n) {
  3701. "use strict";
  3702. Object.defineProperty(t, "__esModule", {
  3703. value: !0
  3704. });
  3705. var o = function(e, t, n, o, r, i) {
  3706. this.id = e,
  3707. this.box = t,
  3708. this.vertexCount = n,
  3709. this.name = o,
  3710. this.materials = r,
  3711. this.requested = i
  3712. };
  3713. t.GLTFMeshItem = o;
  3714. var r = function(e, t, n, o, r) {
  3715. this.id = e,
  3716. this.meshName = t,
  3717. this.vertexCount = n,
  3718. this.weight = o,
  3719. this.LOD = r
  3720. };
  3721. t.RequestQueueItem = r
  3722. },
  3723. 1903: function(e, t, n) {
  3724. "use strict";
  3725. var o, r = this && this.__extends || (o = function(e, t) {
  3726. return (o = Object.setPrototypeOf || {
  3727. __proto__: []
  3728. }instanceof Array && function(e, t) {
  3729. e.__proto__ = t
  3730. }
  3731. || function(e, t) {
  3732. for (var n in t)
  3733. t.hasOwnProperty(n) && (e[n] = t[n])
  3734. }
  3735. )(e, t)
  3736. }
  3737. ,
  3738. function(e, t) {
  3739. function n() {
  3740. this.constructor = e
  3741. }
  3742. o(e, t),
  3743. e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
  3744. new n)
  3745. }
  3746. );
  3747. Object.defineProperty(t, "__esModule", {
  3748. value: !0
  3749. });
  3750. var i = n(4)
  3751. , a = n(1849)
  3752. , s = function(e) {
  3753. function t(t, o, r, s, c) {
  3754. var l = e.call(this, t.geometry, t.material) || this;
  3755. l.weight = o,
  3756. l.datasetName = r,
  3757. l.showWireframe = s,
  3758. l.GLTFBox = c,
  3759. l.textureLoading = a.Status.PENDING,
  3760. l.name = t.name;
  3761. var u = l.material
  3762. , p = new i.ShaderMaterial;
  3763. return p.wireframe = s,
  3764. p.side = i.DoubleSide,
  3765. p.name = u.name,
  3766. p.fragmentShader = n(1904),
  3767. p.vertexShader = n(1905),
  3768. p.uniforms = {
  3769. tDiffuse: {
  3770. value: u.map
  3771. }
  3772. },
  3773. l.material = p,
  3774. l
  3775. }
  3776. return r(t, e),
  3777. t
  3778. }(i.Mesh);
  3779. t.GLTFMesh = s
  3780. },
  3781. 1904: function(e, t) {
  3782. e.exports = "varying vec2 vUv;\nuniform sampler2D tDiffuse;\n\nvoid main()\n{\n\tgl_FragColor = texture2D(tDiffuse, vUv);\n}"
  3783. },
  3784. 1905: function(e, t) {
  3785. e.exports = "varying vec2 vUv;\n\nvoid main()\n{\n\tvUv = uv;\n\tmat4 transformation = projectionMatrix * modelViewMatrix;\n\tgl_Position = transformation * vec4(position, 1.0);\n}"
  3786. },
  3787. 1928: function(e, t, n) {
  3788. "use strict";
  3789. var o = this && this.__assign || function() {
  3790. return (o = Object.assign || function(e) {
  3791. for (var t, n = 1, o = arguments.length; n < o; n++)
  3792. for (var r in t = arguments[n])
  3793. Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
  3794. return e
  3795. }
  3796. ).apply(this, arguments)
  3797. }
  3798. , r = this && this.__spreadArrays || function() {
  3799. for (var e = 0, t = 0, n = arguments.length; t < n; t++)
  3800. e += arguments[t].length;
  3801. var o = Array(e)
  3802. , r = 0;
  3803. for (t = 0; t < n; t++)
  3804. for (var i = arguments[t], a = 0, s = i.length; a < s; a++,
  3805. r++)
  3806. o[r] = i[a];
  3807. return o
  3808. }
  3809. ;
  3810. Object.defineProperty(t, "__esModule", {
  3811. value: !0
  3812. });
  3813. var i = n(6)
  3814. , a = n(0)
  3815. , s = n(3)
  3816. , c = n(1929)
  3817. , l = n(2016)
  3818. , u = n(2017)
  3819. , p = n(1887)
  3820. , d = n(2018)
  3821. , h = n(2019)
  3822. , f = n(95)
  3823. , m = n(2022)
  3824. , g = n(1888)
  3825. , v = n(1889)
  3826. , y = n(1890)
  3827. , M = n(1891)
  3828. , C = n(168)
  3829. , w = n(1892)
  3830. , S = n(1931)
  3831. , b = n(2024)
  3832. , T = n(2025)
  3833. , _ = n(1711)
  3834. , x = n(648)
  3835. , E = n(1893)
  3836. , L = n(1894)
  3837. , P = n(440)
  3838. , O = n(47)
  3839. , A = n(1895)
  3840. , D = n(1896)
  3841. , j = n(2026)
  3842. , I = n(624)
  3843. , R = n(625)
  3844. , N = n(1707)
  3845. , F = n(1697)
  3846. , V = n(649)
  3847. , U = n(2028)
  3848. , k = n(647)
  3849. , B = n(152)
  3850. , z = n(0)
  3851. , G = n(1929)
  3852. , H = n(1931)
  3853. , W = n(6)
  3854. , K = n(3)
  3855. , q = n(168)
  3856. , $ = n(1692)
  3857. , Q = n(1704)
  3858. , X = n(1705)
  3859. , J = n(624)
  3860. , Z = n(1697)
  3861. , Y = n(440)
  3862. , ee = n(37)
  3863. , te = n(625)
  3864. , ne = n(1689)
  3865. , oe = n(1933)
  3866. , re = n(1700);
  3867. window.CKEDITOR_BASEPATH = B.getBaseUrl();
  3868. var ie = function() {
  3869. function e(e) {
  3870. this.UpgradeModule = e
  3871. }
  3872. return e.prototype.ngDoBootstrap = function() {
  3873. var e = document.querySelector("indoorviewer");
  3874. if (!e) {
  3875. var t = "Cannot find the <4dkankan> element on the page. Cannot continue.";
  3876. throw console.error(t),
  3877. new Error(t)
  3878. }
  3879. var n = document.createElement("div");
  3880. n.setAttribute("ng-include", "'iv.html'"),
  3881. n.setAttribute("class", "indoorViewer"),
  3882. e.appendChild(n);
  3883. this.UpgradeModule.bootstrap(e, ["IVWebApp"], {
  3884. strictDi: !0
  3885. }),
  3886. window.IV.injector = this.UpgradeModule.$injector
  3887. }
  3888. ,
  3889. e.ɵmod = z.ɵɵdefineNgModule({
  3890. type: e
  3891. }),
  3892. e.ɵinj = z.ɵɵdefineInjector({
  3893. factory: function(t) {
  3894. return new (t || e)(z.ɵɵinject(W.UpgradeModule))
  3895. },
  3896. providers: r(l.upgradedProviders, [{
  3897. provide: C.TRANSLOCO_CONFIG,
  3898. useValue: {
  3899. availableLangs: ["en", "es", "cs", "de", "fr", "hu", "ja", "tr", "zh", "zh_tw"],
  3900. defaultLang: "en",
  3901. prodMode: !0,
  3902. reRenderOnLangChange: !0,
  3903. fallbackLang: "en",
  3904. missingHandler: {
  3905. useFallbackTranslation: !0
  3906. }
  3907. }
  3908. }, b.translocoLoader, a.SystemJsNgModuleLoader, {
  3909. provide: s.APP_BASE_HREF,
  3910. useValue: "/"
  3911. }, {
  3912. provide: w.HTTP_INTERCEPTORS,
  3913. useClass: T.RedirectBaseUrl,
  3914. multi: !0
  3915. }, {
  3916. provide: P.MAT_DIALOG_DEFAULT_OPTIONS,
  3917. useValue: o(o({}, new P.MatDialogConfig), {
  3918. minWidth: "400px",
  3919. position: {
  3920. top: "30px"
  3921. }
  3922. })
  3923. }, {
  3924. provide: O.DateAdapter,
  3925. useClass: A.MomentDateAdapter,
  3926. deps: [O.MAT_DATE_LOCALE]
  3927. }, {
  3928. provide: O.MAT_DATE_FORMATS,
  3929. useValue: A.MAT_MOMENT_DATE_FORMATS
  3930. }]),
  3931. imports: [[f.BrowserAnimationsModule, i.UpgradeModule, c.RouterModule.forRoot(u.routes), C.TranslocoModule, w.HttpClientModule, S.TranslocoMessageFormatModule.init(), _.SharedModule, I.FormsModule, I.ReactiveFormsModule, F.ToggleSwitchModule, P.MatDialogModule, R.MatButtonModule, N.FlexModule, U.WelcomeScreenModule]]
  3932. }),
  3933. e
  3934. }();
  3935. t.MainModule = ie,
  3936. ("undefined" == typeof ngJitMode || ngJitMode) && z.ɵɵsetNgModuleScope(ie, {
  3937. declarations: [V.UserAuthGroupDigestComponent, p.MeasurementsLazyComponent, h.ViewportResizerComponent, d.ViewportResizerDirective, m.FeatureFlagComponent, g.CloudUploadLazyComponent, y.ProcessingTaskLazyComponent, v.ProcessedDataLazyComponent, E.AuditPanelLazyComponent, M.DeveloperLazyComponent, L.ThemePanelLazyComponent, x.MagnificationToggleComponent, D.CKEWrapperLazyComponent, x.MagnificationToggleComponent, j.MeshMenuPanelComponent, k.PoiImportModeComponent],
  3938. imports: [f.BrowserAnimationsModule, i.UpgradeModule, G.RouterModule, C.TranslocoModule, w.HttpClientModule, H.TranslocoMessageFormatModule, _.SharedModule, I.FormsModule, I.ReactiveFormsModule, F.ToggleSwitchModule, P.MatDialogModule, R.MatButtonModule, N.FlexModule, U.WelcomeScreenModule]
  3939. }),
  3940. z.ɵsetClassMetadata(ie, [{
  3941. type: a.NgModule,
  3942. args: [{
  3943. imports: [f.BrowserAnimationsModule, i.UpgradeModule, c.RouterModule.forRoot(u.routes), C.TranslocoModule, w.HttpClientModule, S.TranslocoMessageFormatModule.init(), _.SharedModule, I.FormsModule, I.ReactiveFormsModule, F.ToggleSwitchModule, P.MatDialogModule, R.MatButtonModule, N.FlexModule, U.WelcomeScreenModule],
  3944. declarations: [V.UserAuthGroupDigestComponent, p.MeasurementsLazyComponent, h.ViewportResizerComponent, d.ViewportResizerDirective, m.FeatureFlagComponent, g.CloudUploadLazyComponent, y.ProcessingTaskLazyComponent, v.ProcessedDataLazyComponent, E.AuditPanelLazyComponent, M.DeveloperLazyComponent, L.ThemePanelLazyComponent, x.MagnificationToggleComponent, D.CKEWrapperLazyComponent, x.MagnificationToggleComponent, j.MeshMenuPanelComponent, k.PoiImportModeComponent],
  3945. entryComponents: [p.MeasurementsLazyComponent, h.ViewportResizerComponent, m.FeatureFlagComponent, g.CloudUploadLazyComponent, y.ProcessingTaskLazyComponent, v.ProcessedDataLazyComponent, M.DeveloperLazyComponent, D.CKEWrapperLazyComponent, x.MagnificationToggleComponent],
  3946. providers: r(l.upgradedProviders, [{
  3947. provide: C.TRANSLOCO_CONFIG,
  3948. useValue: {
  3949. availableLangs: ["en", "es", "cs", "de", "fr", "hu", "ja", "tr", "zh", "zh_tw"],
  3950. defaultLang: "en",
  3951. prodMode: !0,
  3952. reRenderOnLangChange: !0,
  3953. fallbackLang: "en",
  3954. missingHandler: {
  3955. useFallbackTranslation: !0
  3956. }
  3957. }
  3958. }, b.translocoLoader, a.SystemJsNgModuleLoader, {
  3959. provide: s.APP_BASE_HREF,
  3960. useValue: "/"
  3961. }, {
  3962. provide: w.HTTP_INTERCEPTORS,
  3963. useClass: T.RedirectBaseUrl,
  3964. multi: !0
  3965. }, {
  3966. provide: P.MAT_DIALOG_DEFAULT_OPTIONS,
  3967. useValue: o(o({}, new P.MatDialogConfig), {
  3968. minWidth: "400px",
  3969. position: {
  3970. top: "30px"
  3971. }
  3972. })
  3973. }, {
  3974. provide: O.DateAdapter,
  3975. useClass: A.MomentDateAdapter,
  3976. deps: [O.MAT_DATE_LOCALE]
  3977. }, {
  3978. provide: O.MAT_DATE_FORMATS,
  3979. useValue: A.MAT_MOMENT_DATE_FORMATS
  3980. }])
  3981. }]
  3982. }], (function() {
  3983. return [{
  3984. type: W.UpgradeModule
  3985. }]
  3986. }
  3987. ), null),
  3988. z.ɵɵsetComponentScope(h.ViewportResizerComponent, [K.NgClass, K.NgComponentOutlet, K.NgForOf, K.NgIf, K.NgTemplateOutlet, K.NgStyle, K.NgSwitch, K.NgSwitchCase, K.NgSwitchDefault, K.NgPlural, K.NgPluralCase, G.RouterOutlet, G.RouterLink, G.RouterLinkWithHref, G.RouterLinkActive, G.ɵangular_packages_router_router_l, q.TranslocoDirective, $.AddBaseUrlDirective, Q.RedirectFocusToMainViewDirective, X.ZoomControlComponent, J.ɵangular_packages_forms_forms_y, J.NgSelectOption, J.ɵangular_packages_forms_forms_x, J.DefaultValueAccessor, J.NumberValueAccessor, J.RangeValueAccessor, J.CheckboxControlValueAccessor, J.SelectControlValueAccessor, J.SelectMultipleControlValueAccessor, J.RadioControlValueAccessor, J.NgControlStatus, J.NgControlStatusGroup, J.RequiredValidator, J.MinLengthValidator, J.MaxLengthValidator, J.PatternValidator, J.CheckboxRequiredValidator, J.EmailValidator, J.NgModel, J.NgModelGroup, J.NgForm, J.FormControlDirective, J.FormGroupDirective, J.FormControlName, J.FormGroupName, J.FormArrayName, Z.ToggleSwitchComponent, Y.MatDialogContainer, Y.MatDialogClose, Y.MatDialogTitle, Y.MatDialogContent, Y.MatDialogActions, ee.Dir, te.MatButton, te.MatAnchor, ne.DefaultLayoutDirective, ne.DefaultLayoutGapDirective, ne.DefaultLayoutAlignDirective, ne.DefaultFlexOrderDirective, ne.DefaultFlexOffsetDirective, ne.FlexFillDirective, ne.DefaultFlexAlignDirective, ne.DefaultFlexDirective, oe.WelcomeScreenSelectorComponent, V.UserAuthGroupDigestComponent, p.MeasurementsLazyComponent, h.ViewportResizerComponent, d.ViewportResizerDirective, m.FeatureFlagComponent, g.CloudUploadLazyComponent, y.ProcessingTaskLazyComponent, v.ProcessedDataLazyComponent, E.AuditPanelLazyComponent, M.DeveloperLazyComponent, L.ThemePanelLazyComponent, x.MagnificationToggleComponent, D.CKEWrapperLazyComponent, j.MeshMenuPanelComponent, k.PoiImportModeComponent], [K.AsyncPipe, K.UpperCasePipe, K.LowerCasePipe, K.JsonPipe, K.SlicePipe, K.DecimalPipe, K.PercentPipe, K.TitleCasePipe, K.CurrencyPipe, K.DatePipe, K.I18nPluralPipe, K.I18nSelectPipe, K.KeyValuePipe, q.TranslocoPipe, re.UoMPipe])
  3989. },
  3990. 1932: function(e, t, n) {
  3991. "use strict";
  3992. Object.defineProperty(t, "__esModule", {
  3993. value: !0
  3994. });
  3995. var o, r = n(0), i = n(0), a = n(168), s = n(625), c = n(440), l = n(1709);
  3996. function u(e, t) {
  3997. if (1 & e && (i.ɵɵelementContainerStart(0),
  3998. i.ɵɵelementStart(1, "div", 2),
  3999. i.ɵɵelementStart(2, "div", 3),
  4000. i.ɵɵelementStart(3, "h3"),
  4001. i.ɵɵtext(4),
  4002. i.ɵɵelementEnd(),
  4003. i.ɵɵelementStart(5, "h5", 4),
  4004. i.ɵɵtext(6),
  4005. i.ɵɵelementEnd(),
  4006. i.ɵɵelement(7, "img", 5),
  4007. i.ɵɵelementStart(8, "button", 6),
  4008. i.ɵɵtext(9),
  4009. i.ɵɵelementEnd(),
  4010. i.ɵɵelementEnd(),
  4011. i.ɵɵelementStart(10, "div", 7),
  4012. i.ɵɵelementStart(11, "h3"),
  4013. i.ɵɵtext(12),
  4014. i.ɵɵelementEnd(),
  4015. i.ɵɵelementStart(13, "h5", 4),
  4016. i.ɵɵtext(14),
  4017. i.ɵɵelementEnd(),
  4018. i.ɵɵelement(15, "img", 5),
  4019. i.ɵɵelementStart(16, "button", 6),
  4020. i.ɵɵtext(17),
  4021. i.ɵɵelementEnd(),
  4022. i.ɵɵelementEnd(),
  4023. i.ɵɵelementEnd(),
  4024. i.ɵɵelementContainerEnd()),
  4025. 2 & e) {
  4026. var n = t.$implicit
  4027. , o = i.ɵɵnextContext();
  4028. i.ɵɵadvance(4),
  4029. i.ɵɵtextInterpolate(n("Add processed data")),
  4030. i.ɵɵadvance(2),
  4031. i.ɵɵtextInterpolate(n("to dataset management")),
  4032. i.ɵɵadvance(1),
  4033. i.ɵɵproperty("src", o.addDataSvg, i.ɵɵsanitizeUrl),
  4034. i.ɵɵadvance(1),
  4035. i.ɵɵproperty("mat-dialog-close", o.PaasWelcomeScreenResult.DATASET_MANAGEMENT),
  4036. i.ɵɵadvance(1),
  4037. i.ɵɵtextInterpolate1(" ", n("Dataset management"), " "),
  4038. i.ɵɵadvance(3),
  4039. i.ɵɵtextInterpolate(n("Upload & Process")),
  4040. i.ɵɵadvance(2),
  4041. i.ɵɵtextInterpolate(n("your 4dkankan data")),
  4042. i.ɵɵadvance(1),
  4043. i.ɵɵproperty("src", o.uploadProcessSvg, i.ɵɵsanitizeUrl),
  4044. i.ɵɵadvance(1),
  4045. i.ɵɵproperty("mat-dialog-close", o.PaasWelcomeScreenResult.CLOUD_UPLOAD),
  4046. i.ɵɵadvance(1),
  4047. i.ɵɵtextInterpolate1(" ", n("Cloud processing"), " ")
  4048. }
  4049. }
  4050. !function(e) {
  4051. e[e.DATASET_MANAGEMENT = 0] = "DATASET_MANAGEMENT",
  4052. e[e.CLOUD_UPLOAD = 1] = "CLOUD_UPLOAD"
  4053. }(o = t.PaasWelcomeScreenResult || (t.PaasWelcomeScreenResult = {}));
  4054. var p = function() {
  4055. function e() {
  4056. this.addDataSvg = n(2029),
  4057. this.uploadProcessSvg = n(2030),
  4058. this.PaasWelcomeScreenResult = o
  4059. }
  4060. return e.ɵfac = function(t) {
  4061. return new (t || e)
  4062. }
  4063. ,
  4064. e.ɵcmp = i.ɵɵdefineComponent({
  4065. type: e,
  4066. selectors: [["paas-welcome-screen"]],
  4067. decls: 4,
  4068. vars: 0,
  4069. consts: [[4, "transloco"], ["mat-icon-button", "", "mat-dialog-close", "", 1, "close-button"], [1, "modal-container"], [1, "white-panel"], [1, "subtitle"], ["alt", "", 1, "option-image", 3, "src"], ["mat-stroked-button", "", "color", "primary", 3, "mat-dialog-close"], [1, "blue-panel"]],
  4070. template: function(e, t) {
  4071. 1 & e && (i.ɵɵtemplate(0, u, 18, 10, "ng-container", 0),
  4072. i.ɵɵelementStart(1, "button", 1),
  4073. i.ɵɵelementStart(2, "mat-icon"),
  4074. i.ɵɵtext(3, "close"),
  4075. i.ɵɵelementEnd(),
  4076. i.ɵɵelementEnd())
  4077. },
  4078. directives: [a.TranslocoDirective, s.MatButton, c.MatDialogClose, l.MatIcon],
  4079. styles: ["[_nghost-%COMP%]{display:contents}.subtitle[_ngcontent-%COMP%]{font-size:16px;margin-top:0}.modal-container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:row;justify-content:stretch;align-items:stretch}.white-panel[_ngcontent-%COMP%]{background-color:#fff;color:#3398c7;text-align:center;flex:1 1 1px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:54px}.white-panel[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff;border-color:#3398c7}.blue-panel[_ngcontent-%COMP%]{background:linear-gradient(180.06deg,#1e9de3 .05%,#82d2ff 99.95%);color:#fff;text-align:center;flex:1 1 1px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:54px}.blue-panel[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff;border-color:#3398c7}.option-image[_ngcontent-%COMP%]{display:block;margin:auto;flex:1 1 auto}.close-button[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;color:#fff}"]
  4080. }),
  4081. e
  4082. }();
  4083. t.PaaSWelcomeScreenComponent = p,
  4084. i.ɵsetClassMetadata(p, [{
  4085. type: r.Component,
  4086. args: [{
  4087. selector: "paas-welcome-screen",
  4088. templateUrl: "./PaaSWelcomeScreen.ng.html",
  4089. styleUrls: ["PaaSWelcomeScreen.ng.scss"]
  4090. }]
  4091. }], null, null)
  4092. },
  4093. 1933: function(e, t, n) {
  4094. "use strict";
  4095. var o = this && this.__awaiter || function(e, t, n, o) {
  4096. return new (n || (n = Promise))((function(r, i) {
  4097. function a(e) {
  4098. try {
  4099. c(o.next(e))
  4100. } catch (e) {
  4101. i(e)
  4102. }
  4103. }
  4104. function s(e) {
  4105. try {
  4106. c(o.throw(e))
  4107. } catch (e) {
  4108. i(e)
  4109. }
  4110. }
  4111. function c(e) {
  4112. var t;
  4113. e.done ? r(e.value) : (t = e.value,
  4114. t instanceof n ? t : new n((function(e) {
  4115. e(t)
  4116. }
  4117. ))).then(a, s)
  4118. }
  4119. c((o = o.apply(e, t || [])).next())
  4120. }
  4121. ))
  4122. }
  4123. , r = this && this.__generator || function(e, t) {
  4124. var n, o, r, i, a = {
  4125. label: 0,
  4126. sent: function() {
  4127. if (1 & r[0])
  4128. throw r[1];
  4129. return r[1]
  4130. },
  4131. trys: [],
  4132. ops: []
  4133. };
  4134. return i = {
  4135. next: s(0),
  4136. throw: s(1),
  4137. return: s(2)
  4138. },
  4139. "function" == typeof Symbol && (i[Symbol.iterator] = function() {
  4140. return this
  4141. }
  4142. ),
  4143. i;
  4144. function s(i) {
  4145. return function(s) {
  4146. return function(i) {
  4147. if (n)
  4148. throw new TypeError("Generator is already executing.");
  4149. for (; a; )
  4150. try {
  4151. if (n = 1,
  4152. o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o),
  4153. 0) : o.next) && !(r = r.call(o, i[1])).done)
  4154. return r;
  4155. switch (o = 0,
  4156. r && (i = [2 & i[0], r.value]),
  4157. i[0]) {
  4158. case 0:
  4159. case 1:
  4160. r = i;
  4161. break;
  4162. case 4:
  4163. return a.label++,
  4164. {
  4165. value: i[1],
  4166. done: !1
  4167. };
  4168. case 5:
  4169. a.label++,
  4170. o = i[1],
  4171. i = [0];
  4172. continue;
  4173. case 7:
  4174. i = a.ops.pop(),
  4175. a.trys.pop();
  4176. continue;
  4177. default:
  4178. if (!(r = a.trys,
  4179. (r = r.length > 0 && r[r.length - 1]) || 6 !== i[0] && 2 !== i[0])) {
  4180. a = 0;
  4181. continue
  4182. }
  4183. if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
  4184. a.label = i[1];
  4185. break
  4186. }
  4187. if (6 === i[0] && a.label < r[1]) {
  4188. a.label = r[1],
  4189. r = i;
  4190. break
  4191. }
  4192. if (r && a.label < r[2]) {
  4193. a.label = r[2],
  4194. a.ops.push(i);
  4195. break
  4196. }
  4197. r[2] && a.ops.pop(),
  4198. a.trys.pop();
  4199. continue
  4200. }
  4201. i = t.call(e, a)
  4202. } catch (e) {
  4203. i = [6, e],
  4204. o = 0
  4205. } finally {
  4206. n = r = 0
  4207. }
  4208. if (5 & i[0])
  4209. throw i[1];
  4210. return {
  4211. value: i[0] ? i[1] : void 0,
  4212. done: !0
  4213. }
  4214. }([i, s])
  4215. }
  4216. }
  4217. }
  4218. ;
  4219. Object.defineProperty(t, "__esModule", {
  4220. value: !0
  4221. });
  4222. var i = n(0)
  4223. , a = n(232)
  4224. , s = n(8)
  4225. , c = n(81)
  4226. , l = (n(120),
  4227. n(38),
  4228. n(86),
  4229. n(36),
  4230. n(187),
  4231. n(440),
  4232. n(1932))
  4233. , u = n(2)
  4234. , p = n(6)
  4235. , d = n(0)
  4236. , h = n(38)
  4237. , f = n(187)
  4238. , m = n(86)
  4239. , g = n(36)
  4240. , v = n(120)
  4241. , y = n(440)
  4242. , M = function() {
  4243. function e(e, t, n, o, r, i) {
  4244. var a = this;
  4245. this.SidebarMenuService = e,
  4246. this.StorageService = t,
  4247. this.InstanceInformationService = n,
  4248. this.AuthenticationService = o,
  4249. this.FeatureFlagsService = r,
  4250. this.MatDialog = i,
  4251. this.doNotShowKey = "welcome_screen_hide",
  4252. this.AuthenticationService.dataLoadCompleted.connect((function() {
  4253. return a.selectAndShow()
  4254. }
  4255. )),
  4256. this.selectAndShow().catch(s.handleWarning)
  4257. }
  4258. return e.prototype.goToDatasetManagement = function() {
  4259. this.SidebarMenuService.isMenuHidden = !1,
  4260. this.SidebarMenuService.goToItem(this.SidebarMenuService.getItem(c.SidebarMenuItemsKey.SETTINGS)).catch(s.handleWarning),
  4261. this.SidebarMenuService.goToItem(this.SidebarMenuService.getItem(c.SidebarMenuItemsKey.SETTINGS_DATASET_MANAGEMENT)).catch(s.handleWarning)
  4262. }
  4263. ,
  4264. e.prototype.goToCloudUpload = function() {
  4265. this.SidebarMenuService.isMenuHidden = !1,
  4266. this.SidebarMenuService.goToItem(this.SidebarMenuService.getItem(c.SidebarMenuItemsKey.CLOUD_PROCESSING)).catch(s.handleWarning),
  4267. this.SidebarMenuService.goToItem(this.SidebarMenuService.getItem(c.SidebarMenuItemsKey.CLOUD_PROCESSING_UPLOADED_DATA)).catch(s.handleWarning)
  4268. }
  4269. ,
  4270. e.prototype.selectAndShow = function() {
  4271. return o(this, void 0, void 0, (function() {
  4272. var e, t, n = this;
  4273. return r(this, (function(o) {
  4274. switch (o.label) {
  4275. case 0:
  4276. return [4, this.shouldShow()];
  4277. case 1:
  4278. return e = o.sent(),
  4279. [4, this.showPaas()];
  4280. case 2:
  4281. return t = o.sent(),
  4282. e && t && this.MatDialog.open(l.PaaSWelcomeScreenComponent, {
  4283. panelClass: "modal-content-full-size",
  4284. width: "780px",
  4285. height: "500px",
  4286. autoFocus: !1
  4287. }).afterClosed().subscribe((function(e) {
  4288. e === l.PaasWelcomeScreenResult.DATASET_MANAGEMENT ? n.goToDatasetManagement() : e === l.PaasWelcomeScreenResult.CLOUD_UPLOAD && n.goToCloudUpload()
  4289. }
  4290. )),
  4291. [2]
  4292. }
  4293. }
  4294. ))
  4295. }
  4296. ))
  4297. }
  4298. ,
  4299. e.prototype.shouldShow = function() {
  4300. return o(this, void 0, void 0, (function() {
  4301. var e, t, n, o, i;
  4302. return r(this, (function(r) {
  4303. switch (r.label) {
  4304. case 0:
  4305. return [4, this.InstanceInformationService.getInformation()];
  4306. case 1:
  4307. return e = r.sent(),
  4308. t = null == e ? void 0 : e.isEmpty,
  4309. n = this.StorageService.get(this.doNotShowKey),
  4310. o = this.AuthenticationService.currentUser,
  4311. i = o && o.isAdmin(),
  4312. [2, t && !n && i && this.SidebarMenuService.isMenuHidden]
  4313. }
  4314. }
  4315. ))
  4316. }
  4317. ))
  4318. }
  4319. ,
  4320. e.prototype.showPaas = function() {
  4321. return o(this, void 0, void 0, (function() {
  4322. return r(this, (function(e) {
  4323. return [2, this.FeatureFlagsService.isEnabled(a.FeatureFlag.CLOUD_PROCESSING).then((function(e) {
  4324. return !0
  4325. }
  4326. )).catch((function(e) {
  4327. return !1
  4328. }
  4329. ))]
  4330. }
  4331. ))
  4332. }
  4333. ))
  4334. }
  4335. ,
  4336. e.ɵfac = function(t) {
  4337. return new (t || e)(d.ɵɵdirectiveInject(h.SidebarMenuService),d.ɵɵdirectiveInject(f.StorageService),d.ɵɵdirectiveInject(m.InstanceInformationService),d.ɵɵdirectiveInject(g.AuthenticationService),d.ɵɵdirectiveInject(v.FeatureFlagsService),d.ɵɵdirectiveInject(y.MatDialog))
  4338. }
  4339. ,
  4340. e.ɵcmp = d.ɵɵdefineComponent({
  4341. type: e,
  4342. selectors: [["welcome-screen-selector"]],
  4343. decls: 0,
  4344. vars: 0,
  4345. template: function(e, t) {},
  4346. encapsulation: 2
  4347. }),
  4348. e
  4349. }();
  4350. t.WelcomeScreenSelectorComponent = M,
  4351. d.ɵsetClassMetadata(M, [{
  4352. type: i.Component,
  4353. args: [{
  4354. selector: "welcome-screen-selector",
  4355. template: ""
  4356. }]
  4357. }], (function() {
  4358. return [{
  4359. type: h.SidebarMenuService
  4360. }, {
  4361. type: f.StorageService
  4362. }, {
  4363. type: m.InstanceInformationService
  4364. }, {
  4365. type: g.AuthenticationService
  4366. }, {
  4367. type: v.FeatureFlagsService
  4368. }, {
  4369. type: y.MatDialog
  4370. }]
  4371. }
  4372. ), null),
  4373. u.module("IVWebApp").directive("welcomeScreenSelector", p.downgradeComponent({
  4374. component: M
  4375. }))
  4376. },
  4377. 2016: function(e, t, n) {
  4378. "use strict";
  4379. Object.defineProperty(t, "__esModule", {
  4380. value: !0
  4381. }),
  4382. t.upgradedProviders = [{
  4383. provide: "$http",
  4384. useFactory: function(e) {
  4385. return e.get("$http")
  4386. },
  4387. deps: ["$injector"]
  4388. }, {
  4389. provide: "$httpParamSerializer",
  4390. useFactory: function(e) {
  4391. return e.get("$httpParamSerializer")
  4392. },
  4393. deps: ["$injector"]
  4394. }, {
  4395. provide: "$locale",
  4396. useFactory: function(e) {
  4397. return e.get("$locale")
  4398. },
  4399. deps: ["$injector"]
  4400. }, {
  4401. provide: "$location",
  4402. useFactory: function(e) {
  4403. return e.get("$location")
  4404. },
  4405. deps: ["$injector"]
  4406. }, {
  4407. provide: "$rootScope",
  4408. useFactory: function(e) {
  4409. return e.get("$rootScope")
  4410. },
  4411. deps: ["$injector"]
  4412. }, {
  4413. provide: "$timeout",
  4414. useFactory: function(e) {
  4415. return e.get("$timeout")
  4416. },
  4417. deps: ["$injector"]
  4418. }, {
  4419. provide: "$window",
  4420. useFactory: function(e) {
  4421. return e.get("$window")
  4422. },
  4423. deps: ["$injector"]
  4424. }, {
  4425. provide: "flowFactory",
  4426. useFactory: function(e) {
  4427. return e.get("flowFactory")
  4428. },
  4429. deps: ["$injector"]
  4430. }, {
  4431. provide: "gettext",
  4432. useFactory: function(e) {
  4433. return e.get("gettext")
  4434. },
  4435. deps: ["$injector"]
  4436. }, {
  4437. provide: "gettextCatalog",
  4438. useFactory: function(e) {
  4439. return e.get("gettextCatalog")
  4440. },
  4441. deps: ["$injector"]
  4442. }, {
  4443. provide: "hotkeys",
  4444. useFactory: function(e) {
  4445. return e.get("hotkeys")
  4446. },
  4447. deps: ["$injector"]
  4448. }, {
  4449. provide: "localStorageService",
  4450. useFactory: function(e) {
  4451. return e.get("localStorageService")
  4452. },
  4453. deps: ["$injector"]
  4454. }, {
  4455. provide: "Upload",
  4456. useFactory: function(e) {
  4457. return e.get("Upload")
  4458. },
  4459. deps: ["$injector"]
  4460. }, {
  4461. provide: "apiEndpoint",
  4462. useFactory: function(e) {
  4463. return e.get("apiEndpoint")
  4464. },
  4465. deps: ["$injector"]
  4466. }, {
  4467. provide: "isHtml5Mode",
  4468. useFactory: function(e) {
  4469. return e.get("isHtml5Mode")
  4470. },
  4471. deps: ["$injector"]
  4472. }, {
  4473. provide: "IV",
  4474. useFactory: function(e) {
  4475. return e.get("IV")
  4476. },
  4477. deps: ["$injector"]
  4478. }, {
  4479. provide: "PointCloudMenuService",
  4480. useFactory: function(e) {
  4481. return e.get("PointCloudMenuService")
  4482. },
  4483. deps: ["$injector"]
  4484. }, {
  4485. provide: "PolygonLayerFactory",
  4486. useFactory: function(e) {
  4487. return e.get("PolygonLayerFactory")
  4488. },
  4489. deps: ["$injector"]
  4490. }]
  4491. },
  4492. 2017: function(e, t, n) {
  4493. "use strict";
  4494. Object.defineProperty(t, "__esModule", {
  4495. value: !0
  4496. }),
  4497. t.routes = [{
  4498. path: "pointcloud",
  4499. loadChildren: "../Modules/PointCloud/PointCloudModule#PointCloudModule"
  4500. }, {
  4501. path: "meshes",
  4502. loadChildren: "../Modules/MeshModule#MeshModule"
  4503. }, {
  4504. path: "ckewrapper",
  4505. loadChildren: "../PoiUI/CKEWrapper/CKEWrapperModule#CKEWrapperModule"
  4506. }, {
  4507. path: "measurements",
  4508. loadChildren: "./MeasurementsModule#MeasurementsModule"
  4509. }, {
  4510. path: "cloud-processing",
  4511. loadChildren: "./CloudProcessingModule#CloudProcessingModule"
  4512. }, {
  4513. path: "developer-menu",
  4514. loadChildren: "./DeveloperModule#DeveloperModule"
  4515. }, {
  4516. path: "settings",
  4517. children: [{
  4518. path: "audit",
  4519. loadChildren: "./AuditPanelModule#AuditPanelModule"
  4520. }, {
  4521. path: "theme",
  4522. loadChildren: "../ThemePanelUI/ThemePanelModule#ThemePanelModule"
  4523. }]
  4524. }]
  4525. },
  4526. 2018: function(e, t, n) {
  4527. "use strict";
  4528. Object.defineProperty(t, "__esModule", {
  4529. value: !0
  4530. });
  4531. var o = n(0)
  4532. , r = n(233)
  4533. , i = (n(17),
  4534. n(21),
  4535. n(52))
  4536. , a = n(642)
  4537. , s = n(0)
  4538. , c = n(17)
  4539. , l = n(21)
  4540. , u = function() {
  4541. function e(e, t, n, o) {
  4542. var r = this;
  4543. this.element = e,
  4544. this.ViewService = t,
  4545. this.renderer = n,
  4546. this.TrackingService = o,
  4547. this.isDragging = !1,
  4548. this.hasMoved = !1,
  4549. this.xStart = 0,
  4550. this.connection = this.ViewService.mainView.viewportDimensionsChanged.connect((function() {
  4551. r.repositionSeparatorToViewportIntersection()
  4552. }
  4553. ))
  4554. }
  4555. return e.prototype.ngOnInit = function() {
  4556. this.repositionSeparatorToViewportIntersection()
  4557. }
  4558. ,
  4559. e.prototype.ngOnDestroy = function() {
  4560. this.connection.disconnect()
  4561. }
  4562. ,
  4563. e.prototype.onMouseDown = function(t) {
  4564. t.button === r.MouseButton.LEFT && (this.dragStart(t.clientX),
  4565. e.stopEventPropagation(t))
  4566. }
  4567. ,
  4568. e.prototype.onTouchStart = function(e) {
  4569. e.touches.length && this.dragStart(e.touches[0].clientX)
  4570. }
  4571. ,
  4572. e.prototype.onMouseMove = function(t) {
  4573. this.isDragging && t.button === r.MouseButton.LEFT && (this.dragMove(t.clientX),
  4574. e.stopEventPropagation(t))
  4575. }
  4576. ,
  4577. e.prototype.onTouchMove = function(e) {
  4578. this.isDragging && e.touches.length && this.dragMove(e.touches[0].clientX)
  4579. }
  4580. ,
  4581. e.prototype.onMouseUp = function(e) {
  4582. this.isDragging && e.button === r.MouseButton.LEFT && this.dragEnd()
  4583. }
  4584. ,
  4585. e.prototype.onTouchCancel = function(e) {
  4586. this.isDragging && this.dragEnd()
  4587. }
  4588. ,
  4589. e.prototype.dragStart = function(e) {
  4590. this.isDragging = !0,
  4591. this.hasMoved = !1,
  4592. this.xStart = e
  4593. }
  4594. ,
  4595. e.prototype.dragMove = function(e) {
  4596. this.hasMoved || (this.moveViewportIntersectionToMousePosition(),
  4597. this.hasMoved = !0);
  4598. var t = e - this.xStart;
  4599. this.ViewService.mainView.adjustViewportDimensions(t),
  4600. this.xStart = e
  4601. }
  4602. ,
  4603. e.prototype.dragEnd = function() {
  4604. if (this.isDragging = !1,
  4605. this.hasMoved) {
  4606. this.snapToEdge();
  4607. var e = this.ViewService.mainView;
  4608. this.TrackingService.trackPreDefinedEvent((new a.MultiViewportResizedEvent).withViewports(this.collapsedWidthThresholdInPixels, e.getViewportByName(i.SplitViewportName.TOP_VIEW), e.getViewportByName(i.SplitViewportName.DEFAULT_VIEW)))
  4609. }
  4610. }
  4611. ,
  4612. e.prototype.moveViewportIntersectionToMousePosition = function() {
  4613. var e = this.getViewportWidth(i.SplitViewportName.TOP_VIEW);
  4614. this.ViewService.mainView.adjustViewportDimensions(this.xStart - e),
  4615. this.repositionSeparatorToViewportIntersection()
  4616. }
  4617. ,
  4618. e.prototype.snapToEdge = function() {
  4619. var e = this.element.nativeElement.offsetParent.clientWidth
  4620. , t = this.element.nativeElement.offsetLeft
  4621. , n = 0
  4622. , o = !1;
  4623. t < this.collapsedWidthThresholdInPixels ? (n = -t,
  4624. o = !0) : e - t < this.collapsedWidthThresholdInPixels && (n = e - t,
  4625. o = !0),
  4626. this.ViewService.mainView.adjustViewportDimensions(n, o)
  4627. }
  4628. ,
  4629. e.stopEventPropagation = function(e) {
  4630. e.stopPropagation && e.stopPropagation(),
  4631. e.preventDefault && e.preventDefault(),
  4632. e.cancelBubble = !0,
  4633. e.returnValue = !1
  4634. }
  4635. ,
  4636. e.prototype.repositionSeparatorToViewportIntersection = function() {
  4637. var e = this.getViewportWidth(i.SplitViewportName.TOP_VIEW)
  4638. , t = e + this.getViewportWidth(i.SplitViewportName.DEFAULT_VIEW);
  4639. this.renderer.setStyle(this.element.nativeElement, "left", 100 * e / t + "%")
  4640. }
  4641. ,
  4642. e.prototype.getViewportWidth = function(e) {
  4643. return this.ViewService.mainView.getViewportByName(e).screenWidth
  4644. }
  4645. ,
  4646. Object.defineProperty(e.prototype, "collapsedWidthThresholdInPixels", {
  4647. get: function() {
  4648. return this.element.nativeElement.offsetParent.clientWidth * this.collapseWidth / 100
  4649. },
  4650. enumerable: !0,
  4651. configurable: !0
  4652. }),
  4653. e.ɵfac = function(t) {
  4654. return new (t || e)(s.ɵɵdirectiveInject(s.ElementRef),s.ɵɵdirectiveInject(c.ViewService),s.ɵɵdirectiveInject(s.Renderer2),s.ɵɵdirectiveInject(l.TrackingService))
  4655. }
  4656. ,
  4657. e.ɵdir = s.ɵɵdefineDirective({
  4658. type: e,
  4659. selectors: [["", "viewportResizer", ""]],
  4660. hostBindings: function(e, t) {
  4661. 1 & e && s.ɵɵlistener("mousedown", (function(e) {
  4662. return t.onMouseDown(e)
  4663. }
  4664. ))("touchstart", (function(e) {
  4665. return t.onTouchStart(e)
  4666. }
  4667. ))("mousemove", (function(e) {
  4668. return t.onMouseMove(e)
  4669. }
  4670. ), !1, s.ɵɵresolveDocument)("touchmove", (function(e) {
  4671. return t.onTouchMove(e)
  4672. }
  4673. ), !1, s.ɵɵresolveDocument)("mouseup", (function(e) {
  4674. return t.onMouseUp(e)
  4675. }
  4676. ), !1, s.ɵɵresolveDocument)("touchend", (function(e) {
  4677. return t.onTouchCancel(e)
  4678. }
  4679. ), !1, s.ɵɵresolveDocument)("touchcancel", (function(e) {
  4680. return t.onTouchCancel(e)
  4681. }
  4682. ), !1, s.ɵɵresolveDocument)
  4683. },
  4684. inputs: {
  4685. collapseWidth: "collapseWidth"
  4686. }
  4687. }),
  4688. e
  4689. }();
  4690. t.ViewportResizerDirective = u,
  4691. s.ɵsetClassMetadata(u, [{
  4692. type: o.Directive,
  4693. args: [{
  4694. selector: "[viewportResizer]"
  4695. }]
  4696. }], (function() {
  4697. return [{
  4698. type: s.ElementRef
  4699. }, {
  4700. type: c.ViewService
  4701. }, {
  4702. type: s.Renderer2
  4703. }, {
  4704. type: l.TrackingService
  4705. }]
  4706. }
  4707. ), {
  4708. collapseWidth: [{
  4709. type: o.Input
  4710. }],
  4711. onMouseDown: [{
  4712. type: o.HostListener,
  4713. args: ["mousedown", ["$event"]]
  4714. }],
  4715. onTouchStart: [{
  4716. type: o.HostListener,
  4717. args: ["touchstart", ["$event"]]
  4718. }],
  4719. onMouseMove: [{
  4720. type: o.HostListener,
  4721. args: ["document:mousemove", ["$event"]]
  4722. }],
  4723. onTouchMove: [{
  4724. type: o.HostListener,
  4725. args: ["document:touchmove", ["$event"]]
  4726. }],
  4727. onMouseUp: [{
  4728. type: o.HostListener,
  4729. args: ["document:mouseup", ["$event"]]
  4730. }],
  4731. onTouchCancel: [{
  4732. type: o.HostListener,
  4733. args: ["document:touchend", ["$event"]]
  4734. }, {
  4735. type: o.HostListener,
  4736. args: ["document:touchcancel", ["$event"]]
  4737. }]
  4738. })
  4739. },
  4740. 2019: function(e, t, n) {
  4741. "use strict";
  4742. Object.defineProperty(t, "__esModule", {
  4743. value: !0
  4744. });
  4745. var o = n(0)
  4746. , r = (n(17),
  4747. n(52))
  4748. , i = n(2)
  4749. , a = n(6)
  4750. , s = n(0)
  4751. , c = n(17)
  4752. , l = function() {
  4753. function e(e) {
  4754. this.ViewService = e,
  4755. this.arrowIcon = n(2020),
  4756. this.resizerIcon = n(2021)
  4757. }
  4758. return e.prototype.getTopViewport = function() {
  4759. return this.ViewService.mainView.getViewportByName(r.SplitViewportName.TOP_VIEW)
  4760. }
  4761. ,
  4762. e.prototype.getDefaultViewport = function() {
  4763. return this.ViewService.mainView.getDefaultViewport()
  4764. }
  4765. ,
  4766. e.prototype.areMultipleViewportsActive = function() {
  4767. return this.ViewService.mainView.areMultipleViewportsActive()
  4768. }
  4769. ,
  4770. e.prototype.isInTwoViewportMode = function() {
  4771. return this.ViewService.mainView.isInTwoViewportMode()
  4772. }
  4773. ,
  4774. e.prototype.isInFourViewportMode = function() {
  4775. return this.ViewService.mainView.isInFourViewportMode()
  4776. }
  4777. ,
  4778. e.prototype.resetTwoViewportDimensions = function() {
  4779. this.ViewService.mainView.resetTwoViewportModeDimensions()
  4780. }
  4781. ,
  4782. e.prototype.isTopViewportCollapsed = function() {
  4783. return this.getTopViewport().width <= .001
  4784. }
  4785. ,
  4786. e.prototype.isDefaultViewportCollapsed = function() {
  4787. return this.getDefaultViewport().width <= .001
  4788. }
  4789. ,
  4790. e.ɵfac = function(t) {
  4791. return new (t || e)(s.ɵɵdirectiveInject(c.ViewService))
  4792. }
  4793. ,
  4794. e.ɵcmp = s.ɵɵdefineComponent({
  4795. type: e,
  4796. selectors: [["viewport-resizer-component"]],
  4797. decls: 15,
  4798. vars: 7,
  4799. consts: [["id", "viewport-resizer", "viewportResizer", "", 1, "viewport-resizer", "left", 3, "collapseWidth"], [3, "hidden"], [1, "vertical-viewport-separator", "resizeable"], [1, "btn-resizer"], ["alt", "resizer_icon", 3, "src"], [1, "uncollapse-btn", "left", 3, "hidden", "click"], [1, "uncollapse-button-text"], [1, "button-padding-left", "arrow"], ["alt", "arrow_icon", 3, "src"], [1, "uncollapse-btn", "right", 3, "hidden", "click"], [1, "arrow", "mirrored"], [1, "uncollapse-button-text", "button-padding-left"]],
  4800. template: function(e, t) {
  4801. 1 & e && (s.ɵɵelementStart(0, "div", 0),
  4802. s.ɵɵelementStart(1, "div", 1),
  4803. s.ɵɵelementStart(2, "div", 2),
  4804. s.ɵɵelementStart(3, "div", 3),
  4805. s.ɵɵelement(4, "img", 4),
  4806. s.ɵɵelementEnd(),
  4807. s.ɵɵelementEnd(),
  4808. s.ɵɵelementEnd(),
  4809. s.ɵɵelementStart(5, "div", 5),
  4810. s.ɵɵlistener("click", (function() {
  4811. return t.resetTwoViewportDimensions()
  4812. }
  4813. )),
  4814. s.ɵɵelementStart(6, "div", 6),
  4815. s.ɵɵtext(7, " 2D "),
  4816. s.ɵɵelementEnd(),
  4817. s.ɵɵelementStart(8, "div", 7),
  4818. s.ɵɵelement(9, "img", 8),
  4819. s.ɵɵelementEnd(),
  4820. s.ɵɵelementEnd(),
  4821. s.ɵɵelementStart(10, "div", 9),
  4822. s.ɵɵlistener("click", (function() {
  4823. return t.resetTwoViewportDimensions()
  4824. }
  4825. )),
  4826. s.ɵɵelementStart(11, "div", 10),
  4827. s.ɵɵelement(12, "img", 8),
  4828. s.ɵɵelementEnd(),
  4829. s.ɵɵelementStart(13, "div", 11),
  4830. s.ɵɵtext(14, " 3D "),
  4831. s.ɵɵelementEnd(),
  4832. s.ɵɵelementEnd(),
  4833. s.ɵɵelementEnd()),
  4834. 2 & e && (s.ɵɵproperty("collapseWidth", 20),
  4835. s.ɵɵadvance(1),
  4836. s.ɵɵproperty("hidden", !t.areMultipleViewportsActive() || !t.isInTwoViewportMode()),
  4837. s.ɵɵadvance(3),
  4838. s.ɵɵproperty("src", t.resizerIcon, s.ɵɵsanitizeUrl),
  4839. s.ɵɵadvance(1),
  4840. s.ɵɵproperty("hidden", !t.isTopViewportCollapsed()),
  4841. s.ɵɵadvance(4),
  4842. s.ɵɵproperty("src", t.arrowIcon, s.ɵɵsanitizeUrl),
  4843. s.ɵɵadvance(1),
  4844. s.ɵɵproperty("hidden", !t.isDefaultViewportCollapsed()),
  4845. s.ɵɵadvance(2),
  4846. s.ɵɵproperty("src", t.arrowIcon, s.ɵɵsanitizeUrl))
  4847. },
  4848. styles: [".vertical-viewport-separator[_ngcontent-%COMP%]{left:calc(50% - 3px);width:3px;height:100%}.vertical-viewport-separator.resizeable[_ngcontent-%COMP%]{position:absolute;background:#fff}.btn-resizer[_ngcontent-%COMP%]{transform:translateX(-50%);position:absolute;left:1.5px;bottom:6%}.viewport-resizer[_ngcontent-%COMP%]{cursor:ew-resize;position:absolute;height:100%}.uncollapse-button-text[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-style:normal;font-weight:400;font-size:40px;width:56px;color:#f8f7fa;text-shadow:0 0 2px rgba(0,0,0,.5)}.uncollapse-btn[_ngcontent-%COMP%]{bottom:6%;position:absolute;width:79px;display:flex;align-items:center;line-height:95.62%;cursor:pointer}.uncollapse-btn.right[_ngcontent-%COMP%]{right:10px}.uncollapse-btn.left[_ngcontent-%COMP%]{left:10px}.button-padding-left[_ngcontent-%COMP%]{padding-left:.15em}.arrow[_ngcontent-%COMP%]{vertical-align:top}.arrow.mirrored[_ngcontent-%COMP%]{transform:rotate(-180deg)}[hidden][_ngcontent-%COMP%]{display:none!important}"]
  4849. }),
  4850. e
  4851. }();
  4852. t.ViewportResizerComponent = l,
  4853. s.ɵsetClassMetadata(l, [{
  4854. type: o.Component,
  4855. args: [{
  4856. selector: "viewport-resizer-component",
  4857. templateUrl: "./ViewportResizer.ng.html",
  4858. styleUrls: ["./ViewportResizer.ng.scss"]
  4859. }]
  4860. }], (function() {
  4861. return [{
  4862. type: c.ViewService
  4863. }]
  4864. }
  4865. ), null),
  4866. i.module("IVWebApp").directive("viewportResizerComponent", a.downgradeComponent({
  4867. component: l
  4868. }))
  4869. },
  4870. 2020: function(e, t, n) {
  4871. e.exports = n.p + "img/icon/icon_location_n.png"
  4872. },
  4873. 2021: function(e, t, n) {
  4874. e.exports = n.p + "977b9b3bb5dfdf2f2342f38c46f64a75.resizer.svg"
  4875. },
  4876. 2022: function(e, t, n) {
  4877. "use strict";
  4878. Object.defineProperty(t, "__esModule", {
  4879. value: !0
  4880. });
  4881. var o = n(0)
  4882. , r = n(2)
  4883. , i = n(6)
  4884. , a = (n(120),
  4885. n(232),
  4886. n(348))
  4887. , s = n(0)
  4888. , c = n(120)
  4889. , l = n(3);
  4890. function u(e, t) {
  4891. 1 & e && (s.ɵɵelementStart(0, "div"),
  4892. s.ɵɵprojection(1),
  4893. s.ɵɵelementEnd())
  4894. }
  4895. var p = ["*"]
  4896. , d = function() {
  4897. function e(e) {
  4898. this.featureFlagsService = e,
  4899. this.featureEnabled = !1
  4900. }
  4901. return e.prototype.ngOnInit = function() {
  4902. var e = this;
  4903. this.featureFlagsService.isEnabled(this.feature).then((function() {
  4904. e.featureEnabled = !0
  4905. }
  4906. )).catch(a.handleDisabledFeature)
  4907. }
  4908. ,
  4909. e.ɵfac = function(t) {
  4910. return new (t || e)(s.ɵɵdirectiveInject(c.FeatureFlagsService))
  4911. }
  4912. ,
  4913. e.ɵcmp = s.ɵɵdefineComponent({
  4914. type: e,
  4915. selectors: [["feature-flag-component"]],
  4916. inputs: {
  4917. feature: "feature"
  4918. },
  4919. ngContentSelectors: p,
  4920. decls: 1,
  4921. vars: 1,
  4922. consts: [[4, "ngIf"]],
  4923. template: function(e, t) {
  4924. 1 & e && (s.ɵɵprojectionDef(),
  4925. s.ɵɵtemplate(0, u, 2, 0, "div", 0)),
  4926. 2 & e && s.ɵɵproperty("ngIf", t.featureEnabled)
  4927. },
  4928. directives: [l.NgIf],
  4929. encapsulation: 2
  4930. }),
  4931. e
  4932. }();
  4933. t.FeatureFlagComponent = d,
  4934. s.ɵsetClassMetadata(d, [{
  4935. type: o.Component,
  4936. args: [{
  4937. selector: "feature-flag-component",
  4938. templateUrl: "./FeatureFlagComponent.ng.html"
  4939. }]
  4940. }], (function() {
  4941. return [{
  4942. type: c.FeatureFlagsService
  4943. }]
  4944. }
  4945. ), {
  4946. feature: [{
  4947. type: o.Input
  4948. }]
  4949. }),
  4950. r.module("IVWebApp").directive("featureFlagComponent", i.downgradeComponent({
  4951. component: d
  4952. }))
  4953. },
  4954. 2024: function(e, t, n) {
  4955. "use strict";
  4956. Object.defineProperty(t, "__esModule", {
  4957. value: !0
  4958. });
  4959. var o = n(168)
  4960. , r = n(0)
  4961. , i = n(129)
  4962. , a = (n(9),
  4963. n(0))
  4964. , s = n(9)
  4965. , c = function() {
  4966. function e(e) {
  4967. this.RestService = e
  4968. }
  4969. return e.prototype.getTranslation = function(e) {
  4970. var t = "translations/json/" + e + ".json"
  4971. , n = this.RestService.authorizedHttpRequest({
  4972. url: t
  4973. });
  4974. return i.from(n)
  4975. }
  4976. ,
  4977. e.ɵfac = function(t) {
  4978. return new (t || e)(a.ɵɵinject(s.RestService))
  4979. }
  4980. ,
  4981. e.ɵprov = a.ɵɵdefineInjectable({
  4982. token: e,
  4983. factory: e.ɵfac,
  4984. providedIn: "root"
  4985. }),
  4986. e
  4987. }();
  4988. t.HttpLoader = c,
  4989. a.ɵsetClassMetadata(c, [{
  4990. type: r.Injectable,
  4991. args: [{
  4992. providedIn: "root"
  4993. }]
  4994. }], (function() {
  4995. return [{
  4996. type: s.RestService
  4997. }]
  4998. }
  4999. ), null),
  5000. t.translocoLoader = {
  5001. provide: o.TRANSLOCO_LOADER,
  5002. useClass: c
  5003. }
  5004. },
  5005. 2025: function(e, t, n) {
  5006. "use strict";
  5007. Object.defineProperty(t, "__esModule", {
  5008. value: !0
  5009. });
  5010. var o = n(0)
  5011. , r = n(210)
  5012. , i = n(0)
  5013. , a = function() {
  5014. function e() {}
  5015. return e.prototype.intercept = function(e, t) {
  5016. var n = e.clone({
  5017. url: r.makeUrlAbsolute(e.url)
  5018. });
  5019. return t.handle(n)
  5020. }
  5021. ,
  5022. e.ɵfac = function(t) {
  5023. return new (t || e)
  5024. }
  5025. ,
  5026. e.ɵprov = i.ɵɵdefineInjectable({
  5027. token: e,
  5028. factory: e.ɵfac,
  5029. providedIn: "root"
  5030. }),
  5031. e
  5032. }();
  5033. t.RedirectBaseUrl = a,
  5034. i.ɵsetClassMetadata(a, [{
  5035. type: o.Injectable,
  5036. args: [{
  5037. providedIn: "root"
  5038. }]
  5039. }], null, null)
  5040. },
  5041. 2026: function(e, t, n) {
  5042. "use strict";
  5043. Object.defineProperty(t, "__esModule", {
  5044. value: !0
  5045. }),
  5046. n(2027);
  5047. var o = n(0)
  5048. , r = n(2)
  5049. , i = n(6)
  5050. , a = (n(17),
  5051. n(1868))
  5052. , s = (n(65),
  5053. n(1898))
  5054. , c = n(0)
  5055. , l = n(17)
  5056. , u = n(65)
  5057. , p = n(624)
  5058. , d = function() {
  5059. function e(e, t) {
  5060. var n = this;
  5061. this.ViewService = e,
  5062. this.ViewMenuService = t,
  5063. this.config = new a.MeshLoaderConfig,
  5064. this.callback = function() {
  5065. return n.update()
  5066. }
  5067. ,
  5068. this.update(),
  5069. this.ViewMenuService.onShowMeshesChanged.connect(this.callback)
  5070. }
  5071. return e.prototype.ngOnDestroy = function() {
  5072. this.ViewMenuService.onShowMeshesChanged.disconnect(this.callback)
  5073. }
  5074. ,
  5075. e.prototype.reloadLayer = function() {
  5076. this.layer && this.layer.reload(this.maxGPULoads, this.showBBoxThree, this.showBBoxGLTF)
  5077. }
  5078. ,
  5079. e.prototype.getMeshLayer = function() {
  5080. return this.ViewService.mainView.getLayer(s.MeshLayer)
  5081. }
  5082. ,
  5083. e.prototype.update = function() {
  5084. var e = this.getMeshLayer();
  5085. e && (this.layer = e,
  5086. this.config = this.layer.loaderConfig,
  5087. this.showBBoxThree = this.layer.showBBoxThree,
  5088. this.showBBoxGLTF = this.layer.showBBoxGLTF,
  5089. this.maxGPULoads = this.layer.maxGPULoads)
  5090. }
  5091. ,
  5092. e.ɵfac = function(t) {
  5093. return new (t || e)(c.ɵɵdirectiveInject(l.ViewService),c.ɵɵdirectiveInject(u.ViewMenuService))
  5094. }
  5095. ,
  5096. e.ɵcmp = c.ɵɵdefineComponent({
  5097. type: e,
  5098. selectors: [["mesh-menu-panel-component"]],
  5099. decls: 44,
  5100. vars: 8,
  5101. consts: [[1, "panel", "mesh-menu"], [1, "panel-body"], [1, "row"], [1, "col-xs-8", "align-text"], [1, "col-xs-4", "align-textbox"], ["type", "number", "min", "1", "max", "100", "step", "1", 1, "form-control", 3, "ngModel", "ngModelChange", "blur"], ["type", "number", "min", "1", "step", "1", 1, "form-control", 3, "ngModel", "ngModelChange", "blur"], ["title", "If current LOD is bigger or smaller than the supported range, the highest available resolution [0] is selected.", 1, "col-xs-4", "align-textbox"], ["type", "number", "min", "0", "step", "1", 1, "form-control", 3, "ngModel", "ngModelChange", "blur"], [1, "col-xs-12", "align-textbox"], [1, "checkbox"], ["type", "checkbox", 3, "ngModel", "ngModelChange", "change"]],
  5102. template: function(e, t) {
  5103. 1 & e && (c.ɵɵelementStart(0, "div", 0),
  5104. c.ɵɵelementStart(1, "div", 1),
  5105. c.ɵɵelementStart(2, "div", 2),
  5106. c.ɵɵelementStart(3, "div", 3),
  5107. c.ɵɵtext(4, " Max distance "),
  5108. c.ɵɵelementEnd(),
  5109. c.ɵɵelementStart(5, "div", 4),
  5110. c.ɵɵelementStart(6, "input", 5),
  5111. c.ɵɵlistener("ngModelChange", (function(e) {
  5112. return t.config.maxDistance = e
  5113. }
  5114. ))("blur", (function() {
  5115. return t.reloadLayer()
  5116. }
  5117. )),
  5118. c.ɵɵelementEnd(),
  5119. c.ɵɵelementEnd(),
  5120. c.ɵɵelementEnd(),
  5121. c.ɵɵelementStart(7, "div", 2),
  5122. c.ɵɵelementStart(8, "div", 3),
  5123. c.ɵɵtext(9, " Max Load Requests "),
  5124. c.ɵɵelementEnd(),
  5125. c.ɵɵelementStart(10, "div", 4),
  5126. c.ɵɵelementStart(11, "input", 5),
  5127. c.ɵɵlistener("ngModelChange", (function(e) {
  5128. return t.config.maxLoadRequests = e
  5129. }
  5130. ))("blur", (function() {
  5131. return t.reloadLayer()
  5132. }
  5133. )),
  5134. c.ɵɵelementEnd(),
  5135. c.ɵɵelementEnd(),
  5136. c.ɵɵelementEnd(),
  5137. c.ɵɵelementStart(12, "div", 2),
  5138. c.ɵɵelementStart(13, "div", 3),
  5139. c.ɵɵtext(14, " Vertex Budget "),
  5140. c.ɵɵelementEnd(),
  5141. c.ɵɵelementStart(15, "div", 4),
  5142. c.ɵɵelementStart(16, "input", 6),
  5143. c.ɵɵlistener("ngModelChange", (function(e) {
  5144. return t.config.vertexBudget = e
  5145. }
  5146. ))("blur", (function() {
  5147. return t.reloadLayer()
  5148. }
  5149. )),
  5150. c.ɵɵelementEnd(),
  5151. c.ɵɵelementEnd(),
  5152. c.ɵɵelementEnd(),
  5153. c.ɵɵelementStart(17, "div", 2),
  5154. c.ɵɵelementStart(18, "div", 3),
  5155. c.ɵɵtext(19, " Textures level of detail "),
  5156. c.ɵɵelementEnd(),
  5157. c.ɵɵelementStart(20, "div", 7),
  5158. c.ɵɵelementStart(21, "input", 8),
  5159. c.ɵɵlistener("ngModelChange", (function(e) {
  5160. return t.config.lod = e
  5161. }
  5162. ))("blur", (function() {
  5163. return t.reloadLayer()
  5164. }
  5165. )),
  5166. c.ɵɵelementEnd(),
  5167. c.ɵɵelementEnd(),
  5168. c.ɵɵelementEnd(),
  5169. c.ɵɵelementStart(22, "div", 2),
  5170. c.ɵɵelementStart(23, "div", 3),
  5171. c.ɵɵtext(24, " Max GPU Loads "),
  5172. c.ɵɵelementEnd(),
  5173. c.ɵɵelementStart(25, "div", 4),
  5174. c.ɵɵelementStart(26, "input", 6),
  5175. c.ɵɵlistener("ngModelChange", (function(e) {
  5176. return t.maxGPULoads = e
  5177. }
  5178. ))("blur", (function() {
  5179. return t.reloadLayer()
  5180. }
  5181. )),
  5182. c.ɵɵelementEnd(),
  5183. c.ɵɵelementEnd(),
  5184. c.ɵɵelementEnd(),
  5185. c.ɵɵelementStart(27, "div", 2),
  5186. c.ɵɵelementStart(28, "div", 9),
  5187. c.ɵɵelementStart(29, "div", 10),
  5188. c.ɵɵelementStart(30, "label"),
  5189. c.ɵɵelementStart(31, "input", 11),
  5190. c.ɵɵlistener("ngModelChange", (function(e) {
  5191. return t.config.showWireframe = e
  5192. }
  5193. ))("change", (function() {
  5194. return t.reloadLayer()
  5195. }
  5196. )),
  5197. c.ɵɵelementEnd(),
  5198. c.ɵɵelementStart(32, "span"),
  5199. c.ɵɵtext(33, "Show wireframe"),
  5200. c.ɵɵelementEnd(),
  5201. c.ɵɵelementEnd(),
  5202. c.ɵɵelementEnd(),
  5203. c.ɵɵelementStart(34, "div", 10),
  5204. c.ɵɵelementStart(35, "label"),
  5205. c.ɵɵelementStart(36, "input", 11),
  5206. c.ɵɵlistener("ngModelChange", (function(e) {
  5207. return t.showBBoxThree = e
  5208. }
  5209. ))("change", (function() {
  5210. return t.reloadLayer()
  5211. }
  5212. )),
  5213. c.ɵɵelementEnd(),
  5214. c.ɵɵelementStart(37, "span"),
  5215. c.ɵɵtext(38, "Show Three bounding boxes"),
  5216. c.ɵɵelementEnd(),
  5217. c.ɵɵelementEnd(),
  5218. c.ɵɵelementEnd(),
  5219. c.ɵɵelementStart(39, "div", 10),
  5220. c.ɵɵelementStart(40, "label"),
  5221. c.ɵɵelementStart(41, "input", 11),
  5222. c.ɵɵlistener("ngModelChange", (function(e) {
  5223. return t.showBBoxGLTF = e
  5224. }
  5225. ))("change", (function() {
  5226. return t.reloadLayer()
  5227. }
  5228. )),
  5229. c.ɵɵelementEnd(),
  5230. c.ɵɵelementStart(42, "span"),
  5231. c.ɵɵtext(43, "Show GLTF bounding boxes"),
  5232. c.ɵɵelementEnd(),
  5233. c.ɵɵelementEnd(),
  5234. c.ɵɵelementEnd(),
  5235. c.ɵɵelementEnd(),
  5236. c.ɵɵelementEnd(),
  5237. c.ɵɵelementEnd(),
  5238. c.ɵɵelementEnd()),
  5239. 2 & e && (c.ɵɵadvance(6),
  5240. c.ɵɵproperty("ngModel", t.config.maxDistance),
  5241. c.ɵɵadvance(5),
  5242. c.ɵɵproperty("ngModel", t.config.maxLoadRequests),
  5243. c.ɵɵadvance(5),
  5244. c.ɵɵproperty("ngModel", t.config.vertexBudget),
  5245. c.ɵɵadvance(5),
  5246. c.ɵɵproperty("ngModel", t.config.lod),
  5247. c.ɵɵadvance(5),
  5248. c.ɵɵproperty("ngModel", t.maxGPULoads),
  5249. c.ɵɵadvance(5),
  5250. c.ɵɵproperty("ngModel", t.config.showWireframe),
  5251. c.ɵɵadvance(5),
  5252. c.ɵɵproperty("ngModel", t.showBBoxThree),
  5253. c.ɵɵadvance(5),
  5254. c.ɵɵproperty("ngModel", t.showBBoxGLTF))
  5255. },
  5256. directives: [p.NumberValueAccessor, p.DefaultValueAccessor, p.NgControlStatus, p.NgModel, p.CheckboxControlValueAccessor],
  5257. encapsulation: 2
  5258. }),
  5259. e
  5260. }();
  5261. t.MeshMenuPanelComponent = d,
  5262. c.ɵsetClassMetadata(d, [{
  5263. type: o.Component,
  5264. args: [{
  5265. selector: "mesh-menu-panel-component",
  5266. templateUrl: "MeshMenuPanel.ng.html"
  5267. }]
  5268. }], (function() {
  5269. return [{
  5270. type: l.ViewService
  5271. }, {
  5272. type: u.ViewMenuService
  5273. }]
  5274. }
  5275. ), null),
  5276. r.module("IVWebApp").directive("meshMenuPanelComponent", i.downgradeComponent({
  5277. component: d
  5278. }))
  5279. },
  5280. 2027: function(e, t, n) {
  5281. "use strict";
  5282. n.r(t),
  5283. t.default = '<div class="panel mesh-menu">\n\t<div class="panel-body">\n\t\t<div class="row">\n\t\t\t<div class="col-xs-8 align-text">\n\t\t\t\tMax distance\n\t\t\t</div>\n\t\t\t<div class="col-xs-4 align-textbox">\n\t\t\t\t<input type="number" class="form-control"\n\t\t\t\t min="1" max="100" step="1"\n\t\t\t\t\t\t[(ngModel)]="config.maxDistance"\n\t\t\t\t\t\t(blur)="reloadLayer()"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="row">\n\t\t\t<div class="col-xs-8 align-text">\n\t\t\t\tMax Load Requests\n\t\t\t</div>\n\t\t\t<div class="col-xs-4 align-textbox">\n\t\t\t\t<input type="number" class="form-control"\n\t\t\t\t min="1" max="100" step="1"\n\t\t\t\t\t\t[(ngModel)]="config.maxLoadRequests"\n\t\t\t\t\t\t(blur)="reloadLayer()"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="row">\n\t\t\t<div class="col-xs-8 align-text">\n\t\t\t\tVertex Budget\n\t\t\t</div>\n\t\t\t<div class="col-xs-4 align-textbox">\n\t\t\t\t<input type="number" class="form-control"\n\t\t\t\t min="1" step="1"\n\t\t\t\t\t\t[(ngModel)]="config.vertexBudget"\n\t\t\t\t\t\t(blur)="reloadLayer()"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="row">\n\t\t\t<div class="col-xs-8 align-text">\n\t\t\t\tTextures level of detail\n\t\t\t</div>\n\t\t\t<div class="col-xs-4 align-textbox"\n\t\t\t title="If current LOD is bigger or smaller than the supported range, the highest available resolution [0] is selected.">\n\t\t\t\t<input type="number" class="form-control"\n\t\t\t\t min="0" step="1"\n\t\t\t\t\t\t[(ngModel)]="config.lod"\n\t\t\t\t\t\t(blur)="reloadLayer()"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="row">\n\t\t\t<div class="col-xs-8 align-text">\n\t\t\t\tMax GPU Loads\n\t\t\t</div>\n\t\t\t<div class="col-xs-4 align-textbox">\n\t\t\t\t<input type="number" class="form-control"\n\t\t\t\t min="1" step="1"\n\t\t\t\t\t\t[(ngModel)]="maxGPULoads"\n\t\t\t\t\t\t(blur)="reloadLayer()"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="row">\n\t\t\t<div class="col-xs-12 align-textbox">\n\t\t\t\t<div class="checkbox">\n\t\t\t\t\t<label>\n\t\t\t\t\t\t<input type="checkbox"\n\t\t\t\t\t\t\t\t[(ngModel)]="config.showWireframe"\n\t\t\t\t\t\t\t\t(change)="reloadLayer()"/>\n\t\t\t\t\t\t<span>Show wireframe</span>\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t\t<div class="checkbox">\n\t\t\t\t\t<label>\n\t\t\t\t\t\t<input type="checkbox"\n\t\t\t\t\t\t\t\t[(ngModel)]="showBBoxThree"\n\t\t\t\t\t\t\t\t(change)="reloadLayer()"/>\n\t\t\t\t\t\t<span>Show Three bounding boxes</span>\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t\t<div class="checkbox">\n\t\t\t\t\t<label>\n\t\t\t\t\t\t<input type="checkbox"\n\t\t\t\t\t\t\t\t[(ngModel)]="showBBoxGLTF"\n\t\t\t\t\t\t\t\t(change)="reloadLayer()"/>\n\t\t\t\t\t\t<span>Show GLTF bounding boxes</span>\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'
  5284. },
  5285. 2028: function(e, t, n) {
  5286. "use strict";
  5287. Object.defineProperty(t, "__esModule", {
  5288. value: !0
  5289. });
  5290. var o = n(0)
  5291. , r = n(3)
  5292. , i = n(440)
  5293. , a = n(625)
  5294. , s = n(1932)
  5295. , c = n(1933)
  5296. , l = n(168)
  5297. , u = n(1707)
  5298. , p = n(1709)
  5299. , d = n(0)
  5300. , h = function() {
  5301. function e() {}
  5302. return e.ɵmod = d.ɵɵdefineNgModule({
  5303. type: e
  5304. }),
  5305. e.ɵinj = d.ɵɵdefineInjector({
  5306. factory: function(t) {
  5307. return new (t || e)
  5308. },
  5309. imports: [[r.CommonModule, i.MatDialogModule, a.MatButtonModule, l.TranslocoModule, u.FlexModule, p.MatIconModule]]
  5310. }),
  5311. e
  5312. }();
  5313. t.WelcomeScreenModule = h,
  5314. ("undefined" == typeof ngJitMode || ngJitMode) && d.ɵɵsetNgModuleScope(h, {
  5315. declarations: [s.PaaSWelcomeScreenComponent, c.WelcomeScreenSelectorComponent],
  5316. imports: [r.CommonModule, i.MatDialogModule, a.MatButtonModule, l.TranslocoModule, u.FlexModule, p.MatIconModule],
  5317. exports: [c.WelcomeScreenSelectorComponent]
  5318. }),
  5319. d.ɵsetClassMetadata(h, [{
  5320. type: o.NgModule,
  5321. args: [{
  5322. imports: [r.CommonModule, i.MatDialogModule, a.MatButtonModule, l.TranslocoModule, u.FlexModule, p.MatIconModule],
  5323. declarations: [s.PaaSWelcomeScreenComponent, c.WelcomeScreenSelectorComponent],
  5324. exports: [c.WelcomeScreenSelectorComponent],
  5325. entryComponents: [s.PaaSWelcomeScreenComponent]
  5326. }]
  5327. }], null, null)
  5328. },
  5329. 2029: function(e, t, n) {
  5330. e.exports = n.p + "678dc7d72936df2358a0b6144debaebe.add_data.svg"
  5331. },
  5332. 2030: function(e, t, n) {
  5333. e.exports = n.p + "11c934dfaddeb028b9f20373e4ff048d.upload_process.svg"
  5334. }
  5335. }]);